Method and device for determining position of moving target, electronic equipment and storage medium
By using CSI to calculate time-domain variance and feature values for wireless stations, the method addresses inefficiencies in existing location determination methods, improving accuracy and expanding applicability to non-line-of-sight scenarios.
Patent Information
- Application Number
- CN202410056190.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-15
- Publication Date
- 2025-07-15
AI Technical Summary
Existing indoor positioning technologies based on wireless access points are inefficient, especially in the event of environmental changes that require complex fingerprint library maintenance and the inability to detect mobile users within the non-line-of-sight range.
By obtaining the channel state information set returned by multiple wireless sites in the target time period, calculating the time domain variance of the subcarrier, determining the characteristic value of the wireless site, and determining the position of the moving target based on the ratio between the characteristic values and the setting threshold comparison results.
The calculation process of moving target positions is simplified, positioning efficiency is improved, applicable scenarios are expanded, suitable for non-line-of-sight environments, and the construction of fingerprint libraries is avoided.
Smart Images

Figure CN120321760A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a method, apparatus, electronic device, and storage medium for determining the position of a moving target. Background Art
[0002] With the popularization of wireless access devices, such as Wi-Fi devices, the perception of the location of mobile users based on commercial wireless access devices has become a low-cost user location perception solution.
[0003] Existing indoor positioning technology solutions based on wireless access points mainly include: (1) a fingerprint positioning-based solution. A fingerprint library of user location signals is established. When in use, the actually received signals are compared with the signals in the fingerprint library to determine the location of the mobile user. (2) a physical model-based solution. According to the physical model, information such as the time of flight (TOF), angle of arrival (AOA), and Doppler frequency shift (DFS) corresponding to the location of the mobile user is obtained, and then the location of the mobile user is calculated.
[0004] The fingerprint positioning-based solution requires pre-establishing a fingerprint library for the detection area. When the environment changes, the fingerprint library needs to be updated, which makes the maintenance of the fingerprint library very complex. The physical model-based solution has high requirements for the installation location of wireless access devices. It can only detect mobile users within the line-of-sight range, and cannot detect mobile users outside the line-of-sight range, which greatly limits the usage scenarios of the physical model-based solution.
[0005] In summary, the existing methods for determining the location of mobile users are inefficient. Summary of the Invention
[0006] Embodiments of this application provide a method, apparatus, electronic device, and storage medium for determining the position of a moving target to solve the technical problem of the low efficiency of the method for determining the position of a mobile user.
[0007] In a first aspect, embodiments of this application provide a method for determining the position of a moving target, including:
[0008] Obtaining a set of channel state information returned by multiple wireless stations to a wireless access point within a target time period; the set of channel state information returned by any one of the wireless stations includes subsets of channel state information on multiple subcarriers, and the subset of channel state information on any one of the subcarriers includes channel state information at multiple moments within the target time period;
[0009] For any of the wireless stations, based on the set of channel state information returned by the wireless station, determine the time-domain variance of the multiple subcarriers in the time domain, and based on the time-domain variance of the multiple subcarriers in the time domain, determine the eigenvalue of the wireless station; the time-domain variance of any of the subcarriers in the time domain is determined based on a subset of the channel state information on the subcarrier;
[0010] Based on the comparison results between pairwise eigenvalues of each of the wireless stations, determine a target value;
[0011] Based on the comparison result between the target value and a set threshold, determine the position of the moving target.
[0012] In one embodiment, the determining a target value based on the comparison results between pairwise eigenvalues of each of the wireless stations includes:
[0013] Sort the eigenvalues of each of the wireless stations according to the numerical magnitude, and based on the sorting result, determine the maximum eigenvalue, the second-largest eigenvalue, and the third-largest eigenvalue from the eigenvalues of each of the wireless stations;
[0014] Take the ratio of the maximum eigenvalue and the second-largest eigenvalue as a first target value;
[0015] When the first target value is greater than a first set threshold, take the first target value as the target value;
[0016] When the first target value is less than or equal to the first set threshold, take the ratio of the second-largest eigenvalue and the third-largest eigenvalue as a second target value, and take the first target value and the second target value as the target value.
[0017] In one embodiment, the determining the position of the moving target based on the comparison result between the target value and a set threshold includes:
[0018] When the first target value is greater than the first set threshold, based on the detection area of the wireless station corresponding to the maximum eigenvalue, determine the position of the moving target;
[0019] When the first target value is less than or equal to the first set threshold and the second target value is greater than a second set threshold, based on the middle area between a first detection area and a second detection area, determine the position of the moving target; the first detection area is the detection area of the wireless station corresponding to the maximum eigenvalue, and the second detection area is the detection area of the wireless station corresponding to the second-largest eigenvalue.
[0020] In one embodiment, the obtaining the set of channel state information returned by multiple wireless stations to a wireless access point within a target time period includes:
[0021] Poll and send communication data to multiple said wireless stations at fixed time intervals;
[0022] Receive the communication data returned by each said wireless station and the channel state information triggered by the communication data to complete one data collection of multiple said wireless stations;
[0023] Perform multiple data collections on each said wireless station within the target time period to obtain the channel state information set.
[0024] In one embodiment, determining the eigenvalue of the wireless station based on the time-domain variance of the multiple subcarriers in the time domain includes:
[0025] Based on the time-domain variance of the multiple subcarriers in the time domain, the average value of the time-domain variances of the multiple subcarriers in the time domain, and the number of the time-domain variances of the multiple subcarriers in the time domain, determine the variance of the time-domain variances of the multiple subcarriers in the time domain;
[0026] Based on the variance of the time-domain variances of the multiple subcarriers in the time domain, determine the eigenvalue of the wireless station.
[0027] In one embodiment, the set threshold is determined based on the following method:
[0028] Based on the mapping relationship between the positions of historical moving targets and historical target values, obtain the set threshold, and the set threshold is the minimum historical target value corresponding to the position of the historical moving target.
[0029] In one embodiment, determining the time-domain variance of the multiple subcarriers based on the channel state information set returned by the wireless station includes:
[0030] Remove the abnormal noise data and high-frequency noise data in the channel state information set to obtain a preprocessed channel state information set;
[0031] Based on the preprocessed channel state information set, determine the time-domain variance of the multiple subcarriers.
[0032] In a second aspect, an embodiment of the present application provides a device for determining the position of a moving target, including:
[0033] A channel state information acquisition module, configured to acquire a channel state information set returned by multiple wireless stations to a wireless access point within a target time period; the channel state information set returned by any one of the wireless stations includes a channel state information subset on multiple subcarriers, and the channel state information subset on any one of the subcarriers includes the channel state information at multiple moments within the target time period;
[0034] An eigenvalue determination module, configured to, for any one of the wireless stations, determine the time-domain variance of the multiple subcarriers in the time domain based on the set of channel state information returned by the wireless station, and determine the eigenvalue of the wireless station based on the time-domain variance of the multiple subcarriers in the time domain; the time-domain variance of any one of the subcarriers in the time domain is determined based on a subset of the channel state information on the subcarrier;
[0035] A target value determination module, configured to determine a target value based on the comparison results between any two of the eigenvalues of the wireless stations;
[0036] A position determination module, configured to determine the position of the moving target based on the comparison result between the target value and a set threshold.
[0037] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory storing a computer program, where when the processor executes the program, the method for determining the position of a moving target described in the first aspect is implemented.
[0038] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for determining the position of a moving target described in the first aspect is implemented.
[0039] The method, device, electronic device, and storage medium for determining the position of a moving target provided by the embodiments of the present application obtain a set of channel state information returned by multiple wireless stations to a wireless access point within a target time period; the set of channel state information returned by any one of the wireless stations includes subsets of channel state information on multiple subcarriers, and the subset of channel state information on any one of the subcarriers includes channel state information at multiple moments within the target time period; for any one of the wireless stations, determine the time-domain variance of the multiple subcarriers in the time domain based on the set of channel state information returned by the wireless station, and determine the eigenvalue of the wireless station based on the time-domain variance of the multiple subcarriers in the time domain; the time-domain variance of any one of the subcarriers in the time domain is determined based on a subset of the channel state information on the subcarrier; determine a target value based on the comparison results between any two of the eigenvalues of the wireless stations; determine the position of the moving target based on the comparison result between the target value and a set threshold. The embodiments of the present application determine eigenvalues based on time-domain variance, improving the accuracy of eigenvalue determination; determine the position of the moving target based on the ratio between eigenvalues and the comparison result with a set threshold, avoiding the construction of a fingerprint library for the moving target, simplifying the calculation process for determining the position of the moving target, and thus improving the efficiency of determining the position of the moving target. At the same time, determine the position of the moving target according to the channel state information, simplifying the data acquisition process and expanding the applicable scenarios of the method for determining the position of the moving target. Description of the Drawings
[0040] To more clearly illustrate the technical solutions in the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0041] Figure 1 is one of the schematic flowcharts of the method for determining the position of a moving target provided by an embodiment of the present application;
[0042] Figure 2 is the distribution schematic diagram of wireless stations, wireless access points and detection areas provided by an embodiment of the present application;
[0043] Figure 3 is the second schematic flowchart of the method for determining the position of a moving target provided by an embodiment of the present application;
[0044] Figure 4 is the schematic flowchart of the process for obtaining a set of channel state information provided by an embodiment of the present application;
[0045] Figure 5 is the structural schematic diagram of the device for determining the position of a moving target provided by an embodiment of the present application;
[0046] Figure 6 is the structural schematic diagram of the electronic device provided by an embodiment of the present application. Specific Embodiments
[0047] To make the objectives, technical solutions and advantages of the present application clearer, the following will clearly and completely describe the technical solutions in the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
[0048] Figure 1 is one of the schematic flowcharts of the method for determining the position of a moving target provided by an embodiment of the present application. Referring to Figure 1 , an embodiment of the present application provides a method for determining the position of a moving target, including:
[0049] Step 100: Obtain a set of channel state information returned by multiple wireless stations to the wireless access point during a target time period.
[0050] The set of channel state information returned by any wireless station includes subsets of channel state information on multiple subcarriers, and the subset of channel state information on any subcarrier includes channel state information at multiple moments within a target time period.
[0051] A moving target is a target in a moving state, for example, a walking person, a walking animal, a moving object, etc.
[0052] A wireless station (STA) refers to a terminal device connected to a wireless network through wireless communication technology, including devices with wireless communication functions such as mobile phones, computers, tablets, and Internet of Things devices. A wireless access point (AP) is a device that converts a wired network into a wireless signal. Multiple wireless stations in this application are connected to the wifi network of a wireless access point, and the wireless access point in this application includes a router.
[0053] A subcarrier divides the entire bandwidth into several independent bandwidth units with equal frequency intervals, and a symbol is transmitted on each subcarrier.
[0054] As Figure 2 shown, for multiple detection areas, a wireless access point is set outside the detection areas. A wireless station is set within each detection area. The multiple wireless stations are connected to the wifi network of the wireless access point. The wireless access point evenly distributes its subcarriers to the wireless stations connected to it according to a network protocol (for example, the wifi protocol). For example, each wireless station is allocated 50 subcarriers. The wireless access point polls and collects the channel state information (CSI) of at least one subcarrier of each wireless station at fixed time intervals. Within a target time period (for example, between 8:00 and 8:03), the channel state information of the subcarriers of each wireless station is collected multiple times to obtain the set of channel state information of each wireless station within the target time period.
[0055] Step 200: For any wireless station, based on the set of channel state information returned by the wireless station, determine the time-domain variance of multiple subcarriers in the time domain, and based on the time-domain variance of multiple subcarriers in the time domain, determine the eigenvalue of the wireless station.
[0056] The time-domain variance of any subcarrier in the time domain is determined based on the subset of channel state information on the subcarrier.
[0057] Specifically, determining the time-domain variance of a subcarrier includes: determining the variance of the channel state information based on the channel state information at multiple moments in the subset of channel state information on each subcarrier, the average value of the channel state information at multiple moments, and the number of acquisitions of the channel state information at multiple moments, so as to obtain the time-domain variance.
[0058] For example, for a subcarrier, the number of acquisitions is 100, and 100 channel state information are obtained. Calculate the variance of these 100 channel state information to obtain the time-domain variance of the subcarrier. The calculation formula for the time-domain variance is as follows:
[0059]
[0060] where Var is the time-domain variance, N is the number of acquisitions, i is the i-th acquisition, x i is the channel state information of the i-th acquisition, is the average value of the channel state information of N acquisitions.
[0061] As Figure 3 shown, calculate the variance of the time-domain variances of multiple subcarriers of a wireless station within a target time period to obtain the eigenvalue of the wireless station. For example, each wireless station has 50 subcarriers, and each subcarrier corresponds to a time-domain variance. Calculate the variance of the time-domain variances of these 50 subcarriers to obtain the eigenvalue of the wireless station. Calculate the eigenvalues of each wireless station. For example, calculate eigenvalue 1 of wireless station 1, eigenvalue 2 of wireless station 2, and eigenvalue 3 of wireless station 3.
[0062] Step 300: Determine the target value based on the comparison results between pairs of eigenvalues of each wireless station.
[0063] Take the ratio between pairs of some of the larger eigenvalues among the wireless stations as the target value. The target value characterizes the magnitude relationship between the two eigenvalues corresponding to the target value. For example, if the target value = eigenvalue 1 / eigenvalue 2, then when the target value is greater than 1, it indicates that eigenvalue 1 is greater than eigenvalue 2.
[0064] Step 400: Determine the position of the moving target based on the comparison result between the target value and the set threshold.
[0065] The eigenvalue characterizes the discrete situation of the time-domain variance of the detection area corresponding to the wireless station, and thus characterizes the change situation of the channel state information of the subcarriers of the wireless station. When a moving target approaches a wireless station, it will cause significant changes in the channel state information of the wireless station. Because the moving target will have effects such as blocking, attenuation, and multipath effects on the wireless signal in the detection area of the wireless station, thereby changing the signal propagation path and transmission characteristics. These changes will affect the quality and stability of the channel state information of the subcarriers of the wireless station. Therefore, by comparing the magnitudes of the eigenvalues of each detection area, the position of the moving target can be determined.
[0066] Compare the ratio between the eigenvalues and a set threshold. When the ratio between the eigenvalues meets certain conditions, determine the detection area of the wireless station corresponding to the eigenvalue that meets the conditions as the location of the moving target. For example, when a person moves in the detection area, the ratio of the maximum eigenvalue to the second largest eigenvalue is greater than the set threshold, and the detection area corresponding to the maximum eigenvalue is the location where the person is located.
[0067] The method for determining the location of a moving target provided by the embodiments of the present application includes obtaining a set of channel state information returned by multiple wireless stations to a wireless access point within a target time period; the set of channel state information returned by any wireless station includes subsets of channel state information on multiple subcarriers, and the subset of channel state information on any subcarrier includes channel state information at multiple moments within the target time period; for any wireless station, based on the set of channel state information returned by the wireless station, determine the time-domain variance of multiple subcarriers in the time domain, and based on the time-domain variance of multiple subcarriers in the time domain, determine the eigenvalue of the wireless station; the time-domain variance of any subcarrier in the time domain is determined based on the subset of channel state information on the subcarrier; based on the comparison results between any two of the eigenvalues of each wireless station, determine a target value; based on the comparison result between the target value and the set threshold, determine the location of the moving target. The embodiments of the present application determine the eigenvalue based on the time-domain variance, improving the accuracy of determining the eigenvalue; based on the comparison result between the ratio of the eigenvalues and the set threshold, determine the location of the moving target, avoiding the construction of a fingerprint library for the moving target, simplifying the calculation process for determining the location of the moving target, and thus improving the efficiency of determining the location of the moving target. At the same time, determining the location of the moving target according to the channel state information simplifies the data collection process and expands the applicable scenarios of the method for determining the location of the moving target.
[0068] Based on the above embodiments, determining a target value based on the comparison results between any two of the eigenvalues of each wireless station includes:
[0069] Step 310: Sort the eigenvalues of each wireless station according to the numerical size, and based on the sorting result, determine the maximum eigenvalue, the second largest eigenvalue, and the third largest eigenvalue from the eigenvalues of each wireless station;
[0070] Step 320: Take the ratio of the maximum eigenvalue to the second largest eigenvalue as the first target value;
[0071] Step 330: When the first target value is greater than the first set threshold, take the first target value as the target value;
[0072] Step 340: When the first target value is less than or equal to the first set threshold, take the ratio of the second largest eigenvalue to the third largest eigenvalue as the second target value, and take the first target value and the second target value as the target value.
[0073] Sort the eigenvalues in descending or ascending order. According to the sorting result, determine the maximum eigenvalue, the second largest eigenvalue, and the third largest eigenvalue from the eigenvalues of each wireless station. The larger the eigenvalue, the greater the dispersion of the subcarriers of the wireless station corresponding to the eigenvalue, indicating that there is an obstacle in the detection area of the wireless station.
[0074] Take the ratio of the maximum eigenvalue to the second largest eigenvalue as the first target value. The first target value characterizes the difference between the maximum eigenvalue and the second largest eigenvalue. When the first target value is greater than the first set threshold, the position of the moving target can be directly determined according to the first target value, and the first target value is used as the target value.
[0075] When the first target value is less than or equal to the first set threshold, the position of the moving target cannot be directly determined according to the first target value. Take the ratio of the second largest eigenvalue to the third largest eigenvalue as the second target value. The second ratio characterizes the difference between the second largest eigenvalue and the third largest eigenvalue. At this time, it is necessary to combine the first target value and the second target value to comprehensively determine the position of the moving target, and use the first target value and the second target value as the target values.
[0076] In the embodiment of the present application, according to the comparison results between any two of the maximum eigenvalue, the second largest eigenvalue, and the third largest eigenvalue, the first target value and the second target value are determined; according to the comparison result between the first target value and the first set threshold, the target value is determined, which improves the accuracy of determining the target value and is conducive to improving the efficiency of determining the position of the moving target.
[0077] Based on the above embodiment, based on the comparison result between the target value and the set threshold, determine the position of the moving target, including:
[0078] Step 410: When the first target value is greater than the first set threshold, determine the position of the moving target based on the detection area of the wireless station corresponding to the maximum eigenvalue;
[0079] Step 420: When the first target value is less than or equal to the first set threshold and the second target value is greater than the second set threshold, determine the position of the moving target based on the intermediate area between the first detection area and the second detection area; the first detection area is the detection area of the wireless station corresponding to the maximum eigenvalue, and the second detection area is the detection area of the wireless station corresponding to the second largest eigenvalue.
[0080] The first set threshold represents the minimum ratio of the eigenvalue of the first target detection area to the eigenvalue of an adjacent detection area when the moving target is in the first target detection area. The second set threshold represents the minimum ratio of the eigenvalues of the two second target detection areas when the moving target is in the intermediate area between the two second target detection areas. Since when the moving target is in a target detection area, the impact on the channel state information of the target detection area is the greatest, and the impact on the channel state information of the detection area adjacent to the target detection area is the second greatest; while when the moving target is in the intermediate area between two target detection areas, the impact on the channel state information of the two target detection areas is relatively large, the first set threshold is greater than the second set threshold.
[0081] As Figure 3 shown, when the first target value is greater than the first set threshold, it conforms to the situation where the moving target is located in a detection area. Then, the detection area corresponding to the maximum eigenvalue is determined as the position of the moving target.
[0082] When the first target value is less than or equal to the first set threshold, and the second target value is greater than the second set threshold, it conforms to the situation where the moving target is located in the intermediate area between two detection areas. The intermediate area between the first detection area corresponding to the maximum eigenvalue and the second detection area corresponding to the second largest eigenvalue is used as the position of the moving target.
[0083] Further, when the first target value is less than or equal to the first set threshold, and the second target value is also less than or equal to the second set threshold, the position of the moving target cannot be determined. Discard the channel state information data during this time period, and use the judgment result of the position of the moving target in the previous time period.
[0084] In the embodiment of the present application, the position of the moving target is determined according to the comparison results of the first target value, the second target value, the first set threshold, and the second set threshold, avoiding the construction of a fingerprint library of the moving target, simplifying the process of determining the position of the moving target, and improving the efficiency and accuracy of determining the position of the moving target.
[0085] Based on the above embodiments, obtaining the channel state information sets returned by multiple wireless stations to the wireless access point during the target time period includes:
[0086] Step 110: Poll and send communication data to multiple wireless stations at fixed time intervals;
[0087] Step 120: Receive the communication data returned by each wireless station and the channel state information triggered by the communication data to complete a data collection of multiple wireless stations;
[0088] Step 130: During the target time period, perform multiple data collections on each wireless station to obtain the channel state information set.
[0089] As Figure 4 shown, the wireless access point sends communication data to multiple wireless stations connected thereto at fixed time intervals in a polling manner, and receives response data returned by the wireless stations. The response data includes the returned communication data and the channel state information triggered by the communication data. Specifically, the communication data includes at least any one of a data packet, a control packet, and a management packet. In the same time period, the channel state information of all wireless stations is polled multiple times to complete multiple data acquisitions for each wireless station, and a subset of the channel state information of each subcarrier is obtained. The subsets of the channel state information of multiple subcarriers constitute the channel state information set.
[0090] As Figure 4 shown, when the interval is 0.1 s, the wireless access point sends communication data to wireless station 1, and at the same time receives the response data returned by wireless station 1 to the wireless access point. The wireless access point acquires the channel state information in the response data. When the interval is 0.2 s, the wireless access point sends communication data to wireless station 2, and at the same time receives the response data returned by wireless station 2 to the wireless access point. The wireless access point acquires the channel state information in the response data. When the interval is 0.3 s, the wireless access point sends communication data to wireless station 3 and acquires the channel state information. When the interval is 0.4 s, the wireless access point sends communication data to wireless station 1 and acquires the channel state information. And so on. In the target time period, the channel state information of each wireless station is acquired multiple times.
[0091] In the embodiment of the present application, by obtaining the comprehensive channel state information in a polling manner at fixed time intervals, multiple channel state information of each subcarrier is further obtained, which simplifies the process of obtaining multiple channel state information of each subcarrier and is beneficial to improving the efficiency of determining the position of a moving target.
[0092] Based on the above embodiment, based on the time-domain variances of multiple subcarriers in the time domain, the eigenvalue of the wireless station is determined, including:
[0093] Step 210: Based on the time-domain variances of multiple subcarriers in the time domain, the average value of the time-domain variances of multiple subcarriers in the time domain, and the number of the time-domain variances of multiple subcarriers in the time domain, determine the variance of the time-domain variances of multiple subcarriers in the time domain;
[0094] Step 220: Based on the variance of the time-domain variances of multiple subcarriers in the time domain, determine the eigenvalue of the wireless station.
[0095] Calculate the time-domain variance of each subcarrier of each wireless station. The number of time-domain variances is equal to the number of subcarriers. For example, if a wireless station has 50 subcarriers, calculate the time-domain variance of each subcarrier, and the number of time-domain variances is 50. Calculate the average value of these 50 time-domain variances. Based on the time-domain variances of multiple subcarriers of each wireless station in the time domain, the average value of the time-domain variances of multiple subcarriers in the time domain, and the number of time-domain variances of multiple subcarriers in the time domain, determine the variance of the time-domain variance, and use the variance of the time-domain variance as the eigenvalue of the wireless station. The calculation formula of the eigenvalue is:
[0096]
[0097] where VoV is the eigenvalue, K is the number of time-domain variances of a wireless station, Var j is the j-th time-domain variance, j is the serial number of the time-domain variance, is the average value of the time-domain variances of a wireless station.
[0098] Based on the time-domain variances of multiple subcarriers of each wireless station in the time domain, this embodiment of the present application determines the eigenvalue of each wireless station, realizes the quantitative evaluation of the dispersion degree of the time-domain variance of each wireless station, is beneficial to obtaining the position of the moving target, and improves the efficiency of determining the position of the moving target.
[0099] Based on the above embodiment, the setting threshold is determined based on the following method:
[0100] Step 140: Based on the mapping relationship between the positions of historical moving targets and historical target values, obtain the setting threshold, and the setting threshold is the minimum historical target value corresponding to the position of the historical moving target.
[0101] The setting threshold is determined according to the change rule of the position of the moving target and the historical target value. Through experiments or tests, obtain the mapping relationship table between the positions of multiple historical moving targets and historical target values. For example, when the historical moving target moves in a certain detection area, obtain the ratio of the maximum eigenvalue and the second maximum eigenvalue in all detection areas to obtain the historical target value. When the historical moving target moves in the middle area between two detection areas, obtain the ratio of the maximum eigenvalue and the second maximum eigenvalue, and the ratio of the second maximum eigenvalue and the third maximum eigenvalue in all detection areas to obtain the historical target value. Take the minimum value of the historical target value as the setting threshold. Optionally, determine the setting threshold according to experience.
[0102] This embodiment of the present application determines the setting threshold according to the mapping relationship between the positions of historical moving targets and historical target values, associates the setting threshold with the position of the moving target, and is beneficial to improving the accuracy of determining the position of the moving target.
[0103] Based on the above embodiments, determining the time-domain variances of multiple subcarriers in the time domain based on the set of channel state information returned by the wireless stations includes:
[0104] Step 230: Remove the abnormal noise data and high-frequency noise data in the set of channel state information to obtain a preprocessed set of channel state information;
[0105] Step 240: Determine the time-domain variances of multiple subcarriers in the time domain based on the preprocessed set of channel state information.
[0106] As Figure 3 shown, after the wireless access point collects the set of channel state information, it is necessary to preprocess the set of channel state information to filter out the noise in the set of channel state information. For example, the abnormal noise data is determined and removed through a Hampel Filter. The high-frequency noise is filtered out through a weighted moving average filtering algorithm. According to the preprocessed set of channel state information, the time-domain variance of each subcarrier is determined.
[0107] By removing the abnormal noise data and high-frequency noise data in the set of channel state information in the embodiments of the present application, the accuracy of the set of channel state information is improved, which is beneficial to improving the efficiency of determining the position of the moving target.
[0108] To further analyze and explain the method for determining the position of the moving target provided in the embodiments of the present application, specific explanations are given through the following embodiments and Figure 3 are as follows:
[0109] The method for determining the position of the moving target includes:
[0110] (1) Set up a wireless station in each detection area and a wireless access point outside the detection area. The wireless access point sends communication data to each wireless station connected to it at fixed time intervals and collects the set of channel state information returned by each wireless station.
[0111] (2) Obtain the set of channel state information of each wireless station in the same time period and perform noise filtering on the set of channel state information.
[0112] (3) Calculate the variance of the channel state information at multiple moments of each subcarrier of a wireless station to obtain the time-domain variance of the subcarrier in the time domain: Calculate the time-domain variance of the subcarrier in the time domain according to the channel state information at multiple moments of a subcarrier, the average value of the channel state information at multiple moments, and the number of the channel state information at multiple moments. According to the above method, calculate the time-domain variance of each subcarrier of a wireless station in the time domain.
[0113] (4) Calculate the eigenvalue of a wireless station according to the time-domain variance of multiple subcarriers of the wireless station in the time domain: Calculate the variance of the time-domain variance of the wireless station according to the time-domain variance of multiple subcarriers of the wireless station in the time domain, the average value of the time-domain variances of multiple subcarriers in the time domain, and the number of time-domain variances of multiple subcarriers in the time domain. The variance of the time-domain variance is the eigenvalue. According to the above method, calculate the eigenvalues of each wireless station connected to the wireless access point.
[0114] (5) Sort the eigenvalues to obtain the maximum eigenvalue, the second-largest eigenvalue, and the third-largest eigenvalue. Use the ratio of the maximum eigenvalue to the second-largest eigenvalue as the first target value and the ratio of the second-largest eigenvalue to the third-largest eigenvalue as the second target value.
[0115] (6) Compare the size of the first target value and the first set threshold.
[0116] When the first target value is greater than the first set threshold, determine that the moving target is located in the detection area corresponding to the maximum eigenvalue.
[0117] When the first target value is less than or equal to the first set threshold, compare the size of the second target value and the second set threshold.
[0118] If the second target value is greater than the second set threshold, determine that the moving target is located in the middle area between the first detection area and the second detection area. The first detection area is the detection area of the wireless station corresponding to the maximum eigenvalue, and the second detection area is the detection area of the wireless station corresponding to the second-largest eigenvalue. If the second target value is less than or equal to the second set threshold, the position of the moving target cannot be determined based on the current channel state information data, and the determination result of the position of the moving target in the previous time period is used.
[0119] The method for determining a moving target provided by the embodiments of the present application does not need to be trained in advance for the usage scenario and can achieve plug-and-play. At the same time, the method for determining a moving target provided by the embodiments of the present application is also applicable to non-line-of-sight scenarios, such as the intermediate partition wall between the wireless access point and the wireless station, and has a wider application range.
[0120] The following describes the device for determining the position of a moving target provided by the embodiments of the present application. The device for determining the position of a moving target described below can be correspondingly referred to the method for determining the position of a moving target described above. Refer to Figure 5 , Figure 5 is the structural schematic diagram of the device for determining the position of a moving target provided by the embodiments of the present application. A device for determining the position of a moving target includes:
[0121] A channel state information acquisition module 501, configured to acquire a set of channel state information returned by multiple wireless stations to a wireless access point within a target time period; the set of channel state information returned by any wireless station includes subsets of channel state information on multiple subcarriers, and the subset of channel state information on any subcarrier includes channel state information at multiple moments within the target time period;
[0122] An eigenvalue determination module 502, configured to, for any wireless station, based on the set of channel state information returned by the wireless station, determine the time-domain variance of multiple subcarriers in the time domain, and based on the time-domain variance of multiple subcarriers in the time domain, determine the eigenvalue of the wireless station; the time-domain variance of any subcarrier in the time domain is determined based on the subset of channel state information on the subcarrier;
[0123] A target value determination module 503, configured to determine a target value based on the comparison results between any two of the eigenvalues of each wireless station;
[0124] A position determination module 504, configured to determine the position of the moving target based on the comparison result between the target value and a set threshold.
[0125] The device for determining the position of a moving target provided by the embodiment of the present application acquires a set of channel state information returned by multiple wireless stations to a wireless access point within a target time period; the set of channel state information returned by any wireless station includes subsets of channel state information on multiple subcarriers, and the subset of channel state information on any subcarrier includes channel state information at multiple moments within the target time period; for any wireless station, based on the set of channel state information returned by the wireless station, determine the time-domain variance of multiple subcarriers in the time domain, and based on the time-domain variance of multiple subcarriers in the time domain, determine the eigenvalue of the wireless station; the time-domain variance of any subcarrier in the time domain is determined based on the subset of channel state information on the subcarrier; determine a target value based on the comparison results between any two of the eigenvalues of each wireless station; determine the position of the moving target based on the comparison result between the target value and a set threshold. The embodiment of the present application determines the eigenvalue based on the time-domain variance, improving the accuracy of eigenvalue determination; determines the position of the moving target based on the comparison result between the ratio of eigenvalues and the set threshold, avoiding the construction of a fingerprint library of the moving target, simplifying the calculation process of determining the position of the moving target, and thus improving the efficiency of determining the position of the moving target. At the same time, determines the position of the moving target according to the channel state information, simplifies the data acquisition process, and expands the applicable scenarios of the method for determining the position of the moving target.
[0126] In one embodiment, the target value determination module 503 is configured to: sort the eigenvalue of each wireless station according to the numerical value, and determine the maximum eigenvalue, the second largest eigenvalue, and the third largest eigenvalue from the eigenvalues of each wireless station based on the sorting result; use the ratio of the maximum eigenvalue to the second largest eigenvalue as the first target value; when the first target value is greater than the first set threshold, use the first target value as the target value; when the first target value is less than or equal to the first set threshold, use the ratio of the second largest eigenvalue to the third largest eigenvalue as the second target value, and use the first target value and the second target value as the target value.
[0127] In one embodiment, the position determination module 504 is configured to: when the first target value is greater than the first set threshold, determine the position of the moving target based on the detection area of the wireless station corresponding to the maximum eigenvalue; when the first target value is less than or equal to the first set threshold and the second target value is greater than the second set threshold, determine the position of the moving target based on the intermediate area between the first detection area and the second detection area; the first detection area is the detection area of the wireless station corresponding to the maximum eigenvalue, and the second detection area is the detection area of the wireless station corresponding to the second largest eigenvalue.
[0128] In one embodiment, the channel state information acquisition module 501 is configured to: poll and send communication data to multiple wireless stations at fixed time intervals; receive the communication data returned by each wireless station and the channel state information triggered by the communication data to complete one data acquisition of multiple wireless stations; perform multiple data acquisitions on each wireless station within the target time period to obtain a channel state information set.
[0129] In one embodiment, the eigenvalue determination module 502 is configured to: determine the variance of the time-domain variance of multiple subcarriers in the time domain based on the time-domain variance of multiple subcarriers in the time domain, the average value of the time-domain variance of multiple subcarriers in the time domain, and the number of the time-domain variance of multiple subcarriers in the time domain; determine the eigenvalue of the wireless station based on the variance of the time-domain variance of multiple subcarriers in the time domain.
[0130] In one embodiment, the position determination module 504 is configured to: determine the set threshold: obtain the set threshold based on the mapping relationship between the position of the historical moving target and the historical target value, and the set threshold is the minimum historical target value corresponding to the position of the historical moving target.
[0131] In one embodiment, the eigenvalue determination module 502 is configured to: remove the abnormal noise data and high-frequency noise data in the channel state information set to obtain a preprocessed channel state information set; determine the time-domain variance of multiple subcarriers based on the preprocessed channel state information set.
[0132] Figure 6 An example of the physical structure diagram of an electronic device is shown asFigure 6 As shown in the figure, the electronic device may include: a processor 610, a communication interface 620, a memory 630, and a communication bus 640. Among them, the processor 610, the communication interface 620, and the memory 630 complete communication with each other through the communication bus 640. The processor 610 may call a computer program in the memory 630 to execute the method for determining the position of a moving target, for example, including:
[0133] Obtain a set of channel state information returned by multiple wireless stations to the wireless access point during a target time period; the set of channel state information returned by any wireless station includes subsets of channel state information on multiple subcarriers, and the subset of channel state information on any subcarrier includes channel state information at multiple moments during the target time period; for any wireless station, based on the set of channel state information returned by the wireless station, determine the time-domain variance of multiple subcarriers in the time domain, and based on the time-domain variance of multiple subcarriers in the time domain, determine the eigenvalue of the wireless station; the time-domain variance of any subcarrier in the time domain is determined based on the subset of channel state information on the subcarrier; based on the comparison results between any two of the eigenvalues of each wireless station, determine a target value; based on the comparison result between the target value and a set threshold, determine the position of the moving target.
[0134] In addition, when the logical instructions in the above-mentioned memory 630 are implemented in the form of software functional units and sold or used as an independent product, they may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a part of this technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0135] On the other hand, the embodiments of the present application also provide a computer program product. The computer program product includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the method for determining the position of a moving target provided in the above-mentioned various embodiments, for example, including:
[0136] Obtain a set of channel state information returned by multiple wireless stations to the wireless access point within a target time period; the set of channel state information returned by any wireless station includes subsets of channel state information on multiple subcarriers, and the subset of channel state information on any subcarrier includes channel state information at multiple moments within the target time period; for any wireless station, based on the set of channel state information returned by the wireless station, determine the time-domain variance of multiple subcarriers in the time domain, and based on the time-domain variance of multiple subcarriers in the time domain, determine the eigenvalue of the wireless station; the time-domain variance of any subcarrier in the time domain is determined based on the subset of channel state information on the subcarrier; based on the comparison results between every two of the eigenvalues of each wireless station, determine the target value; based on the comparison result between the target value and a set threshold, determine the position of the moving target.
[0137] On the other hand, an embodiment of the present application further provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores a computer program, and the computer program is used to cause a processor to execute the moving target position determination method provided in each of the above embodiments, for example, including:
[0138] Obtain a set of channel state information returned by multiple wireless stations to the wireless access point within a target time period; the set of channel state information returned by any wireless station includes subsets of channel state information on multiple subcarriers, and the subset of channel state information on any subcarrier includes channel state information at multiple moments within the target time period; for any wireless station, based on the set of channel state information returned by the wireless station, determine the time-domain variance of multiple subcarriers in the time domain, and based on the time-domain variance of multiple subcarriers in the time domain, determine the eigenvalue of the wireless station; the time-domain variance of any subcarrier in the time domain is determined based on the subset of channel state information on the subcarrier; based on the comparison results between every two of the eigenvalues of each wireless station, determine the target value; based on the comparison result between the target value and a set threshold, determine the position of the moving target.
[0139] The non-transitory computer-readable storage medium may be any available medium or data storage device accessible by the processor, including but not limited to magnetic memories (such as floppy disks, hard disks, magnetic tapes, magneto-optical discs (MO), etc.), optical memories (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor memories (such as ROM, EPROM, EEPROM, non-volatile memories (NAND FLASH), solid state drives (SSD)), etc.
[0140] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0141] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0142] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of each embodiment of the present application.
Claims
1. A method for determining the position of a moving target, characterized in that Including: Obtaining a set of channel state information returned by multiple wireless stations to a wireless access point within a target time period; The set of channel state information returned by any one of the wireless stations includes subsets of channel state information on multiple subcarriers, and the subset of channel state information on any one of the subcarriers includes channel state information at multiple moments within the target time period; For any one of the wireless stations, based on the set of channel state information returned by the wireless station, determining the time-domain variance of the multiple subcarriers in the time domain, and based on the time-domain variance of the multiple subcarriers in the time domain, determining the eigenvalue of the wireless station; The time-domain variance of any one of the subcarriers in the time domain is determined based on the subset of channel state information on the subcarrier; Based on the comparison results between every two of the eigenvalues of each wireless station, determining a target value; Based on the comparison result between the target value and a set threshold, determining the position of the moving target.
2. The method for determining the position of a moving target according to claim 1, characterized in that The determining the target value based on the comparison results between every two of the eigenvalues of each wireless station includes: Sorting the eigenvalues of each wireless station according to the numerical magnitude, and based on the sorting result, determining the maximum eigenvalue, the second-largest eigenvalue, and the third-largest eigenvalue from the eigenvalues of each wireless station; Taking the ratio of the maximum eigenvalue and the second-largest eigenvalue as a first target value; When the first target value is greater than a first set threshold, taking the first target value as the target value; When the first target value is less than or equal to the first set threshold, taking the ratio of the second-largest eigenvalue and the third-largest eigenvalue as a second target value, and taking the first target value and the second target value as the target value.
3. The method for determining the position of a moving target according to claim 2, wherein The determining the position of the moving target based on the comparison result between the target value and the set threshold includes: When the first target value is greater than the first set threshold, determining the position of the moving target based on the detection area of the wireless station corresponding to the maximum eigenvalue; When the first target value is less than or equal to the first set threshold and the second target value is greater than a second set threshold, determining the position of the moving target based on the intermediate area between a first detection area and a second detection area; the first detection area is the detection area of the wireless station corresponding to the maximum eigenvalue, and the second detection area is the detection area of the wireless station corresponding to the second-largest eigenvalue.
4. The method for determining the position of a moving target according to claim 1, wherein The obtaining the set of channel state information returned by multiple wireless stations to a wireless access point within a target time period includes: Polling and sending communication data to multiple wireless stations at fixed time intervals; Receiving the communication data returned by each wireless station and the channel state information triggered by the communication data to complete one data acquisition of multiple wireless stations; Performing multiple data acquisitions on each wireless station within the target time period to obtain the set of channel state information.
5. The method for determining the position of a moving target according to claim 1, wherein The determining the eigenvalue of the wireless station based on the time-domain variance of the multiple subcarriers in the time domain includes: Determine the variance of the time-domain variances of the multiple subcarriers in the time domain based on the time-domain variance of the multiple subcarriers in the time domain, the average value of the time-domain variances of the multiple subcarriers in the time domain, and the number of the time-domain variances of the multiple subcarriers in the time domain; Determine the eigenvalue of the wireless station based on the variance of the time-domain variances of the multiple subcarriers in the time domain.
6. The method for determining the position of a moving target according to claim 1, characterized in that, The set threshold is determined based on the following method: Obtain the set threshold based on the mapping relationship between the positions of historical moving targets and historical target values, where the set threshold is the smallest historical target value corresponding to the positions of the historical moving targets.
7. The method for determining the position of a moving target according to claim 1, wherein The determining the time-domain variance of the multiple subcarriers in the time domain based on the set of channel state information returned by the wireless station includes: Remove the abnormal noise data and high-frequency noise data in the set of channel state information to obtain a preprocessed set of channel state information; Determine the time-domain variance of the multiple subcarriers in the time domain based on the preprocessed set of channel state information.
8. A position determination device for a moving target, characterized in that, Include: A channel state information acquisition module, configured to acquire a set of channel state information returned by multiple wireless stations to a wireless access point within a target time period; The set of channel state information returned by any one of the wireless stations includes a subset of channel state information on multiple subcarriers, and the subset of channel state information on any one of the subcarriers includes the channel state information at multiple moments within the target time period; An eigenvalue determination module, configured to, for any one of the wireless stations, determine the time-domain variance of the multiple subcarriers in the time domain based on the set of channel state information returned by the wireless station, and determine the eigenvalue of the wireless station based on the time-domain variance of the multiple subcarriers in the time domain; The time-domain variance of any one of the subcarriers in the time domain is determined based on the subset of channel state information on the subcarrier; A target value determination module, configured to determine a target value based on the comparison results between every two of the eigenvalues of each of the wireless stations; A position determination module, configured to determine the position of the moving target based on the comparison result between the target value and the set threshold.
9. An electronic device, comprising a processor and a memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the method for determining the position of the moving target according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by the processor, it implements the method for determining the position of the moving target according to any one of claims 1 to 7.