1 Introduction

COVID-19 (or coronavirus 2019 disease) is an infectious disease caused by the severe acute respiratory syndrome coronavirus 2 (or SARS-CoV-2), previously referred to as the new coronavirus 2019 (or 2019-nCoV), a type of coronavirus. The initial infections were observed in Wuhan, China, at the end of December 2019 before propagating around the world. The current outbreak was registered as a pandemic on 11 March 2020 [1, 2].

Many scientific research projects are underway, whether in medicine, pharmacy or technology. As far as medicine is concerned, the diagnosis of the coronavirus in the human body is extremely intricate and this is due to its strength and interaction which leads to its massive propagation in the human environment. As a result, the World Health Organization (or WHO) has insisted that all humanity should remain confined to its homes and not take to the streets to contain and eliminate this dangerous virus.

In the pharmaceutical field, they have found drugs that help decipher the virus, such as hydroxychloroquine and azithromycin, but they have not reached the limit, as some researchers think that the corona virus could return. For that, the optimal solution is a vaccine that prevents it from spreading completely.

In the technological field, we have observed that researchers work hard to engineer artificial respirators because these are very important for people infected with coronaviruses, which help them to breathe as the corona virus destroys lungs. In addition to this invention, they have manufactured devices to measure human temperature, which depends on infrared radiation to identify the infected persons with coronaviruses [3,4,5,6,7].

Everyone is aware of the danger of Covid-19 [8], and as we are an integral part of this world, we are investigating a new challenge in the technological field, the smarter sterilization bottles. This contribution favors reducing the propagation of virus.

Before presenting the proposed contribution in this paper, we are interested in explaining the importance of hand sterilization or hand washing or hand hygiene in health care and in the community.

However, the correct term of “sterilization” has more practical value than one might expect at first view [9]. On the other hand, if we ask the following question, what is the term “disinfection”? From [9], we found the answer to this question, the authors state that the disinfectant must be bactericidal, fungicidal, virucidal, etc. Nevertheless, the sterilization is a process after which no living organism can be detected.

For exact descriptions of the term “hand washing and hand hygiene”, we present some related works in this context.

In [10], the authors report a scientific review of the effects of hand washing with soap on the risk of diarrhoea to estimate potential reductions in diarrhoeal deaths. However, the authors have declared that the hand washing is regarded as a key anti-infection practice. Furthermore, they noted that a lot of discussion exists on how to improve hand washing practices in health care facilities, but that little attention is focused on the importance of hand washing at home, particularly in developing countries. As a conclusion, they also mentioned that the modern methods of hand washing promotion have the potential to be effective and cost-effective on a large scale, because soap is broadly available even in poor developing countries’ households, although, it is mainly applied for cleaning and washing clothes.

In [11], the authors discuss an interesting topic; concerning the cleanliness of surface environment and the risk of contamination when washing hands. However, the effective hand washing and including drying is important in infection control and to decrease skin-surface microbial counts. The authors in [11] examine a salient element, it is the environmental surface cleanliness, and in addition, they studied the contamination of hands during washing process. For this reason, they examined and analyzed the surfaces of hand washing stations that can be suffused with the bacteria that can be touched during hand washing. As solution for testing, the adenosine triphosphate (or ATP) used. According to certain findings, the authors noted that the contamination of hand washing surfaces can lead to the spread of microbial contamination in hospitals, and which can provide a pool of the microbial contamination, and finally, it can result in the contamination of hands during or after hand washing. In addition, they tested three areas of hand contact surfaces, namely: faucet handles, soap dispenser activation mechanisms and folded paper towel dispenser outlets. Finally, the obtained results indicate that the surfaces most sensitive to contamination are the faucet handles more than others.

Based on [12], the authors provide an overview about hand hygiene in health care and in the community, as well as hand drying and structural aspects which determine hand hygiene performance are also discussed. By definition, the authors report that the hand hygiene is the most effective measure to stop the spread of microorganisms that cause infections within the community and the health care environment. Due to the fact that the use of hand hygiene is considered unlikely to be successful in reducing infection, if it is seen as a sole measure to reduce infection whereas other infection control factors are absent, such as environmental hygiene. Therefore, the hand hygiene is part of an integrated infection control approach, and if one talks about the recommendations for hand hygiene all over the world, there is participation in this aspect tends to be very low, although the procedures involved in hand hygiene are not complicated [12]. In conclusion, the authors of [12] reached the conclusion that the health and community environment can be better if it is not based entirely on hand hygiene practices, but it must be accompanied with the environmentally clean surfaces. And in addition to these, the hand hygiene facilities must be also available and appropriate.

In the context of the aforementioned related works. The present paper aims to design and produce a prototype smarter sterilization bottle (or SSB) based on Arduino nano card with using some hardware components connected, and which is dedicated to the prevention of Covid-19 and resolves the issues raised by the authors in the above references, among them the cleanliness of surface environment for the hand hygiene facilities. Finally, we encourage hand sterilizing without contact with the sterilization bottle or the hand hygiene facilities in order to reduce the risk of contamination of hands during or after hand sterilizing. In the Fig. 1, we present the model of old sterilization bottle (see Fig. 1a) and the SSB which will be studied and examined in this work (see Fig. 1b).

Fig. 1
figure 1

a Old sterilization bottle and b smarter sterilization bottle

However, Fig. 1b illustrates the principal part of SSB designing, which contains the sensors, the Arduino nano card, the DC water motor and the power supply.

In this work, an experimental study of SSB is based on the detection of human hands to be sterilized. The SSB works without any mechanical action on it, it operates by bringing the hands in front of the HC-SR04 ultrasonic sensor with priably adaptive distance. Moreover, the SSB is installed in an intermodal measurement room (or IMR) in order to obtain real results. The SSB use a hybrid system for running, which is based on two sensors at the same time, and are as follows: the LM35 temperature sensor and the HC-SR04 ultrasonic sensor. The Arduino nano card is employed for data acquisition.

As mentioned before, the SSB system is a hybrid system based on temperature measurement to estimate the detectable distance between the SSB and human hands to be sterilized. For more details see the theory of ultrasonic waves section.

During the distance measurement between the human hands to be sterilized and the SSB, the sensors generate a noise, called the measurement noise, which can affect on the performance of proposed system. To do that, the Kalman Filter (or KF) is proposed and implemented to improve the stability of distance measurement. The test results obtained show the effectiveness of KF algorithm after the reduction of measurement noise from the sensors.

The test analysis is performed under the Arduino IDE environment. The most important thing in this work is the integration of KF in the proposed system in order to increase the accuracy measuring for detecting human hands to be sterilized. Finally, the used methodology to achieve better results is based on the conceptual diagram shown in Fig. 2.

Fig. 2
figure 2

Conceptual diagram of the proposed system

The remainder of the article is organized as follows: The theory of ultrasonic waves is discussed in Sect. 2. In Sect. 3, the proposed prototype of SSB is introduced; and the KF algorithm is addressed in Sect. 4. In Sect. 5, the results and discussions are presented and the Sect. 6 concludes the research paper that is investigated. Finally, the Sect. 7 presents the short study of the future proposed low-cost prototype for the SSB.

2 Theory of Ultrasonic Waves

According to ultrasound wave theory, the speed of sound waves varies with the temperature of environment. Therefore, we proposed an intelligent hybrid system to measure the distance of human hands to be sterilized in front of the SSB, which are detected based on the temperature of environment in IMR. However, the ultrasonic signals are the mechanical force waves of frequencies that are higher than those audible to the human ear. In typical use, the frequency band is from [20 kHz to 1 GHz]. The latter covering a wide variety of applications. In fact, the frequency band from [20 kHz to 1 GHz] can be subdivided into three major parts, which are defined as follows: the first frequency band from [20 kHz and 300 kHz] is primarily employed by sonar and animals for echolocation. The second frequency band from [800 kHz to 15 MHz] is devoted to non-destructive medical and industrial imaging applications. Finally, the third frequency band [12 MHz to 1 GHz] is reserved for acoustic microscopy applications [13].

As a definition, ultrasonic waves are mechanical vibrations representing a movement of the particles. They propagate in a fluid or solid medium, but cannot be propagated in a vacuum the same way as electromagnetic waves. Several modes of propagation can be observed depending on the nature of the medium. In addition, the ultrasonic waves, concentrated in the form of beams, will act on the material through which they are travelling. The amplitude of these waves decreases during the propagation because the bonds among atoms or molecules are not entirely elastic. A number of phenomena occur that result in their weakening:

  • absorption in homogeneous mediums, when the ultrasonic wave propagates, it transfers part of its energy to the medium.

  • reflections, refractions and scattering at environmental changes (acoustic interface) [14].

There are multiple systems that can produce ultrasound. Usually, a device that delivers ultrasound is often referred to as an ultrasonic transducer or ultrasonic converter. However, the transducer technology can be based on pneumatic generators. On the other hand, there are various systems that can generate ultrasound, electrodynamics (loudspeaker) or electrical. In the latter case, the properties of magnetostrictive or piezoelectric materials are applied to convert electrical energy into ultrasonic mechanical energy.

Presently, the most widely employed materials are piezoelectric materials. These materials are in the form of a disc or a ring on the faces of which two metalized electrodes are disposed. When a voltage is supplied to these two electrodes, the material expands or compresses according to the orientation of the voltage with respect to the polarization of the ceramic. Inversely, by applying a force to the material, the opposite effect will occur, and as a result, a voltage will appear across the electrodes to produce the ultrasonic energy.

The movement or vibration amplitudes of these ceramics are typically very small (about a few microns). To create interesting effects on the material, the vibration amplitude of the tool in contact with the medium must be many tens of microns. To obtain this result, it is generally stacked several ceramics one on top of the other, which will be held under pressure between two metallic masses. The selection of the material constituting these masses and the choice of their cross-section enables the vibration to be enhanced in the privileged direction (cutting plane). The transducers thus created develop a maximum movement at certain particular frequencies, which depend on the geometry of the transducer, itself; we call these frequencies the resonance frequencies. The use of these transducers is commonly limited to these particular frequencies. To produce an ultrasonic wave, the principle involves supplying the ultrasonic systems with an electrical voltage whose frequency is equal to their resonant frequency.

Today, ultrasonic sensors are the simplest way to detect ultrasonic obstacles. The transmitter and receiver are both integrated in a box. The ultrasound is directly reflected to the receiver by the obstacle to be detected. The majority of ultrasonic sensors are based on the principle to measure the path of sound between transmission and reception. The time taken for the echo to return is proportional to the distance between the ultrasonic sensor and the sensing obstacle [15].

3 Proposed Prototype

In this section, we explain the circuit of proposed prototype SSB shown in Fig. 1b. In this prototype circuit (see Fig. 3), four components are used: the DC water motor is used to pump the antiseptic gel up out of the SSB, the control circuit is used to receive the physical signals from the HC-SR04 ultrasonic sensor in order to energize the DC water motor, here, the HC-SR04 ultrasonic sensor is employed to follow the threshold distance in order to detect the human hands to be sterilized, and the power supply of 12 VDC is applied to supply the control circuit to drive the DC water motor. As we mentioned in previous paragraphs, the LM35 sensor is used to measure the temperature and this in order to predict the speed of sound waves for measuring the distance between the human hands and the SSB. The Arduino nano card is powered by 5 VDC [16].

Fig. 3
figure 3

Proposed prototype

However, the HC-SR04 ultrasonic sensor enables to sense the presence of the human hands in the sensor beam field, see Fig. 4. It is applied in various applications, such as: security systems and motion detectors [17]. It is available at low cost, and it is very simple to use. In addition, the ultrasonic module HC-SR04 has 4 pins, VCC, GND, echo and trigger. The VCC and GND pins of the sensor must be attached respectively to the 5 V and GND pins on the Arduino nano card and the echo and trig pins are respectively connected to 12 and 10 digital I/O pins on the Arduino nano card [16].

Fig. 4
figure 4

Human hands sensing by a HC-SR04 ultrasonic sensor

For producing the ultrasound, we must select a high trigger level of 10 µs [17]. This will transmit an 8-cycle tone burst that will move at the speed of sound waves and be detected in the echo pin. The echo pin will provide the time in microseconds that the sound waves will move (see Fig. 5). On the other hand, Fig. 6 illustrates the circuit for controlling the DC water motor. When the HC-SR04 ultrasonic sensor detects the human hands to be sterilized, the DC water motor is powered by the proposed circuit of Fig. 6. However, the costly component of this prototype is the DC water motor, as shown in the Fig. 3. Finally, the basic source code to run the proposed prototype of Fig. 3 is presented in Appendix 1 section.

Fig. 5
figure 5

Trigger versus echo

Fig. 6
figure 6

Driving circuit for DC water motor

4 Kalman Filter Algorithm

The Kalman filter is a mathematical method designed by Professor RUDOLF KALMAN in 1960. This filter was first used to solve trajectory tracking problems in preparation of the Apollo flights. It has become an essential algorithm for the trajectory processing in modern radar systems and other engineering applications [18,19,20,21,22,23,24,25,26,27]. In this paper, the application of KF plays an indispensable role, which aims to reduce the measurement noise of the used sensors in the proposed prototype, and through it, we can stabilize the operation of system in order to make it more efficient.

4.1 Definition

The Kalman Filter (KF) consists of a recursive filter, which employs a temporal filter approach. It enables to estimate the state (this state corresponds to the desired information) of a dynamic system based on a priori information on the state evolution (model) and real measurement. It is highly encouraged to employ this filter when the uncertainty on the processed acquisition data can be understood, as a random noise, which’s the distribution, is known a priori. However, one of the great advantages of the KF algorithm, are as follows: the estimation error, is considered as an indicator of accuracy; and its algorithm has a recursive nature in time domain, and it disposes an optimal estimator in the least-squares meaning [18, 28,29,30].

4.2 Application

In this sub-section, we will discuss the application of KF for the proposed system. The principle of this filter is based on a state variable model with two equations, namely [18, 31,32,33]:

  • the recursive equation of discrete random process modeling (state vector), it is also referred to as the state equation or transition equation.

  • the observation equation (measurement vector) of process, it is also referred to as the measurement equation.

The KF algorithm wording is designed in discrete time form to estimate the state and measurement of dynamic model, which is described as follows:

$$\left\{ {\begin{array}{ll} {{\text{x}}_{{{\text{k}} + 1}} = {\text{F}}_{{\text{k}}} {\text{x}}_{{\text{k}}} + {\text{B}}_{{\text{k}}} {\text{u}}_{{\text{k}}} + {\text{w}}_{{\text{k}}} ,{\text{w}}_{{\text{k}}} \to N\left( {0,{\text{Q}}_{{\text{k}}}^{{\text{w}}} } \right)} \\ {{\text{z}}_{{\text{k}}} = {\text{H}}_{{\text{k}}} {\text{x}}_{{\text{k}}} + {\text{v}}_{{\text{k}}} ,{\text{v}}_{{\text{k}}} \to N\left( {0,{\text{R}}_{{\text{k}}}^{{\text{v}}} } \right)} \\ \end{array} } \right.$$
(1)

With \(x_{k}\): state vector at time k which incorporates the acquisition data to be estimated, \(x_{k} \in {\mathbb{R}}^{n}\); \(F_{k}\): transition matrix. It depicts the evolution of the state vector from time k-1 to time k,\(F_{k} \in {\mathbb{R}}^{n*m}\); \(B_{k}\): command matrix at time k; it depends of the system modeling, \(B_{k} \in {\mathbb{R}}^{n*l}\); \(H_{k}\): observation matrix (measurement). In fact, it is the link between system variables and measurements,\(H_{k} \in {\mathbb{R}}^{m*n}\); \(u_{k}\): vector representing the applied commands to the system at time k, \(u_{k} \in {\mathbb{R}}^{l}\); \(w_{k}\): vector representing the noise modeling at time k, it is related to the uncertainty in process model,\(w_{k} \in {\mathbb{R}}^{n}\); \(Q_{k}^{w}\): covariance matrix of the process noise at time k; \(z_{k}\): measurement vector at time k, \(z_{k} \in {\mathbb{R}}^{m}\); \(v_{k}\): vector representing the measureent noise at time k, \({v}_{k}\in {\mathbb{R}}^{m}\); \(R_{k}^{v}\): covariance matrix of the measurement noise at time k.

However, the KF algorithm is divided into two main phases, which go as follows: the prediction phase and the correction phase. In prediction phase, the used algorithm is checked according to the following equations:

$$\hat{x}_{k}^{\left( + \right)} = F_{k - 1} \hat{x}_{k - 1}^{\left( - \right)} + B_{k - 1} u_{k - 1}$$
(2)
$$P_{k}^{\left( + \right)} = F_{k - 1} P_{k - 1}^{\left( - \right)} F_{k - 1}^{T} + Q_{k}^{w}$$
(3)

where \(\hat{x}_{k}^{\left( + \right)}\) denotes the estimated current state (a priori) for the estimated previous state (a posteriori) \(\hat{x}_{k}^{\left( - \right)}\) and \(P_{k}^{\left( + \right)}\) indicates the estimated current error of covariance matrix, whereas \(Q_{k}^{w}\) is the covariance matrix of process noise. On the other hand, in correction phase, the used algorithm is examined by other equations, in the following manner:

$$K_{k} = P_{k}^{\left( + \right)} H_{k}^{T} \left( {H_{k} P_{k}^{\left( + \right)} H_{k}^{T} + R_{k}^{v} } \right)^{ - 1}$$
(4)
$$\hat{x}_{k} = \hat{x}_{k}^{\left( + \right)} + K_{k} \left( {z_{k} - H_{k} \hat{x}_{k}^{\left( + \right)} } \right)$$
(5)
$$P_{k} = \left( {I - KH_{k} } \right)P_{k}^{\left( + \right)}$$
(6)

where \(K_{k}\) is the Kalman gain which serves to reduce the error of covariance matrix (a posteriori) \(P_{k}\), and \(R_{k}^{v}\) is the covariance matrix of measurement noise.

According to the above Eqs. (2)–(6), the concept process of KF algorithm shows that the prediction and correction process occurs in a way continuously (called the correction cycle see Fig. 7) in order to generate the estimated measurement values. Due to the correction cycle, the measurement noise which appears in the LM35 sensor and HC-SR04 ultrasonic sensor, can be removed.

Fig. 7
figure 7

Conceptual diagram of Kalman Filter estimator

Finally, the design of KF algorithm for the two sensors (LM35 and HC-SR04 ultrasonic), which we used for estimating the temperature, the speed of sound waves and the measured distance between the human hands and the SSB, are based on the above Eqs. (2)–(6), where these equations are implemented as a programming language on the IDE Arduino. More particularly, the flowchart of programming design in Fig. 8 explains in detail the famous source code to be executed on the Arduino nano card for the proposed system in this paper.

Fig. 8
figure 8

Flowchart of final source code

5 Results and Discussion

In this section, we present and discuss the obtained results of the methodology proposed in Fig. 2. However, through this proposed methodology, we will design a prototype of SSB with a higher performance. At the end of this section, we will present the final prototype of SSB.

5.1 Measuring the Temperature of Environment in Which Ultrasound is Spread

In this sub-section, we will present the first step of conceptual diagram depicted in Fig. 2. The objective of this step is to measure the temperature of the environment in which the ultrasound is propagated using a LM35 temperature sensor in order to predict the speed of sound waves with the use of linear interpolation method. However, Fig. 9 illustrates the proposed diagram that we used for monitoring the temperature in IMR where we will install the SSB. In Fig. 9, we rely on two platforms, namely: Arduino and MATLAB. The Arduino platform has become so versatile that it has developed a lot of software to support many different applications. It has also developed MATLAB support software, which provides real-time data acquisition and plotting directly from the MATLAB command window from Arduino. This real-time data can be used to predict the speed of propagated sound waves in IMR based on the behavior of LM35 temperature sensor.

Fig. 9
figure 9

Diagram for the acquisition of temperature data via a LM35 sensor

This part focuses mainly on automation and data acquisition in real-time. The acquisition data is achieved through the MATLAB platform, simply by programming, without using the toolbox or the Simulink platform, which would make the use easier and would constitute a less expensive way to acquire real-time data. On the other hand, the automation is obtained using an Arduino nano card and the MATLAB platform, by connecting the “LM35” temperature sensor to the Arduino nano card. The LM35 temperature sensor is preferred for this job, as instead of having to use a thermistor, the LM35 allows us to measure the temperature more accurately. The circuit of this part is very easy and is depicted in “Appendix 2” section.

In this research, a real-time graph of the temperature sensor was obtained, as shown in Fig. 10. On the graph, the measured temperature is plotted in orange and the temperature estimated using the KF is plotted in light green. The temperature is taken on the Y-axis and its unit is the degree Celsius (°C). From the obtained results in Fig. 10, one can clearly see that the use of KF to estimate the measured temperature provided more stable values in terms of estimation, and in addition, the estimated values are closer to the actual values. As an example, the measured average temperature value is 22.8667 °C, whereas the estimated average temperature value is 22.8720 °C. Based on the results obtained from the test, it was noted that the KF algorithm reduces the measurement noise and has a better performance depending on the covariance value of process noise which was selected at Q = 10–9. As conclusion, the estimated average error of temperature is equal to 0.0053 °C.

Fig. 10
figure 10

Measured and estimated temperature values using a LM35 sensor

Based on the estimated temperature of IMR in which we are hoping to implement the prototype of SSB (see Figs. 1, 3), we can predict the speed of sound waves in this IMR using the linear interpolation method. The predictive values will be computed on the basis of Table 1 [34, 35].

Table 1 Speed of sound wave according to the temperature in the air

Figure 11 illustrates the expected results of the speed of sound waves in IMR. One can clearly notice that the values of the speed of sound waves follow the same path compared to the results of previously measured temperature, because theoretically and practically the speed of sound waves is relatively related to the temperature of the environment where the ultrasonic waves are present. As an example, the measured average value of the speed of sound waves is 344.9557 m/s, whereas the estimated average value of the speed of sound waves is 344.9589 m/s. As conclusion, the estimated average error of the speed of sound waves is equal to 0.0032 m/s.

Fig. 11
figure 11

Measured and estimated values of the speed of sound waves using a LM35 sensor

5.2 Measuring the Speed of Sound Waves with an Ultrasound Sensor

After predicting the speed of sound waves in a very specific environment (or IMR) using the LM35 sensor in the first scenario (see Fig. 9), we will measure in the second scenario, the speed of sound waves using an ultrasonic sensor, namely the HC-SR04 ultrasonic sensor. This sensor measures the time it takes to ping an ultrasound to go out, bounce off a target and come back. The time that the ping takes to get back to the sensor depends on the speed of sound waves and the distance to the target, here, the human hands to be sterilized are the obstacle. In addition, this sensor works in the same way as a bat that uses treble tones to navigate in the dark. This is also the same principle used in underwater sonar. The circuit for this part is very simple and is depicted in “Appendix 2” section.

However, the Fig. 12 shows the proposed diagram that we used to measure the speed of sound waves that allowed us to detect the human hands at 15 cm in the same IMR where we measured and estimated the temperature. In addition, we always rely on both platforms, namely Arduino and Matlab.

Fig. 12
figure 12

Diagram for the acquisition data of the speed of sound waves via a HC-SR04 ultrasonic sensor

In this scenario, the test was performed to study measurement and estimation performance under steady state conditions. The test was carried out by placing the sensor in front of the human hands to be sterilized at a distance of 15 cm. The test results are shown in Fig. 13.

Fig. 13
figure 13

Measured and estimated values of the speed of sound waves using a HC-SR04 ultrasonic sensor

The measured values of the speed of sound waves in orange and the estimated values in light green using the KF are shown in Fig. 13. As expected, the measured and estimated values for detecting the human hands to be sterilized at a distance of 15 cm are practically identical because the measurement noise has been attenuated by the KF. Obviously, the estimated values have a much smoother curve and a smaller range than the measured values. One can also clearly see that the transitional regime for the estimated values is rapidly evolving towards a stable state. As an example, the measured average value of the speed of sound waves is 345.4064 m/s, whereas the estimated average value of the speed of sound waves is 345.1625 m/s. On the basis of the test results obtained, it was established that the application of KF algorithm with the ultrasonic sensor also reduces the measurement noise and has a better performance according to the same covariance value of process noise which has been set at Q = 10–9.

As conclusion, the estimated average error of the speed of sound waves is equal to 0.2439 m/s. As a final conclusion of the two previous scenarios concerning the measurement of the speed of sound waves in the air, we found that we can employ a temperature sensor with an ultrasonic sensor in order to detect and measure the distance of the human hands in a congested environment (or IMR), and this, according to the comparative results that have been presented in Figs. 11 and 13. In the following scenario, we will use a hybrid system comprising both the LM35 and HC-SR04 ultrasonic sensors.

5.3 Estimating the Distance of a Target Using a Hybrid System

This sub-section focuses on the automatic calibration of hybrid system to react with the influence of temperature (see Fig. 14) in order to estimate the distance between the human hands and the SSB at 5 cm in the same IMR without fixing the speed of sound waves. The speed of sound waves will be computed and adjusted according to the LM35 sensor. The circuit of hybrid system for this part is very simple and is depicted in “Appendix 2”. Moreover, Fig. 14 illustrates the proposed diagram that we used. In addition, we always rely on both Arduino and MATLAB platforms.

Fig. 14
figure 14

Data acquisition diagram for a hybrid system

In this scenario, the test was performed to study and evaluate the performance of hybrid system whose purpose is to estimate the distance between the human hands to be sterilized and the SSB. For that, the HC-SR04 ultrasonic sensor is placed at the SSB and the human hands to be sterilized are fixed in front of SSB with a distance of 5 cm (see Figs. 1, 4 and 14). In addition, the use of LM35 sensor focuses to predict the speed of sound waves that will be selected to detect the human hands at 5 cm exactly. Finally, the test results of this scenario are shown in Fig. 15. In the previous scenario, we selected the covariance value of process noise to Q = 10–9. In the current scenario, we vary the covariance value of process noise at Q = 10–1, Q = 10–3, Q = 10–6 and Q = 10–9, in order to observe their influence on the response time of HC-SR04 ultrasonic sensor when the distance between the human hands and the SSB changes. From the obtained test results for the estimated distance at 5 cm, it appeared that the response time of hybrid system performance using the KF was different for each the covariance value of process noise tested. As an example, the covariance value of process noise Q = 10–1, produces a faster response time of 4.56 s, whereas the covariance value of process noise Q = 10–9 produces a slower response time of 423.6 s.

Fig. 15
figure 15

Desired and estimated values of distances using a LM35 sensor and a HC-SR04 ultrasonic sensor

Thus, one can conclude that if the covariance value of the selected Q process noise is smaller, the response time of HC-SR04 ultrasonic sensor is slower and vice versa (see Fig. 16), as proved in [31, 32]. In our work, we wanted to select the covariance value of process noise at Q = 10–1, as this was very helpful for our proposed prototype.

Fig. 16
figure 16

Response time versus covariance value of the process noise

we also found that the estimated average error is smaller when the covariance value of process noise is larger (see Fig. 17). As an example, the estimated average errors for each covariance value of the process noise are respectively: 5.6 × 10–3 cm (Q = 10–1), 1.58× 10–2 cm (Q = 10–3), 3.07× 10–2 cm (Q = 10–6) and 3.37× 10–2 cm (Q = 10–9).

Fig. 17
figure 17

Estimated error of distance for different covariance value of the process noise

In the end of this scenario, we also tested the performance of hybrid system with varying distances between the human hands and the SSB, namely: 5 cm, 6 cm, and 7 cm on the X axis, for the covariance value of process noise Q = 10–1 (see Fig. 18), and this to validate our concept of this contribution when the threshold distance between the human hands and the SSB is changed in order to power the DC water motor for the pumping antiseptic gel.

Fig. 18
figure 18

Different distance values estimated using a LM35 sensor and a HC-SR04 ultrasonic sensor

5.4 Validation of the Proposed Prototype

In this sub-section, we present the final prototype of our contribution in Fig. 19. In addition, one can clearly see in Fig. 20 the realization of essential parts in this work.

Fig. 19
figure 19

First model of SSB: a Front view and b rear view

Fig. 20
figure 20

Essential parts of our prototype

Finally, the Fig. 21 shows some results obtained on the simulation of our prototype when the human hands are close to the SSB, such as: the measured temperature in IMR, the predicted speed of sound waves employing to measure and estimate the distance between the human hands and the SSB, and the DC water motor status. Concerning the starting of the DC water motor is based on the selection of threshold distance, in our case we chose 5 cm, so when the estimated distance by the KF is less than or equal to 5 cm, the DC water motor is in running condition, otherwise, the DC water motor is in a stop state for an estimated distance much higher than the threshold distance 5 cm. Table 2 provides the list of hardware components included in Fig. 3 with the total cost of proposed prototype.

Fig. 21
figure 21

A few results registered

Table 2 List of components used in proposed prototype

6 Conclusion

In light of these circumstances that have affected the whole world, the scientific acceleration in all fields has become very exciting, as all scientists are scrambling to invent a vaccine for the coronavirus and some of them are implicated in inventions that help to limit the spread of this virus, such as the use of drugs or the antiseptic gel for cleaning out the human hands. In this context, we thought of a prototype suggesting a SSB based on a hybrid system employing the LM35 sensor and the HC-SR04 ultrasonic sensor as basic devices, and this for a good sterilization of the human hands against the coronavirus (Covid-19).

However, the employed sensors in our prototype are influenced by the measurement noise, and as a result, this type of the noise can cause undesirable effects when the data are measuring. For this reason, the proposed system has been equipped with a filter in order to stabilize the measurements for improving the performance of proposed system. In this work the KF is applying. The simulations of this work did lead us to the following conclusions:

  • the prediction of the speed of sound waves by means of the LM35 sensor did give us reasonable results for measuring a desired distance after the linear interpolation method is applied.

  • the KF can stabilize the measured distances after the measurement noise is reduced.

  • after the use of the KF estimator, the response time of a HC-SR04 ultrasonic sensor for estimating the measured distance, is acceptable. As an example, with the covariance value of process noise is equal 10–1, the response time is 4.56 s.

For future endeavors and as a perspective, we will aim to improve the response time for estimating the measured distance with other estimation techniques.

7 Future work

In future work, we propose a new prototype with low-cost, which is illustrated in appendix 3 section. In addition, we provide the list of all hardware components in Table 3 (see the Appendix 3 section). However, the cheap prototype circuit based on the FC-51 IR proximity sensor, which this sensor is constituted of an infrared diode (transmitter) and a photodiode (receiver), its role is to sense the human hands to be sterilized which are in front of the sterilization bottle.

Depending on the distance of human hands which will be detected in it, the receiver of the FC-51 IR proximity sensor will receive reflected infrared light (emitted by the infrared diode of the FC-51 IR proximity sensor) in order to supply the DC water motor via the control circuit (we use the same control circuit in this paper) and finally, the antiseptic gel will be pumped out through the vacuum tube to the human hands. We note that the threshold distance between the human hands to be sterilized and the FC-51 IR proximity sensor is set using the potentiometer that is available on the sensor.

In terms of revenue, we conclude that the future proposed prototype with a low-cost costs half the cost compared to the proposed prototype in this paper (see Fig. 3) for the three areas, are as follows: Algeria, Europe and America, see the Table 3 in “Appendix 3” section.