Design and Implementation of a Real-Time Crowd Monitoring System Based on Public Wi-Fi Infrastructure: A Case Study on the Sri Chiang Mai Smart City
Abstract
:1. Introduction
2. Literature Review
3. A Case Study on the Sri Chiang Mai Smart City
4. Materials and Methods
4.1. Sensing Domain
4.2. Communication Domain
4.3. Computing Domain
4.3.1. Data Processing
4.3.2. Data Visualization
4.3.3. Data Analysis
- The initial analysis focuses on the monthly count of individuals detected by Wi-Fi in the entire Sri Chiang Mai City area along the Mekong River during the available timeframe. This research aimed to determine the general frequency and quantity of persons in the region, as well as to detect any peak times;
- The second analysis deals with understanding the busiest periods for people in the area in terms of time, days, and months. This is performed in order to learn if there is some variance that is associated with the different timeframes.
5. Results
- Since the beginning of the data collection on 22 May 2020, and until the present month, there has been a consistent rise in the total number of residents of the area. It is important to note that in these timeframes—as shown in Figure 12, as a result of a change in the form of the free Wi-Fi login that was more convenient and easier in late July—there has been a significant increase in the number of users who have logged in. In addition, replacing six of the APs from the total available qualified the system to support more users in mid-September;
- The hours of significant presence in the area took place at 13:00. Mainly, the arrival of people to the APs’ installed area began after lunch and continued until 15:00, as in Figure 13. After this, the recorded presence began to decrease until 16:00, after which it will begin to increase until 18:00, and finally it will continue to decrease gradually. Nonetheless, the observations can be explained by the characteristics of the area, e.g., after lunch. At six o’clock in the evening, the area will be at its highest density population. People who are outside for activities, including running, aerobic dancing, resting, eating, and drinking, in the general area of the Mekong River’s banks until 21:00, will then, eventually, return to their accommodations.
- The majority of people were always collected by the APs installed in front of the Fresh Market. This is because of the fact that this place is where the primary source of variety in food ingredients exists, which is essential for the locals and why they frequently attend this area. As shown in Figure 1, this site is not located on the banks of the Mekong River, as the other eight areas are. Therefore, it is clear that these data have nothing to do with the reasons for the number of people in the other areas. Instead, it is where people must go for the reasons listed above; thus, there are more people living there than the other areas;
- If only the eight points of interest along the banks of the Mekong River are considered, the area in front of Hat Pathum temple has the highest density of people. This is due to the fact that this area is the connection to the city’s main road, where people who come to participate in events along the Mekong River merge. In particular, the area immediately in front of the Had Pathum temple is extremely crowded with people who visit. The people of Si Chiang Mai consider it to be an important temple due to its stunning architecture; specifically, its beautiful white Buddha statues and Naga statues.
- The APs were installed outside the building, without any shielding from the weather, and they were able to detect people walking in front of the structure. This area is one of the main pathways to the front of the Had Pathum temple, indicating that the APs for the Naga courtyard and Sri Chiang Mai Community Health Park were not only capturing the data of people inside the area, but also those passing by it;
- It is also possible to allocate uninteresting areas, such as the Klong-soi-1 Bridge and the Village Fund Building, to attract people. However, those areas such as the Sri Chiang Mai Community Health Park, Naga Courtyard, and Hat Pathum Temple are all unique and continue to attract people to visit. This proves that the physical nature of the area, which includes points of interest and facilities such as gardens, restaurants, shops, etc., will directly affect the number of people who will visit those areas;
- It is worth noting that the number of visitors to Boeng Wiang Courtyard, which is adjacent to Wat Hat Pathum, is approximately less than three times that of Hat Pathum Temple. Personal investigations revealed that the Boeng Wiang Courtyard is a large courtyard that is exclusively utilized for the hosting of municipal events. Based on the data collected for five months, if only one event had been held, such as the Bun Bang Fai Festival from 23 to 29 May 2022, then the number of people in the Boeng Wiang Courtyard area would have increased.
6. Discussion
- Events can attract people to visit urban spaces more frequently;
- Aesthetic and facility-rich areas have a higher chance of being utilized by visitors;
- Improved free Wi-Fi systems tend to register a continuous presence of people in the areas, indicating that they are being used;
- The three locations examined in our research were utilized the most frequently between 18:00 and 20:59, by people who live or work near these locations;
- Locals are the primary users of these areas, as evidenced by the increase in the number of people starting from 15:00 to 18:00, after which the number starts to decrease throughout the day.
7. Conclusions and Future Work
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Nilsen, P.; Seing, I.; Ericsson, C.; Andersen, O.; Stefánsdóttir, N.T.; Tjørnhøj-Thomsen, T.; Kallemose, T.; Kirk, J.W. Implementing social distancing policy measures in the battle against the coronavirus: Protocol of a comparative study of Denmark and Sweden. Implement. Sci. Commun. 2020, 1, 77. [Google Scholar] [CrossRef]
- United Nations Thailand. Social Impact Assessment of COVID-19 in Thailand. Available online: https://www.unicef.org/thailand/media/5071/file/SocialImpactAssessmentofCOVID-19inThailand.pdf (accessed on 28 February 2022).
- Rattanapongsen, P.; Rakhang, C.; Pongthitikhuna, K.; d’Almeid, T.; Adunyarittigun, D. The Impact of Thaichana Application on Customer Purchasing Behavior in Clothing Stores. J. Bus. Adm. Maejo Univ. 2021, 3, 1–16. [Google Scholar] [CrossRef]
- Megahed, N.A.; Abdel-Kader, R.F. Smart Cities after COVID-19: Building a conceptual framework through a multidisciplinary perspective. Sci. Afr. 2022, 17, e01374. [Google Scholar] [CrossRef] [PubMed]
- Berenguer, A.; Ros, D.F.; Gómez-Oliva, A.; Ivars-Baidal, J.A.; Jara, A.J.; Laborda, J.; Mazón, J.-N.; Perles, A. Crowd Monitoring in Smart Destinations Based on GDPR-Ready Opportunistic RF Scanning and Classification of WiFi Devices to Identify and Classify Visitors’ Origins. Electronics 2022, 11, 835. [Google Scholar] [CrossRef]
- Nguyen, C.T.; Saputra, Y.M.; Van Huynh, N.; Nguyen, N.-T.; Khoa, T.V.; Tuan, B.M.; Nguyen, D.N.; Hoang, D.T.; Vu, T.X.; Dutkiewicz, E.; et al. A Comprehensive Survey of Enabling and Emerging Technologies for Social Distancing—Part I: Fundamentals and Enabling Technologies. IEEE Access 2020, 8, 153479–153507. [Google Scholar] [CrossRef]
- Nguyen, C.T.; Saputra, Y.M.; Van Huynh, N.; Nguyen, N.-T.; Khoa, T.V.; Tuan, B.M.; Nguyen, D.N.; Hoang, D.T.; Vu, T.X.; Dutkiewicz, E.; et al. A Comprehensive Survey of Enabling and Emerging Technologies for Social Distancing—Part II: Emerging Technologies and Open Issues. IEEE Access 2020, 8, 154209–154236. [Google Scholar] [CrossRef]
- Singh, U.; Determe, J.-F.; Horlin, F.; De Doncker, P. Crowd Monitoring: State-of-the-Art and Future Directions. IETE Tech. Rev. 2021, 38, 578–594. [Google Scholar] [CrossRef]
- Murad, S.S.; Yussof, S.; Badeel, R. Wireless Technologies for Social Distancing in the Time of COVID-19: Literature Review, Open Issues, and Limitations. Sensors 2022, 22, 2313. [Google Scholar] [CrossRef] [PubMed]
- Ansari, M.A.; Singh, D.K. Monitoring social distancing through human detection for preventing/reducing COVID spread. Int. J. Inf. Technol. 2021, 13, 1255–1264. [Google Scholar] [CrossRef] [PubMed]
- Duives, D.C.; Van Oijen, T.; Hoogendoorn, S.P. Enhancing Crowd Monitoring System Functionality through Data Fusion: Estimating Flow Rate from Wi-Fi Traces and Automated Counting System Data. Sensors 2020, 20, 6032. [Google Scholar] [CrossRef]
- Du, R.; Santi, P.; Xiao, M.; Vasilakos, A.V.; Fischione, C. The Sensable City: A Survey on the Deployment and Management for Smart City Monitoring. IEEE Commun. Surv. Tutor. 2019, 21, 1533–1560. [Google Scholar] [CrossRef]
- Baena, E.; Fortes, S.; Alay, Ö.; Xie, M.; Lønsethagen, H.; Barco, R. Cellular Network Radio Monitoring and Management through Virtual UE Probes: A Study Case Based on Crowded Events. Sensors 2021, 21, 3404. [Google Scholar] [CrossRef] [PubMed]
- Alghamdi, N.S.; Khan, M.A.; Karamti, H.; Nawaz, N.A. Internet of Things (IoT) enabled smart queuing model to support massive safe crowd at Ka’aba. Alex. Eng. J. 2022, 61, 12713–12723. [Google Scholar] [CrossRef]
- Filippoupolitis, A.; Oliff, W.; Loukas, G. Bluetooth Low Energy Based Occupancy Detection for Emergency Management. In Proceedings of the 15th International Conference on Ubiquitous Computing and Communications and 2016 International Symposium on Cyberspace and Security (IUCC-CSS), Granada, Spain, 14–16 December 2016; pp. 31–38. [Google Scholar] [CrossRef]
- Tekler, Z.D.; Low, R.; Gunay, B.; Andersen, R.K.; Blessing, L. A scalable Bluetooth Low Energy approach to identify occupancy patterns and profiles in office spaces. Build. Environ. 2020, 171, 106681. [Google Scholar] [CrossRef]
- Collotta, M.; Pau, G. A Novel Energy Management Approach for Smart Homes Using Bluetooth Low Energy. IEEE J. Sel. Areas Commun. 2015, 33, 2988–2996. [Google Scholar] [CrossRef]
- Tekler, Z.D.; Low, R.; Yuen, C.; Blessing, L. Plug-Mate: An IoT-based occupancy-driven plug load management system in smart buildings. Build. Environ. 2022, 223, 109472. [Google Scholar] [CrossRef]
- Chilipirea, C.; Dobre, C.; Baratchi, M.; van Steen, M. Identifying Movements in Noisy Crowd Analytics Data. In Proceedings of the 2018 19th IEEE International Conference on Mobile Data Management (MDM), Aalborg, Denmark, 26–28 June 2018; pp. 161–166. [Google Scholar] [CrossRef] [Green Version]
- Tekler, Z.D.; Chong, A. Occupancy prediction using deep learning approaches across multiple space types: A minimum sensing strategy. Build. Environ. 2022, 226, 109689. [Google Scholar] [CrossRef]
- Longo, E.; Redondi, A.E.; Cesana, M. Accurate occupancy estimation with WiFi and bluetooth/BLE packet capture. Comput. Networks 2019, 163, 106876. [Google Scholar] [CrossRef]
- Determe, J.-F.; Azzagnuni, S.; Singh, U.; Horlin, F.; De Doncker, P. Monitoring Large Crowds With WiFi: A Privacy-Preserving Approach. IEEE Syst. J. 2022, 16, 2148–2159. [Google Scholar] [CrossRef]
- Vega-Barbas, M.; Álvarez-Campana, M.; Rivera, D.; Sanz, M.; Berrocal, J. AFOROS: A Low-Cost Wi-Fi-Based Monitoring System for Estimating Occupancy of Public Spaces. Sensors 2021, 21, 3863. [Google Scholar] [CrossRef]
- Zhou, Y.; Lau, B.P.L.; Koh, Z.; Yuen, C.; Ng, B.K.K. Understanding Crowd Behaviors in a Social Event by Passive WiFi Sensing and Data Mining. IEEE Internet Things J. 2020, 7, 4442–4454. [Google Scholar] [CrossRef] [Green Version]
- Singh, U.; Determe, J.-F.; Horlin, F.; De Doncker, P. Crowd Forecasting Based on WiFi Sensors and LSTM Neural Networks. IEEE Trans. Instrum. Meas. 2020, 69, 6121–6131. [Google Scholar] [CrossRef] [Green Version]
- Boulanger, S.O.M.; Longo, D.; Roversi, R. Data Evidence-Based Transformative Actions in Historic Urban Context—The Bologna University Area Case Study. Smart Cities 2020, 3, 1448–1476. [Google Scholar] [CrossRef]
- ROCK Official Website. Available online: https://rockproject.eu (accessed on 15 November 2022).
- Data Fusion Research Centre (DFRC) Official Website. Available online: http://www.dfrc.ch (accessed on 15 November 2022).
- Alorda-Ladaria, B.; Ruiz-Pérez, M.; Ramos, V. A Near Real-Time Monitoring System Using Public WI-FI Data to Evaluate COVID-19 Social Distance Measures. Electronics 2022, 11, 2897. [Google Scholar] [CrossRef]
- Cisco Meraki Location Analytics Introduction. 2018, p. 1. Available online: https://documentation.meraki.com/MR/Monitoring_and_Reporting/Location_Analytics (accessed on 14 November 2022).
- Low, R.; Tekler, Z.D.; Cheah, L. An End-to-End Point of Interest (POI) Conflation Framework. ISPRS Int. J. Geo-Inf. 2021, 10, 779. [Google Scholar] [CrossRef]
- Zhao, P.; Luo, A.; Liu, Y.; Xu, J.; Li, Z.; Zhuang, F.; Sheng, V.S.; Zhou, X. Where to Go Next: A Spatio-Temporal Gated Network for Next POI Recommendation. IEEE Trans. Knowl. Data Eng. 2022, 34, 2512–2524. [Google Scholar] [CrossRef]
- Lu, E.H.-C.; Chen, H.-S.; Tseng, V.S. An Efficient Framework for Multirequest Route Planning in Urban Environments. IEEE Trans. Intell. Transp. Syst. 2017, 18, 869–879. [Google Scholar] [CrossRef]
Feature | [22] | [23] | [24] | [25] | [26] | [29] | This Work |
---|---|---|---|---|---|---|---|
Specific device | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - |
Practical usage | ✓ | - | - | - | ✓ | ✓ | ✓ |
Real-time monitoring | - | - | - | - | - | ✓ | ✓ |
Real-time monitoring available | - | - | - | - | - | - | ✓ |
Behaviors analysis | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Public dataset available | - | - | - | - | ✓ | - | ✓ |
No. | Site | Lat, Long |
---|---|---|
1 | Klong-soi-1 Bridge | 17.96530959 N, 102.56014981 E |
2 | Village Fund building | 17.96298473 N, 102.56672917 E |
3 | In front of Chang Phueak Temple | 17.95974745 N, 102.57895782 E |
4 | In front of Klang Temple | 17.95912645 N, 102.58417066 E |
5 | Sri Chiang Mai Community Health Park | 17.9589032 N, 102.58734054 E |
6 | Naga Courtyard | 17.95900134 N, 102.5889415 E |
7 | In front of Had Pathum Temple | 17.95900381 N, 102.59049874 E |
8 | Boeng Wiang Courtyard | 17.95866402 N, 102.59089603 E |
9 | In front of Fresh Market | 17.9568754 N, 102.585087 E |
No. | Site | Event Title | The Area’s Surroundings and Services |
---|---|---|---|
1 | Klong-soi-1 Bridge | No | The surrounding area is where tomatoes are planted, and it marks the end of the running lane. It is opposite Laos National Airport. |
2 | Village Fund building | No | Small buildings where people in the community can come together to plan activities and sell farm goods to other people in the community. |
3 | In front of Chang Phueak Temple | No | In the front of the temple there are about five places for food and beverages, as well as a store that sells used clothes. |
4 | In front of Klang Temple | No | None |
5 | Sri Chiang Mai Community Health Park | No | People can relax in the gardens, and there are a great deal of food options and drinks. The neighborhood elementary school is located directly across from the garden. |
6 | Naga Courtyard | From 23 May to 29 May 2022 the Bun Bang Fai Festival will be held in Boeng Wiang Courtyard, which is close to this area. | Large statues of Naga and the beautiful gardens make this area a landmark for everyone in the town. There is also a great deal of food options and drinks. |
7 | In front of Had Pathum Temple | From 23 May to 29 May 2022 the Bun Bang Fai Festival will be held in Boeng Wiang Courtyard, which is close to this area. | The principal Buddhist landmark is the temple, which contains exquisite white Buddha and Naga statues. On the opposite side of the temple is a large courtyard where locals and visitors participate in events and concerts. There is also a great deal of food options and drinks. |
8 | Boeng Wiang Courtyard | From 23 May to 29 May 2022 the Bun Bang Fai Festival will be held in this area. | This is a very large courtyard that serves as a venue for a variety of events, including annual events and major city events. It also serves as a location for evening exercises. |
9 | In front of Fresh Market | No | This is the only place in town that sells raw materials for cooking. Available in the morning and afternoon of every day. |
Timeframe (7 Days) | Unique People | Event | Improvement of the Free Wi-Fi System? |
---|---|---|---|
23–29 May 2022 | 9564 | Yes (Bun Bang Fai Festival) | no |
23–29 June 2022 | 4064 | no | no |
23–29 July 2022 | 5404 | no | no |
23–29 August 2022 | 8731 | no | yes (easy to connect) |
23–29 September 2022 | 8464 | no | yes (change APs) |
Timeframe (7 Days) | <1 min | 1–5 min | 5–20 min | 20–60 min | 60–120 min | 2–3 h | 3 h | Total Time | Event | Improvement of the System? |
---|---|---|---|---|---|---|---|---|---|---|
23–29 May 2022 | 0.04% | 0.11% | 9.26% | 12.74% | 4.17% | 0.66% | 0.86% | 27.85% | yes | no |
23–29 June 2022 | 0.00% | 0.03% | 0.05% | 5.16% | 1.89% | 0.26% | 0.29% | 7.67% | no | no |
23–29 July 2022 | 0.00% | 0.04% | 0.65% | 10.78% | 3.09% | 0.64% | 0.63% | 15.83% | no | no |
23–29 August 2022 | 0.01% | 0.02% | 4.60% | 13.93% | 3.72% | 0.77% | 1.03% | 24.09% | no | yes |
23–29 September 2022 | 0.02% | 0.06% | 4.79% | 13.47% | 4.24% | 0.94% | 1.06% | 24.56% | no | yes |
Site Name | 00:00 – 02:59 | 03:00 – 05:59 | 06:00 – 08:59 | 09:00 – 11:59 | 12:00 – 14:59 | 15:00 – 17:59 | 18:00 – 20:59 | 21:00 – 23:59 | Unique People (Sum) |
---|---|---|---|---|---|---|---|---|---|
Klong-soi-1 Bridge | 14 | 4 | 85 | 95 | 118 | 259 | 258 | 32 | 865 |
Village Fund building | 82 | 11 | 109 | 111 | 190 | 373 | 433 | 150 | 1459 |
In front of Chang Phueak Temple | 359 | 181 | 1692 | 1930 | 2499 | 2744 | 2459 | 982 | 12,846 |
In front of Klang Temple | 469 | 178 | 1484 | 1875 | 2315 | 3595 | 3708 | 1612 | 15,236 |
Sri Chiang Mai Community Health Park | 623 | 136 | 1562 | 2201 | 3214 | 5369 | 5901 | 2309 | 21,315 |
Naga Courtyard | 575 | 117 | 1187 | 1964 | 3292 | 4773 | 5108 | 2058 | 19,074 |
In front of Had Pathum Temple | 883 | 257 | 1569 | 2302 | 3359 | 5285 | 6577 | 2641 | 22,846 |
Boeng Wiang Courtyard | 282 | 91 | 632 | 935 | 1407 | 1882 | 2086 | 989 | 8304 |
In front of the Fresh Market | 791 | 1019 | 3538 | 3310 | 3708 | 5342 | 4319 | 2085 | 24,112 |
Sum of unique people | 4078 | 1994 | 11,858 | 14,723 | 20,102 | 29,622 | 30,849 | 12,585 | 126,057 |
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. |
© 2023 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
Wiangwiset, T.; Surawanitkun, C.; Wongsinlatam, W.; Remsungnen, T.; Siritaratiwat, A.; Srichan, C.; Thepparat, P.; Bunsuk, W.; Kaewchan, A.; Namvong, A. Design and Implementation of a Real-Time Crowd Monitoring System Based on Public Wi-Fi Infrastructure: A Case Study on the Sri Chiang Mai Smart City. Smart Cities 2023, 6, 987-1008. https://doi.org/10.3390/smartcities6020048
Wiangwiset T, Surawanitkun C, Wongsinlatam W, Remsungnen T, Siritaratiwat A, Srichan C, Thepparat P, Bunsuk W, Kaewchan A, Namvong A. Design and Implementation of a Real-Time Crowd Monitoring System Based on Public Wi-Fi Infrastructure: A Case Study on the Sri Chiang Mai Smart City. Smart Cities. 2023; 6(2):987-1008. https://doi.org/10.3390/smartcities6020048
Chicago/Turabian StyleWiangwiset, Thalerngsak, Chayada Surawanitkun, Wullapa Wongsinlatam, Tawun Remsungnen, Apirat Siritaratiwat, Chavis Srichan, Prachya Thepparat, Weerasak Bunsuk, Aekkaphan Kaewchan, and Ariya Namvong. 2023. "Design and Implementation of a Real-Time Crowd Monitoring System Based on Public Wi-Fi Infrastructure: A Case Study on the Sri Chiang Mai Smart City" Smart Cities 6, no. 2: 987-1008. https://doi.org/10.3390/smartcities6020048
APA StyleWiangwiset, T., Surawanitkun, C., Wongsinlatam, W., Remsungnen, T., Siritaratiwat, A., Srichan, C., Thepparat, P., Bunsuk, W., Kaewchan, A., & Namvong, A. (2023). Design and Implementation of a Real-Time Crowd Monitoring System Based on Public Wi-Fi Infrastructure: A Case Study on the Sri Chiang Mai Smart City. Smart Cities, 6(2), 987-1008. https://doi.org/10.3390/smartcities6020048