Proximity Sensor for Measuring Social Interaction in a School Environment
Abstract
:1. Introduction
- High reading quality between the sensors.
- Minimum amount of loss of data read.
- Fast detection between sensors.
- Stability in the sensing range.
2. Materials and Methods
- Processing module: It is composed of an ESP32-DevKit V1 board, which performs the functions of information processing, decision making, signal conditioning, and internal and external connectivity of the proximity sensor. The ESP32 microcontroller of the board integrates Bluetooth, Bluetooth LE, and Wi-Fi, ensuring a wide range of applications with greater adaptability. The Wi-Fi channel allows a direct connection to the internet, while the Bluetooth module allows connecting and transmitting low-energy beacons for detection. The quiescent current is less than 5 A, which makes it suitable for portable electronic applications as it is battery-powered. The module supports a data rate of up to 150 Mbps and an adjustable transmission power of 20 dBm at the antenna. The combination of features of the dual-core processor, Wifi and Bluetooth connectivity, as well as its general purpose pins (GPIO), provide the possibility of developing various applications, including IoT applications. The ESP32 can be programmed in several languages. In our case, we used the C language within the Arduino Integrated Development Environment (IDE), which provides a large number of libraries and tools for using the microcontroller in various contexts. The programming of the sensor includes particular functions that were programmed using different libraries allowed by the Arduino environment, so the sensor can work autonomously as long as it has the minimum energy needed to power all the devices that compose it. It is important to recall that the power supply of each of the sensors is different and therefore requires a specific current ( mW) to be able to work and function optimally. The tests performed with the sensor showed that it is necessary to maintain the mentioned current in the battery as a minimum. In case this requirement is not met, the sensor cannot complete the requested functions and stops communicating even though it may physically show that it is on.
- Energetic module: This module performs the functions of storing electrical energy, conditioning, and distributing the energy to the other components of the proximity sensor. It is made up of the following components: a V Lithium-Polymer (LiPo) battery with a capacity of 1200 mAh [30], a Standalone Linear Li-ion Battery Charger that is powered by a mini-USB port at 5 V [31], and a DC-DC switching boost converter that assists in controlling the battery output to a voltage of V [32].
- GPS module: This module determines the real time position of the sensor and monitors the movement, providing coordinates of the sensor in open spaces or near windows. This information can be useful to reconstruct the path of the sensor, which can help in the identification of a social interaction and accurate time measurements. The GPS module based on the Ublox NEO-6M chip, includes a GPS antenna with UFL connector, a small battery and an EEPROM memory that allows saving of the last positioning data [33]. The supply voltage is 5 V, it has a search consumption of 67 mA and a tolerance of ± m [34]. This sensor measures longitude and latitude with a sampling rate of Hz and sends the data through a UART port configured at a rate baud of 9600 bps.
- Inertial Measurement Unit: It has the function of integrating motion information based on acceleration and angular velocity data acquired from the accelerometer and gyroscope, respectively. This enables calculation of inertial navigation as well as vibration, drop detector, distance and velocity measurement. The MPU6050 sensor is an IMU with 6 Degrees of Freedom (DoF) and is composed of a 3-axis accelerometer and a 3-axis gyroscope, which measure acceleration [m/s2] and angular velocity [deg/s] in the x, y, and z axes, respectively. This sensor is powered by a 5 V power supply and was configured for a measurement range of 8 g in the accelerometer and 500 deg/s in the gyroscope. It also has a digital motion processor (DMP) that allows the calculation of the position of the sensor in pitch angle, roll angle, and yaw angle [35].
3. Proximity Sensor Operation
3.1. Sensor Behavior
3.2. Sensor Calibration and Error Reduction
4. Experimental Results
4.1. Experimental Setup
4.2. Experiment (i)
4.3. Experiment (ii)
4.4. Comparison with Other Sensors
5. Conclusions
Author Contributions
Funding
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Moheimani, R.; Hosseini, P.; Mohammadi, S.; Dalir, H. Recent advances on capacitive proximity sensors: From design and materials to creative applications. J. Carbon Res. 2022, 8, 26. [Google Scholar] [CrossRef]
- Moreno, M.V.R.; Muñoz, D.G.R. Sensor de Acoplamiento Inductivo para la Medida de Pulsos de Corriente de alta Frecuencia. Aplicación para la Medida y Detección de Descargas Parciales. Ph.D. Thesis, Departamento de Ingeniería Eléctrica, Universidadcarlosi i Idemadrid, Getafe, Spain, 2011. [Google Scholar]
- Ramírez, L.G.C.; Jiménez, G.S.A.; Carreño, J.M. Sensores y Actuadores; Grupo Editorial Patria: Mexico City, Mexico, 2014. [Google Scholar]
- Elsisi, M.; Rusidi, A.L.; Tran, M.Q.; Su, C.L.; Ali, M.N. Robust Indoor Positioning of Automated Guided Vehicles in Internet of Things Networks with Deep Convolution Neural Network Considering Adversarial Attacks. IEEE Trans. Veh. Technol. 2024, 73, 7748–7757. [Google Scholar] [CrossRef]
- Sharma, A.; Chauhan, R.C.S.; Kaur, J. Performance Evaluation of SC-FDMA in Fading Channels with PAPR, QAM, and RSSI Analysis. Res. Sq. 2024. [Google Scholar] [CrossRef]
- Zhou, H.; Yang, J.; Deng, S.; Zhang, W. VTIL: A multi-layer indoor location algorithm for RSSI images based on vision transformer. Eng. Res. Express 2024, 6, 015069. [Google Scholar] [CrossRef]
- Chen, F.; Nguyen, H.V.; Taggart, D.A.; Falkner, K.; Rezatofighi, S.H.; Ranasinghe, D.C. ConservationBots: Autonomous aerial robot for fast robust wildlife tracking in complex terrains. J. Field Robot. 2024, 41, 443–469. [Google Scholar] [CrossRef]
- Ozella, L.; Paolotti, D.; Lichand, G.; Rodríguez, J.P.; Haenni, S.; Phuka, J.; Leal-Neto, O.B.; Cattuto, C. Using wearable proximity sensors to characterize social contact patterns in a village of rural Malawi. EPJ Data Sci. 2021, 10, 46. [Google Scholar] [CrossRef]
- Ma, J.H.; Cha, S.H. A human data-driven interaction estimation using IoT sensors for workplace design. Autom. Constr. 2020, 119, 103352. [Google Scholar] [CrossRef]
- Cattuto, C.; Van den Broeck, W.; Barrat, A.; Colizza, V.; Pinton, J.F.; Vespignani, A. Dynamics of person-to-person interactions from distributed RFID sensor networks. PLoS ONE 2010, 5, e11596. [Google Scholar] [CrossRef] [PubMed]
- Zhang, H.; Parsia, B.; Poliakoff, E.; Harper, S. Tracking social behaviour with smartphones in people with Parkinson’s: A longitudinal study. Behav. Inf. Technol. 2023, 1–20. [Google Scholar] [CrossRef]
- Zhang, N.; Liu, L.; Dou, Z.; Liu, X.; Yang, X.; Miao, D.; Guo, Y.; Gu, S.; Li, Y.; Qian, H.; et al. Close contact behaviors of university and school students in 10 indoor environments. J. Hazard. Mater. 2023, 458, 132069. [Google Scholar] [CrossRef]
- Diallo, D.; Schönfeld, J.; Blanken, T.F.; Hecking, T. Dynamic Contact Networks in Confined Spaces: Synthesizing Micro-Level Encounter Patterns Through Human Mobility Models from Real-World Data. Preprints 2024, 2024041998. [Google Scholar] [CrossRef]
- Elmer, T.; Chaitanya, K.; Purwar, P.; Stadtfeld, C. The validity of RFID badges measuring face-to-face interactions. Behav. Res. Methods 2019, 51, 2120–2138. [Google Scholar] [CrossRef] [PubMed]
- Bianco, G.M.; Occhiuzzi, C.; Panunzio, N.; Marrocco, G. A survey on radio frequency identification as a scalable technology to face pandemics. IEEE J. Radio Freq. Identif. 2021, 6, 77–96. [Google Scholar] [CrossRef]
- Elmer, T.; Stadtfeld, C. Depressive symptoms are associated with social isolation in face-to-face interaction networks. Sci. Rep. 2020, 10, 1444. [Google Scholar] [CrossRef] [PubMed]
- Génois, M.; Zens, M.; Oliveira, M.; Lechner, C.M.; Schaible, J.; Strohmaier, M. Combining sensors and surveys to study social interactions: A case of four science conferences. Personal. Sci. 2023, 4, e9957. [Google Scholar] [CrossRef]
- Elhamer, Z.; Suzuki, R.; Arita, T. An IoT-based experimental framework for studying continuous social dynamics in a game-theoretical and face-to-face situation with human participants. Psychologia 2023, 65, 211–232. [Google Scholar] [CrossRef]
- Zhou, S.; Pollard, J.K. Position measurement using Bluetooth. IEEE Trans. Consum. Electron. 2006, 52, 555–558. [Google Scholar] [CrossRef]
- Montanari, A.; Nawaz, S.; Mascolo, C.; Sailer, K. A study of bluetooth low energy performance for human proximity detection in the workplace. In Proceedings of the 2017 IEEE International Conference on Pervasive Computing and Communications (PerCom), Kona, HI, USA, 13–17 March 2017; pp. 90–99. [Google Scholar]
- Yu, W.; Zhang, J.; Cai, J.; Xu, J. A Novel iBeacon Deployment Scheme for Indoor Pedestrian Positioning. In Proceedings of the 2021 IEEE 27th International Conference on Parallel and Distributed Systems (ICPADS), Beijing, China, 14–16 December 2021; pp. 8–17. [Google Scholar]
- Lubis, A.F.; Basari. Proximity-based COVID-19 contact tracing system devices for locally problems solution. In Proceedings of the 2020 3rd International Seminar on Research of Information Technology and Intelligent Systems (ISRITI), Yogyakarta, Indonesia, 10–11 December 2020; pp. 365–370. [Google Scholar]
- Tiwari, K.R.; Singhal, I.; Mittal, A. Smart social distancing solution using bluetooth® low energy. In Proceedings of the 2020 5th International Conference on Computing, Communication and Security (ICCCS), Patna, India, 14–16 October 2020; pp. 1–5. [Google Scholar]
- Raento, M.; Oulasvirta, A.; Eagle, N. Smartphones: An emerging tool for social scientists. Sociol. Methods Res. 2009, 37, 426–454. [Google Scholar] [CrossRef]
- Shimizu, K.; Iwai, M.; Sezaki, K. Social link analysis using wireless beaconing and accelerometer. In Proceedings of the 2013 27th International Conference on Advanced Information Networking and Applications Workshops, Barcelona, Spain, 25–28 March 2013; pp. 33–38. [Google Scholar]
- Girolami, M.; Mavilia, F.; Delmastro, F. A bluetooth low energy dataset for the analysis of social interactions with commercial devices. Data Brief 2020, 32, 106102. [Google Scholar] [CrossRef]
- Girolami, M.; Mavilia, F.; Delmastro, F. Sensing social interactions through BLE beacons and commercial mobile devices. Pervasive Mob. Comput. 2020, 67, 101198. [Google Scholar] [CrossRef]
- Otsason, V.; Varshavsky, A.; LaMarca, A.; De Lara, E. Accurate GSM indoor localization. In International Conference on Ubiquitous Computing; Springer: Berlin/Heidelberg, Germany, 2005; pp. 141–158. [Google Scholar]
- Buede, D.M.; Miller, W.D. The Engineering Design of Systems: Models and Methods; John Wiley & Sons: Hoboken, NJ, USA, 2024. [Google Scholar]
- Honcell. Rechargeable Lithium ion Polymer Battery. 2020. Available online: https://www.lithium-polymer-battery.net/wp-content/uploads/2021/03/LP503759-1200mAh-datasheet.pdf (accessed on 1 February 2024).
- ASIC. TP4056 1 A Standalone Linear Li-Lon Battery Charger with Thermal Regulation in SOP-8. 2018. Available online: https://dlnmh9ip6v2uc.cloudfront.net/datasheets/Prototyping/TP4056.pdf (accessed on 1 February 2024).
- XLSEMI. 400 KHz 42 V 5 A Switching Current Boost DC/DC Converter. 2020. Available online: https://www.ti.com/lit/ds/symlink/lm2596.pdf (accessed on 1 February 2024).
- U-blox. NEO-6 6 GPS Modules Data Sheet. 2011. Available online: https://content.u-blox.com/sites/default/files/products/documents/NEO-6_DataSheet_%28GPS.G6-HW-09005%29.pdf (accessed on 1 February 2024).
- Zeimpekis, V.; Giaglis, G.M.; Lekakos, G. A taxonomy of indoor and outdoor positioning techniques for mobile location services. ACM SIGecom Exch. 2002, 3, 19–27. [Google Scholar] [CrossRef]
- InvenSense. MPU-6000 and MPU-6050 Product Specification. 2013. Available online: https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-6000-Datasheet1.pdf (accessed on 1 February 2024).
- Asaad, S.M.; Maghdid, H.S. A comprehensive review of indoor/outdoor localization solutions in IoT era: Research challenges and future perspectives. Comput. Netw. 2022, 212, 109041. [Google Scholar] [CrossRef]
- Hayward, S.; van Lopik, K.; Hinde, C.; West, A.A. A survey of indoor location technologies, techniques and applications in industry. Internet Things 2022, 20, 100608. [Google Scholar] [CrossRef]
- Siyang, L.; de Lacerda, R.; Fiorina, J. WKNN indoor Wi-Fi localization method using k-means clustering based radio mapping. In Proceedings of the 2021 IEEE 93rd Vehicular Technology Conference (VTC2021-Spring), Helsinki, Finland, 25–28 April 2021; pp. 1–5. [Google Scholar]
- Kawecki, R.; Hausman, S.; Korbel, P. Performance of fingerprinting-based indoor positioning with measured and simulated RSSI reference maps. Remote Sens. 2022, 14, 1992. [Google Scholar] [CrossRef]
- Szyc, K.; Nikodem, M.; Zdunek, M. Bluetooth low energy indoor localization for large industrial areas and limited infrastructure. Ad Hoc Netw. 2023, 139, 103024. [Google Scholar] [CrossRef]
- Boano, C.A.; Tsiftes, N.; Voigt, T.; Brown, J.; Roedig, U. The impact of temperature on outdoor industrial sensornet applications. IEEE Trans. Ind. Inform. 2009, 6, 451–459. [Google Scholar] [CrossRef]
- Luomala, J.; Hakala, I. Effects of temperature and humidity on radio signal strength in outdoor wireless sensor networks. In Proceedings of the 2015 Federated Conference on Computer Science and Information Systems (FedCSIS), Lodz, Poland, 13–16 September 2015; pp. 1247–1255. [Google Scholar]
- Bannister, K.; Giorgetti, G.; Gupta, S. Wireless sensor networking for hot applications: Effects of temperature on signal strength, data collection and localization. In Proceedings of the 5th Workshop on Embedded Networked Sensors (HotEmNets’08), Charlottesville, VA, USA, 2–3 June 2008; pp. 1–5. [Google Scholar]
- Guidara, A.; Fersi, G.; Derbel, F.; Jemaa, M.B. Impacts of Temperature and Humidity variations on RSSI in indoor Wireless Sensor Networks. Procedia Comput. Sci. 2018, 126, 1072–1081. [Google Scholar] [CrossRef]
- Friis, H.T. A note on a simple transmission formula. Proc. IRE 1946, 34, 254–256. [Google Scholar] [CrossRef]
- Heurtefeux, K.; Valois, F. Is RSSI a good choice for localization in wireless sensor network? In Proceedings of the 2012 IEEE 26th International Conference on Advanced Information Networking and Applications, Fukuoka, Japan, 26–29 March 2012; pp. 732–739. [Google Scholar]
- Mohsin, H.; Abdulameer, K.; Khudhair, Z. Study and performance analysis of received signal strength indicator (rssi) in wireless communication systems. Int. J. Eng. Technol. 2017, 6, 195–200. [Google Scholar]
- Xu, J.; Liu, W.; Lang, F.; Zhang, Y.; Wang, C. Distance measurement model based on RSSI in WSN. Wirel. Sens. Netw. 2010, 2, 606. [Google Scholar] [CrossRef]
- Holl, B.; Audard, M.; Nienartowicz, K.; Jevardat de Fombelle, G.; Marchal, O.; Mowlavi, N.; Clementini, G.; De Ridder, J.; Evans, D.W.; Guy, L.P.; et al. Gaia Data Release 2. Summary of the variability processing and analysis results. Astron. Astrophys. 2018, 618, A30. [Google Scholar] [CrossRef]
- Sekara, V.; Lehmann, S. The strength of friendship ties in proximity sensor data. PLoS ONE 2014, 9, e100915. [Google Scholar] [CrossRef] [PubMed]
- Misal, S.R.; Prajwal, S.R.; Niveditha, H.M.; Vinayaka, H.M.; Veena, S. Indoor Positioning System (IPS) Using ESP32, MQTT and Bluetooth. In Proceedings of the 2020 Fourth International Conference on Computing Methodologies and Communication (ICCMC), Erode, India, 11–13 March 2020; pp. 79–82. [Google Scholar] [CrossRef]
- Höchst, J.; Baumgärtner, L.; Kuntke, F.; Penning, A.; Sterz, A.; Sommer, M.; Freisleben, B. Mobile device-to-device communication for crisis scenarios using low-cost lora modems. In Disaster Management and Information Technology: Professional Response and Recovery Management in the Age of Disasters; Springer: Berlin/Heidelberg, Germany, 2023; pp. 235–268. [Google Scholar]
- Sidiropoulos, A.; Bechtsis, D.; Vlachos, D. A Real-Time Locating System with Intelligent Position Correction for Harsh Environments. Available online: https://ssrn.com/abstract=4124531 (accessed on 1 February 2024).
- Quiroga, D.; Diaz, S.; Pastrana, H.F. Integration of Wireless Sensor Networks and IoT for air quality monitoring. In Proceedings of the 2023 IEEE Colombian Caribbean Conference (C3), Barranquilla, Colombia, 22–25 November 2023; pp. 1–6. [Google Scholar]
- Goh, B.S.; Mahamad, A.K.; Saon, S.; Isa, K.; Ameen, H.A.; Ahmadon, M.A.; Yamaguchi, S. IoT Based Indoor Locating System (ILS) using Bluetooth Low Energy (BLE). In Proceedings of the 2020 IEEE International Conference on Consumer Electronics (ICCE), Las Vegas, NV, USA, 4–6 January 2020; pp. 1–4. [Google Scholar] [CrossRef]
- Naheem, K.; Kim, M.S. A Low-Cost Foot-Placed UWB and IMU Fusion-Based Indoor Pedestrian Tracking System for IoT Applications. Sensors 2022, 22, 8160. [Google Scholar] [CrossRef] [PubMed]
- Fernández-Caramés, T.; Rodas, J.; Iglesia, D.; Escudero, C. Estabilización del RSSI en una red de sensores Bluetooth usando múltiples antenas. In Proceedings of the URSI Meeting, Ottawa, ON, Canada, 22–26 July 2007. [Google Scholar]
- Fazio, M.; Celesti, A.; Villari, M. Improving Proximity Detection of Mesh Beacons at the Edge for Indoor and Outdoor Navigation. In Proceedings of the 2020 IEEE 25th International Workshop on Computer Aided Modeling and Design of Communication Links and Networks (CAMAD), Pisa, Italy, 14–16 September 2020; pp. 1–6. [Google Scholar] [CrossRef]
Parameter | Experiment (i) | Experiment (ii) |
---|---|---|
Country | Mexico | Mexico |
City | CDMX | CDMX |
Location | UPIITA-IPN | UPIITA-IPN |
Start time (GMT-6) | 17:04 h | 22:20 h |
End time (GMT-6) | 20:04 h | 20:20 h |
Day | 17 February 2024 | 21 March 2024 |
Wind Speed | 50–59 km/h | 40–60 km/h |
Maximum Environmental Temperature | 24.7 °C | 28.9 °C |
Minimum Environmental Temperature | 10.5 °C | 14.1 °C |
Wifi name | WI-Fi IPN | Wi-Fi IPN |
Internet Speed | 53 Mbps | 58 Mbps |
Presence of humans | Yes | Yes |
Systems | Space | Positioning Systems | Inertial Measurement Unit | Received Signal Strength Indicator | Target BLE | Capacity Number Sensors | Range | Cost | Communication |
---|---|---|---|---|---|---|---|---|---|
[12] | I | IR | No | No | No | 56 | Short | High | Wifi |
[17] | I | RFID | No | No | No | 40 | Short | High | Wifi |
[18] | I | BLE | No | Yes | Yes | 14 | High | High | No |
[51] | I | IPS | No | No | Yes | 1 | Short | Low | MQTT |
[52] | E | No | No | No | Yes | 1 | High | Low | Wifi |
[53] | I | UWB | No | No | Yes | 1 | High | High | Wifi |
[54] | E | No | No | Yes | Yes | 1 | High | Low | MQTT |
[55] | I | IPS | No | Yes | Yes | 1 | Short | Low | Wifi |
[56] | I | UWB | Yes | No | No | 1 | Short | High | IoT |
[57] | I | No | No | Yes | Yes | 6 | High | Low | Wifi |
[58] | I and E | WMN and BLE | No | No | Yes | 6 | High | Low | IoT |
Proposal | E | GPS | Yes | Yes | Yes | 8 | Short | Low | Wifi |
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. |
© 2024 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
Hernández-Heredia, T.K.; Reyes-Manzano, C.F.; Flores-Hernández, D.A.; Ramos-Fernández, G.; Guzmán-Vargas, L. Proximity Sensor for Measuring Social Interaction in a School Environment. Sensors 2024, 24, 4822. https://doi.org/10.3390/s24154822
Hernández-Heredia TK, Reyes-Manzano CF, Flores-Hernández DA, Ramos-Fernández G, Guzmán-Vargas L. Proximity Sensor for Measuring Social Interaction in a School Environment. Sensors. 2024; 24(15):4822. https://doi.org/10.3390/s24154822
Chicago/Turabian StyleHernández-Heredia, Tania Karina, Cesar Fabián Reyes-Manzano, Diego Alonso Flores-Hernández, Gabriel Ramos-Fernández, and Lev Guzmán-Vargas. 2024. "Proximity Sensor for Measuring Social Interaction in a School Environment" Sensors 24, no. 15: 4822. https://doi.org/10.3390/s24154822
APA StyleHernández-Heredia, T. K., Reyes-Manzano, C. F., Flores-Hernández, D. A., Ramos-Fernández, G., & Guzmán-Vargas, L. (2024). Proximity Sensor for Measuring Social Interaction in a School Environment. Sensors, 24(15), 4822. https://doi.org/10.3390/s24154822