Automated Point-of-Care Clinical Diagnostic Device based on Embedded-Vision

DOI : 10.17577/IJERTV5IS080470

Download Full-Text PDF Cite this Publication

Text Only Version

Automated Point-of-Care Clinical Diagnostic Device based on Embedded-Vision

Blessy Navara1 M.Tech Embedded Systems Raghu Engineering College

Visakhapatnam, India

Mr. Siva Rama Rao Bodda2 (M.E. IISc) Associate Professor- Electrical engineering Raghu Engineering College Visakhapatnam, India

Abstract an automated device for reading and interpreting Rapid Diagnostic Tests is implemented on an Raspberry Pi board. Customized embedded vision algorithm is used to interpret the RDTs which are used in point-of-care clinical diagnosis for infectious diseases such as malaria. The device not just aids in reading, interpreting the RDTs but also saves the results to a server, so that the concerned medical professional can analyze the results and also keep a quality check on the tests going on in a different geographical position. Therefore the system also aids in maintaining Electronic Health Records (EHR).

Keywords RDTs, Embedded vision, RaspberryPI OpenCV, GTK+.

  1. INTRODUCTION

    Point-of-care clinical diagnostics are providing a better and efficient clinical diagnosis for some of the most prevalent infectious diseases. In areas with limited resources, point-of- care diagnostics have already proved to be a bane. For instance, early and accurate diagnosis of malaria for medication and treatment is a challenge round the globe, especially in the remote and rural parts of the world with constrained resources. In the year 2015,214 million malaria cases and 438,000 deaths were recorded [1]. If infectious diseases like malaria are accurately diagnosed, all these deaths can be avoided with the right treatment. These diseases are diagnosed either through standard laboratory procedures or by using RDTs (Rapid Diagnostic Tests).RDTs offer good solution for such remote areas. RDTs are Lateral Flow Assays which gives the user a visual interpretation of the presence of the parasites. Few drops of patient's blood and buffer on RDT will trigger the chemical reaction. The reaction time is approximately 20 minutes after which, RDT is to be read and interpreted. The intensity depends on the concentration of parasites in the given specimen. However, skilled labor for interpretation of RDT is a setback. Interpretation is highly subjective and may lead to wrong diagnosis. Also, in manual method, there is no way one can save the results for future reference.

    Embedded vision is the ability of an embedded system to capture images and take intelligent decisions using the defined algorithm. OpenCV is a set of computer vision libraries which enables the user to design intelligent systems. The device designed to interpret RDTs is based on ARM cortex-A7 processor implemented on Raspberry pi 2B board. So, images of RDT captured by camera are processed and a decision is taken by the system as to whether the sample is positive or negative or invalid. The device is designed to detect even small change in intensity of RDT, which makes

    the device accurate. It can also reject RDTs which are invalid. Also, it can save the results for later inspection and/or tracing by uploading all results to a server.

  2. IMPLEMENTATION DETAILS

    The paper describes the design of a graphical user interface in the proposed embedded system to collect the patient details and save patient details along with result to server. By doing so, the concerned medical professional can later log-in and analyze the results. The paper proposes a system which implements vision algorithm to read the rapid diagnostic test and to infer whether the result is a positive or negative or invalid. An automated system proposed by [4] identifies the malarial parasites in blood samples using image processing. Since the method in [4] is not suitable for regions where there is lack of skilled labor and necessary equipment, RDTs are used. In this paper, the device needs no additional laboratory equipment.

    The paper is organized into the following subsections.

    1. Design of system.

    2. Design and integration of graphical user interface in the embedded system.

    3. Customized embedded vision algorithm for reading and interpreting RDT.

    4. Storing the patient details and result to the server

    1. Design of System

      The proposed system contains the following: an embedded processor, imaging device, display unit, input devices (mouse and keyboard). Raspberry pi2B board is used in this device.

      Fig. 1: Hardware Setup showing Raspberry PI2B

      Raspberry pi uses Broadcom BCM2836 Silicon-on-chip and is based on ARMv7 architecture. The reason for choosing Raspberry pi is (1)the board is based on Linux operating system (which makes development easier), (2) it supports Ethernet connectivity, on-board USB, CSI(Camera Serial Interface to connect the camera), (3)it is compact well

      suitable for an embedded system, (4) it draws minimum power even when running with camera and input devices connected to it and (5)it is easily affordable.

      Fig. 2: Complete setup along with RDT holder and display

      Camera and input devices draw current from the board. The SoC(Silicon-on-chip) used in this board supports the vision libraries necessary for image processing. Since the operating system is a Linux distribution, we used GTK+ libraries required for development of GUI.

      RDT holder is a simple mechanical arrangement to place the RDT in right orientation with the camera.

    2. Design of grahical user interface in the embedded system GNU Image Manipulation Program Tool Kit (GTK) is the library used for designing graphical user interface (GUI). The GUI designed here contains widgets for labels, text entry, and also for displaying image and results. By clicking the NEW TEST widget, user is asked to fill in all the patient details. Prior to entering the details and beginning the test, user is required to place the RDT in RDT holder. Details include Patient Name, ID, Age, Gender and name of the test being done. After entering all the details, camera is triggered. The

      Fig. 3: Patient details fill-in widget of GUI implemented with GTK+

      Fig. 4: Test result and image displayed in GUI

    3. Customised Embedded vision algorithm to read and interpret RDT

      Raw image captured from camera contains noise. High frequency noise samples are removed from the image by applying a 3×3 Gaussian filter. The 3-channel image is converted into a single channel gray scale image for further processing.

      The subject of interest in captured image is the red band formed due to the reaction between chemical coated strip and the parasite. Intensity of this red band is not constant for every sample under test. Intensity depends on concentration of parasite in the given sample. Results for color based image segmentation were not always accurate for the above stated reason. So color based segmentation could not be used in this algorithm. Since the system should be able to operate in any working conditions, light is a primary concern.

      So a modified threshold algorithm called adaptive threshold is used in the proposed system. In this algorithm, threshold value varies for each individual pixel based on the gray level values of surrounding pixels. Width of red band is generally 0.5mm to 1mm. So a 5×5 matrix of surrounding pixels is considered for every pixel for which a threshold is calculated. Threshold value for each pixel is calculated using the formula

      commands used to trigger the camera are run from a shell

      +2

      1

      +2

      script, executed from within the main program. Image captured from the camera is preprocessed and analyzed. ystem takes a decision from the analysis and displays the

      Where

      (,) =

      2 (,)

      =2 =2

      (1)

      result in GUI. Simultaneously, all patient details and results are uploaded to the server.

      (,) is the pixel value at (, ).

      N is the value to define a nxn square matrix around the pixel at (, ).

      C is a constant subtracted from the mean weighted average.

      (,) is the threshold value calculated for the pixel at (, ). Threshold operation is done using the formula

      (,) > (,) (,) = (2)

  3. EXPERIMENTAL ANALYSIS

    We configured the Raspberry pi board with the required version of operating system, and libraries, i.e. OpenCV, GTK+. OpenCV provides the necessary libraries for image processing. Camera is integrated with the board in such a way that it is triggered only after all patient details are filled in.

    (,)

    > (,)

    (,) = 0

    All the different modules of software and hardware are tested recursively to obtain a fault-proof system.

    Max value is 255

    Each pixel is changed to 0 or 1 based on the threshold value calculated using eq. (1).

    After the above operation, a binary image is obtained. Now, the subject of interest is in white pixels on a background of black. To extract the band, connected components are calculated on the obtained image. Connected components are sequences of linked pixels. Here, sequences are extracted by finding the pixel values linked to each other. By calculating the number of sequences returned, the system takes a decision if the result is positive or negative or invalid. Results are time-stamped and then sent to the server

    1. Storing patient details and result to the server

      Fig. 5: Screenshot of database showing the patient details and test result

      A LAMP server is designed on Ubuntu 14.04 32-bit system. Apache is used as server, Mysql is used as database and PHP is used for scripting. As soon as results are obtained, a program sends the patient data and corresponding image to the server. Server database is updated every time a new test result is obtained. Samples which are already tested in laboratory are checked on this device and the results are uploaded to database.

      Doctor login from a different region would show the above database.

      Fig. 6: Binary image showing the region of red band

      After image processing, high frequency noise is removed to obtain a smoothened image. Modified adaptive threshold algorithm used in this system gives the accurate result. As seen in fig.6 the red band is identified and, marked in green color. We tested each sample recursively to determine systems reliability and repeatability. Binary image is shown in fig for a negative sample of Malaria test.

  4. ALGORITHM

    The proposed automated system implements the following steps. Steps 1-3 are to be done by the user.

      1. Placing RDT in the RDT holder

      2. Clicking NEW TEST widget on GUI to take in the patient details

      3. Filling in the Patient details

      4. Camera is triggered automatically after patient details are filled in.

      5. Image is captured and saved to the device.

      6. Preprocessing: removal of high frequency noise using Gaussian smoothening filter.

      7. Conversion of 3-channel image to single channel gray scale image

      8. Applying modified adaptive threshold to obtain a binary image, thereby isolating the subject of interest.

      9. Finding the linked pixels in the binary image to extract the sequence, i.e. the required red band.

      10. Decision making: based on the sequences extracted from the binary image, system takes the decision about the test in place.

  5. CONCLUSION

Above proposed system can be used to read, interpret and maintain Electronic Health Record (EHR) at a low cost in point-of-care diagnostics. Relying on embedded vision to interpret RDTs makes the system fault-proof and reliable. By integrating the system to server, it helps in maintaining Electronic Health Record (EHR). A medical professional can remote-login from a different geographical position to monitor, trace and can even keep a quality check. Thus, the device can aid in point-of-care diagnosis.

REFERENCES

  1. http://www.who.int/features/factfiles/malaria/en/

  2. http://www.grandviewresearch.com/industry- analysis/point-of-care-poc-diagnostics-industry

  3. Laksanasopin T, Guo TW, Nayak S, Sridhara AA, Xie S, Olowookere OO, Cadinu P, Meng F, Chee NH, Kim J, Chin CD, Munyazesa E, Mugwaneza P, Rai A, Mugisha V, Castro AR, Steinmiller D, Linder V, Justman JE, Nsanzimana S, Sia SK A smartphone dongle for diagnosis of infectious diseases at the point of care. Science Translational Medicine 04 Feb 2015:Vol. 7, Issue 273, pp. 273re1

  4. S. S. Savkare, S. P. Narote, Automated system for malaria parasite identification published in Communication, Information & Computing Technology (ICCICT), 2015 International Conference.

BIOGRAPHY

Ms. Blessy Navara is currently pursuing her M.Tech in Embedded systems in JNTU. She received her B.Tech Degree in Biomedical Engineering from JNTU, Andhra Pradesh. Her subjects of interest are Biomedical Engineering, Image Processing and Embedded systems.

Mr. B. Sivarama Rao received his Bachelors degree from SRKR Engineering College. He received his Masters from IISc Bangalore. He worked in Advanced Engineering Group in the R&D of TVS Motors. His key area of research is Embedded Systems. He is currently working as Associate Professor in Raghu Engineering College

Leave a Reply