Next Article in Journal
GC Snakes: An Efficient and Robust Segmentation Model for Hot Forging Images
Previous Article in Journal
A Novel Friction Compensation Method for Machine Tool Drive Systems in Insufficient Lubrication
Previous Article in Special Issue
Implementation of Sound Direction Detection and Mixed Source Separation in Embedded Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Proximity Sensor for Measuring Social Interaction in a School Environment

by
Tania Karina Hernández-Heredia
1,
Cesar Fabián Reyes-Manzano
2,
Diego Alonso Flores-Hernández
1,
Gabriel Ramos-Fernández
3,4 and
Lev Guzmán-Vargas
1,*
1
Unidad Profesional Interdisciplinaria en Ingeniería y Tecnologías Avanzadas, Instituto Politécnico Nacional, Mexico City 07340, Mexico
2
Tecnológico Nacional de México, Tecnológico de Estudios Superiores de Ixtapaluca, Km. 7 Carretera Ixtapaluca-Coatepec S/N San Juan, Ixtapaluca 56580, Mexico
3
Instituto de Investigaciones en Matemáticas Aplicadas y en Sistemas, Universidad Nacional Autonoma de Mexico, Mexico City 04510, Mexico
4
Centro de Ciencias de la Complejidad, Universidad Nacional Autonoma de Mexico, Mexico City 04510, Mexico
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(15), 4822; https://doi.org/10.3390/s24154822
Submission received: 15 June 2024 / Revised: 17 July 2024 / Accepted: 18 July 2024 / Published: 25 July 2024

Abstract

:
Social interactions are characterized by being very diverse and changing over time. Understanding this diversity and dynamics, as well as their emerging patterns, is of great interest from social, health, and educational perspectives. The development of new devices has been made possible in recent years by advances in applied technology. This paper presents the design and development of a novel device composed of several sensors. Specifically, we propose a proximity sensor integrated by three devices: a Bluetooth sensor, a global positioning system (GPS) unit and an accelerometer. By means of this sensor it is possible to detect the presence of neighboring sensors in various configurations and operating conditions. Profiles based on the Received Signal Strength Indicator (RSSI) exhibit behavior consistent with that reported by empirical relationships. The present sensor is functional in detecting the proximity of other sensors and is thus useful for the identification of interactions between people in relevant contexts such as schools.

1. Introduction

Proximity sensors are devices designed to detect the presence or absence of an object within a certain range without physical contact. In general, the operation of this type of sensor is based on the principle of detecting changes in electromagnetic fields [1,2,3], i.e., changes in the signals emitted and/or received to determine the proximity of an object. These types of sensors have been used in various fields such as automotive, electronics, public safety and robotics, among others [4,5,6,7]. To date, there are several types of proximity sensors ranging from photoelectric to magnetic sensors. In the context of the study of social interactions, the use of sensors to detect interactions has been very useful in several studies [8,9,10,11]. In [12], a wearable sensor based on semi-supervised learning is presented to identify the interaction between university students to analyze the risk of exposure to SARS-CoV-2 transmission. The sensor is attached to the participant through a headband, including an image detector, an IR projector, and an RGB sensor. In addition, the components such as a power source and a microcomputer are mounted in the pocket of a specific jacket, reducing the portability and affecting the participant’s feeling in the tests. Or, they are used to record data to perform various analyses in future studies, as shown in [13]. These sensors provide valuable data on social contact patterns and interactions within communities. Studies have shown that proximity sensors can capture high-resolution temporal data, allowing for detailed analysis of social dynamics and contact patterns [8]. For instance, radio frequency identification (RFID), which uses radio waves to transmit data wirelessly between an RFID transponder and an RFID reader, has been used to identify face-to-face interactions in many recent studies [10,14,15,16]. For example, Génois et al. [17] present the data collected at four science conferences for social interaction studies where the participants use cards and antennas with RFID technology, detecting other sensors in neighborhoods of a 1.5 m radius in face-to-face contact. This tool has the limitation of needing to be in certain areas with no obstacles in its way to be detected in order to obtain accurate measurements. One of the options that has often been used to identify proximity is Bluetooth, especially in cases where it is necessary to identify social interactions in controlled conditions. On the other hand, in [18], a face-to-face interaction study is presented using an IoT-based framework employing Bluetooth communication to represent social closeness and analyze the dynamics of social relationships through various models. Bluetooth proximity sensors provide some advantages such as low power consumption, cost-effectiveness and compatibility with a wide range of devices [19,20,21,22,23]. However, the accuracy of proximity detection can vary depending on factors such as signal strength, interference and the environment in which the sensors are deployed. The use of Bluetooth to identify social interactions has certain limitations because proximity can be misinterpreted as an interaction. However, this information can be extended by adding other sensors that can capture additional information such as angles of orientation, tilt and acceleration, so that if a representative displacement or rotation occurs, this information is useful for the detection of an interaction.
Since there exist limited options to obtain commercially available, low-cost proximity sensors that are adequate to detect social interactions, we present a viable option that fulfills these criteria [24,25,26,27,28]. Of particular interest is identifying social interactions in settings such as schools, where interactions may eventually impact the learning process and school performance. We propose a proximity sensor that consists of the integration of three devices: a Bluetooth sensor, a global positioning system (GPS) unit and an accelerometer. The components chosen in this work are from different companies and of commercial use.
In our tests, using the information obtained by the integrated devices, we have been able to detect the presence or proximity of neighboring sensors in various configurations and operating conditions. Specifically, we were able to reproduce the typical behavior of profiles based on the Received Signal Strength Indicator (RSSI), which is an indicator of the power level received by an antenna or receiver, for certain wireless sensor networks. We tested the sensor’s performance by means of two experiments. The first one consisted in registering the RSSI strength between two sensors, increasing the distance among them, while the second involved measurements from eight sensors working simultaneously, placed in a specific star-type topology. From our experiments, which are based on the established configuration (master-slave) on each sensor, we were able to obtain the following results:
  • High reading quality between the sensors.
  • Minimum amount of loss of data read.
  • Fast detection between sensors.
  • Stability in the sensing range.
The remaining structure of this article is as follows. In Section 2 we present the main characteristics of the elements that constitute the sensor, as well as a brief explanation of their operation. In Section 3, we describe the basic aspects of the sensor operation, followed by the results (Section 4), where we describe the two experiments performed. Finally, we include our conclusions in Section 5.

2. Materials and Methods

The development of the proximity sensor was based on the methodology proposed in [29], which uses a systemic and concurrent approach, allowing performance improvement through constant validation and verification processes. Based on the definition of the problem, we built the functional architecture of the sensor, specifying the functions that the sensor should perform. Subsequently, we developed the physical architecture (see Figure 1), which is a description of the resources that the system comprises, grouped by modules. The sensor is made up of four modules:
  • 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 ( 850 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 3.7 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 3.3 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 ± 2.5 m [34]. This sensor measures longitude and latitude with a sampling rate of 0.2 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].
Finally, once we analyzed the sensors that will integrate our proximity sensor, we carried out a unification process, which ensured that the operation of each module operated in an integrated manner. This is relevant because each of the modules operate with particular characteristics designed by the manufacturer, so that when unifying them, it must be ensured that they work within the range of the specifications indicated by the manufacturer. Figure 2 shows the design of the proximity sensor and the integrated modules.

3. Proximity Sensor Operation

3.1. Sensor Behavior

There are different electronic modules (sensors) on the market that can be integrated for the purposes of our proximity sensor. Therefore, when developing the present sensor, we have considered not only addressing a current need, but also ensuring that it can eventually be used in different conditions. Having a complete sensor that satisfies most of the needs is a complex task, so in our case we have considered the integration of several modules that are efficient in acquiring the key information for the identification of a social interaction.
The grouping of these electronic modules results in our proximity sensor based on parameters such as location, acceleration-gyroscope, and communication; as well as the possibility of bilateral BLE communication and RSSI measurement with other sensors. This information is achieved through Arduino programming and the use of libraries, where the ESP32 performs a scan every 5 s to detect nearby devices with its BLE module in Beacon configuration. This identification is conducted by assigning names in the format set in the programming (e.g., E[ 0 9 ][ 0 9 ][ 0 9 ]). Thus, once the contact is established, the receiving sensor retrieves the name of the identified device, the RSSI of the signal and its MAC address. In addition, it obtains the information registered by the GPS and the IMU, identifying the presence of the other sensors in its vicinity.
The sensor communicates through Bluetooth Low Energy (BLE) and Universal Asynchronous Receiver/Transmitter (UART), which allow asynchronous transmission and reception of data. This enables the connection to the Global Positioning System, allowing it to read signals transmitted by the satellite. On the other hand, the I2C Inter-Integrated Circuit connects to the IMU, which provides motion information (acceleration and angular velocity). All these modules are powered by an energy module containing a Lipo battery connected to a converter and its power module.
Figure 3 shows the flow diagram of the operation of the proximity sensor. In this diagram we can see the operating mode of the sensor and its configuration, which is necessary for an efficient detection of nearby devices. In order to explain the flow diagram in a general way, we begin by mentioning that the programming of the sensor is in series, that is, the programming is indicated in such a way that it must comply with the indications line by line. The way to proceed is as follows: When starting the sensor functions you have the possibility of accessing two modes: (i) Configuration mode or (ii) Data detection. To enter mode (i), it is necessary to detect a physical input (push button), giving access to the sensor and providing the necessary configuration parameters for the sensors. The parameters used are as follows: Name of the network to be connected; Name of the sensor and Port number.
Regarding mode (ii), this consists of configuring the sensors that make up the proximity sensor, that is, configuring the GPS, IMU, and Bluetooth of the ESP32. At the end of this process, the sensor connects to the configured network to send the readings of its next activity. Immediately after, it starts reading and publishing the GPS data (latitude and longitude). It also scans the Bluetooth BLE (name, MAC address, and RSSI(dB)). After this action, the IMU starts to operate and the readings obtained by the IMU are published. To obtain a separation between the readings, a timeout of 2 s is assigned. Then, the Wi-Fi connection is checked again and the cycle is repeated.
As can be seen in Figure 3, the process consists of a serial cycle, which limits the execution of any indication due to interruptions or possible interferences. For this reason, an indicator LED (RGB) was placed at specific points in the configuration, allowing the user to know the current state of the system. In addition, this configuration allows for obtaining power measurements (RSSI), indicating the power that can be registered by the sensors of the receiving system.

3.2. Sensor Calibration and Error Reduction

Due to the limited resolution of RSSI measurements, granularity errors can arise, which refer to inaccuracy or lack of precision in locating a device [36]. This type of error manifests mainly at distances greater than 0.5 m, where measurements tend to blend. To reduce these errors, an averaging filter is applied before calculating the distance to minimize fluctuations and obtain better resolution. In addition, each distance calculation is performed using two sets of measurements, one for each sensor. Another challenge is the multipath effect, where signals collide with obstacles present in the environment and are reflected, merging with the original signal, known as non-line-of-sight (NLOS) [37]. Since the sensors have been designed for people in motion, mapping the environment, as proposed by some authors, is not very functional [38,39]. One solution to overcome this problem is to rely on inertial sensors to obtain an approximation of the person’s direction (based on a natural forward walking motion) and to give more weight to the sensors located just in front. On the other hand, packets are filtered based on the sensor name to avoid analyzing packets sent by the same sensor. Other relevant parameters to consider are weather conditions such as temperature and relative humidity, which influence RSSI measurements [40]. It has been shown that temperature has a negative correlation with RSSI at temperatures above 0 °C, with a loss of 1.3 to 2 dBm for every 10 °C increase [41,42,43]. In contrast, relative humidity (RH) has a positive correlation with RSSI, increasing approximately 0.3 dBm for every 10 °C increase in RH. It has also been shown that at temperatures below 0 °C, these values can be three times higher [42,44].
Finally, to avoid device heterogeneity errors, which occur when there are differences in device hardware, we use modules and components with the highest compatibility based on the manufacturer’s specifications. Additionally, each sensor is calibrated to minimize errors due to device heterogeneity and environmental conditions. The calibration consists of using two sensors (S1 and S2) placed on a table in a classroom (an environment similar to where the future experiments will be performed). S1 is placed at the starting point, and S2 is placed at 1 m with respect to S1. RSSI measurements are registered in the position for 8 minutes. In this way, the reference value is obtained and later used to calibrate the other sensors (see details of the experiment (i) in Section 4).

4. Experimental Results

4.1. Experimental Setup

The RSSI behavior can be modelled by the so-called Friis transmission equation [45,46], which establishes the behaviour of the power of the signal recorded by a receiver as a function of distance. Formally, the Friis equation is given by R S S I ( D ) = P r 1 κ log 10 ( D ) , where P r 1 is the received power at one meter, κ is a “path loss” parameter related with the transmission media and D is the distance. To empirically characterize the behavior of signal strength as a function of distance, we have performed two controlled experiments: (i) when a pair of sensors are placed on the ground and controlling the distance between them; and (ii) when a group of eight sensors are placed on the ground in a predetermined network-like configuration.
The physical and time conditions of the scenario where the experiments were carried out can be seen in Table 1:

4.2. Experiment (i)

Two devices are placed on the ground (Sensor 1 and Sensor 2), where we can control the relative distance between them, as shown in Figure 4. Our strategy is based on recording the interactions between the sensors during a certain time interval (8 mins.). Initially, they were placed 10 cm apart and this distance is increased by 10 cm, up to a maximum distance of 2 m. The resulting measurements are presented in Figure 5 and Figure 6. In particular, Figure 5 shows the signal strength of the signal detected by sensor 1 coming from sensor 2 while the opposite is plotted in Figure 6. We observe that the measured signal intensity fluctuates with a representative mean value. For small distance values ( D 10 cm), the signal strength is relatively high −40 dBm, and with increasing distance, the signal strength decreases to values close to −80 dBm. We observe that the RSSI response provided values ranging from −40 to −90 dBm. According to RSSI quality tables [47], values greater than −65 dBm represent high quality, −65 dBm to −75 dBm represent good quality, −75 dBm to −85 dBm represent the limit of useful quality, and lower values represent poor data. Another important parameter for calibration purposes is the RSSI value when the separation between the sensors is 1 m. As shown in Figure 6, the average value R S S I 1 m = 68.07 ± 2.27 represents the reference value for the calibration of the other sensors.
For a better identification of the signal intensity decay, we have calculated the mean value and standard deviation of each interval shown in Figure 7. It can be seen that both measurements present a similar profile as the distance increases. Then, using the mean values of the signal intensity and considering the different values of the distance, we performed a linear regression to identify the constants that characterise the straight line in a semi-logarithmic plane ( R S S I = b + a log ( D ) ). These results are shown in Figure 8. The calculations lead to the following values for the parameters: a 1 = 1.16 and b 1 = 7.25 ( R 2 = 0.879 ) for the data detected by S1, while the data sensed by S2 result in a 2 = 1.10 and b 2 = 7.26 ( R 2 = 0.851 ); see Figure 8b. These responses agree with the values predicted by the Friis equation [46]. In particular, a 1 = 1.16 and a 2 = 1.10 correspond approximately to the values of the path loss parameter given in refs. [46,47,48].
It is important to mention that the behavior of the signal intensity measured by the device allowed us to determine an effective threshold value (in dBm) to identify sensors that, based on the received values, can be distinguishable and represent a social interaction. In our case, we choose RSSI = 75 dBm as the threshold value, which is approximately 1.5 m. The interval 0–1.5 m is in general agreement with previous studies suggesting that most social interactions occur within this interval [49,50].

4.3. Experiment (ii)

To test the effectiveness of our device in a more realistic context, we have considered a non-simple configuration of a group of sensors, useful for statistical processing and elementary data verification. The configuration consists of eight sensors deployed in a star-like configuration (see Figure 9a). This configuration allows for observing the behavior of these sensors as the distance between sensors increases (as proposed below) and is a representation of sensor arrays in a real situation of social interaction. The distance between sensors of immediate neighbors is the same; initially, they are placed at 0 m between first neighbors, and then this distance increases by 0.20 m until it reaches 1.20 m (see Figure 9a), for a duration of 10 min per distance. This results in five different distance values.
The results of the number of measurements from three representative sensors for different values of distance are depicted in Figure 9b–d. Then, the distance between the neighboring sensors is increased while keeping the initial topology. As expected, when the distance between the sensors is small ( D < 0.20 ), most of the sensors detect each other (see Figure 9a), including those located at opposite ends of the array (S7 and S12). In contrast, for larger distances between first neighboring sensors ( D > 0.30 ) the closest neighboring sensors still register the highest power intensity, and some sensors no longer identify the presence of distant sensors.
For the case when the neighboring sensors are very close, most of the sensor pairs detect each other, as the distance increases, distant sensors are no longer detected and the number of measurements decreases significantly. To test the overall validity of the RSSI behavior in our sensor array, we considered all readings from all pairs of sensors for a given distance and calculate the mean values as a function of the distance. The results are shown in Figure 9c. As it can be seen in this semi-log plot, the intensity decays as the distance increases with a rate modulated by constants that can be determined with a linear regression (see figure caption for details). We also note that, as in experiment (i), there is a good agreement with the empirical Friis equation.
It is important to note that for this experiment, the information recorded by the GPS sensor and the accelerometer is complementary since the sensors were kept static and at a predetermined distance. In this sense, the information provided by the GPS and the accelerometer will be useful when considering dynamic situations.

4.4. Comparison with Other Sensors

The present sensor design allows the user to freely place the sensors at different distances. We have analyzed different configurations in which the range of distance between sensors is varied, which allowed us to determine sensing ranges that are useful for the identification of a proximity in a real context of social interaction. The data recorded by the sensors are consistent with the behavior reported for wireless sensor networks. Specifically, Table 2 presents a comparison of capabilities and elements between similar sensors reported in the literature and the current proposal. The proposed sensor with these features offers improved performance, range and connectivity, as well as acceptable power consumption. As shown in Table 2, several similar sensor developments were designed for use in different contexts but share similarities in design and operation.

5. Conclusions

In this paper we have presented a proximity sensing system, based on the integration of wireless devices, position sensors, and motion communication devices. The proposed embedded system is robust and can record sensor proximity in different configurations. Also, it can work in a stand-alone manner, remotely and with low cost. We have performed controlled tests with predetermined configurations, where we have been able to verify that neighboring sensors detect each other up to a certain distance threshold, relevant for normal social interactions between people. Additionally, we have verified that the intensity of the activity of the sensors, in terms of the distance between them, approximately follows the behavior predicted by well-accepted theoretical models. The system is functional and could potentially have a variety of uses. Although the proposed sensor represents an important step in collecting valuable information about social interactions in a school context, several aspects deserve further exploration. One possibility for future research could be to deploy the sensors in a wearable form (badge) during school hours on a group of undergraduate students in at least three stages of their studies. From this information, we propose to construct interaction networks, which would potentially allow a more complete understanding of how interaction patterns impact school performance, taking into account the dynamic nature of social interaction networks as the vehicle for the flow of information or knowledge among students. In addition, incorporating qualitative research methods, such as interviews and questionnaires, could provide a deeper understanding of relationships among students. By incorporating the nuances of their interactions and behaviors in a qualitative manner, it is possible to gain valuable insights into the underlying mechanisms that impact possible correlations between interaction patterns and school performance outcomes. In conclusion, our sensor represents a foundation for future research to contribute to a better understanding of the complex interactions between students and their possible relationship to school learning outcomes.

Author Contributions

Conceptualization, T.K.H.-H., C.F.R.-M., G.R.-F. and L.G.-V.; methodology, T.K.H.-H., C.F.R.-M., D.A.F.-H., G.R.-F. and L.G.-V.; software, T.K.H.-H. and C.F.R.-M.; validation, T.K.H.-H., C.F.R.-M., D.A.F.-H., G.R.-F. and L.G.-V.; formal analysis, T.K.H.-H., C.F.R.-M., D.A.F.-H., G.R.-F. and L.G.-V.; investigation, T.K.H.-H., C.F.R.-M., D.A.F.-H., G.R.-F. and L.G.-V.; writing—original draft preparation, T.K.H.-H. and C.F.R.-M.; writing—review and editing, T.K.H.-H., C.F.R.-M., D.A.F.-H., G.R.-F. and L.G.-V.; visualization, T.K.H.-H., C.F.R.-M. and D.A.F.-H.; supervision, C.F.R.-M., D.A.F.-H., G.R.-F. and L.G.-V.; All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Consejo Nacional de Humanidades, Ciencias y Tecnologías (CONAHCYT, Mexico), grant CF-2019-263958 and Secretaría de Investigación y Progrado, Instituto Politécnico Nacional, Mexico.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data generated and analyzed in this study are included in this published article or are available from the corresponding author upon request.

Acknowledgments

We thank COFAA-IPN, EDI-IPN and CONAHCYT-Mexico for the partial support received during the development of this work.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. 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]
  2. 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]
  3. 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]
  4. 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]
  5. 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]
  6. 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]
  7. 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]
  8. 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]
  9. 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]
  10. 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]
  11. 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]
  12. 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]
  13. 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]
  14. 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]
  15. 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]
  16. 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]
  17. 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]
  18. 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]
  19. Zhou, S.; Pollard, J.K. Position measurement using Bluetooth. IEEE Trans. Consum. Electron. 2006, 52, 555–558. [Google Scholar] [CrossRef]
  20. 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]
  21. 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]
  22. 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]
  23. 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]
  24. Raento, M.; Oulasvirta, A.; Eagle, N. Smartphones: An emerging tool for social scientists. Sociol. Methods Res. 2009, 37, 426–454. [Google Scholar] [CrossRef]
  25. 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]
  26. 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]
  27. 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]
  28. 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]
  29. Buede, D.M.; Miller, W.D. The Engineering Design of Systems: Models and Methods; John Wiley & Sons: Hoboken, NJ, USA, 2024. [Google Scholar]
  30. 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).
  31. 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).
  32. 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).
  33. 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).
  34. 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]
  35. 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).
  36. 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]
  37. 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]
  38. 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]
  39. 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]
  40. 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]
  41. 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]
  42. 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]
  43. 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]
  44. 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]
  45. Friis, H.T. A note on a simple transmission formula. Proc. IRE 1946, 34, 254–256. [Google Scholar] [CrossRef]
  46. 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]
  47. 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]
  48. 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]
  49. 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]
  50. Sekara, V.; Lehmann, S. The strength of friendship ties in proximity sensor data. PLoS ONE 2014, 9, e100915. [Google Scholar] [CrossRef] [PubMed]
  51. 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]
  52. 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]
  53. 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).
  54. 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]
  55. 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]
  56. 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]
  57. 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]
  58. 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]
Figure 1. Physical architecture of the proximity sensor, including electrical power connections (red arrows) and data transfer (blue arrows).
Figure 1. Physical architecture of the proximity sensor, including electrical power connections (red arrows) and data transfer (blue arrows).
Sensors 24 04822 g001
Figure 2. Design of the electronic hardware for the modules integration, top view (left) and bottom view (right).
Figure 2. Design of the electronic hardware for the modules integration, top view (left) and bottom view (right).
Sensors 24 04822 g002
Figure 3. Flow diagram showing the configuration and working modes of the sensor.
Figure 3. Flow diagram showing the configuration and working modes of the sensor.
Sensors 24 04822 g003
Figure 4. Image of the physical location of the sensors S1 and S2 during the measurement of the mutual signals for two distance values.
Figure 4. Image of the physical location of the sensors S1 and S2 during the measurement of the mutual signals for two distance values.
Sensors 24 04822 g004
Figure 5. RSSI signal strength for several distance (meters) values and time intervals. (a) Scans of sensor 1 using the data emitted by sensor 2. The values shown are measurements per distance performed every five seconds during eighth-minute time intervals. (b) Similar to (a), but showing the mean values obtained from a moving average with one-minute windows.
Figure 5. RSSI signal strength for several distance (meters) values and time intervals. (a) Scans of sensor 1 using the data emitted by sensor 2. The values shown are measurements per distance performed every five seconds during eighth-minute time intervals. (b) Similar to (a), but showing the mean values obtained from a moving average with one-minute windows.
Sensors 24 04822 g005
Figure 6. RSSI signal strength for several distance (meters) values and time intervals. (a) Scans of sensor 2 using the data emitted by sensor 1. The values shown are measurements per distance performed every five seconds during eight-minute time intervals. The reference value R S S I 1 m 68 is also shown, which corresponds to the average value at a distance of 1 m. (b) Similar to (a), but showing the mean values obtained from a moving average with one-minute windows.
Figure 6. RSSI signal strength for several distance (meters) values and time intervals. (a) Scans of sensor 2 using the data emitted by sensor 1. The values shown are measurements per distance performed every five seconds during eight-minute time intervals. The reference value R S S I 1 m 68 is also shown, which corresponds to the average value at a distance of 1 m. (b) Similar to (a), but showing the mean values obtained from a moving average with one-minute windows.
Sensors 24 04822 g006
Figure 7. Signal strength vs. distance for the measurements from sensors S1 and S2. We observe that the signal intensity decreases as the distance increases. The vertical bars represent the standard deviation over the set of measurements.
Figure 7. Signal strength vs. distance for the measurements from sensors S1 and S2. We observe that the signal intensity decreases as the distance increases. The vertical bars represent the standard deviation over the set of measurements.
Sensors 24 04822 g007
Figure 8. (a) Logarithmic-linear representation of the signal strength (RSSI) vs. distance for data obtained from sensors S1 and S2. This plot shows that the decay is logarithmic with an approximate linear behavior in this semi-log plane. (b) The calculations of the linear regression yield the values for the slopes: a 1 = 1.16 ( R 2 = 0.879 ) for S1 and a 2 = 1.10 ( R 2 = 0.851 ) for S2.
Figure 8. (a) Logarithmic-linear representation of the signal strength (RSSI) vs. distance for data obtained from sensors S1 and S2. This plot shows that the decay is logarithmic with an approximate linear behavior in this semi-log plane. (b) The calculations of the linear regression yield the values for the slopes: a 1 = 1.16 ( R 2 = 0.879 ) for S1 and a 2 = 1.10 ( R 2 = 0.851 ) for S2.
Sensors 24 04822 g008
Figure 9. (a) Array of sensors in a pre-established star-like configuration. Initially, the distance between the nearest neighboring sensors is set at 0.2 m, then increased in 0.2 m intervals, until 1.2 m is reached. (bd) Histograms of the number of measurements by S1 for three distance values. (e) Behavior of the average signal strength (RSSI) of all sensors versus distance in a semi-logarithmic plane. The solid line represents a linear regression that leads to the slope a r = 1.3 ( R 2 = 0.90 ).
Figure 9. (a) Array of sensors in a pre-established star-like configuration. Initially, the distance between the nearest neighboring sensors is set at 0.2 m, then increased in 0.2 m intervals, until 1.2 m is reached. (bd) Histograms of the number of measurements by S1 for three distance values. (e) Behavior of the average signal strength (RSSI) of all sensors versus distance in a semi-logarithmic plane. The solid line represents a linear regression that leads to the slope a r = 1.3 ( R 2 = 0.90 ).
Sensors 24 04822 g009
Table 1. Stage characteristic table.
Table 1. Stage characteristic table.
ParameterExperiment (i)Experiment (ii)
CountryMexicoMexico
CityCDMXCDMX
LocationUPIITA-IPNUPIITA-IPN
Start time (GMT-6)17:04 h22:20 h
End time (GMT-6)20:04 h20:20 h
Day17 February 202421 March 2024
Wind Speed50–59 km/h40–60 km/h
Maximum Environmental Temperature24.7 °C28.9 °C
Minimum Environmental Temperature10.5 °C14.1 °C
Wifi nameWI-Fi IPNWi-Fi IPN
Internet Speed53 Mbps58 Mbps
Presence of humansYesYes
Table 2. List of sensors and their main characteristics reported in the literature. The first three rows correspond to sensors designed to identify social proximity or social interaction. The characteristics of the sensors include the space (indoor or outdoor) where the sensor was developed; the type of positioning system used by the sensor; as well as the type of internal measurement system for the systems; another parameter observed is the intensity indicator of the signal received. In this case, the question was whether it is used or not?. Another relevant data point is the number of sensors detected or the number of cards that maintain the communication. In addition to the range of coverage that the sensor has, we consider the following parameters: from 0 m to 1 m (short) or >1 m (high), and the cost.
Table 2. List of sensors and their main characteristics reported in the literature. The first three rows correspond to sensors designed to identify social proximity or social interaction. The characteristics of the sensors include the space (indoor or outdoor) where the sensor was developed; the type of positioning system used by the sensor; as well as the type of internal measurement system for the systems; another parameter observed is the intensity indicator of the signal received. In this case, the question was whether it is used or not?. Another relevant data point is the number of sensors detected or the number of cards that maintain the communication. In addition to the range of coverage that the sensor has, we consider the following parameters: from 0 m to 1 m (short) or >1 m (high), and the cost.
SystemsSpacePositioning SystemsInertial Measurement UnitReceived Signal Strength IndicatorTarget BLECapacity Number SensorsRangeCostCommunication
 [12]IIRNoNoNo56ShortHighWifi
 [17]IRFIDNoNoNo40ShortHighWifi
 [18]IBLENoYesYes14HighHighNo
 [51]IIPSNoNoYes1ShortLowMQTT
 [52]ENoNoNoYes1HighLowWifi
 [53]IUWBNoNoYes1HighHighWifi
 [54]ENoNoYesYes1HighLowMQTT
 [55]IIPSNoYesYes1ShortLowWifi
 [56]IUWBYesNoNo1ShortHighIoT
 [57]INoNoYesYes6HighLowWifi
 [58]I and EWMN and BLENoNoYes6HighLowIoT
ProposalEGPSYesYesYes8ShortLowWifi
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.

Share and Cite

MDPI and ACS Style

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

AMA Style

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 Style

Herná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

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop