Skip to content
Ananda Technologies Pvt. Ltd.
  • M.Tech
  • AI & ML
  • Python
  • In build

Medical Report Analysis using RAG

Medical report analysis using RAG M.Tech project with source code: an Android app reads a lab report photo with OCR, retrieves MedlinePlus passages with hybrid search and explains each value in English or Hindi with cited sources. Includes thesis and IEEE paper.

Platform
AI & ML + Python + Android
Thesis delivery
3–5 days, for you
1-on-1 setup
AnyDesk / Meet
Support
Till your viva

About this project

FULL PROJECT TITLE

Medical Report Analysis using RAG M.Tech Project: OCR, Hybrid Retrieval and Citation-Grounded Bilingual Lab Explanations

Use this title in your synopsis and report.

Medical report analysis using RAG M.Tech project with source code: an Android app reads a lab report photo with OCR, retrieves MedlinePlus passages with hybrid search and explains each value in English or Hindi with cited sources. Includes thesis and IEEE paper.

About the medical report analysis using RAG M.Tech project

A blood test report is full of short forms like HbA1c, SGPT and TSH, with numbers and ranges most patients cannot read. This medical report analysis using RAG M.Tech project helps them understand it. The patient photographs the report in an Android app, OCR reads each test, and a retrieval augmented generation pipeline explains every value in simple English or Hindi, with a numbered source behind each sentence.

The research question is about trust: how far do better retrieval and a sentence-level source check cut down statements that no trusted source supports?

Research behind it

Base paper. The study starts from Lab-AI: Using Retrieval Augmentation to Enhance Language Models for Personalized Lab Test Interpretation in Clinical Medicine, presented at IEEE ICHI 2025. It finds which personal factors such as age and sex change a test's normal range, retrieves the matching MedlinePlus passage from a vector database, and shows that retrieval makes language models far more accurate on range questions.

Research gap. Lab-AI is tested on typed question sets. A real patient starts from a crumpled photo with mixed units and printed ranges. Retrieval in the base work is dense only, which can miss exact test names such as "SGPT". And a patient needs to see where each sentence came from, in a language they read comfortably.

Proposed system and novelty. OCR and a parser pull out test, value, unit and printed range, and units are normalised. Ranges are picked for the patient's age and sex. BM25 and dense MiniLM search run together, and a cross-encoder reorders the passages. The language model must cite a passage number for every sentence, and an NLI model removes any sentence that its cited passage does not support. Output is in English or Hindi, and an offline template mode works without internet in the viva hall.

Models compared. A plain language model without retrieval, the base paper's dense pipeline re-implemented, and the offline template mode, against the proposed pipeline. Metrics include field extraction F1, range correctness, recall at k, faithfulness and unsupported statements per report. The ablation removes the reranker, removes the NLI filter and switches to dense-only search.

The same retrieval idea over college documents is used in the RAG chatbot project, if you want a non-medical version.

How it works

  • The patient photographs the report, and the image is straightened and cleaned.
  • Tesseract reads the text, and rules extract test names, values, units and ranges.
  • The patient can fix any wrong value on screen.
  • Each value is marked low, normal or high for the patient's age and sex.
  • Hybrid retrieval fetches passages; the model writes a cited explanation.
  • The NLI check removes unsupported sentences before the answer is shown.
  • The patient taps a citation to read the source, or shares the report with a doctor.

Users and modules

There are three roles. The patient scans reports, reads explanations, asks questions, tracks values over time and downloads a PDF. The doctor sees reports that patients share and adds a short note. The admin manages users and records, edits knowledge base passages, checks the comparison page and stores the API key and language settings. The Android side is Java, and the server is Flask with MySQL.

What you get

  • Phase 1 Research: Base paper study: Lab-AI retrieval augmentation (IEEE ICHI, 2025); Literature survey of 15-20 recent RAG and medical NLP papers; Research gap, novelty and objectives; MedlinePlus knowledge base and labelled report set; Synopsis and Phase-1 report.
  • Phase 2 Implementation: Android app (Java) with camera and chat; Flask API, doctor and admin panels; OCR, parsing and unit normalisation pipeline; Hybrid retrieval, reranker and cited generation; NLI faithfulness filter and offline mode; MySQL database and knowledge base files.
  • Results: OCR field extraction table; Recall at k for dense and hybrid retrieval; Faithfulness and unsupported statements per pipeline; results.xlsx and all graphs in high resolution.
  • Thesis and paper: Thesis written for you (about 90 pages); IEEE conference paper draft; Journal paper draft; Publication guide.
  • Reviews, viva and support: PPTs for Review 1, Review 2 and final viva; Viva book with 50+ questions; A1 poster and project diary; Demo and code walkthrough videos; 1-on-1 setup, 2 revisions and support till viva.

Who can use this project

M.Tech and M.E. students of CSE and IT who want a generative AI dissertation with a measurable research question will find this useful. It suits searches for a hybrid retrieval BM25 dense reranking project or an LLM hallucination evaluation project, and the Android app gives your guide something practical to test.

Who can take it

M.Tech CSE and M.Tech IT students who need a complete dissertation: research, working project, thesis and paper.

Your thesis stays unique

  • Different title variant for every student
  • Thesis and paper written fresh for you
  • Checked against all earlier copies
  • Same college, same year never repeated

Research behind it

OCR-Driven Hybrid Retrieval and Citation-Grounded Generation with Patient-Specific Reference Ranges for Faithful Bilingual Lab Report Explanation

BASE PAPER

Lab-AI: Using Retrieval Augmentation to Enhance Language Models for Personalized Lab Test Interpretation in Clinical Medicine

X. Wang, H. Ouyang, B. Bhasuran, X. Luo, K. Hanna, M. L. A. Lustria and Z. He

Proc. IEEE Int. Conf. Healthcare Informatics (ICHI 2025), pp. 359-368, IEEE (Institute of Electrical and Electronics Engineers), IEEE conference proceedings, 2025

DOI link Free copy

EXISTING SYSTEM

Recent retrieval augmented systems give patients normal ranges adjusted for age and sex from MedlinePlus, tested on typed question sets. Patients actually hold a printed report photo, cannot check which sentence came from which source, and often prefer Hindi.

PROPOSED SYSTEM

OCR turns a report photo into test, value, unit and range; hybrid BM25 and dense retrieval with reranking fetches MedlinePlus passages; the language model cites a passage for every sentence and an NLI checker drops unsupported ones. It is compared with a plain model, the re-implemented base pipeline and an offline mode.

RESEARCH GAP

  • Evaluation uses question sets built from MedlinePlus; reading values, units and ranges from photographs of printed reports is not covered.
  • Retrieval is dense vector search; this work compares it with hybrid lexical and dense retrieval with reranking.
  • The focus is on factors and normal ranges; a full plain-language explanation of a report with a sentence-level source check is added here.
  • Hindi explanations for Indian patients are added in this work.

NOVELTY

  • End-to-end pipeline from a report photograph to an explanation, with OCR field extraction and unit normalisation.
  • Hybrid BM25 and dense retrieval with cross-encoder reranking, compared with the dense retrieval of the base paper.
  • Sentence-level citations with an NLI faithfulness filter, measured as unsupported statements per report.
  • Bilingual English and Hindi output with an offline template fallback for low-connectivity areas.

What you get

24 items, in the order you need them during M.Tech. This project is being built: the free abstract is ready now, and our team delivers everything below after you book.

Phase 1 Research

  • Base paper study: Lab-AI retrieval augmentation (IEEE ICHI, 2025)
  • Literature survey of 15-20 recent RAG and medical NLP papers
  • Research gap, novelty and objectives
  • MedlinePlus knowledge base and labelled report set
  • Synopsis and Phase-1 report

Phase 2 Implementation

  • Android app (Java) with camera and chat
  • Flask API, doctor and admin panels
  • OCR, parsing and unit normalisation pipeline
  • Hybrid retrieval, reranker and cited generation
  • NLI faithfulness filter and offline mode
  • MySQL database and knowledge base files

Results

  • OCR field extraction table
  • Recall at k for dense and hybrid retrieval
  • Faithfulness and unsupported statements per pipeline
  • results.xlsx and all graphs in high resolution

Thesis and paper

  • Thesis written for you (about 90 pages)
  • IEEE conference paper draft
  • Journal paper draft
  • Publication guide

Reviews, viva and support

  • PPTs for Review 1, Review 2 and final viva
  • Viva book with 50+ questions
  • A1 poster and project diary
  • Demo and code walkthrough videos
  • 1-on-1 setup, 2 revisions and support till viva

Included free with this project

1-on-1 setup session on AnyDesk or Google Meet

After you buy, we schedule a session at a time that suits you. Our developer installs the complete project on your own laptop, runs it with you and explains it — so you can present it with confidence.

  1. 1

    Pick a time

    We call or WhatsApp you to fix the slot

  2. 2

    We install it

    Full setup on your system over AnyDesk

  3. 3

    We explain it

    Flow, modules and database on Google Meet

Modules inside

16 working modules — each one is explained in the report.

  • Patient: register, login, set age and sex, choose English or Hindi
  • Patient: photograph a lab report or upload a PDF
  • Patient: edit OCR values and units before the explanation
  • Patient: each value marked low, normal or high for own age and sex
  • Patient: ask follow-up questions about the report in chat
  • Patient: tap a citation to read the source passage
  • Patient: report history with value trends across reports
  • Patient: download a PDF of the explained report
  • Doctor: review reports shared by patients and add a note
  • Doctor: notification when a patient shares a report
  • Admin: dashboard with reports processed and chart
  • Admin: manage patients, doctors and report records
  • Admin: knowledge base editor for lab test passages
  • Admin: model comparison page (plain model, base pipeline, offline, proposed)
  • Admin: settings for API key, language and reference ranges
  • Profile, change password and notifications for every role

Want an extra module or a change?

We can add the features your guide asked for. Tell us what to change and get a quote on WhatsApp.

Customise this project

Technology used

Built with
Python 3.11, Flask REST API, Jinja2 admin panelTesseract OCR (pytesseract) and OpenCV for report imagesSentence-Transformers (MiniLM) and a cross-encoder rerankerFAISS dense index and rank-bm25 lexical searchNLI model for sentence-level faithfulness checkGoogle Gemini API for generation, with offline template fallback (no internet)Android (Java), Material Components, CameraX, VolleyMySQL (XAMPP) with PyMySQLBootstrap 5 and Chart.js (local copies)Jupyter Notebook for retrieval and evaluation experiments
Documents
Project abstract (2 pages, Word and PDF), Synopsis (Word and PDF), Phase-1 report (Word and PDF), Thesis / dissertation written for you (Word and PDF, about 90 pages), IEEE conference paper draft (Word), Journal paper draft (Word), Publication guide, Review 1, Review 2 and final viva PPTs, Viva book with 50+ questions and answers, A1 poster (PDF and PPTX), Project diary / logbook and guide meeting record, Setup guide with first-run checklist (Word and PDF), Project explanation with code walkthrough, Demo video and code walkthrough video

How buying works

  1. 1

    Read the free abstract

    Show it to your guide first

  2. 2

    Book on WhatsApp

    Sign in and tap Book

  3. 3

    Our team calls you

    Price, timeline and your details

  4. 4

    Project built for you

    Code, results and videos

  5. 5

    Thesis and paper

    Written with your details

  6. 6

    1-on-1 setup

    Installed and explained

How to run it

An overview — the full guide comes with the project, and we help you if anything doesn’t start.

  1. 1Install Python 3.11 (tick "Add to PATH") and XAMPP; start MySQL in XAMPP.
  2. 2Extract the project ZIP to a short path such as D:\MTech\.
  3. 3Open phpMyAdmin, create the database mtech_medreport and import Database\mtech_medreport.sql.
  4. 4Check config.py (default XAMPP user root with an empty password).
  5. 5Double-click Web_App\medical_report_analysis_rag\run.bat: it creates the virtual environment and installs the requirements the first time.
  6. 6The browser opens at http://127.0.0.1:5000; log in with the demo accounts from README.txt.
  7. 7Trained models are already in the models folder, so no training is needed for the demo.
  8. 8Open Android_App in Android Studio, let Gradle sync and run the app on a phone or emulator.
  9. 9On the login screen enter the PC IP address (10.0.2.2 for the emulator) so the app reaches the Flask API.
  10. 10Full steps with screenshots and the first-run checklist are in SETUP_GUIDE.pdf.

Questions about Medical Report Analysis using RAG…

Which base paper and knowledge source does the RAG pipeline follow?

The base paper is Lab-AI from IEEE ICHI 2025. The knowledge base is built from public MedlinePlus lab test pages split into short passages, and the admin can edit or add passages.

What happens if there is no internet during the demo?

The offline mode skips the hosted model and fills fixed templates with the retrieved passages and ranges. The answers are plainer but still sourced, and the app shows which mode was used.

How are unsupported statements counted?

Every generated sentence is paired with its cited passage, and an NLI model judges whether the passage supports it. The count per report, for each pipeline, goes into your results table.

Will my thesis match another student's thesis?

No. Each student gets a unique title variant and a distinct change to the pipeline, and the thesis is written fresh. It is compared with all earlier copies of this project and must stay under 10% match.

Can it read handwritten reports?

Printed lab reports give the cleanest results. Tesseract handles handwriting poorly, so this limit is discussed as future work in the thesis.

Medical Report Analysis using RAG… is "in build" — what does that mean?

The free abstract is ready now; the code, model and results are being built. Sign in and tap Book this project on WhatsApp: our team calls you, confirms the price and timeline, and delivers the project, thesis, papers and PPTs with your details.

Do I need a GPU or to train the model?

No. The trained model comes with the project. We install and run it on your own laptop in the free 1-on-1 setup session.

My university needs its own thesis format.

Upload your university format in the details form after you pay. Your thesis is written in that format.

Can I see something before buying?

Yes. Sign in and download the free abstract from this page, and check it with your guide first. All sales are final.

Can you publish the paper for me?

You get IEEE conference and journal format drafts and a publication guide with a journal list. Submitting and publishing is done by you and your guide; we do not promise acceptance.

Similar projects

All AI & ML projects →
M.TechIn buildAI & ML40% OFF

Parkinson's Disease Detection M.Tech Project: Calibrated Late Fusion of Voice Features and Smartphone Spiral Drawing on Android

Parkinson's disease detection M.Tech project with source code: an Android app records a sustained vowel and a finger-drawn spiral, and calibrated late fusion of XGBoost voice and MobileNetV3 spiral models gives a screening score. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
M.TechIn buildAI & ML40% OFF

Stress and Depression Detection M.Tech Project: Calibrated MentalBERT with Multi-Day Journal Aggregation on Android

Stress and depression detection M.Tech project with source code: a diary-adapted, temperature-calibrated MentalBERT reads daily journal entries in an Android app and raises a counsellor alert only on multi-day patterns. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
M.TechIn buildAI & ML40% OFF

Skin Cancer Detection M.Tech Project: Quantization-Aware MobileNetV3 with Focal Loss for Offline Lesion Classification on Android

Skin cancer detection M.Tech project with source code: a quantization-aware MobileNetV3-Small trained with focal loss classifies seven HAM10000 lesion types offline on an Android phone, with doctor review. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
None of these fit your topic?Send your idea — we build it and share the quote first.Request custom project

Get Medical Report Analysis using RAG… for your submission

Leave your details and a counsellor will call to confirm your branch, any changes your guide needs, and how you want to pay.