1 of 23

Digitizing Scanned Documents in Bahmni using Optical Character Recognition (OCR)

An initial proposal for KCDH and Thoughtworks collaboration

2 of 23

Introduction- About Bahmni

  • People’s EMR System & More�
  • Began as a project of JSS - hence grounded�
  • Began from a village in India, hence already covering the technological and HR challenges a usual rural hospital might face�
  • Developed by ThoughtWorks for community of implementers

3 of 23

Introduction- About Bahmni

  • As given in an official presentation

4 of 23

Introduction- KCDH

  • KCDH- Approved by the Board of Governors of IIT Bombay on 4th June 2021�
  • Supported by the Koita Foundation, a not-for-profit foundation working towards helping NGOs work towards building scale and enhancing impact through process optimization and process enhancements�
  • KCDH is establishing a world-class advisory board consisting of experienced healthcare professionals, academics, healthcare technology and industry veterans

5 of 23

KCDH & ThoughtWorks Collaboration

  • With shared goals, KCDH and ThoughtWorks has immense potential to have collaborations in multiple-lines�
  • How can we begin? Integrating OCR components into Bahmni - an out-of-the-box expertise available with the KCDH team

6 of 23

Current Scenario

  • As observed by ThoughtWorks team, instead of asking the question, “how can we use an EMR to eliminate paper”, we should be asking “how can we use an EMR to complement and fill in the gaps of the current, paper driven, clinical and hospital processes”
  • One major gap area to focus is how to digitize the paper driven clinical and hospital process
  • KCDH team members expertise can help in bridging this gap

7 of 23

Bridging the Gap

  • One of the projects of KCDH Professor-in-Charge Prof. Ganesh, implemented inhouse OCR(Optical Character Recognition) as well as open-source models for the digitization of English and other Indic Languages
  • Contains robust models that can detect characters from scanned documents with high-level of accuracy
  • The framework offers post-editing capabilities to correct mistakes from the OCR
  • Core-implementation is flexible enough to be integrated to any platforms
  • The model can be retrained/fine-tuned to improve accuracy for a set format of scanned documents(which is usually the case of hospitals and clinics)

8 of 23

Proposal- Integration of OCR and Post-editing Framework into Bahmni

  • Integrate the OCR and Post-editing framework into Bahmni�
  • How? The OCR-framework can be a separate module and can provide OCR-as-a-service to various modules of Bahmni, as needed�
  • Digital results from the OCR can be shared with different Bahmni modules(OpenMRS, DCM4CHE) to make the images search-ready or to convert scanned records to digital records�
  • The module can be implemented to support minimal human intervention for scan-to-digitization process

9 of 23

Proposal- OCR Framework Specification

  • Minimal OCR model is based on Python-backend- a standalone application�
  • More robust OCR models include, PyTorch frameworks, harnessing the capabilities of GPUs�
  • An offline Post-editing application built on top of QT�
  • As well as a browser based-based front-end application built on top of React JS�
  • Server communicates with the client through REST API

10 of 23

Proposal- Advantages

  • Bridges the gap mentioned in the previous slides�
  • Can help seamless integration of patient records from physical copy to digital MRS�
  • Can help ingest Patient details such as previous discharge summary into the Bahmni System�
  • Enterprise editions can support advanced OCR capabilities such as auto-fill forms from scanned document which can improve the customer values

11 of 23

Demo

We took a sample discharge summary from Bahmni’s presentation and OCRed using our system

12 of 23

Demo

13 of 23

Related Works

  • OCR-works already available in enterprise edition of Odoo under Digitize Vendor Bills with Optical Character Recognition (OCR)

14 of 23

Related Works

  • OCR-works already available in enterprise edition of Odoo under Digitize Vendor Bills with Optical Character Recognition (OCR)

15 of 23

What Expertise can KCDH team provide?

  • KCDH can help integrate: modules that implement OCR-as-service based on Python�
  • A online or offline post-editing tool based on the Bahmni requirement�
  • REST framework to connect the both

16 of 23

What Expertise are we expecting from ThoughtWorks

  • KT on how to extend a module and other Brahmni-specific expertise�
  • Specifications and requirement to integrate OCR-as-service�
  • Specifications on how to extend the current modules to consume the OCR-service

17 of 23

Future Work from the initial step

  • Once we successfully integrate OCR service we can look into how to extend it for recognizing handwritten documents(in English and various Indian languages)�
  • We can look into how to include other tools of our ecosystem such as:
    • For auto-translation from English to other Indian Languages and vice versa- https://www.udaanproject.org/
    • Integrate https://decile.org/ - Data Efficient ML platform built by us into Bahami

​

​

18 of 23

Questions?

19 of 23

Aug 31st

Second Meeting between KCDH7TW

20 of 23

Agenda for Today’s Meeting

1. Discuss next steps for OCR integration with Bahmni.

2. Answer any technical Q&A for Dr. Venkat.

3. Agree on weekly / bi-weekly checkpoints & how to support the team from KCDH.

4. Plan an OCR overview session for Bahmni PAT Calls with Dr. Venkat.

5. Internship possibilities for KCDH students with Bahmni

21 of 23

Proposal- Integration of OCR and Post-editing Framework into Bahmni

  • Integrate the OCR and Post-editing framework into Bahmni�
  • How? The OCR-framework can be a separate module and can provide OCR-as-a-service to various modules of Bahmni, as needed�
  • Digital results from the OCR can be shared with different Bahmni modules(OpenMRS, DCM4CHE) to make the images search-ready or to convert scanned records to digital records�
  • The module can be implemented to support minimal human intervention for scan-to-digitization process

22 of 23

Two options for OCR integration

  1. Integrating Tesseract framework with options to finetune the models
    1. Check for License compatibility
  2. Integrating in-house OCR-engine
    • Requires more modules(such as Pytorch), and also relatively higher-computing power

Two-modes:

  • OCR-as-service, Web/REST API-based. Browser-based
  • Offline post-editing software that connects with the Bahmni DB

23 of 23

Tentative Internship proposal

  • Interns through KCDH�
  • A team of interns coordinated by Project Manager (KCDH)