A method for real-time boundary monitoring of moving crowd groups in architectural indoor spaces
By combining semantic grid models and WiFi signal strength with Kalman filtering, OPTICS clustering, and Alpha Shapes algorithms, the boundary of crowd groups is monitored in real time, solving the problem of accurate monitoring of the boundary impact of indoor crowd movement and improving the accuracy of navigation path planning and building safety management.
Patent Information
- Application Number
- CN202311674265.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-07
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-12-07
AI Technical Summary
Existing technologies struggle to accurately monitor the movement impact boundaries of large crowds in real-time within indoor environments, posing challenges to navigation path planning and building safety management.
By employing a semantic grid model combined with WiFi signal strength and positioning algorithms, and utilizing Kalman filtering, OPTICS clustering, and Alpha Shapes algorithms, the system monitors the boundaries and influence range of crowd groups in real time, providing dynamic navigation path calculation support.
It enables precise monitoring of the impact boundary of crowd groups without the user's awareness, improves the accuracy of navigation path calculation and the effectiveness of building safety management, can dynamically update crowd boundaries, assess the possibility of congestion, and support the determination of the optimal navigation path.
Smart Images

Figure CN117793635B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of geographic information science, specifically to a method for monitoring the real-time impact boundary of crowd movement based on Wi-Fi sensing. Background Technology
[0002] Indoor sensing and positioning technologies have made significant progress. These technologies provide a foundation for accurately representing an individual's indoor location. By deploying various sensors, such as visual and wireless sensors, in a specific manner inside buildings to collect data on pedestrians or their carried devices, the location coordinates of pedestrians can be calculated relatively accurately, and their trajectories can be generated according to time series. This allows city managers to understand the movement dynamics of targets more quickly. Compared to camera deployment, wireless signal devices are easier to deploy flexibly, and the data format they collect is simpler, making it a technology that can be widely applied.
[0003] While there are numerous applications of continuous individual location tracking in indoor positioning and location awareness research, there is currently a lack of computational methods for monitoring the impact boundaries of large-scale indoor crowds for location awareness covering entire buildings. Specifically, in densely populated indoor spaces, different individuals may form different groups, and in navigation path calculations, the spaces where these groups are located can be considered impassable areas. Therefore, when processing location data related to indoor crowds, it is essential to fully consider calculating their grouping and impact boundaries to provide navigation users with more accurate paths or more accurate estimates of travel time.
[0004] Specifically, current indoor navigation calculations mainly consider indoor positioning, navigation model construction, and navigation route planning. For example, navigation calculations can be performed using a smartphone as a platform. [2] However, from the perspective of overall building management, it is still difficult to obtain comprehensive real-time monitoring of the boundaries of large-scale crowd movement within the building's indoor spaces. Existing research on indoor navigation lacks systematic representations and modeling methods for the precise range of such crowd movement. [1] Existing research uses high-density indoor areas as an indicator of crowd aggregation, focusing on identifying high-density areas of crowd activity. However, current indoor navigation methods rarely analyze real-time crowd movement or accurately model the space occupied by group movement, posing challenges to obstacle avoidance navigation path planning. Therefore, calculating and determining the impact boundary of crowd movement and assessing the current passable space for pedestrians during indoor navigation is of great significance for building real-time indoor navigation applications and building safety management. Summary of the Invention
[0005] To address the aforementioned problems, this invention proposes a method for real-time boundary monitoring of the impact of moving crowds in building interior spaces. This method focuses on real-time monitoring of the passage range affected by crowd movement in indoor spaces, solving the calculation problem in current indoor navigation systems where it is difficult to accurately assess the impact of crowd movement on the passable space range in real time. To achieve the above objectives, the present invention employs the following technical solution: A method for real-time boundary monitoring of moving crowds in building indoor spaces, comprising the following steps: Step 1: Construct a semantic mesh model within the target building; Step 2: Use indoor WiFi probes to scan the signal strength (RSSI) of individual devices and perform location tracking using classic signal fingerprinting methods to build a location fingerprint database for passive positioning; Step 3: When passively locating the target, based on the similarity between the individual RSSI detected by WiFi and the signals in the location fingerprint database constructed in Step 2, cosine similarity matching and the KNN algorithm are used to locate all currently sensed individuals; Step 4: For observations at multiple consecutive time points, the location data of an individual with the same ID at multiple time points is recorded as a trajectory; Step 5: For each individual's continuous trajectory, use Kalman filtering to smooth the positions on the trajectory to obtain a more accurate position estimate of the individual at each previous time step; Step 6: For individual k, after its trajectory is smoothed by Kalman filtering, if there is still a position estimate that is outside the room, it is further corrected by map matching to finally obtain the corrected trajectory of k. After correction, every position on the trajectory is located inside the room. Step 7: At each time step, perform OPTICS clustering on all individuals at their corrected positions; Step 8: At each time step, the core point clusters obtained by OPTICS clustering are identified as high-density groups of the monitored population, and the irregular boundaries of all groups at that time step are extracted using the Alpha Shapes algorithm. Step 9: At each moment, based on the given navigation user size and the repulsion force parameters between the user and the crowd, construct the buffer of the geometric boundaries of all current groups, i.e. the actual influence boundary of the groups, and visualize these influence boundaries on the mesh model to finally identify: the safe movement range of the user at the current moment under the influence of the crowd groups. Step 10: Accurately express the real-time changes of the population group at different times.
[0006] Compared with the prior art, the present invention has the following advantages and beneficial effects: (1) This invention proposes a perception calculation method for monitoring the impact boundary of indoor crowd groups without the user's awareness. Compared with other active positioning and navigation research in the field of indoor navigation that focuses on individuals, this invention can specifically handle the real-time boundary calculation of the dynamic impact range of crowd movement inside buildings. Compared with other existing applications such as space occupancy, crowd counting, and crowd distribution heat maps of indoor crowds, this invention can specifically handle and provide real-time accurate boundaries and impact ranges of indoor crowd movement, dynamically updating the crowd boundary at specified observation intervals, thereby assisting in building safety management and greatly improving the accuracy of crowd dynamic boundary and feature calculation.
[0007] (2) To adapt to the changing indoor environment, this invention fully considers and proposes a feasible real-time boundary calculation method for crowds at the micro-level, targeting individuals. Compared with commonly used indoor space occupancy / person counting methods, this invention not only has corresponding specific location tracking calculation and refinement methods to obtain more accurate positions of moving individuals, but also obtains the real-time boundary of the formed crowd group, ensuring more accurate tracking of crowd changes.
[0008] (3) This invention provides a method for assessing the likelihood of congestion by observing the mobility of micro-individuals and the movement of the resulting groups. During individual trajectory tracking, it provides a description of the dynamic evolution of high-density crowd ranges, addressing the potential aggregation caused by individual movement. This effectively supports real-time assessment of the likelihood of indoor areas being congested by crowds. This provides a foundation for quantitative analysis of crowd changes in indoor navigation calculations, effectively improving the calculation of optimal navigation paths for users by comprehensively considering indoor safety factors (such as congestion levels). Attached Figure Description
[0009] Figure 1 This is a schematic diagram illustrating a specific embodiment of the present invention.
[0010] Figure 2 This diagram illustrates the observed position of the moving individual in this embodiment of the invention, the trajectory after Kalman filtering smoothing, and map matching. (a) Actual trajectory; (b) Observed position at different times; (c) Kalman filtering smoothing result; (d) Final corrected position.
[0011] Figure 3 This is a schematic diagram of the boundaries of the crowd group and the influencing boundaries calculated based on the OPTICS algorithm and Alpha Shapes in an embodiment of the present invention.
[0012] Figure 4 This is a schematic diagram illustrating the change in the influence range of the population group calculated in this embodiment of the invention over time. Detailed Implementation
[0013] The technical solutions provided in this application will be further described below with reference to specific embodiments and accompanying drawings. The advantages and features of this application will become clearer from the following description.
[0014] like Figure 1 As shown, a method for real-time boundary monitoring of moving crowds in building indoor spaces includes the following steps: Step 1: Construct a semantic grid model within the target building, dividing the interior space into regular grid units, and assigning attribute values to all grid units according to the semantic type of the space, forming a grid model with a calibrated position.
[0015] Specifically, based on the floor plans of each floor of the building, each floor area is divided into a grid map with a resolution of 2m*2m. According to the semantic type of the space occupied by the grid, the attributes of all grid units are assigned, such as passable space, indoor furniture, doors, building entrances, etc., to clarify the freely movable space / grid.
[0016] Step 2: Use an indoor WiFi probe to scan the signal strength (RSSI) of individual devices and use the classic signal fingerprint matching method to achieve positioning, thus building a location fingerprint database for passive positioning.
[0017] Specifically, multiple WiFi probes / routers are deployed inside the building, and calibration positions are selected on the grid model constructed in step 1. A smartphone is used to pass through each calibration position one by one, and the RSSI signal data at each calibration position is recorded by the WiFi probe. The RSSI vector is associated with the actual coordinates corresponding to the position to complete the construction of the location fingerprint database. Step 3: When passively locating the target, based on the similarity between the individual RSSI detected by WiFi and the signals in the location fingerprint database constructed in Step 2, cosine similarity matching and KNN algorithm (an existing algorithm, which is the current technology) are used to locate all currently perceived individuals to obtain the possible grid cell where the current location is located.
[0018] Specifically, all indoor mobile devices scanned at the current time t (i.e., each individual in the population carrying a mobile device) are represented by D = {d1, ...,d2}. n According to device d, n>0} i The rssi vector R di ={rss 1 di ,…,rss m diUsing the KNN algorithm and a location fingerprint database, all sensed individuals are located to obtain the set of location coordinates of all moving individuals in the entire building at time t: L = {L1 = (x1, y1, z1), L2 = (x2, y2, z2), ..., L}. k = (x k ,y k ,z k ), k>0} t .
[0019] Step 4: For observations at multiple consecutive time points, for an individual k with the same ID, at multiple time points (t0 to t... i The location data is recorded as a trajectory (see...). Figure 2 b). If a signal is not acquired over a long time interval and the location coordinates cannot be obtained from the location fingerprint database, it is excluded as noise.
[0020] Step 5: For the continuous trajectory of individual k, use Kalman filtering to smooth each position on the trajectory to obtain a more accurate position estimate of individual k at each previous time step (see...). Figure 2 c).
[0021] Specifically, over a period of time (t0 to t) i For any individual s whose location is continuously acquired, its trajectory T s = {L s t0 ,…,L s ti}, using Kalman filtering (an existing algorithm, a current technology) to analyze T s Smoothing is performed to reduce positional errors. In the observation equation of the Kalman filter used, the observation vector X = [x, y, z], that is, the observation value directly corresponds to the position state, so the measurement matrix H = I (i.e., the identity matrix) in this Kalman filter.
[0022] Since the observation equation is a linear model, no complex state transition model is needed. This Kalman filter only performs preliminary filtering of noise in the observations. Applying the above Kalman filter to the corresponding trajectory of any detected individual s yields the optimized trajectory T. ’ s = {L ’s t0 ,…,L ’s ti}
[0023] Step 6: For individual k, after its trajectory is smoothed by Kalman filtering, if there is still a position estimate outside the room, it is further corrected by map matching to finally obtain the corrected trajectory of k (see...). Figure 2 d). Each position on the corrected trajectory is located inside the room.
[0024] For the trajectory of any individual s, T is obtained after further correction. - s = {L -s t0 ,…,L -s ti}
[0025] Specifically, for coordinates outside the room, the neighborhood ε of its previous position on the semantic grid model is searched. The corrected position is determined according to the principle that the probability of the next position decreases exponentially with distance. The neighborhood ε of the previous position contains all accessible grids with a distance less than or equal to a threshold d1. The probability of each grid being the next position is calculated as follows: p = e −dist , dist<= d1(1) dist = |x'-x|+|y'-y| (2) L^ = ε(argmax(p))(3) In equation (1), the probability p of the current grid being the next position is calculated by dist. If dist>d1, then p=0.
[0026] In equation (2), (x, y) represents the coordinates of the previous position, (x... ’ , y ’ ) represents the coordinates of a grid point in the neighborhood, and dist represents the grid distance between the two points.
[0027] Equation (3) estimates the next position by selecting the grid with the largest probability value p in the neighborhood ε as the corrected position.
[0028] Step 7: At each time step, perform OPTICS clustering on all scanned individuals and their corresponding location coordinates in the room (an existing algorithm, which is the current technology).
[0029] Specifically, after correcting the trajectory, at each time t i The set of position coordinates of all individuals is L. ti ={L - ti 1 ,…L - ti k For L, k>0} ti OPTICS clustering was applied to calculate and confirm the population group at each time point.
[0030] At each moment, the group relationship between the currently moving targets is determined based on the cluster, that is, the cluster corresponds to the group.
[0031] Step 8: At the current moment, identify the core point clusters obtained from OPTICS clustering as high-density groups of the monitored population, ignore noise points in the clustering results, and use the Alpha Shapes algorithm (an existing algorithm, representing current technology) to extract the irregular boundaries of all groups at this moment (see...). Figure 3 ).
[0032] Specifically, given distance parameters and indoor boundaries (e.g., walls) as constraints, high-density groups in the crowd at that moment are identified based on the core points in the OPTICS clustering results; Noise points in the clustering results are outliers, meaning they are not surrounded by enough other individuals. Therefore, noise points are considered not to obstruct the navigation user's movement and are thus ignored at each time step.
[0033] Step 9: At each moment, based on the given navigation user size (e.g., 1m) and the repulsion force parameters between the user and the crowd, for example, setting the minimum distance between the navigation user and the crowd to 1.5m, construct the buffer zone for the geometric boundaries of all groups at the current moment (see...). Figure 3 This refers to the actual impact boundaries of groups on the passage of navigation users, and these impact boundaries are visualized on a grid model (see...). Figure 4 Ultimately, it was determined that the user's safe movement range at the current moment is influenced by the crowd.
[0034] Step 10: Accurately express the real-time changes of the population group at different times.
[0035] Specifically, based on the changing characteristics of group boundaries, parameters such as the overall movement direction, average speed, and area of different groups are calculated; based on the movement characteristics of the crowd groups at different times, the changes in the overall movement direction and area of different groups are visualized (see...). Figure 4 ).
[0036] Based on the method of this invention, the influence boundary of real-time crowds can be monitored, the possibility of indoor areas being blocked by crowds can be assessed in real time, and the real-time safe movement space for pedestrian navigation can be determined to support the calculation of the best navigation path for users.
[0037] The above description is merely a description of preferred embodiments of this application and is not intended to limit the scope of this application in any way. Any changes or modifications made by those skilled in the art based on the above-disclosed technical content should be considered as equivalent and valid embodiments and fall within the scope of protection of the technical solution of this application.
[0038] References [1]Huang, B., Mao, G., Qin, Y.,&Wei, Y. (2021). Pedestrian FlowEstimation Through Passive WiFi Sensing. IEEE Transactions on Mobile Computing, 20 , 1529-1542. [2]D. Yu and C. Li.(2021). An Accurate WiFi Indoor PositioningAlgorithm for Complex Pedestrian Environments, IEEE Sensors Journal , 21(21),24440-24452.
Claims
1. A method for real-time boundary monitoring of moving crowds in building interior spaces, characterized in that, Includes the following steps: Step 1: Construct a semantic mesh model within the target building; Step 2: Use indoor WiFi probes to scan the signal strength (RSSI) of individual devices and perform location tracking using classic signal fingerprint matching methods to build a location fingerprint database for passive positioning; Step 3: When passively locating the target, based on the similarity between the individual RSSI detected by WiFi and the signals in the location fingerprint database constructed in Step 2, cosine similarity matching and the KNN algorithm are used to locate all currently sensed individuals; Step 4: For observations at multiple consecutive time points, the location data of an individual with the same ID at multiple time points is recorded as a trajectory; Step 5: For each individual's continuous trajectory, use Kalman filtering to smooth the positions on the trajectory to obtain a more accurate position estimate of the individual at each previous time step; Step 6: For individual k, after its trajectory is smoothed by Kalman filtering, if there is still a position estimate that is outside the room, it is further corrected by map matching to finally obtain the corrected trajectory of k. After correction, every position on the trajectory is located inside the room. Step 7: At each time step, perform OPTICS clustering on all individuals at their corrected positions; Step 8: At each time step, the core point clusters obtained by OPTICS clustering are identified as high-density groups of the monitored population, and the irregular boundaries of all groups at that time step are extracted using the Alpha Shapes algorithm. Step 9: At each moment, based on the given navigation user size and the repulsion force parameters between the user and the crowd, construct the buffer of the geometric boundaries of all current groups, i.e. the actual influence boundary of the groups, and visualize these influence boundaries on the mesh model to finally identify: the safe movement range of the user at the current moment under the influence of the crowd groups. Step 10: Accurately represent the real-time changes of the population group at different times; Step 6: For the trajectory of any individual s, T is obtained after further correction. - s ={L -s t0 ,…,L -s ti }; Specifically, for coordinates located outside the room, the neighborhood ε of its previous position on the semantic grid model is searched. The corrected position is determined according to the principle that the probability of the next position decreases exponentially with distance. The neighborhood ε of the previous position contains all accessible grids with a distance less than or equal to a threshold d1. The probability of each grid being the next position is calculated as follows: p=e -dist ,dist<=d1(1) dist=|x'-x|+|y'-y| (2) =ε(argmax(p))(3) In equation (1), the probability p of the current grid being the next position is calculated by dist. If dist>d1, then p=0. In equation (2), (x, y) represents the coordinates of the previous position, (x... ’ ,y ’ ) represents the coordinates of a grid point in the neighborhood, and dist represents the grid distance between the two points; Equation (3) estimates the next position by selecting the grid with the largest probability value p in the neighborhood ε as the corrected position.
2. The method as described in claim 1, characterized in that, Step 1: Based on the floor plans of each floor of the building, the interior space is divided into regular grid units, and the attributes of all grid units are assigned according to the semantic type of the space they belong to, thus defining the freely movable spaces / grids and forming a grid model with a fixed position.
3. The method as described in claim 1, characterized in that, Step 2: Multiple WiFi probes / routers are deployed inside the building, and calibration positions are selected on the grid model constructed in step 1. A smartphone is used to pass through each calibration position one by one, and the RSSI signal data at each calibration position is recorded by the WiFi probe. The RSSI vector is associated with the actual coordinates corresponding to the position to complete the construction of the location fingerprint database.
4. The method as described in claim 1, characterized in that, Step 3: All indoor mobile devices scanned at the current time t are D={d1,…,d n ,n>0}, according to device d i The rssi vector R di ={rss 1 di ,…,rss m di Using the KNN algorithm and a location fingerprint database, all sensed individuals are located to obtain the set of location coordinates of all moving individuals in the building at time t: L = {L1 = (x1, y1, z1), L2 = (x2, y2, z2), ..., L}. k = (x k ,y k ,z k ), k>0} t .
5. The method as described in claim 1, characterized in that, Step 5: From t0 to t i Within a given time period, for any individual s whose location is continuously acquired, its trajectory T... s = {L s t0 ,…,L s ti }, using Kalman filtering for T s Smoothing is performed to reduce its positional error, resulting in the optimized trajectory T. ’ s = {L ’s t0 ,…,L ’s ti }; In the observation equation of the Kalman filter used, the observation vector X = [x, y, z], that is, the observation value directly corresponds to the position state. Therefore, the measurement matrix H = I in this Kalman filter is the identity matrix. This Kalman filter is used to perform only preliminary filtering of the noise in the observation value.
6. The method as described in claim 1, characterized in that, Step 7: After correcting the trajectory, at each time t i The set of position coordinates of all individuals is L. ti ={L - ti 1 ,…L - ti k For L, k>0} ti OPTICS clustering was applied to calculate and confirm the population group at each time point; At each moment, the group relationship between the currently moving targets is determined based on the cluster, that is, the cluster corresponds to the group.
7. The method as described in claim 1, characterized in that, Step 8: Given distance parameters and indoor boundaries as constraints, high-density groups in the population at that moment are identified based on the core points in the OPTICS clustering results. Noise points in the clustering results are outliers, which are not surrounded by enough other individuals. These noise points are considered not to obstruct the movement of the navigation user, and therefore are ignored at each moment.
8. The method as described in claim 1, characterized in that, Step 10: Based on the changing characteristics of group boundaries, calculate the overall movement direction, average speed, and area of different population groups; based on the movement characteristics of population groups at different times, visualize the changes in the overall movement direction and area of different population groups.
Citation Information
Patent Citations
Point group target automatic-synthesis algorithm under support of big data
CN108197134A
Scenic spot crowd behavior analysis method based on convolutional neural network
CN110705394A
