Enhanced Pyrometric Device With Long Range For Mass Screening Based On MLX90614
Enhanced Pyrometric Device With Long Range For Mass Screening Based On MLX90614
B.E., Electronics and Telecommunication Data Engineer B.E., Electronics and Telecommunication
Dwarkadas J. Sanghvi College of Engineering Quantiphi Incorporation Dwarkadas J. Sanghvi College of Engineering
Mumbai, India Mumbai, India Mumbai, India
[email protected] [email protected] [email protected]
Abstract—This paper describes a novel data analysis algorithm like - airports, malls, public places, and industries. However,
for increasing the range and accuracy of non-invasive IR based thermal cameras were extremely expensive, which was a
temperature sensors that have been widely used to check for letdown for every shop and company owner that wanted to
elevated body temperatures (EBT) during the Corona pandemic.
Our algorithm considers factors like humidity, distance, ambient resume work and production but could not afford this kind of
temperature, and emissivity. A device was made that could investment, especially due to the widespread economic
deploy the algorithm and perform tasks like EBT detection, mask recession that followed the pandemic. This paved the way for
detection, face detection and face recognition and subsequently cheap thermal guns that claimed to sense body temperatures to
store the inferences of all these models on a cloud or local sever an accuracy of 0.2 degC which became extremely popular
accessible via http requests.
Index Terms—Elevated Body Temperature, EBT, IR, Infrared, with such customers and industrialists. However, these devices
Artificial Intelligence, AI, face recognition, thermal screening, had a lot of problems - firstly, they were extremely short
COVID-19, pandemic, data analysis, MLX90614, NodeMCU, ranged which resulted in a lot of manual measurement errors
ESP32 cam as it is quite natural for the user to be cautious about the
distance between the gun and the subject’s forehead to avoid
I. INTRODUCTION any possibility of contracting the virus. Secondly, the accuracy
In December 2019, the SARS-CoV-2 outbreak began in of spot IR devices has always been a concern due to the ample
Wuhan, China. As time passed, it began to infect people in of factors affecting it, including but not limited to relative
other countries and by June 2020 more than 200 countries humidity, Ambient temperature and emissivity. This combined
had positive cases amounting to over 10 million reported with the introduction of indistinguishable cheap quality
infections and over 500 thousand reported deaths due to the sensors to increase profit margins per device made these
virus all over the world. As pressure began to mount on each devices notorious and speculative among many users and
infected country after its first few infections were identified, researchers. The main purpose behind this research is to
widespread Coronavirus testing methods were employed to address all these concerns, identify the main factors that affect
make sure infected people were identified and quarantined the EBT measurement and their relationship with it; and
before they infected someone else unknowingly. The most develop an algorithm that incorporates all these factors
prominent methods of detecting the virus included chemical (including the distance between the subject and the spot
methods like RT-PCR, which were time consuming and labor detector) to increase the range to at least 1 foot. Finally, we
intensive. Other faster and more automated methods like aim to deploy this algorithm by the means of our own custom-
detection using AI and Deep Learning models based on X- made cost- effective device that can run other simple models
Rays, CT-Scans and thermal imaging modalities were being like face recognition, mask detection and track attendance of
explored, but they were still at nascent stages and not ready for workers. All this data can be locally saved, and the inferences
mass adoption and deployment. Soon, a very strong need for based on these algorithms will be logged on a remote or local
screening people who showed mild symptoms was needed so server, accessible via http requests or other methods.
that the burden on test centers and medical facilities is
reduced. Thermal imaging and EBT detection were the most II. LITERATURE SURVEY
widely employed screening method that was used by a variety There are a lot of ongoing efforts to develop thermal
of countries at places with large public densities and diversity detectors or pyrometers currently. Unfortunately, not many
Authorized licensed use limited to: PES University Bengaluru. Downloaded on January 18,2023 at 12:01:54 UTC from IEEE Xplore. Restrictions apply.
2021 International Conference on Nascent Technologies in Engineering (ICNTE 2021)
papers exist which elaborate on making the measurements with timestamps and other necessary data like the person’s
more accurate by taking actual measurements and curve fitting temperature, his attendance, etc.
them to estimate the error at unknown distances or ambient
temperatures. One of the papers that caught our interest was [1]
that elaborated on using a cheap STM32F107 microcontroller
to run the MLX90614 pyrometric sensor. It had a data storage
system and an alarm/LED for issuing warnings. However, the
paper did not include any extra features like surveillance, face
detection, etc. in the device. The paper also fails to show the
performance of the device on humans, which is our main
concern. The second paper that we referred was [2] which uses
a low-resolution thermal camera from the same company
Melexis, MLX90640. It was useful to understand the process
of sending visual data to a cloud server via MQTT protocol
as elaborated in the paper. However, we are using MLX90614
pyrometer and a 2MP visible camera for surveillance, making
our device cost much lower than theirs. Finally, [3] showed
the use of esp8266 based devices to send data on a server.
Most of these papers mainly focus on developing a simple
pyrometer that can send data to a cloud server. We aim to Fig. 1. Assembled PCB showing all components
develop a surveillance system that can perform pyrometry as
well as basic face detection. All the inferences will then be sent 3. Camera sensor: The ESP32-CAM device contains an
on the cloud server, making our device much more versatile, inbuilt camera port which can be used to connect the OV2640
remotely operable and feature rich. Our main aim is to make it camera sensor. A cost-effective highly customizable camera, it
as affordable as possible for mass usage and adoption. is ideal for basic image processing and surveillance
III. C OMPONENTS USED AND METHODOLOGY applications. It supports up to 2MPx of resolution and still
gives decent frame rates.
The device comprises of the following blocks and
4. Buzzer: A small 5V buzzer has been used to provide audio
components as shown assembled in Fig. 1 -
cues and output in the device. It acts as an alarm or guidance
1. Pyrometric sensor: The MLX90614 has been a prevalent
system as per requirement. When a person has elevated body
choice as the main sensor. It has a lot of variations, one of
temperature, or is not recognized by the database (intruder
them being specifically calibrated to achieve better accuracy
alert) then the buzzer sounds an alarm. It also helps the person
in medical applications (MLX90614DAA). However, these
to align his/her forehead to the pyrometer by guiding the
variants are not easily found and are priced higher. Also,
subject to come closer or further from the device for safe and
according to the datasheet, for normally occurring ambient and
accurate measurement.
object temperatures the accuracy of all the variants is quite
5. Display: A 0.96” to 1.3” display can be used to show the
similar, around 0.3-0.5 degC according to the datasheet as
temperature values and other data to the subject after his
shown in the figure 1. Hence, we decided to use the most
measurement is complete. It is an I2C display and is extremely
commonly available market variant so that our device can be
easy to interface with the remaining hardware.
reproduced easily. The MLX90614 is an I2C pyrometric
sensor from the company Melexis, a leading manufacturer of 6. Ultrasonic Sensor: The SR-04 Ultrasonic sensor has been
low-resolution IR sensors. It gives very accurate temperature used to measure the distance between the subject and the
readings at 1-3 cms separation from the object being measured. device. It is used as a parameter to compensate the error
However, under practical circumstances, as the distance is introduced by the influence of ambient temperature in the
increased beyond that the measured values for the same human object temperature measurement by the pyrometer as the
subject change as the influence of the ambient temperature of distance between the device and the subject increases.
the sensor’s immediate surroundings increases on the object 7. Power circuit: A simple TP4056 based circuit has been
readings measured by it. We aim to improve this measurement used to provide sufficient power to the entire device
over a much larger range of distance around 30 cms or 1 foot. electronics. It can be powered by a micro-USB cable.
This is elaborated in the further sections. Construction: The entire device casing is built using 3D
2. Wifi module: The ESP8266 based Node MCU module has printed parts and locally available electronic parts. It is a
been used to provide Wifi facilities, temperature compensation simple to use snap fit 2-piece design made of a front and
and commands to camera module. It acts as the master device. a back part. The device is mounted on a wall using a few
The image from ESP32 Cam will be input to various machine additional 3D printed parts.
learning models to detect faces, masks and humans. The Use: The block diagram of the entire device has been
inferences will be stored on a cloud server using Wifi elaborated in the Fig. 2
978-1-7281-9061-7/21/$31.00 ©2021 IEEE
Authorized licensed use limited to: PES University Bengaluru. Downloaded on January 18,2023 at 12:01:54 UTC from IEEE Xplore. Restrictions apply.
2021 International Conference on Nascent Technologies in Engineering (ICNTE 2021)
Authorized licensed use limited to: PES University Bengaluru. Downloaded on January 18,2023 at 12:01:54 UTC from IEEE Xplore. Restrictions apply.
2021 International Conference on Nascent Technologies in Engineering (ICNTE 2021)
Using this tool, we got the following p42 polynomial: VI. C ONCLUSION :
2
f (x, y) = p00 + p10x + p01y + p20x + p11xy + ... (2) In this manner, we have increased the sensor’s range from
3cm to 30cm with a good accuracy of +/-0.5 degC when tested
where,
on a batch of 50 subjects of different localities. We aim to
x: perpendicular distance between the pyrometric sensor and
productionize this device using a robust metal casing as shown
the forehead plane (in centimeters)
in the Fig. 6 so that it can be deployed on a large scale to test
y: Ambient temperature (in degC)
people at their work places and recreational/travelling hotspots
f(x,y): function that correlates the variation in temperature
like malls, airports, train stations, etc. This device is also
readings of the pyrometric sensor MLX90614 with change in
capable of surveillance and mails the alerts and temperature
distance and ambient temperature.
values on a discord channel or email address of the concerned
The constants that were calculated using MATLAB are
authorities. Hence, it keeps a record of all the collected data
collected in the Table 1 below.
TABLE I
unlike thermal guns. We also aim to measure more vitals like
VALUES OF CONSTANTS FOR P42 EQN. 2 SPO2 levels, Respiratory Rate (RR) and Heart rate (HR) using
visible and thermal camera feed as explained in [4],[5],[6] and
p00 57.14 p10 -17.67 [7].
p01 0.8357 p20 0.7385
p11 0.3206 p02 -0.004624
p30 -0.002144 p21 -0.01438
p12 -0.001409 p40 -5.051e-05
p31 5.273e-05 p22 6.46e-05
sensor)
0 , 0 00 10 0 01 0 20 ⋯ (3)
0, 0 00 01 0 02 (4) Fig. 6. Envisaged production ready version of the proposed device with sample
text
0, 0 0, 0 (5)
Authorized licensed use limited to: PES University Bengaluru. Downloaded on January 18,2023 at 12:01:54 UTC from IEEE Xplore. Restrictions apply.