Machine learning-based diagnostic system for automated kidney and liver disease analysis