A New Data-Preprocessing-Related Taxonomy of Sensors for IoT Applications
Abstract
:1. Introduction
- We define a new sensor taxonomy related to data gathering and data pre-processing on-device.
- We determined that the main sensor characteristic for classification is sampling rate.
- We introduce a data filtering scheme using the most representative algorithms/models of infinite impulse response (IIR), finite impulse response (FIR), and smoothing filters by setting specific sampling rates for each sensor type.
- We compare data filtering criteria to select the suitable ones for the proposed taxonomy of sensors and ensure its usefulness in computationally constrained IoT environments.
- We performed tests on sensor data with statistical and functional metrics.
2. Background
2.1. Early Studies Sensors
2.2. Data Pre-Processing
3. Proposed Sensor Taxonomy
3.1. Analog Sensors
- Invariant sampling rate: These sensors are developed for collecting signals continuously to detect changes in a main characteristic. For example, the processing of human electrical activity through electromyography (muscle), electrocardiogram (heart), electroencephalogram (EEG), or galvanic skin response (hands).
- Variant sampling rate: These sensors run a couple of times a day due to their applications. They do not have a specific sampling frequency because the system focuses on taking the same number of samples each time it is activated [6].
3.2. Digital Sensors
- Pulse train sensors: variate their pulse train frequency when the transducer detects that a physical magnitude such as temperature, humidity, or distance is changing. Therefore, capacitors are often used in this type of sensor.
- Logic states sensors: use only two logical values, 3.3 vs. or 5 vs., when detecting a physical magnitude, no matter their variations, and 0v when the sensor cannot catch the magnitude. Thus, for example, the human presence sensor can not give us more information about the phenomenon, just its presence.
3.3. Sensors by Communication Protocol
- Serial communication: A sensor uses one pin to transmit messages and another pin to receive them. This protocol extensively adds wireless protocols to the IoT device, such as Bluetooth.
- IC: They have a new socket connection called Qwiic (Connect System uses 4-pin JST connectors to quickly interface development boards with sensors). This standard also allows connecting 127 sensors using just two pins. One is the clock rate, and the other is the transmitter line.
4. Methodology
4.1. Sensors’ Characteristics
4.2. Data Samples Acquisition
5. Results
5.1. Invariant Sampling Rate (ISR)
5.2. Variable Sample Rate (VSR)
5.3. Digital Pulse-Train
5.4. I2C Communication Protocol
5.5. Real Tests
6. Conclusions and Future Works
- This taxonomy of sensors is appropriate for the new trend of executing some ML stages on-device. Therefore, this work prevents data that do not describe the phenomenon being studied from being part of the ML model. Thus, the sampling frequency used in the sensors is a fundamental part of implementing filters.
- The proposed methodology demonstrates which filter is adequate and does not deform the original signal.
- Performance metrics in real environments define the ability to reduce noise and provide new trends to improve this process for coming sensors.
- We declare the Butterworth filter suitable for analog sensors with invariant sampling rates. Savi–Golay fits analog sensors with variant sampling rates. The average filter is adequate for digital pulse train sensors. Regarding communication protocol sensors, Savi–Golay and medium filters remove noise and provide improved signal for the proposed data gathering.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Debauche, O.; Mahmoudi, S.; Guttadauria, A. A New Edge Computing Architecture for IoT and Multimedia Data Management. Information 2022, 13, 89. [Google Scholar] [CrossRef]
- Bose, T.; Bandyopadhyay, S.; Kumar, S.; Bhattacharyya, A.; Pal, A. Signal Characteristics on Sensor Data Compression in IoT—An Investigation. In Proceedings of the 2016 IEEE International Conference on Sensing, Communication and Networking (SECON Workshops), Sydney, Australia, 14–18 March 2016; pp. 1–6. [Google Scholar] [CrossRef]
- Canziani, A.; Culurciello, E.; Paszke, A. Evaluation of neural network architectures for embedded systems. In Proceedings of the 2017 IEEE International Symposium on Circuits and Systems (ISCAS), Baltimore, MD, USA, 28–31 May 2017; pp. 1–4. [Google Scholar] [CrossRef]
- Komatsu, N.; Nakano, M. Embedded Systems. In Encyclopedia of Biometrics; Springer: Boston, MA, USA, 2015; pp. 397–401. [Google Scholar] [CrossRef]
- Dobrin, A.; Stamatescu, G.; Dragana, C.; Sgarciu, V. Cloud challenges for networked embedded systems: A review. In Proceedings of the 2016 20th International Conference on System Theory, Control and Computing (ICSTCC), Sinaia, Romania, 13–15 October 2016; pp. 866–871. [Google Scholar] [CrossRef]
- Kalantar-zadeh, K. Sensors. In Sensors; Springer: Boston, MA, USA, 2013; pp. 11–28. [Google Scholar] [CrossRef]
- Dasgupta, R.; Dey, S. A comprehensive sensor taxonomy and semantic knowledge representation: Energy meter use case. In Proceedings of the 2013 Seventh International Conference on Sensing Technology (ICST), Wellington, New Zealand, 3–5 December 2013; pp. 791–799. [Google Scholar] [CrossRef]
- Moreau, T.; San Miguel, J.; Wyse, M.; Bornholt, J.; Alaghi, A.; Ceze, L.; Enright Jerger, N.; Sampson, A. A Taxonomy of General Purpose Approximate Computing Techniques. IEEE Embed. Syst. Lett. 2018, 10, 2–5. [Google Scholar] [CrossRef]
- Lin, Y.L.; Kyung, C.M.; Yasuura, H.; Liu, Y. Smart Sensors and Systems; Springer International Publishing: Cham, Switzerland, 2015; Volume XII, p. 467. [Google Scholar] [CrossRef]
- Raschka, S.; Patterson, J.; Nolet, C. Machine Learning in Python: Main Developments and Technology Trends in Data Science, Machine Learning, and Artificial Intelligence. Information 2020, 11, 193. [Google Scholar] [CrossRef] [Green Version]
- Lin, L.; Liao, X.; Jin, H.; Li, P. Computation Offloading Toward Edge Computing. Proc. IEEE 2019, 107, 1584–1607. [Google Scholar] [CrossRef]
- Huuhtanen, T.; Ambos, H.; Jung, A. Outlier Detection from Non-Smooth Sensor Data. In Proceedings of the 2019 27th European Signal Processing Conference (EUSIPCO), Coruña, Spain, 2–6 September 2019; pp. 1–5. [Google Scholar] [CrossRef] [Green Version]
- França, C.M.; Couto, R.S.; Velloso, P.B. Missing Data Imputation in Internet of Things Gateways. Information 2021, 12, 425. [Google Scholar] [CrossRef]
- Zhang, W.A.; Dong, H.; Guo, G.; Yu, L. Distributed Sampled-Data Filtering for Sensor Networks With Nonuniform Sampling Periods. IEEE Trans. Ind. Inform. 2014, 10, 871–881. [Google Scholar] [CrossRef]
- Britton, R. Digital Filter Designer’s Handbook; McGraw-Hill: New York, NY, USA, 2010; Available online: http://dsp-book.narod.ru/DFD/DFD0.pdf (accessed on 10 April 2022).
- Williams, A. Analog Filter and Circuit Design Handbook. 2013. Available online: https://www.amazon.com/Analog-Filter-Circuit-Design-Handbook/dp/0071816712 (accessed on 10 April 2022).
- Aslam, F.; Aimin, W.; Li, M.; Ur Rehman, K. Innovation in the Era of IoT and Industry 5.0: Absolute Innovation Management (AIM) Framework. Information 2020, 11, 124. [Google Scholar] [CrossRef] [Green Version]
- MacRuairi, R.; Keane, M.T.; Coleman, G. A Wireless Sensor Network Application Requirements Taxonomy. In Proceedings of the 2008 Second International Conference on Sensor Technologies and Applications (Sensorcomm 2008), Washington, DC, USA, 25–31 August 2008; pp. 209–216. [Google Scholar] [CrossRef]
- Fowler, K.R. The future of sensors and sensor networks survey results projecting the next 5 years. In Proceedings of the 2009 IEEE Sensors Applications Symposium, Atlanta, GA, USA, 12–14 February 2009; pp. 1–6. [Google Scholar] [CrossRef]
- Tuukkanen, S.; Rajala, S. A survey of printable piezoelectric sensors. In Proceedings of the 2015 IEEE SENSORS, Busan, Korea, 1–4 November 2015; pp. 1–4. [Google Scholar] [CrossRef]
- Noel, A.B.; Abdaoui, A.; Elfouly, T.; Ahmed, M.H.; Badawy, A.; Shehata, M.S. Structural Health Monitoring Using Wireless Sensor Networks: A Comprehensive Survey. IEEE Commun. Surv. Tutor. 2017, 19, 1403–1423. [Google Scholar] [CrossRef]
- Cornacchia, M.; Ozcan, K.; Zheng, Y.; Velipasalar, S. A Survey on Activity Detection and Classification Using Wearable Sensors. IEEE Sens. J. 2017, 17, 386–403. [Google Scholar] [CrossRef]
- Quy, V.K.; Hau, N.V.; Anh, D.V.; Quy, N.M.; Ban, N.T.; Lanza, S.; Randazzo, G.; Muzirafuti, A. IoT-Enabled Smart Agriculture: Architecture, Applications, and Challenges. Appl. Sci. 2022, 12, 3396. [Google Scholar] [CrossRef]
- Latif, S.A.; Wen, F.B.X.; Iwendi, C.; li, F. Wang, L.; Mohsin, S.M.; Han, Z.; Band, S.S. AI-empowered, blockchain and SDN integrated security architecture for IoT network of cyber physical systems. Comput. Commun. 2022, 181, 274–283. [Google Scholar] [CrossRef]
- Anajemba, J.H.; Iwendi, C.; Razzak, M.; Ansere, J.A.; Okpalaoguchi, M.I. A Counter-Eavesdropping Technique for Optimized Privacy of Wireless Industrial IoT Communications. IEEE Trans. Ind. Inform. 2022, 1. Available online: https://ieeexplore.ieee.org/document/9669024 (accessed on 10 April 2022). [CrossRef]
- Morrison, W.; Guerdan, L.; Kanugo, J.; Trull, T.; Shang, Y. TigerAware: An Innovative Mobile Survey and Sensor Data Collection and Analytics System. In Proceedings of the 2018 IEEE Third International Conference on Data Science in Cyberspace (DSC), Guangzhou, China, 18–21 June 2018; pp. 115–122. [Google Scholar] [CrossRef]
- Infanteena, S.D.; Anita, E.M. Survey on compressive data collection techniques for wireless sensor networks. In Proceedings of the 2017 International Conference on Information Communication and Embedded Systems (ICICES), Chennai, India, 23–24 February 2017; pp. 1–4. [Google Scholar] [CrossRef]
- Tiboni, M.; Borboni, A.; Vérité, F.; Bregoli, C.; Amici, C. Sensors and Actuation Technologies in Exoskeletons: A Review. Sensors 2022, 22, 884. [Google Scholar] [CrossRef] [PubMed]
- Bhat, D.; Kaur, A.; Singh, S. Wireless sensor network specific low power FIR filter design and implementation on FPGA. In Proceedings of the 2015 2nd International Conference on Computing for Sustainable Global Development (INDIACom), New Delhi, India, 11–13 March 2015; pp. 1534–1536. [Google Scholar]
- Safaei, M.; Driss, M.; Boulila, W.; Sundararajan, E.A.; Safaei, M. Global Outliers Detection in Wireless Sensor Networks: A Novel Approach Integrating Time-Series Analysis, Entropy, and Random Forest-based Classification. arXiv 2021, arXiv:2107.10135. [Google Scholar] [CrossRef]
- Kowalski, P.; Smyk, R. Review and comparison of smoothing algorithms for one-dimensional data noise reduction. In Proceedings of the 2018 International Interdisciplinary PhD Workshop (IIPhDW), Swinoujscie, Poland, 9–12 May 2018; pp. 277–281. [Google Scholar] [CrossRef]
- Saad, L.B.; Beferull-Lozano, B.; Isufi, E. Quantization Analysis and Robust Design for Distributed Graph Filters. arXiv 2020, arXiv:2004.06692. [Google Scholar]
- Zhang, M.; Li, X.; Wang, L. An Adaptive Outlier Detection and Processing Approach Towards Time Series Sensor Data. IEEE Access 2019, 7, 175192–175212. [Google Scholar] [CrossRef]
- Iwendi, C.; Wang, G.G. Combined power generation and electricity storage device using deep learning and internet of things technologies. Energy Rep. 2022, 8, 5016–5025. [Google Scholar] [CrossRef]
- Gizlenmistir, Y. Filter based analysis unit design for data acquisition systems. In Proceedings of the 2018 26th Signal Processing and Communications Applications Conference (SIU), Izmir, Turkey, 2–5 May 2018; pp. 1–4. [Google Scholar] [CrossRef]
Sensor Type | Sensor | Characteristics |
---|---|---|
Bio-Signals | ECG (pulse sensor) | Detects changes in the volume of a blood vessel that occur when the heart pumps blood. To do so, they emit infrared, red or green light (550 nm) towards the body and measure the amount of reflected light with a photodiode or phototransistor. It has an operating voltage between 3.3 and 5 volts with a power consumption of 4 mA. |
Specific Propose | Flexometer | Produces a variable resistance according to the degree to which it is bent. In this sense, the sensor converts the bending into different values of electrical resistance. |
Force | The force-sensing resistance sensor (also called FSR) varies its internal resistance when pressure is applied to its sensing area. As of this effect, the output voltage changes as well. Thus, the higher the pressure, the higher the output voltage. | |
Pulse train | Humidity and Temperature (DTH11) | This sensor sends a calibrated digital signal containing an 8-bit microcontroller. In addition, it contains two resistive sensors (NTC and humidity). It uses one-wire communication (pulse train). |
gas NOx (MQ135) | This air quality sensor detects gas concentration in various percentages. The output signal presents TTL voltage levels to be processed by a microcontroller | |
Cx I2C | CO (SCD 30) | This is a high quality non-dispersive infrared (NDIR) based CO sensor capable of detecting from 400 to 10,000 ppm with an accuracy of ± (30 ppm + 3%). |
UV (VEML) | This sensor implements a simple photodiode to measure UVA (320–400 nm) and UVB (280–320 nm) radiation levels. With this data, it can read the intensity of these types of light in irradiance and, from there, calculate the UV index. |
Approximation | SNR (dB) | MSE | MAE | RMSE | R2 |
---|---|---|---|---|---|
Butterworth | 4.44 | 0.13 | 0.31 | 0.36 | −6.83 |
Bessel | 4.20 | 0.20 | 0.38 | 0.44 | −10.66 |
Chebyshev | 4.12 | 0.12 | 0.30 | 0.34 | −6.26 |
Window | SNR (dB) | MSE | MAE | RMSE | R2 |
---|---|---|---|---|---|
Nutall | 4.48 | 0.04 | 0.18 | 0.20 | −1.55 |
Hamming | 3.77 | 0.13 | 0.33 | 0.36 | −7.15 |
Taylor | 4.21 | 0.80 | 0.81 | 0.9 | −8.43 |
Blackman | 4.09 | 0.06 | 0.22 | 0.25 | −3.0 |
Sensor | Average | Medium | Gaussian | Savi–Golay | Statistical |
---|---|---|---|---|---|
k = 20 | k = 20 | Sigma = 7 | k = 9, Poly = 4 | Metrics | |
Flex sensor | 9.07 | 8.28 | 8.97 | 7.90 | MSE |
1.49 | 1.60 | 0.65 | 1.27 | MAE | |
1.91 | 1.96 | 0.98 | 2.81 | RMSE | |
0.642 | 0.56 | 0.99 | 0.99 | R2 score | |
2.65 | 2.16 | 2.47 | 2.49 | SNR | |
Force sensor | 195.39 | 198.23 | 205.31 | 158.2 | MSE |
5.25 | 5.29 | 3.20 | 4.96 | MAE | |
18.85 | 15.78 | 14.32 | 15.67 | RMSE | |
0.75 | 0.65 | 0.99 | 0.99 | R2 score | |
2.91 | 2.65 | 2.86 | 2.87 | SNR |
Sensor | Average | Medium | Gaussian | Savi–Golay | Statistical |
---|---|---|---|---|---|
k = 30 | k = 30 | Sigma = 7 | k = 9, Poly = 4 | Metrics | |
DHT-11 | 6.40 | 6.51 | 0.2 | 4.29 | MSE |
2.15 | 2.14 | 0.07 | 0.29 | MAE | |
1.03 | 1.04 | 0.15 | 0.54 | RMSE | |
0.75 | 0.77 | 0.99 | 0.96 | R2 score | |
9.72 | 9.60 | 9.61 | 9.69 | SNR | |
MQ-135 | 13.55 | 11.79 | 10.48 | 13.73 | MSE |
1.35 | 2.29 | 0.29 | 1.62 | MAE | |
3.77 | 3.49 | 0.69 | 3.70 | RMSE | |
0.51 | 0.35 | 0.99 | 0.98 | R2 score | |
1.36 | 1.27 | 1.26 | 1.28 | SNR |
Sensor | Average | Medium | Gaussian | Savi–Golay | Statistical |
---|---|---|---|---|---|
k = 30 | k = 20 | Sigma = 7 | k = 9, Poly = 4 | Metrics | |
SCD30 | 540.16 | 650.66 | 435.10 | 475.0 | MSE |
47.89 | 69.5 | 62.14 | 105.78 | MAE | |
178.05 | 111.02 | 124.23 | 182.96 | RMSE | |
0.55 | 0.77 | 0.94 | 0.86 | R2 score | |
1.51 | 1.47 | 2.01 | 2.37 | SNR | |
VEML6075 | 2.51 | 3.44 | 2.14 | 2.43 | MSE |
0.97 | 0.98 | 0.39 | 0.9 | MAE | |
1.58 | 1.85 | 1.2 | 0.20 | RMSE | |
0.42 | 0.22 | 0.10 | 0.99 | R2 score | |
1.0 | 0.88 | 0.89 | 0.92 | SNR |
Sensor Taxonomy | ||||
---|---|---|---|---|
Performance Metrics | Analog Sensors | Pulse | Comm. | |
ISR | VSR | train | Protocol | |
Accuracy | Good | Good | Normal | Excellent |
Reproducibility | Good | Poor | Poor | Excellent |
Repeatability | Good | Normal | Excellent | Poor |
Stability | Normal | Poor | Good | Normal |
Noise | Poor | Normal | Good | Good |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 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
Rosero-Montalvo, P.D.; López-Batista, V.F.; Peluffo-Ordóñez, D.H. A New Data-Preprocessing-Related Taxonomy of Sensors for IoT Applications. Information 2022, 13, 241. https://doi.org/10.3390/info13050241
Rosero-Montalvo PD, López-Batista VF, Peluffo-Ordóñez DH. A New Data-Preprocessing-Related Taxonomy of Sensors for IoT Applications. Information. 2022; 13(5):241. https://doi.org/10.3390/info13050241
Chicago/Turabian StyleRosero-Montalvo, Paul D., Vivian F. López-Batista, and Diego H. Peluffo-Ordóñez. 2022. "A New Data-Preprocessing-Related Taxonomy of Sensors for IoT Applications" Information 13, no. 5: 241. https://doi.org/10.3390/info13050241
APA StyleRosero-Montalvo, P. D., López-Batista, V. F., & Peluffo-Ordóñez, D. H. (2022). A New Data-Preprocessing-Related Taxonomy of Sensors for IoT Applications. Information, 13(5), 241. https://doi.org/10.3390/info13050241