Position information processing method and device, equipment and storage medium
By using communication base stations to transmit time difference and field strength information in indoor positioning, combined with the long short-term memory network model, the problem of low indoor positioning accuracy is solved, the positioning accuracy and trajectory drawing accuracy are improved, and it is suitable for a variety of indoor applications. scene.
Patent Information
- Application Number
- CN202311271805.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2024-10-18
AI Technical Summary
Existing indoor positioning accuracy is low and is greatly affected by signal quality, especially in buildings with weak coverage and occlusion. The positioning accuracy is insufficient.
By obtaining the indoor layout map and the positioning request information sent by the mobile device, the transmission time measurement difference of the communication base station is used to calculate the distance difference between the device and the base station. Combined with the field strength information, the long short-term memory network model is used for data association and preprocessing. , draw the movement trajectory of the device to improve positioning accuracy.
It improves the precision and accuracy of indoor positioning, enhances the reliability of mobile device trajectories, and provides a basis for targeted optimization of signal quality. It is suitable for indoor positioning applications in enterprises, shopping malls and other places.
Smart Images

Figure CN118803534A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a location information processing method, device, equipment and storage medium. Background Art
[0002] With the changes in modern lifestyles, indoor positioning is being used more and more, especially in enterprises, shopping malls, hospitals and other places.
[0003] At present, the accuracy of indoor positioning is affected by signal quality, and the precision of indoor positioning is low. Summary of the invention
[0004] The present disclosure provides a location information processing method, device, equipment and storage medium to at least solve the problem of low existing indoor positioning accuracy.
[0005] The technical solution of the present disclosure is as follows:
[0006] The present disclosure provides a method for processing location information, including:
[0007] Acquire an indoor layout diagram, wherein the indoor layout diagram is marked with a plurality of communication base stations arranged indoors;
[0008] Acquire positioning request information sent by the mobile device, wherein the positioning request information includes: a transmission time corresponding to when each of the communication base stations receives the positioning request sent by the mobile device;
[0009] Determine the distance difference between the mobile device and any two of the communication base stations according to the transmission time corresponding to each of the communication base stations;
[0010] The location information of the mobile device is determined according to the distance difference between the mobile device and any two of the communication base stations.
[0011] Optionally, after determining the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations, the method further includes:
[0012] Acquire a plurality of location information of the mobile device indoors during a set period;
[0013] According to the plurality of position information, a moving track of the mobile device is drawn in an indoor layout map.
[0014] Optionally, determining the distance difference between the mobile device and any two of the communication base stations according to the transmission time corresponding to each of the communication base stations includes:
[0015] Determine a time measurement difference between any two of the communication base stations according to the transmission time corresponding to each of the communication base stations;
[0016] The distance difference between the mobile device and any two of the communication base stations is determined according to the time measurement difference between any two of the communication base stations.
[0017] Optionally, determining the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations includes:
[0018] According to the distance difference between the mobile device and any two of the communication base stations, equations are established respectively to obtain multiple hyperbolic equations;
[0019] A plurality of the hyperbolic equations are solved to obtain the location information of the mobile device.
[0020] Optionally, after determining the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations, the method further includes:
[0021] Acquiring field strength information of a plurality of indoor communication base stations;
[0022] Associating the field strength information with the location information to obtain device movement data;
[0023] According to the device movement data, a movement trajectory of the mobile device is drawn in an indoor layout map.
[0024] Optionally, associating the field strength information with the location information to obtain device movement data includes:
[0025] Determining a first relative time sequence corresponding to the location information according to a timestamp corresponding to the location information and an air interface solution delay; and
[0026] Determining a second relative time sequence corresponding to the field intensity information according to a timestamp and a communication delay corresponding to the field intensity information;
[0027] The location information, the first relative time series, the field strength information and the second relative time series are input into a trained long short-term memory network model to obtain device movement data.
[0028] Optionally, before using the long short-term memory network model, the method further includes:
[0029] Obtaining sample field strength information and sample location information of the sample mobile device;
[0030] Performing a preprocessing operation on the sample field strength information and the sample position information to obtain a training set;
[0031] The initial model is trained according to the training set to obtain the long short-term memory network model.
[0032] Optionally, the preprocessing operation on the sample field strength information and the sample position information to obtain a training set includes:
[0033] Performing data cleaning on the sample field strength information and the sample position information to obtain cleaned sample data;
[0034] For the cleaned sample data, the observation value of the previous time step is used as input, and the observation value of the current time step is used as output to realize the prediction. The sliding window sets a shift for the time series to obtain the sample data after the transformation supervision learning.
[0035] Performing stationary time series processing on the sample data after the transformation supervised learning to obtain stationary time series processed sample data;
[0036] The sample data after the stationary time series processing is scaled to obtain a training set.
[0037] The present disclosure also provides a location information processing device, including:
[0038] A first acquisition module acquires an indoor layout diagram, wherein the indoor layout diagram is marked with multiple communication base stations arranged indoors;
[0039] A second acquisition module is configured to acquire positioning request information sent by a mobile device, wherein the positioning request information includes: a transmission time corresponding to when each communication base station receives the positioning request sent by the mobile device;
[0040] A first determination module determines the distance difference between the mobile device and any two of the communication base stations according to the transmission time corresponding to each of the communication base stations;
[0041] The second determining module determines the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations.
[0042] Optionally, after the second determining module determines the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations, the method further includes:
[0043] Acquire a plurality of location information of the mobile device indoors during a set period;
[0044] According to the plurality of position information, a moving track of the mobile device is drawn in an indoor layout map.
[0045] Optionally, when determining the distance difference between the mobile device and any two of the communication base stations according to the transmission time corresponding to each of the communication base stations, the first determination module is configured to:
[0046] Determine a time measurement difference between any two of the communication base stations according to the transmission time corresponding to each of the communication base stations;
[0047] The distance difference between the mobile device and any two of the communication base stations is determined according to the time measurement difference between any two of the communication base stations.
[0048] Optionally, when determining the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations, the second determination module is used to:
[0049] According to the distance difference between the mobile device and any two of the communication base stations, equations are established respectively to obtain multiple hyperbolic equations;
[0050] A plurality of the hyperbolic equations are solved to obtain the location information of the mobile device.
[0051] Optionally, after determining the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations, the second determination module may also be used to:
[0052] Acquiring field strength information of a plurality of indoor communication base stations;
[0053] Associating the field strength information with the location information to obtain device movement data;
[0054] According to the device movement data, a movement trajectory of the mobile device is drawn in an indoor layout map.
[0055] Optionally, when the second determining module associates the field strength information with the location information to obtain the device movement data, it is configured to:
[0056] Determining a first relative time sequence corresponding to the location information according to a timestamp corresponding to the location information and an air interface solution delay; and
[0057] Determining a second relative time sequence corresponding to the field intensity information according to a timestamp and a communication delay corresponding to the field intensity information;
[0058] The location information, the first relative time series, the field strength information and the second relative time series are input into a trained long short-term memory network model to obtain device movement data.
[0059] Optionally, before using the long short-term memory network model, the second determination module may also be used to:
[0060] Obtaining sample field strength information and sample location information of the sample mobile device;
[0061] Performing a preprocessing operation on the sample field strength information and the sample position information to obtain a training set;
[0062] The initial model is trained according to the training set to obtain the long short-term memory network model.
[0063] Optionally, when the second determination module performs a preprocessing operation on the sample field strength information and the sample position information to obtain a training set, it is configured to:
[0064] Performing data cleaning on the sample field strength information and the sample position information to obtain cleaned sample data;
[0065] For the cleaned sample data, the observation value of the previous time step is used as input, and the observation value of the current time step is used as output to realize the prediction. The sliding window sets a shift for the time series to obtain the sample data after the transformation supervision learning.
[0066] Performing stationary time series processing on the sample data after the transformation supervised learning to obtain stationary time series processed sample data;
[0067] The sample data after the stationary time series processing is scaled to obtain a training set.
[0068] The present disclosure also provides an electronic device, including:
[0069] processor;
[0070] a memory for storing instructions executable by the processor;
[0071] The processor is configured to execute the instructions to implement the steps in the above method.
[0072] The embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each step in the above method is implemented.
[0073] The embodiment of the present disclosure further provides a computer program product, including a computer program / instruction, which implements each step in the above method when executed by a processor.
[0074] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0075] In some embodiments of the present disclosure, an indoor layout diagram is obtained, wherein the indoor layout diagram is marked with multiple communication base stations set up indoors; positioning request information sent by a mobile device is obtained, and the positioning request information includes: the transmission time corresponding to the positioning request sent by the mobile device received by each communication base station; the distance difference between the mobile device and any two communication base stations is determined based on the transmission time corresponding to each communication base station; the location information of the mobile device is determined based on the distance difference between the mobile device and any two communication base stations; the position of the communication base station is fixed, and the present disclosure locates the mobile device based on the distance difference between the mobile device and any two communication base stations, thereby improving the accuracy of indoor positioning.
[0076] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0078] Figure 1 A flowchart of a location information processing method provided by an exemplary embodiment of the present disclosure;
[0079] Figure 2 A schematic diagram of constructing an LSTM neural network model provided for an exemplary embodiment of the present disclosure;
[0080] Figure 3 A schematic diagram of a moving trajectory of a mobile device provided for an exemplary embodiment of the present disclosure;
[0081] Figure 4 A schematic diagram of the structure of a position information processing device provided by an exemplary embodiment of the present disclosure;
[0082] Figure 5 A schematic structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0083] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0084] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure.
[0085] It should be noted that the user information involved in this disclosure includes but is not limited to: user device information and user personal information; the collection, storage, use, processing, transmission, provision and disclosure of user information in this disclosure comply with the relevant laws and regulations and do not violate public order and good morals.
[0086] With the change of modern lifestyle, indoor positioning is increasingly used, especially in enterprises, shopping malls, hospitals and other places. At present, indoor trajectory mapping technology requires the following two:
[0087] Based on WIFI signals: Utilize the widely covered WIFI signals in buildings, realize positioning through fingerprint positioning method, use mobile phone radio frequency to collect fingerprints, and then pair them with the data in the location fingerprint library to estimate the current actual location of the user using the mobile terminal, and display the user's movement trajectory in the client. WIFI is greatly affected by buildings, with low positioning accuracy, and the corresponding drawn route is inaccurate; and the installation of WIFI sites is random, and the integrity of the drawn route cannot be guaranteed.
[0088] Based on base stations: First estimate the distance between the mobile station and the base station, and estimate the location information based on the algorithm of geometric measurement. Distance estimation is the basis of the positioning algorithm. For example, in the Time of Arrival (TOA) measurement, the distance between signal nodes is obtained by measuring the product of the signal propagation time and the signal propagation speed; in the Time Difference of Arrival (TDOA) measurement, the distance difference between different signal nodes is obtained by measuring the time difference of the signal reaching multiple receiving nodes; the received signal strength measurement is based on the signal propagation loss model to deduce the distance between signal nodes. Positioning accuracy depends on signal quality. Due to reasons such as indoor building obstruction, some areas may have weak coverage, affecting trajectory accuracy.
[0089] The above indoor trajectory drawing methods are all based on the accuracy of indoor positioning, and the accuracy of positioning depends on the signal quality. Combining location information with signal quality analysis can further analyze the signal poor points during user movement and optimize them in a targeted manner, thereby improving positioning accuracy.
[0090] In response to the above technical problems, in some embodiments of the present disclosure, an indoor layout diagram is obtained, wherein the indoor layout diagram is marked with multiple communication base stations set up indoors; positioning request information sent by a mobile device is obtained, and the positioning request information includes: the transmission time corresponding to the positioning request sent by the mobile device received by each communication base station; the distance difference between the mobile device and any two communication base stations is determined according to the transmission time corresponding to each communication base station; the location information of the mobile device is determined according to the distance difference between the mobile device and any two communication base stations; the position of the communication base station is fixed, and the present disclosure locates the mobile device based on the distance difference between the mobile device and any two communication base stations, thereby improving the accuracy of indoor positioning.
[0091] The technical solutions provided by various embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings.
[0092] Figure 1 FIG. 1 is a flow chart of a method for processing location information provided by an exemplary embodiment of the present disclosure. Figure 1 As shown, the method includes:
[0093] S101: Acquire an indoor layout diagram, wherein the indoor layout diagram is marked with multiple communication base stations arranged indoors;
[0094] S102: Acquire positioning request information sent by the mobile device, where the positioning request information includes: a transmission time corresponding to when each communication base station receives the positioning request sent by the mobile device;
[0095] S103: determining the distance difference between the mobile device and any two communication base stations according to the transmission time corresponding to each communication base station;
[0096] S104: Determine location information of the mobile device according to the distance difference between the mobile device and any two communication base stations.
[0097] In this embodiment, the execution subject of the above method may be a server or a terminal device.
[0098] Among them, the terminal device includes but is not limited to a mobile station (MS), a mobile terminal, a mobile phone, a handset and a portable equipment, etc. The terminal device can communicate with one or more core networks via a radio access network (RAN). For example, the terminal device can be a mobile phone (or a "cellular" phone), a computer with a wireless communication function, etc. The terminal device can also be a computer with a wireless transceiver function, a virtual reality (VR) terminal device, an AR terminal device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, etc., and the operating system installed on the terminal device includes but is not limited to: IOS, Android, windows, linux, Mac OS and other operating systems. In different networks, the terminal may be called different names, such as user equipment, mobile station, subscriber unit, station, cellular phone, personal digital assistant, wireless modem, wireless communication device, handheld device, laptop computer, cordless phone, wireless local loop station, television, etc. For the convenience of description, it is referred to as terminal equipment in this embodiment.
[0099] In this embodiment, the implementation form of the server. For example, the server can be a conventional server, a cloud server, a cloud host, a virtual center, and other server devices. Among them, the composition of the server mainly includes a processor, a hard disk, a memory, a system bus, etc., and a general computer architecture type. The server can use an edge server in a positioning service.
[0100] The present disclosure proposes a method for drawing indoor motion trajectories in combination with field strength information, performs positioning services based on 5G UTDOA (Uplink Time Difference of Arrival), and introduces user movement data with field strength data to draw the indoor motion trajectory of mobile terminals. By combining field strength information with location information, while drawing the user's movement trajectory, the signal quality differences in the user's movement can be further analyzed, laying the foundation for subsequent targeted optimization, improving signal quality, and improving positioning accuracy. It can be used to implement functions such as inspection routes for inspection personnel, dividing electronic boundaries, intelligent attendance, historical motion trajectories, and provides a data basis for indoor weak coverage analysis, interference analysis, user complaint analysis, etc.
[0101] The present invention first obtains an indoor layout map, marks the radio frequency units installed indoors on the indoor layout map, obtains the location parameters of the mobile terminal based on the distance information between the mobile terminal and multiple radio frequency units, and associates the location parameters of the mobile terminal with the field strength data to draw the movement trajectory of the mobile terminal indoors, laying the foundation for subsequent weak coverage identification and optimization.
[0102] In some embodiments of the present disclosure, a building layout diagram is obtained, that is, a layout drawing of an indoor space, which includes the distribution of indoor rooms, entrances and exits, passages and other spaces.
[0103] In some embodiments of the present disclosure, the location information of all indoor PRRUs (Pico Remote Radio Unit, micro radio remote unit, pico remote radio unit, communication base station) is marked on the building layout diagram.
[0104] It should be noted that the mobile device in the present disclosure may be a mobile terminal or a device based on a third-party location service. A mobile terminal refers to a device with communication and interaction capabilities, such as a mobile phone, a locator, etc.
[0105] In some embodiments of the present disclosure, the positioning request information sent by the mobile device is obtained, and the positioning request information includes: the transmission time corresponding to the positioning request sent by the mobile device received by each communication base station. One achievable method is that the mobile terminal or the device based on the third-party location service sends a positioning request to the indoor communication base station in real time with its own network address; after the communication base station obtains the positioning request with the network address, the communication base station calculates the distance between itself and the mobile terminal. This solution implements the distance measurement between the communication base station and the mobile terminal based on the UTDOA algorithm, and determines the location information of the mobile device.
[0106] In some embodiments of the present disclosure, the distance difference between the mobile device and any two communication base stations is determined according to the transmission time corresponding to each communication base station. One achievable method is to determine the time measurement difference between any two communication base stations according to the transmission time corresponding to each communication base station; and to determine the distance difference between the mobile device and any two communication base stations according to the time measurement difference between any two communication base stations.
[0107] Specifically, after the edge server obtains the positioning request information, it triggers the location measurement of the mobile device, calculates the location of the mobile device based on the measurement report of the mobile device, and returns the mobile device location result to the mobile device through the mobile device location information query response interface of the edge server. At least three communication base stations simultaneously receive the positioning request sent by the mobile device, and obtain the distance difference between the mobile device and each communication base station by multiplying the time measurement difference by the speed of light. The formula is as follows:
[0108] d2-d1=C(T2-T1)
[0109] Where C represents the speed of light, which is 3×10 8 m / s.
[0110] In some embodiments of the present disclosure, the location information of the mobile device is determined according to the distance difference between the mobile device and any two communication base stations. One achievable method is to establish equations according to the distance difference between the mobile device and any two communication base stations, obtain multiple hyperbolic equations, and solve the multiple hyperbolic equations to obtain the location information of the mobile device.
[0111] For example, using four communication base stations as an example, the distance difference calculation formula is as follows:
[0112]
[0113] Among them, (x, y, z) represents the coordinates of the mobile device; (x1, y1, z1) represents the coordinate value of the first communication base station; (x2, y2, z2) represents the coordinate value of the second communication base station; (x3, y3, z3) represents the coordinate value of the third communication base station, and (x4, y4, z4) represents the coordinate value of the fourth communication base station.
[0114] The distance difference between two groups of communication base stations and mobile devices can determine a pair of hyperbolas, and the hyperbolas take the communication base stations involved in the distance measurement as the focus, and the mobile device to be located is on a branch of the hyperbolas. By calculating the distance difference between multiple groups of communication base stations and mobile devices, the intersection lines between the mobile device and each communication base station are formed, and the precise location of the mobile device can be obtained.
[0115] In addition, the calculation formula of the distance parameter d between the mobile device and each communication base station is:
[0116]
[0117] Among them, (x, y, z) represents the location parameters of a mobile device, and (x0, y0, z0) represents the location parameters of a communication base station.
[0118] Different terminals are distinguished according to the unique user ID of the mobile device, the user ID is bound to the distance parameter, and the time when the positioning request is received (i.e., the timestamp) is recorded; thereby, the distance parameter between a specific mobile device and the communication base station is obtained. Since the position of the base station on the indoor layout is fixed, the distance parameter between the mobile device and the communication base station can be used to draw the accurate position of the mobile device when it moves indoors, thereby improving the accuracy of drawing the mobile device's moving route.
[0119] An example of location information of a mobile device is shown in Table 1 below:
[0120] Time UE UTDOA calculation result 2022-09-22 18:08:03:592222 584140462886 14.500000,41.000000,1.500000 2022-09-22 18:08:04:004413 584140462886 3.500000,36.500000,1.500000 2022-09-22 18:08:04:484519 584140462886 0.000000,36.500000,1.500000 2022-09-22 18:08:04:964826 584140462886 2.000000,37.000000,1.500000 2022-09-22 18:08:05:444613 584140462886 0.000000,37.500000,1.500000
[0121] Table 1
[0122] Among them, UE is the user identifier, Time is the timestamp, and UTDOA calc result is the location data.
[0123] In some embodiments of the present disclosure, field strength information of multiple indoor communication base stations is obtained; the field strength information and location information are associated to obtain device movement data; and based on the device movement data, the movement trajectory of the mobile device is drawn in an indoor layout map.
[0124] Among them, the MR (Measurement Report) data of each 5G communication base station in the indoor environment is obtained, and the user identification and timestamp carried in the MR data are associated with the positioning data in the location information of the mobile device to form user positioning data with field strength data. Among them, the user identification can be completely matched, but because the measurement time of the MR data and the positioning data is not completely synchronized, the long short-term memory (LSTM) neural network algorithm needs to be introduced for matching.
[0125] The MR data sample is shown in Table 2 below:
[0126] Time aMF_UE_NGAP_ID RSRP 2022 / 9 / 22 18:45:381294 584140462886 -101 2022 / 9 / 22 18:45:383136 584140462886 -98 2022 / 9 / 22 18:45:384978 584140462886 -102 2022 / 9 / 22 18:45:386820 584140462886 -99 2022 / 9 / 22 18:45:388662 584140462886 -98
[0127] Table 2
[0128] Among them, aMF_UE_NGAP_ID is the user identifier, Time is the timestamp, and RSRP is the field strength data.
[0129] Before using the long short-term memory network model, it is necessary to first train the long short-term memory network model. One feasible method is to obtain the sample field strength information and sample location information of the sample mobile device; perform preprocessing operations on the sample field strength information and sample location information to obtain a training set; and train the initial model according to the training set to obtain a long short-term memory network model.
[0130] In the above embodiment, the sample field strength information and the sample position information are preprocessed to obtain a training set. The sample field strength information and the sample position information are cleaned to obtain cleaned sample data; for the cleaned sample data, the observation value of the previous time step is used as input, and the observation value of the current time step is used as output to achieve prediction, and the sliding window sets a shift on the time series to obtain sample data after transformation supervised learning; the sample data after transformation supervised learning is processed in a stationary time series to obtain sample data after stationary time series processing; the sample data after stationary time series processing is scaled to obtain a training set.
[0131] When the user ID is the same, select the MR data from one hour before the minimum positioning data time to one hour after the maximum positioning data time, perform data cleaning and correlation analysis, and then select RSRP data to establish a time series sample. The data preprocessing process is as follows:
[0132] Data cleaning: Due to problems with the data collection mechanism, the acquired data will have certain omissions and distortions. Before training the long short-term memory network model, the data needs to be cleaned and abnormal data needs to be identified.
[0133] Transformation supervised learning: The long short-term memory network model uses the observations of the previous time step (t-1) as input and the observations of the current time step (t) as output to achieve prediction. Use a sliding window to set a shift on the time series and transform the time series into a new data set, which reconstructs the time series data set into a supervised learning problem. The algorithm continuously iterates to predict the training set and continuously corrects the structure. When the error of the output result is within an acceptable range, the training stops.
[0134] Stationary time series: Stationary time series are easier to model and can make the prediction results more accurate. The overall trend in the time series is removed from the data and added back to the prediction results, so that the prediction value maintains the original trend and is conducive to calculating the error score. The present disclosure uses standard differenced data to perform time series stationarity.
[0135] Scaling: As with general neural networks, the data input to the LSTM model needs to be within the range of the activation function used by the neural network. The default activation function for the LSTM model is the hyperbolic tangent function, which outputs a value between -1 and 1. The scale of the time series data should be scaled within this range.
[0136] The original production time series data are preprocessed and used as training sets and test sets. Figure 2 A schematic diagram of constructing an LSTM neural network model (long short-term memory network model) is provided for an exemplary embodiment of the present disclosure, such as Figure 2 As shown:
[0137] The data of the training set is used as the input layer, and the long short-term memory network model is input to calculate the loss function. This disclosure uses "mean_squared_error" as the loss function because this function is convenient for obtaining the RMSE that measures the prediction accuracy later, as well as the efficient Adam optimization algorithm. The Adam optimization method is used to solve the problem based on the principle of minimum root mean square error, and the trained long short-term memory network model is obtained. The test set is input into the trained long short-term memory network model to obtain the corresponding prediction data. Among them, the settings of some parameters are set according to the empirical values as follows:
[0138] Batch size: 1
[0139] Time points: 1500
[0140] Neurons: 4
[0141] Considering that there is a delay in obtaining positioning information and field strength information, which has a great impact on the final matching result, in order to improve the accuracy of data matching, the delay problem needs to be fully considered when matching data. I ,Right now:
[0142] T rsrp -T1=T dw -T2
[0143] Among them, T1 is the 5G communication delay, that is, the delay caused by obtaining the field strength data of the indoor communication base station; T2 is the air interface solution delay, that is, the delay caused by the mobile device sending the positioning request to completing the positioning information feedback, which is used to calculate the positioning delay. After pilot tests in many places, the 5G indoor positioning delay is about 400ms, and the 5G communication delay is about 1ms, which is much smaller than the positioning delay. rsrp is the timestamp of the MR data, T dw The timestamp of the positioning data.
[0144] In some embodiments of the present disclosure, the field strength information and the location information are associated to obtain the device movement data. One achievable method is to determine the first relative time series corresponding to the location information according to the timestamp and air interface solution delay corresponding to the location information; and determine the second relative time series corresponding to the field strength information according to the timestamp and communication delay corresponding to the field strength information; input the location information, the first relative time series, the field strength information, and the second relative time series into the trained long short-term memory network model to obtain the device movement data. Among them, for T dw After correction, the relative time T of positioning is obtained, and T is input into the trained LSTN neural network model to obtain the field strength data at the corresponding time. The positioning data can be matched with the field strength data to obtain the positioning data combined with the field strength.
[0145] After the algorithm is matched, the user positioning data with field strength data is output, as shown in Table 3:
[0146]
[0147] Table 3
[0148] Among them, aMF_UE_NGAP_ID is the user identifier, Time is the timestamp, RSRP is the field strength data, and UTDOA calcresult is the positioning data.
[0149] Figure 3 A schematic diagram of a moving trajectory of a mobile device provided by an exemplary embodiment of the present disclosure. Figure 4 As shown, based on the description of the above embodiments, points are connected according to the time of the location information of the mobile device to achieve the drawing of the movement route map of the mobile device on the indoor layout map, and the field strength information of each point can be known.
[0150] Figure 4 FIG. 4 is a schematic diagram of a structure of a position information processing device 40 provided by an exemplary embodiment of the present disclosure. Figure 4 As shown, the position information processing device 40 includes: a first acquisition module 41, a second acquisition module 42, a first determination module 43 and a second determination module 44.
[0151] The first acquisition module 41 acquires an indoor layout diagram, wherein the indoor layout diagram is marked with multiple communication base stations arranged indoors;
[0152] The second acquisition module 42 acquires the positioning request information sent by the mobile device, where the positioning request information includes: the transmission time corresponding to the positioning request sent by the mobile device received by each communication base station;
[0153] A first determination module 43 determines the distance difference between the mobile device and any two communication base stations according to the transmission time corresponding to each communication base station;
[0154] The second determination module 44 determines the location information of the mobile device according to the distance difference between the mobile device and any two communication base stations.
[0155] Optionally, after determining the location information of the mobile device according to the distance difference between the mobile device and any two communication base stations, the second determination module 44 may also be used to:
[0156] Acquire multiple location information of mobile devices indoors at a set period;
[0157] Based on the multiple location information, the movement trajectory of the mobile device is drawn in the indoor layout map.
[0158] Optionally, when determining the distance difference between the mobile device and any two communication base stations according to the transmission time corresponding to each communication base station, the first determination module 41 is configured to:
[0159] Determine the time measurement difference between any two communication base stations according to the transmission time corresponding to each communication base station;
[0160] The distance difference between the mobile device and any two communication base stations is determined according to the time measurement difference between any two communication base stations.
[0161] Optionally, when determining the location information of the mobile device according to the distance difference between the mobile device and any two communication base stations, the second determination module 44 is configured to:
[0162] According to the distance difference between the mobile device and any two communication base stations, equations are established respectively to obtain multiple hyperbolic equations;
[0163] Multiple hyperbolic equations are solved to obtain the location information of the mobile device.
[0164] Optionally, after determining the location information of the mobile device according to the distance difference between the mobile device and any two communication base stations, the second determination module 44 may also be used to:
[0165] Obtain field strength information of multiple indoor communication base stations;
[0166] Correlate the field strength information with the location information to obtain device movement data;
[0167] Based on the device movement data, the movement trajectory of the mobile device is drawn in the indoor layout map.
[0168] Optionally, when associating the field strength information with the location information to obtain the device movement data, the second determination module 44 is configured to:
[0169] Determine a first relative time sequence corresponding to the location information according to a timestamp corresponding to the location information and an air interface solution delay; and
[0170] Determine a second relative time sequence corresponding to the field strength information according to a timestamp and a communication delay corresponding to the field strength information;
[0171] The location information, the first relative time series, the field strength information and the second relative time series are input into the trained long short-term memory network model to obtain the device movement data.
[0172] Optionally, before using the long short-term memory network model, the second determining module 44 may also be used to:
[0173] Obtaining sample field strength information and sample location information of the sample mobile device;
[0174] Preprocessing the sample field strength information and the sample position information to obtain a training set;
[0175] The initial model is trained according to the training set to obtain a long short-term memory network model.
[0176] Optionally, when the second determining module 44 performs a preprocessing operation on the sample field strength information and the sample position information to obtain a training set, it is configured to:
[0177] Performing data cleaning on the sample field strength information and the sample position information to obtain cleaned sample data;
[0178] For the cleaned sample data, the observation value of the previous time step is used as input, and the observation value of the current time step is used as output to realize the prediction. The sliding window sets a shift for the time series to obtain the sample data after the transformation supervision learning.
[0179] Perform stationary time series processing on the sample data after the transformation supervision learning to obtain the sample data after stationary time series processing;
[0180] After stationary time series processing, the sample data is scaled to obtain the training set.
[0181] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0182] Figure 5 FIG. 1 is a schematic diagram of a structure of an electronic device provided by an exemplary embodiment of the present disclosure. Figure 5 As shown, the electronic device includes: a memory 51 and a processor 52. In addition, the electronic device also includes a power supply component 53 and a communication component 54.
[0183] The memory 51 is used to store computer programs and can be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application program or method operating on the electronic device.
[0184] The memory 51 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0185] The communication component 54 is used for data transmission with other devices.
[0186] The processor 52 can execute computer instructions stored in the memory 51 to:
[0187] Acquire an indoor layout diagram, wherein the indoor layout diagram is marked with multiple communication base stations arranged indoors;
[0188] Acquire positioning request information sent by the mobile device, the positioning request information including: the transmission time corresponding to the positioning request sent by the mobile device received by each communication base station;
[0189] Determine the distance difference between the mobile device and any two communication base stations according to the transmission time corresponding to each communication base station;
[0190] The location information of the mobile device is determined according to the distance difference between the mobile device and any two communication base stations.
[0191] Optionally, after determining the location information of the mobile device according to the distance difference between the mobile device and any two communication base stations, the processor 52 may also be used to:
[0192] Acquire multiple location information of mobile devices indoors at a set period;
[0193] Based on the multiple location information, the movement trajectory of the mobile device is drawn in the indoor layout map.
[0194] Optionally, when determining the distance difference between the mobile device and any two communication base stations according to the transmission time corresponding to each communication base station, the processor 52 is configured to:
[0195] Determine the time measurement difference between any two communication base stations according to the transmission time corresponding to each communication base station;
[0196] The distance difference between the mobile device and any two communication base stations is determined according to the time measurement difference between any two communication base stations.
[0197] Optionally, when determining the location information of the mobile device according to the distance difference between the mobile device and any two communication base stations, the processor 52 is configured to:
[0198] According to the distance difference between the mobile device and any two communication base stations, equations are established respectively to obtain multiple hyperbolic equations;
[0199] Multiple hyperbolic equations are solved to obtain the location information of the mobile device.
[0200] Optionally, after determining the location information of the mobile device according to the distance difference between the mobile device and any two communication base stations, the processor 52 may also be used to:
[0201] Obtain field strength information of multiple indoor communication base stations;
[0202] Correlate the field strength information with the location information to obtain device movement data;
[0203] Based on the device movement data, the movement trajectory of the mobile device is drawn in the indoor layout map.
[0204] Optionally, when the processor 52 associates the field strength information with the location information to obtain the device movement data, it is configured to:
[0205] Determine a first relative time sequence corresponding to the location information according to a timestamp corresponding to the location information and an air interface solution delay; and
[0206] Determine a second relative time sequence corresponding to the field intensity information according to a timestamp and a communication delay corresponding to the field intensity information;
[0207] The location information, the first relative time series, the field strength information and the second relative time series are input into the trained long short-term memory network model to obtain the device movement data.
[0208] Optionally, before using the long short-term memory network model, the processor 52 may also be used to:
[0209] Obtaining sample field strength information and sample location information of the sample mobile device;
[0210] Preprocessing the sample field strength information and the sample position information to obtain a training set;
[0211] The initial model is trained according to the training set to obtain a long short-term memory network model.
[0212] Optionally, when the processor 52 performs a preprocessing operation on the sample field strength information and the sample position information to obtain a training set, it is configured to:
[0213] Performing data cleaning on the sample field strength information and the sample position information to obtain cleaned sample data;
[0214] For the cleaned sample data, the observation value of the previous time step is used as input, and the observation value of the current time step is used as output to realize the prediction. The sliding window sets a shift for the time series to obtain the sample data after the transformation supervision learning.
[0215] Perform stationary time series processing on the sample data after the transformation supervision learning to obtain the sample data after stationary time series processing;
[0216] After stationary time series processing, the sample data is scaled to obtain the training set.
[0217] Accordingly, the present disclosure also provides a computer-readable storage medium storing a computer program. When the computer-readable storage medium stores the computer program and the computer program is executed by one or more processors, the one or more processors execute Figure 1 Each step in the method embodiment.
[0218] Accordingly, the present disclosure also provides a computer program product, the computer program product includes a computer program / instruction, the computer program / instruction is executed by a processor Figure 1 Each step in the method embodiment.
[0219] Above Figure 5 The communication component in is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0220] Above Figure 5 The power supply component in the device provides power to various components of the device where the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply component is located.
[0221] The electronic device also includes an audio component and a display screen.
[0222] The display screen includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0223] The audio component may be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal.
[0224] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0225] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0226] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0227] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0228] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0229] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0230] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0231] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0232] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing position information, characterized in that: include: Acquire an indoor layout diagram, wherein the indoor layout diagram is marked with a plurality of communication base stations arranged indoors; Acquire positioning request information sent by the mobile device, wherein the positioning request information includes: a transmission time corresponding to when each of the communication base stations receives the positioning request sent by the mobile device; Determine the distance difference between the mobile device and any two of the communication base stations according to the transmission time corresponding to each of the communication base stations; The location information of the mobile device is determined according to the distance difference between the mobile device and any two of the communication base stations.
2. The method according to claim 1, characterized in that After determining the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations, the method further includes: Acquire a plurality of location information of the mobile device indoors during a set period; According to the plurality of position information, a moving track of the mobile device is drawn in an indoor layout map.
3. The method according to claim 1, characterized in that The determining, according to the transmission time corresponding to each of the communication base stations, a distance difference between the mobile device and any two of the communication base stations, comprises: Determine a time measurement difference between any two of the communication base stations according to the transmission time corresponding to each of the communication base stations; The distance difference between the mobile device and any two of the communication base stations is determined according to the time measurement difference between any two of the communication base stations.
4. The method according to claim 1, characterized in that The determining the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations comprises: According to the distance difference between the mobile device and any two of the communication base stations, equations are established respectively to obtain multiple hyperbolic equations; A plurality of the hyperbolic equations are solved to obtain the location information of the mobile device.
5. The method according to claim 1, characterized in that After determining the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations, the method further includes: Acquiring field strength information of a plurality of indoor communication base stations; Associating the field strength information with the location information to obtain device movement data; According to the device movement data, a movement trajectory of the mobile device is drawn in an indoor layout map.
6. The method according to claim 5, characterized in that The associating the field strength information with the location information to obtain device movement data includes: Determining a first relative time sequence corresponding to the location information according to a timestamp corresponding to the location information and an air interface solution delay; and Determining a second relative time sequence corresponding to the field intensity information according to a timestamp and a communication delay corresponding to the field intensity information; The location information, the first relative time series, the field strength information and the second relative time series are input into a trained long short-term memory network model to obtain device movement data.
7. The method according to claim 6, characterized in that Before using the long short-term memory network model, the method further includes: Obtaining sample field strength information and sample location information of the sample mobile device; Performing a preprocessing operation on the sample field strength information and the sample position information to obtain a training set; The initial model is trained according to the training set to obtain the long short-term memory network model.
8. The method according to claim 7, characterized in that The preprocessing operation is performed on the sample field strength information and the sample position information to obtain a training set, including: Performing data cleaning on the sample field strength information and the sample position information to obtain cleaned sample data; For the cleaned sample data, the observation value of the previous time step is used as input, and the observation value of the current time step is used as output to realize the prediction. The sliding window sets a shift for the time series to obtain the sample data after the transformation supervision learning. Performing stationary time series processing on the sample data after the transformation supervised learning to obtain stationary time series processed sample data; The sample data after the stationary time series processing is scaled to obtain a training set.
9. A position information processing device, characterized in that: include: A first acquisition module acquires an indoor layout diagram, wherein the indoor layout diagram is marked with multiple communication base stations arranged indoors; A second acquisition module is configured to acquire positioning request information sent by a mobile device, wherein the positioning request information includes: a transmission time corresponding to when each communication base station receives the positioning request sent by the mobile device; A first determination module determines the distance difference between the mobile device and any two of the communication base stations according to the transmission time corresponding to each of the communication base stations; The second determining module determines the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations.
10. The device according to claim 9, characterized in that After the second determining module determines the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations, the method further includes: Acquire a plurality of location information of the mobile device indoors during a set period; According to the plurality of position information, a moving track of the mobile device is drawn in an indoor layout map.
11. The device according to claim 9, characterized in that When determining the distance difference between the mobile device and any two of the communication base stations according to the transmission time corresponding to each of the communication base stations, the first determination module is used to: Determine a time measurement difference between any two of the communication base stations according to the transmission time corresponding to each of the communication base stations; The distance difference between the mobile device and any two of the communication base stations is determined according to the time measurement difference between any two of the communication base stations.
12. The device according to claim 9, characterized in that When determining the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations, the second determination module is used to: According to the distance difference between the mobile device and any two of the communication base stations, equations are established respectively to obtain multiple hyperbolic equations; A plurality of the hyperbolic equations are solved to obtain the location information of the mobile device.
13. The device according to claim 9, characterized in that After determining the location information of the mobile device according to the distance difference between the mobile device and any two of the communication base stations, the second determination module may also be used to: Acquiring field strength information of a plurality of indoor communication base stations; Associating the field strength information with the location information to obtain device movement data; According to the device movement data, a movement trajectory of the mobile device is drawn in an indoor layout map.
14. The device according to claim 13, characterized in that When the second determination module associates the field strength information with the location information to obtain the device movement data, it is used to: Determine a first relative time sequence corresponding to the location information according to a timestamp corresponding to the location information and an air interface solution delay; as well as Determining a second relative time sequence corresponding to the field intensity information according to a timestamp and a communication delay corresponding to the field intensity information; The location information, the first relative time series, the field strength information and the second relative time series are input into a trained long short-term memory network model to obtain device movement data.
15. The device according to claim 14, characterized in that Before using the long short-term memory network model, the second determination module may also be used to: Obtaining sample field strength information and sample location information of the sample mobile device; Performing a preprocessing operation on the sample field strength information and the sample position information to obtain a training set; The initial model is trained according to the training set to obtain the long short-term memory network model.
16. The device according to claim 15, characterized in that When the second determination module performs a preprocessing operation on the sample field strength information and the sample position information to obtain a training set, it is used to: Performing data cleaning on the sample field strength information and the sample position information to obtain cleaned sample data; For the cleaned sample data, the observation value of the previous time step is used as input, and the observation value of the current time step is used as output to realize the prediction. The sliding window sets a shift for the time series to obtain the sample data after the transformation supervision learning. Performing stationary time series processing on the sample data after the transformation supervised learning to obtain stationary time series processed sample data; The sample data after the stationary time series processing is scaled to obtain a training set.
17. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement each step in the method according to any one of claims 1 to 8.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the method according to any one of claims 1 to 8 is implemented.
19. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
