| Literature DB >> 35458941 |
Jannis Holtkötter1,2, Rita Amaral1,2,3,4, Rute Almeida1,2, Cristina Jácome1,2, Ricardo Cardoso5, Ana Pereira1,2, Mariana Pereira1,2,5, Ki H Chon6, João Almeida Fonseca1,2,5.
Abstract
Long-term adherence to medication is of critical importance for the successful management of chronic diseases. Objective tools to track oral medication adherence are either lacking, expensive, difficult to access, or require additional equipment. To improve medication adherence, cheap and easily accessible objective tools able to track compliance levels are necessary. A tool to monitor pill intake that can be implemented in mobile health solutions without the need for additional devices was developed. We propose a pill intake detection tool that uses digital image processing to analyze images of a blister to detect the presence of pills. The tool uses the Circular Hough Transform as a feature extraction technique and is therefore primarily useful for the detection of pills with a round shape. This pill detection tool is composed of two steps. First, the registration of a full blister and storing of reference values in a local database. Second, the detection and classification of taken and remaining pills in similar blisters, to determine the actual number of untaken pills. In the registration of round pills in full blisters, 100% of pills in gray blisters or blisters with a transparent cover were successfully detected. In the counting of untaken pills in partially opened blisters, 95.2% of remaining and 95.1% of taken pills were detected in gray blisters, while 88.2% of remaining and 80.8% of taken pills were detected in blisters with a transparent cover. The proposed tool provides promising results for the detection of round pills. However, the classification of taken and remaining pills needs to be further improved, in particular for the detection of pills with non-oval shapes.Entities:
Keywords: computer vision; image processing; medication adherence; object detection; pill detection
Mesh:
Year: 2022 PMID: 35458941 PMCID: PMC9028233 DOI: 10.3390/s22082958
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Pill detection tool pipeline.
Figure 2Individual steps of automatic blister detection and image preprocessing.
Figure 3Two examples of the pill mask after classification of circles.
Figure 4Intensity increase of local standard deviation and circle edge ratio due to deformation of pill pockets.
Figure 5Examples of different blister types used in the datasets.
Experimental validation plans.
| Test | Dataset | Test Description |
|---|---|---|
| Test 1 | Tests on images in different environments and counts how often the blister detection succeeded (subjective assessment). | |
| Test 2 | Tests on images of full blisters and counts how many pills and false positives are detected. | |
| Test 3 | Tests on blisters with a varying number of present pills. Counts how many present pills are detected, and how many taken pills are correctly classified. |
Results of Test 2 (Registration mode).
| Blister Type | |||
|---|---|---|---|
| Gray | Transparent | Total | |
| Number of images | 17 | 14 | 31 |
| Total tested pills | 159 | 164 | 323 |
| Total detected pills | 162 | 170 | 332 |
| False positives | 3 | 6 | 9 |
| Correct pill detections | 159 | 164 | 323 |
| Correct pill detection (%) | 100% | 100% | 100% |
| False positives (%) | 0.2% | 0.4% | 0.3% |
Results of Test 3 (Counting mode).
| Blister Type | |||
|---|---|---|---|
| Gray | Transparent | Total | |
| Number of images | 130 | 119 | 249 |
| Total present pills tested | 581 | 686 | 1267 |
| Correct present pills detected | 553 | 605 | 1158 |
| Correct present pill detections (%) | 95.2% | 88.2% | 91.4% |
| Total taken pills tested | 659 | 682 | 1341 |
| Correct taken pills detected | 627 | 551 | 1178 |
| Correct taken pills detections (%) | 95.1% | 80.8% | 87.8% |
| Accuracy | 95.2% | 84.5% | 89.6% |
Figure 6Comparison of transparent and gray pill pockets.
Summary of limitations and possible solutions in a future approach.
| Limitation | Possible Solution/Future Approach |
|---|---|
| Detection of missing pills behind transparent cover | Usage of different image channels, such as hue or saturation channel (see Sudharshan et al. [ |
| Misdetections caused by reflections, dents in the pill pocket, unsharp images, or interfering objects in the image | Usage of more dynamic values rather than static values for classification of pills |
| Overall performance of counting mode | Usage of machine learning techniques for the classification process of present and absent pills (see Qasim and Al-Ani [ |
| Incorporation of information about the sequence (e.g., the number of pills that should be present in the blister according to the treatment plan or pill positions of the previous sequence image) | |
| Lack of detection functionality for non-circular pills | Usage of vertical and horizontal boundary detection for pill segmentation in combination with correlation features (see Rani et al. [ |
| Usage of machine learning techniques for the classification process of present and absent pills (see Qasim and Al-Ani [ |