Non-Contact Thermal and Acoustic Sensors with Embedded Artificial Intelligence for Point-of-Care Diagnostics
Abstract
:1. Introduction
2. Materials and Methods
2.1. Hardware and Software Involved
2.2. Thermal Sensor
- AMG8833: This sensor, featuring an 8 × 8 two-dimensional infrared array, exhibited an accuracy of ±2.5 °C. However, it was ruled out due to its lack of precision. Its relatively large pixels led to high thermal variability when encompassing objects at different temperatures within the same pixel.
- HTPA 80 × 64 L4.8: This infrared thermopile sensor, with an 80 × 64 resolution, 90 × 70° field of view, 14.6 mm target length, 20 mm target diameter, and 0.8 mm focal length was dismissed due to stability issues over time. Despite its high resolution, the sensor was not reliable for long-term use.
- Melexis MLX90640: This infrared thermopile sensor, with a 32 × 24 resolution and a 110° × 75° field of view was selected for its precision and stability. The smaller pixel size resulted in improved accuracy when capturing from the same distance as the AMG8833.
- BMP085: A pressure and temperature sensor with an accuracy of ±2 °C (±1 °C around 25 °C). This sensor provides reliable temperature readings within the specified accuracy range.
- MCP9800 [16]: A temperature sensor with an accuracy of ±1 °C. This sensor offers higher accuracy compared to the BMP085, making it suitable for applications that require precise temperature measurements.
- Initiating the system, allowing it to calibrate with the Peltiers set at 33 °C and 38 °C, which takes approximately 2 min. This step ensures that the system is ready for accurate temperature measurements.
- Introducing the validation system to a set temperature. This step involves adjusting the temperature of the validation system to a specific value for testing.
- Recording the values read by the thermometer of the validation system (validation temperature) and the temperature measured by the thermopile (measured temperature). This step involves comparing the actual temperature with the temperature measured by the thermopile.
2.3. Acoustic Sensor
- Keras: a Python-based neural network library. This approach was dismissed because it is based on a high-level language and is difficult to implement on a microcontroller like ESP32, which requires more low-level programming.
- Pytorch: a machine learning library used for various applications, including natural language processing. Like Keras, it is also high-level, so this option was discarded due to similar reasons.
- TensorFlow: a machine learning library capable of building and training neural networks. It also has a tool for use in mobile and IoT devices, TensorFlow Lite, which allows training a model and exporting it for implementation on a mobile or IoT device. This feature makes TensorFlow suitable for our application.
- Model 1: Initially, the Mobilnetv1 architecture was used in conjunction with YAMNet, a deep neural network capable of predicting 521 different audio classes trained on the AudioSet-YouTube corpus dataset. Transfer learning was applied to use it for cough recognition. However, the model size when converted to TFLite (3.85 MB) made it unsuitable due to the limited flash memory of the ESP32 microcontroller. This model achieved an accuracy of approximately 90% on the test set.
- Model 2: In the second model, a simpler neural network was used to avoid the size problem when using it on the ESP32. Once again, transfer learning was applied by adding the cough class to the original dataset. This model had a size of 15 kB and achieved an accuracy of approximately 88% on the test set. Due to discrepancies between the algorithms used by TensorFlow in the desktop application for training the network and those implemented by the TensorFlowLite library on the ESP32, it was decided to migrate the system to a Raspberry Pi 3B+. The memory size issue of the ESP32’s flash memory was also considered.
- Model 3: By using the Raspberry Pi, the first model with a size of 3.95 MB could have been used. However, a new model was created with the input format being the audio’s spectrograms rather than the raw audio collected from the microphone. This change in input format resulted in a more accurate and robust model, albeit at a slightly reduced speed. However, it was fast enough to work in real time. The confusion matrix, which compares the data predicted by the neural network with its predefined label, achieved over 94% accuracy for 300 audio samples, as shown in Figure 6.
- 2 s in duration;
- Mono-channel;
- 16 bits;
- 16 kHz bit rate.
- Ambient Noise. This class used audio obtained from various YouTube videos simulating ambient noise in an office, an operating room, and a hospital room.
- Music. This class used audio extracted from different types of music to ensure a wide range of tonalities.
- Conversation. This class consisted of thousands of audio clips obtained from podcasts in both Spanish and English, featuring both male and female speakers.
- 1 s in duration;
- Mono-channel;
- 16 bits;
- 16 kHz bit rate.
3. Experimental Results and Interoperability Testing
3.1. Full System Integration
- Continuous capture and analysis of environmental audio: The system continuously captures environmental audio and analyzes it to detect coughs. Upon detection of a cough, the system generates a JSON packet and sends it via TCP to a server. This packet includes both an audio event alert and the base64-encoded audio for subsequent analysis or validation.
- Temperature monitoring and calibration: The system uses an MLX90640 thermopile sensor for temperature monitoring. For calibration, two Peltiers and two thermometers (BMP085 and MCP9800) are used, as mentioned earlier. This ensures that the temperature readings from the thermopile are accurate and reliable.
- Automatic server address discovery: The system can automatically discover the server address through UDP packets. If there is a server to send data to on the same network, it will send UDP packets that the device will receive to configure the transmission of TCP packets to that IP and port. This feature simplifies the setup process and enhances the system’s usability.
- Device ID (“id” field): This field is related to the user who generated the event. A dimension table for translating the device name to the associated user name is included. It is created from a common name and the last four digits of the device’s MAC address.
- Timestamp (“time” field): This field identifies the moment when the event occurred in epoch time format. This allows for precise timing of events, which is crucial for real-time applications.
- Type (“Type” field): This field indicates the package’s origin. Initially, only event type packages (“event”) are implemented, but in the future, control and test packages may be implemented. This provides flexibility for future enhancements to the system.
- Sensor: This field can take two values, “thermal” or “cough”. In the case of “thermal”, it refers to the temperature sensor and also includes a “temperature” field with the patient’s temperature at that time. This event is only sent if the patient’s temperature is above 38 °C. The other value it can take is “cough”, indicating the detection of a cough in the audio. Additionally, this event adds an “audio” field to the package containing the audio encoded in base64.
3.2. Tests
3.3. Interoperability Testing
4. Discussion
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Zhao, Y.; Bergmann, J.H.M. Non-Contact Infrared Thermometers and Thermal Scanners for Human Body Temperature Monitoring: A Systematic Review. Sensors 2023, 23, 7439. [Google Scholar] [CrossRef] [PubMed]
- Sund-Levander, M.; Forsberg, C.; Wahren, L.K. Normal oral, rectal, tympanic and axillary body temperature in adult men and women: A systematic literature review. Scand. J. Caring Sci. 2002, 16, 122–128. [Google Scholar] [CrossRef] [PubMed]
- Pearce, J. A brief history of the clinical thermometer. QJM: Int. J. Med. 2002, 95, 251–252. [Google Scholar] [CrossRef]
- MacRae, B.A.; Annaheim, S.; Spengler, C.M.; Rossi, R.M. Skin Temperature Measurement Using Contact Thermometry: A Systematic Review of Setup Variables and Their Effects on Measured Values. Front. Physiol. 2018, 9, 29. [Google Scholar] [CrossRef] [PubMed]
- Wang, K.; Gill, P.; Wolstenholme, J.; Price, C.P.; Heneghan, C.; Thompson, M.; Plüddemann, A. Non-contact infrared thermometers for measuring temperature in children: Primary care diagnostic technology update. Br. J. Gen. Pract. 2014, 64, e681–e683. [Google Scholar] [CrossRef] [PubMed]
- Cardwell, K.; Jordan, K.; Byrne, P.; Smith, S.M.; Harrington, P.; Ryan, M.; O’Neill, M. The effectiveness of non-contact thermal screening as a means of identifying cases of Covid-19: A rapid review of the evidence. Rev. Med. Virol. 2021, 31, e2192. [Google Scholar] [CrossRef] [PubMed]
- Askari Nasab, K.; Mirzaei, J.; Zali, A.; Gholizadeh, S.; Akhlaghdoust, M. Coronavirus diagnosis using cough sounds: Artificial intelligence approaches. Front. Artif. Intell. 2023, 6, 1100112. [Google Scholar] [CrossRef] [PubMed]
- Hariri, W.; Narin, A. Deep neural networks for COVID-19 detection and diagnosis using images and acoustic-based techniques: A recent review. Soft Comput. 2021, 25, 15345–15362. [Google Scholar] [CrossRef]
- Bhattacharya, D.; Sharma, N.K.; Dutta, D.; Chetupalli, S.R.; Mote, P.; Ganapathy, S.; Chandrakiran, C.; Nori, S.; Suhail, K.K.; Gonuguntla, S.; et al. Coswara: A respiratory sounds and symptoms dataset for remote screening of SARS-CoV-2 infection. Sci. Data 2023, 10, 397. [Google Scholar] [CrossRef]
- Natarajan, S.; Kumar, M.; Gadde, S.K.K.; Venugopal, V. Outbreak prediction of COVID-19 using Recurrent neural network with Gated Recurrent Units. Mater. Today Proc. 2023, 80, 3433–3437. [Google Scholar] [CrossRef]
- Imran, A.; Posokhova, I.; Qureshi, H.N.; Masood, U.; Riaz, M.S.; Ali, K.; John, C.N.; Hussain, M.I.; Nabeel, M. AI4COVID-19: AI enabled preliminary diagnosis for COVID-19 from cough samples via an app. Inform. Med. Unlocked 2020, 20, 100378. [Google Scholar] [CrossRef] [PubMed]
- Schuller, B.W.; Schuller, D.M.; Qian, K.; Liu, J.; Zheng, H.; Li, X. COVID-19 and Computer Audition: An Overview on What Speech & Sound Analysis Could Contribute in the SARS-CoV-2 Corona Crisis. Front. Digit. Health 2021, 3, 564906. [Google Scholar] [CrossRef] [PubMed]
- AMG8833. Available online: https://www.sparkfun.com/products/14607 (accessed on 1 December 2023).
- HTPA80x64d. Available online: https://www.heimannsensor.com/80x64 (accessed on 1 December 2023).
- Melexis MLX90640. Available online: https://www.mouser.es/new/melexis/melexis-mlx90640-fir-sensor/ (accessed on 1 December 2023).
- MCP9800. Available online: https://ww1.microchip.com/downloads/en/DeviceDoc/21909d.pdf (accessed on 1 December 2023).
- daq970a. Available online: https://www.keysight.com/es/en/products/modular/data-acquisition-daq/digital-acquisition-benchtop-system/daq970a-data-acquisition-system.html (accessed on 1 December 2023).
- PT100. Available online: https://www.mouser.es/datasheet/2/418/6/ENG_DS_PTF_FAMILY_A3-775357.pdf (accessed on 1 December 2023).
- Mirjalali, S.; Peng, S.; Fang, Z.; Wang, C.; Wu, S. Wearable Sensors for Remote Health Monitoring: Potential Applications for Early Diagnosis of COVID-19. Adv. Mater. Technol. 2022, 7, 2100545. [Google Scholar] [CrossRef] [PubMed]
- Mehra, R. Sleep apnea and the heart. Clevel. Clin. J. Med. 2019, 86, 10–18. [Google Scholar] [CrossRef] [PubMed]
- Fang, Z.; Gao, F.; Jin, H.; Liu, S.; Wang, W.; Zhang, R.; Zheng, Z.; Xiao, X.; Tang, K.; Lou, L.; et al. A Review of Emerging Electromagnetic-Acoustic Sensing Techniques for Healthcare Monitoring. IEEE Trans. Biomed. Circuits Syst. 2022, 16, 1075–1094. [Google Scholar] [CrossRef] [PubMed]
- Liu, R.; He, L.; Cao, M.; Sun, Z.; Zhu, R.; Li, Y. Flexible Temperature Sensors. Front. Chem. 2021, 9, 539678. [Google Scholar] [CrossRef] [PubMed]
- Canali, S.; Schiaffonati, V.; Aliverti, A. Challenges and Recommendations for Wearable Devices in Digital Health: Data Quality, Interoperability, Health Equity, Fairness. PLoS Digit. Health 2022, 1, e0000104. [Google Scholar] [CrossRef]
- Piwek, L.; Ellis, D.A.; Andrews, S.; Joinson, A. The Rise of Consumer Health Wearables: Promises and Barriers. PLoS Med. 2016, 13, e1001953. [Google Scholar] [CrossRef]
- Ruyobeza, B.; Grobbelaar, S.; Botha, A. Hurdles to developing and scaling remote patients’ health management tools and systems: A scoping review. Syst. Rev. 2022, 11, 179. [Google Scholar] [CrossRef]
- Mallegni, N.; Molinari, G.; Ricci, C.; Lazzeri, A.; La Rosa, D.; Crivello, A.; Milazzo, M. Sensing Devices for Detecting and Processing Acoustic Signals in Healthcare. Biosensors 2022, 12, 835. [Google Scholar] [CrossRef]
- Hussain, T.; Ullah, S.; Fernández-García, R.; Gil, I. Wearable Sensors for Respiration Monitoring: A Review. Sensors 2023, 23, 7518. [Google Scholar] [CrossRef] [PubMed]
- Penzel, T.; Sabil, A. The use of tracheal sounds for the diagnosis of sleep apnea. Breathe 2023, 13, e37–e45. [Google Scholar] [CrossRef] [PubMed]
- Kim, T.; Kim, J.-W.; Lee, K. Detection of sleep disordered breathing severity using acoustic biomarker and machine learning techniques. Biomed. Eng. Online 2018, 17, 16. [Google Scholar] [CrossRef] [PubMed]
- Chen, Y.; Liu, F.; Lin, X.; Liu, J.; Chen, Z.; Shi, K.; Li, J.; Dong, J. Combined Effects of the Thermal-Acoustic Environment on Subjective Evaluations in Urban Park Based on Sensory-Walking. Forests 2023, 14, 1161. [Google Scholar] [CrossRef]
- Cheng, S.; Gu, Z.; Zhou, L.; Hao, M.; An, H.; Song, K.; Wu, X.; Zhang, K.; Zhao, Z.; Dong, Y.; et al. Recent Progress in Intelligent Wearable Sensors for Health Monitoring and Wound Healing Based on Biofluids. Front. Bioeng. Biotechnol. 2021, 9, 765987. [Google Scholar] [CrossRef] [PubMed]
- Yuan, Y.; Liu, B.; Li, H.; Li, M.; Song, Y.; Wang, R.; Wang, T.; Zhang, H. Flexible Wearable Sensors in Medical Monitoring. Biosensors 2022, 12, 1069. [Google Scholar] [CrossRef] [PubMed]
- Pahar, M.; Miranda, I.; Diacon, A.; Niesler, T. Automatic Non-Invasive Cough Detection based on Accelerometer and Audio Signals. J. Signal Process. Syst. 2022, 94, 821–835. [Google Scholar] [CrossRef] [PubMed]
- Eni, M.; Mordoh, V.; Zigel, Y. Cough detection using a non-contact microphone: A nocturnal cough study. PLoS ONE 2022, 17, e0262240. [Google Scholar] [CrossRef]
- Pahar, M.; Miranda, I.; Diacon, A.; Niesler, T. Accelerometer-Based Bed Occupancy Detection for Automatic, Non-Invasive Long-Term Cough Monitoring. IEEE Access 2023, 11, 30739–30752. [Google Scholar] [CrossRef]
- Li, Y.; Li, Y.; Li, F.; Zhao, B.; Li, Q. The Research of Temperature Compensation for Thermopile Sensor Based on Improved PSO-BP Algorithm. Math. Probl. Eng. 2015, 2015, 6. [Google Scholar] [CrossRef]
- Sun, G.; Matsui, T.; Kim, S.; Takei, O. KAZEKAMO: An infection screening system remote monitoring of multiple vital-signs for prevention of pandemic diseases. In Proceedings of the 2014 IEEE 3rd Global Conference on Consumer Electronics (GCCE), Tokyo, Japan, 7–10 October 2014; pp. 225–226. [Google Scholar] [CrossRef]
- Sun, G.; Saga, T.; Shimizu, T.; Hakozaki, Y.; Matsui, T. Fever screening of seasonal influenza patients using a cost-effective thermopile array with small pixels for close-range thermometry. Int. J. Infect. Dis. 2014, 25, 56–58. [Google Scholar] [CrossRef] [PubMed]
Measured Temperature | Validation Temperature | Error |
---|---|---|
38.13 °C | 38.5 °C | 0.37 °C |
38.477 °C | 38.56 °C | 0.083 °C |
38.477 °C | 38.5 °C | 0.023 °C |
38.5 °C | 39.25 °C | 0.75 °C |
38.5 °C | 39.25 °C | 0.75 °C |
37.37 °C | 37.81 °C | 0.44 °C |
37.37 °C | 37.81 °C | 0.44 °C |
37.89 °C | 37.75 °C | 0.14 °C |
38.44 °C | 37.81 °C | 0.63 °C |
37.72 °C | 37.38 °C | 0.34 °C |
36.79 °C | 37.38 °C | 0.59 °C |
37.88 °C | 37.44 °C | 0.44 °C |
37.62 °C | 37.44 °C | 0.18 °C |
37.58 °C | 36.94 °C | 0.64 °C |
37.61 °C | 36.88 °C | 0.73 °C |
37.06 °C | 36.94 °C | 0.12 °C |
37.08 °C | 36.94 °C | 0.14 °C |
37.06 °C | 36.75 °C | 0.31 °C |
36.62 °C | 36.69 °C | 0.07 °C |
37.08 °C | 36.75 °C | 0.33 °C |
37.59 °C | 36.69 °C | 0.9 °C |
36.44 °C | 36.83 °C | 0.39 °C |
36.44 °C | 36.69 °C | 0.25 °C |
36.5 °C | 36.65 °C | 0.15 °C |
36.5 °C | 36.75 °C | 0.25 °C |
Model | Size | Accuracy (%) |
---|---|---|
1 | 3.85 MB | 90 |
2 | 15 kB | 88 |
3 | 6.351 kB | 94 |
Article | What It Is About | Differences with Our Work |
---|---|---|
[33] | Cough detector based on audio and accelerometer signals. | We use the audio signal to detect cough, consistently shown to be more accurate. Additionally, we combine it with temperature detection to achieve a more accurate diagnosis. |
[34] | Cough detector based on deep neural network (DNN) and Gaussian mixture model (GMM). | We use another neural network, a convolutional one (CNN). |
[35] | Cough detector based on machine learning from an accelerometer attached to the bed signal. | Our work is based on the audio signal as they have been shown to be more accurate. |
[36] | Compensate temperature of thermopile in an industrial environment with a PSO-BP algorithm. | Our work used thermal compensation as the temperature compensator because it is more accurate. |
[37] | Based on microwave for breath and heart rate detection. This device does not detect cough. | Our work also detects cough, which is a substantial difference because cough is a main identification of illness. |
[38] | Thermopile-based fever detector. | Our work achieves better accuracy and also complements it with a cough detector, probed as a good indicator of illness. |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Rodríguez-Cobo, L.; Reyes-Gonzalez, L.; Algorri, J.F.; Díez-del-Valle Garzón, S.; García-García, R.; López-Higuera, J.M.; Cobo, A. Non-Contact Thermal and Acoustic Sensors with Embedded Artificial Intelligence for Point-of-Care Diagnostics. Sensors 2024, 24, 129. https://doi.org/10.3390/s24010129
Rodríguez-Cobo L, Reyes-Gonzalez L, Algorri JF, Díez-del-Valle Garzón S, García-García R, López-Higuera JM, Cobo A. Non-Contact Thermal and Acoustic Sensors with Embedded Artificial Intelligence for Point-of-Care Diagnostics. Sensors. 2024; 24(1):129. https://doi.org/10.3390/s24010129
Chicago/Turabian StyleRodríguez-Cobo, Luís, Luís Reyes-Gonzalez, José Francisco Algorri, Sara Díez-del-Valle Garzón, Roberto García-García, José Miguel López-Higuera, and Adolfo Cobo. 2024. "Non-Contact Thermal and Acoustic Sensors with Embedded Artificial Intelligence for Point-of-Care Diagnostics" Sensors 24, no. 1: 129. https://doi.org/10.3390/s24010129
APA StyleRodríguez-Cobo, L., Reyes-Gonzalez, L., Algorri, J. F., Díez-del-Valle Garzón, S., García-García, R., López-Higuera, J. M., & Cobo, A. (2024). Non-Contact Thermal and Acoustic Sensors with Embedded Artificial Intelligence for Point-of-Care Diagnostics. Sensors, 24(1), 129. https://doi.org/10.3390/s24010129