AI-Powered Blood Test Report Interpretation System
Medical Report Analyzer is an AI-driven application designed to automate the extraction, interpretation, and summarization of blood test reports. The system leverages OCR, Large Language Models (LLMs), and an agent-based architecture to convert complex medical data into clear, patient-friendly insights.
Built with scalability and responsible AI principles in mind, this project demonstrates how multi-agent AI systems can be applied to real-world healthcare use cases.
Blood test reports are often difficult for non-medical users to understand due to complex terminology and numerical reference ranges. Manual interpretation is time-consuming and requires medical expertise.
This project aims to:
- Automate blood report analysis.
- Improve healthcare data accessibility.
- Provide simplified, explainable insights for patients and students.
- 📄 Automated OCR Extraction from uploaded blood test reports.
- 🤖 Agent-Based Architecture using CrewAI.
- 🧠 LLM-Powered Medical Interpretation with reference range mapping.
- 📝 Patient-Friendly Summaries generated via prompt engineering.
- 🎛 Streamlit Web Interface for easy report upload and analysis.
- 🔄 Modular & Scalable Design for future diagnostic extensions.
- 🔐 Responsible AI Practices with no sensitive data retention.
The system is built using a multi-agent pipeline, where each agent performs a specialized task:
-
OCR Parser Agent
- Extracts text from uploaded blood reports using Tesseract OCR.
-
Health Data Interpreter Agent
- Identifies medical parameters.
- Maps values to standard reference ranges.
- Generates contextual medical insights using LLMs.
-
Summary Generator Agent
- Converts technical results into simplified, patient-friendly explanations.
Agents are orchestrated sequentially using CrewAI to ensure clean data flow and modular execution.
- CrewAI (Agent orchestration)
- Hugging Face Transformers
- Prompt Engineering & Caching
- Tesseract OCR
- Python
- Modular agent workflows
- Structured data passing between agents
- Streamlit (Interactive web UI)
medical-report-analyzer/
│
├── agents/
│ ├── ocr_parser.py
│ ├── health_interpreter.py
│ └── summary_generator.py
│
├── app.py # Streamlit application
├── requirements.txt
├── README.md
└── utils/
├── prompts.py
└── helpers.py
git clone https://github.com/ahmasmibhanu/HealthLens.git
cd HealthLenspip install -r requirements.txtstreamlit run app.py- Upload a blood test report (PDF or image).
- OCR extracts the report text.
- AI agents analyze medical parameters.
- A simplified, patient-friendly summary is generated.
- Results are displayed in real-time on the UI.
- Reduced manual effort in interpreting blood reports.
- Improved healthcare data accessibility for non-technical users.
- Achieved accurate extraction across diverse report formats.
- Received positive usability feedback from medical students and early testers.
- Demonstrated the feasibility of agent-based AI systems in healthcare.
- Backend API using FastAPI.
- Database integration for report history.
- Explainability scores and confidence metrics.
- Authentication and role-based access.
- Support for additional diagnostics (X-ray, MRI reports).
- Deployment using Docker and cloud platforms.
This tool is intended for educational and informational purposes only. It does not provide medical diagnosis or treatment advice. Always consult a qualified healthcare professional for medical decisions.
@ahmasmibhanu ~AI / Full Stack / Software Engineering Enthusiast
- CrewAI
- Hugging Face
- Streamlit
- Open-source OCR and NLP communities