Target positioning method and device based on base station association mapping and medium
By acquiring PDT signaling and base station mapping tables, and combining coverage weight model and Viterbi algorithm, the problems of terminal positioning delay and poor accuracy in underground space were solved, achieving real-time and accurate terminal positioning, and reducing construction costs and operation and maintenance burden.
Patent Information
- Application Number
- CN202611513062.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-28
- Publication Date
- 2026-11-20
AI Technical Summary
In underground spaces, existing technologies struggle to achieve real-time, accurate terminal positioning, and the construction costs are high. The positioning results are delayed, failing to meet real-time command requirements. Furthermore, the positioning accuracy is poor, making it incompatible with existing PDT digital trunking communication systems.
By acquiring the PDT signaling sent by the base station, the target parameters are extracted. Using the base station site mapping table and coverage weight model, combined with the Viterbi algorithm and sliding time window, the current location of the terminal is calculated. Minimum dwell time and hysteresis count constraints are applied to achieve real-time and accurate positioning of the terminal.
Maintaining the continuity and accuracy of positioning results in areas with overlapping coverage of neighboring stations, areas with multiple base stations sharing a site at transfer stations, and ping-pong handover intervals, this technology enables real-time and precise terminal positioning in underground spaces, reducing construction costs and maintenance burdens.
Smart Images

Figure CN123145685A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal positioning technology, and in particular to a target positioning method, device and medium based on base station association mapping. Background Technology
[0002] With the continuous improvement of urban rail transit networks, subways have become the arteries of urban public transportation, and their security pressure is increasing day by day. Due to the influence of the underground station building structure and electromagnetic shielding characteristics, the terminals used by police officers, such as walkie-talkies and law enforcement recorders, cannot obtain GPS or Beidou satellite positioning signals in underground spaces, thus creating positioning blind spots. This makes it difficult for the command and control center to achieve precise point-to-point dispatch of underground police forces in emergency response, security for major events, and daily duty command, often relying on manual reporting, resulting in pain points such as information lag and low dispatch efficiency.
[0003] To address these issues, existing technologies employ positioning schemes based on leaky cable communication. However, this requires additional leaky cable laying or high-density deployment of small base stations, resulting in high construction and renovation costs and long construction periods. Alternatively, indoor positioning technologies based on UWB or Bluetooth beacons can be used, but this requires deploying a large number of positioning tags and receiving terminals in key areas of the station, leading to a heavy maintenance burden. Fingerprint positioning methods based on multi-base station signal strength or time difference of arrival can be used, but this approach is highly susceptible to environmental electromagnetic interference and difficult to scale to the entire network. Another method involves directly looking up a pre-set mapping table to obtain positioning information. However, in subway environments, base stations form a chain-like coverage pattern within tunnels, and the same station may be covered by multiple base stations, with the coverage area of the same base station potentially spanning adjacent stations. This table inherently contains ambiguities in overlapping coverage areas of neighboring stations and shared areas of transfer stations, resulting in low positioning accuracy.
[0004] It is evident that the existing solutions suffer from a series of problems, including high construction and renovation costs; significant delays in positioning results, which fail to meet real-time command requirements and result in poor positioning accuracy; and poor compatibility with the existing PDT digital trunking communication system. Summary of the Invention
[0005] In response to the aforementioned problems and technical requirements, the applicant has proposed a target positioning method, device, and medium based on base station association mapping to solve the problems of long positioning delay and poor accuracy in the existing technology when positioning terminals in underground spaces, thereby achieving real-time and accurate terminal positioning in underground spaces.
[0006] This application provides a target localization method based on base station association mapping, the method comprising: Obtain the current PDT signaling sent by the base station and extract the current target parameters carried in the current PDT signaling. The target parameters include: terminal identifier, base station identifier, signaling timestamp and GPS field. Based on the current target parameters, sliding time window, and preset base station mapping table, determine the current scene state of the terminal; If the current scenario is determined to be an underground scenario, a first candidate station set is constructed based on the scheduled routes registered by the terminal and their adjacent routes; based on the preset base station station coverage weight model, the current observation likelihood corresponding to each first candidate station in the first candidate station set is calculated; taking the first candidate station as the state, the route topology reachability as the state transition constraint, and the current observation likelihood as the transmission probability, the current first optimal position is calculated based on the Viterbi algorithm within a sliding time window; a preset minimum dwell time and hysteresis count constraint are applied to the current first optimal position to obtain the current first station position after jitter reduction; the current first station position is sent to the front end.
[0007] According to the target localization method based on base station association mapping provided in the embodiments of this application, after obtaining the current first station location after shake removal, the method further includes: Determine whether the current first station location is a preset transfer station; If the current first station location is determined to be a transfer station, line disambiguation processing is performed based on the previous station location, line topology accessibility and scheduling route, and the step of sending the current first station location to the front end is executed after the line disambiguation processing. If it is determined that the current first station location is not a transfer station, the step of sending the current first station location to the front end is executed.
[0008] According to the target localization method based on base station association mapping provided in the embodiments of this application, taking the first candidate station as the state, the line topology reachability as the state transition constraint, and the current observation likelihood as the transmission probability, the current first optimal position is calculated based on the Viterbi algorithm within a sliding time window, including: The state transition probability from the previous first optimal position to each first candidate station is calculated based on the state transition probability calculation formula. The formula for calculating the state transition probability includes: ; in, Represents the state transition probability. Represents the normalization factor. , This indicates the station corresponding to the previous optimal location. Includes multiple This indicates that on the route topology diagram, it is related to... The corresponding set of candidate stations Indicates the first candidate station. λ represents the distance between the two stations on the topology map, and λ represents the distance attenuation coefficient. Within the sliding time window, the current first optimal position is obtained based on the Viterbi algorithm and the state transition probability.
[0009] According to the target positioning method based on base station association mapping provided in the embodiments of this application, a preset minimum dwell time and hysteresis count constraint is applied to the current optimal location to obtain the current first station location after jitter removal, including: If the first candidate station in the candidate station set is back-determined as the current first optimal position more than a preset number of times within the sliding time window, and the terminal stays at the current first station position for a longer period than a preset duration, then the position of the first candidate station is determined as the current first station position after shake removal.
[0010] According to the target positioning method based on base station association mapping provided in the embodiments of this application, the method further includes: If the scenario is determined to be a ground-based scenario, a second set of candidate stations is constructed based on the scheduling routes registered by the terminal and their adjacent routes; The current terminal coordinates are determined based on the GPS field, and the spherical distance between the current terminal coordinates and the positions of each second candidate station in the second candidate station set is calculated to obtain the position of the second candidate station corresponding to the minimum spherical distance. If the reliability of determining the location of the second candidate station corresponding to the minimum spherical distance is greater than the preset reliability threshold, and the line topology reachability is satisfied, then this location is determined as the current second optimal location, and the current second optimal location is sent to the front end.
[0011] According to the target positioning method based on base station association mapping provided in the embodiments of this application, the method further includes: If the current scene state is determined to be a transitional scene, the previous station value is used, and the process returns to the step of determining the current scene state of the terminal based on the current target parameters, sliding time window and preset base station station mapping table, until the current scene state is an underground scene or a ground scene.
[0012] According to the target localization method based on base station association mapping provided in the embodiments of this application, the scene states include: underground scene and above-ground scene; Based on the current target parameters, the sliding time window, and the preset base station mapping table, determine the current scene state of the terminal, including: Based on the base station mapping table, the segment corresponding to each base station and the coverage weight pre-configured for the base station are obtained within multiple consecutive sliding time windows. The base station mapping table records the segment where each station is located, and the segment is used to characterize the scene status. For each base station, the coverage weights corresponding to multiple sliding time windows are summed based on the acquired segment to obtain a weighted vote; when the weighted vote is greater than the scene decision threshold and the segments of multiple sliding time windows are consistent, the current segment is determined to be the scene state of the terminal.
[0013] According to the target localization method based on base station association mapping provided in the embodiments of this application, the scene state also includes: a transition scene; Determine the current scene state of the terminal, including: For each base station, if there are segments with the same weighted votes, and the weighted votes of each segment are less than the scenario decision threshold, the scenario state of the terminal is set as a transitional scenario.
[0014] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps of the target positioning method based on base station association mapping as described above.
[0015] This application also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the target localization method based on base station association mapping as described above.
[0016] The target positioning method, device, and medium based on base station association mapping provided in this application construct a first candidate station set based on the terminal's registered shift route and its adjacent routes when the current scene is determined to be an underground scene. Based on a preset base station station coverage weight model, the current observation likelihood corresponding to each first candidate station in the first candidate station set is calculated. Taking the first candidate station as the state, the line topology reachability as the state transition constraint, and the current observation likelihood as the transmission probability, the current first optimal position is calculated based on the Viterbi algorithm within a sliding time window. A preset minimum dwell time and hysteresis count constraint are applied to the current first optimal position to obtain the current first station position after jitter reduction. The current first station position is sent to the front end. This application uses the known base station vehicle mapping base station station coverage weight model to calculate the observation likelihood and obtains the global optimal solution on the time series based on the Viterbi algorithm, i.e., the current first optimal position. The jitter reduction operation is performed on the current first optimal position to obtain the final optimal position. This achieves the continuity and accuracy of positioning results even in areas with overlapping coverage of neighboring stations, multiple base station co-location areas at transfer stations, and handover ping-pong intervals, realizing real-time and accurate terminal positioning in underground spaces. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart illustrating the target localization method based on base station association mapping provided in an embodiment of this application; Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0020] This application provides a target localization method based on base station association mapping. This method can be applied to smart terminals and servers. The following example illustrates its application to a server; however, this is merely illustrative and not intended to limit the scope of protection of this application. Subsequent examples similarly do not limit the scope of protection of this application. The specific implementation of this method is as follows: Figure 1 As shown: Step 101: Obtain the current PDT signaling sent by the base station and extract the current target parameters carried in the current PDT signaling.
[0021] The target parameters include: terminal identifier, base station identifier, signaling timestamp, and GPS field.
[0022] Step 102: Based on the current target parameters, sliding time window and preset base station mapping table, determine the current scene state of the terminal.
[0023] Step 103: If the current scene is determined to be an underground scene, construct a first candidate station set based on the scheduling line registered by the terminal and its adjacent lines; calculate the current observation likelihood corresponding to each first candidate station in the first candidate station set based on the preset base station station coverage weight model; calculate the current first optimal position within a sliding time window using the first candidate station as the state, the line topology reachability as the state transition constraint, and the current observation likelihood as the transmission probability, based on the Viterbi algorithm; apply the preset minimum dwell time and hysteresis count constraint to the current first optimal position to obtain the current first station position after jitter reduction; and send the current first station position to the front end.
[0024] The target positioning method based on base station association mapping provided in this application constructs a first candidate station set based on the terminal's registered scheduling route and its adjacent routes when the current scene is determined to be an underground scene. Based on a preset base station station coverage weight model, the current observation likelihood corresponding to each first candidate station in the first candidate station set is calculated. Taking the first candidate station as the state, the route topology reachability as the state transition constraint, and the current observation likelihood as the transmission probability, the current first optimal position is calculated based on the Viterbi algorithm within a sliding time window. A preset minimum dwell time and hysteresis count constraint are applied to the current first optimal position to obtain the current first station position after jitter reduction. The current first station position is sent to the front end. This application uses the known base station vehicle mapping base station station coverage weight model to calculate the observation likelihood and obtains the global optimal solution on the time series based on the Viterbi algorithm, i.e., the current first optimal position. The jitter reduction operation is performed on the current first optimal position to obtain the final optimal position. This method can maintain the continuity and accuracy of positioning results even in areas with overlapping coverage of neighboring stations, areas with multiple base stations sharing a station at transfer stations, and handover ping-pong intervals, and achieves real-time and accurate terminal positioning in underground spaces.
[0025] The base station mapping table is a pre-configured data table in the system background, maintained by operation and maintenance personnel. It is used to record the correspondence between the unique identifier of the wireless base station in the PDT digital trunking communication system and each subway station (including underground stations, ground stations and elevated stations) within its coverage area.
[0026] Among them, PDT signaling is a standardized message record actively pushed by the PDT radio subsystem when events such as terminal online / offline, base station switching, keypad calling, and GPS reporting occur in the PDT digital trunking communication system.
[0027] The terminal identifier of the PDT terminal corresponds to the unique identifier of the police officer, which is used to associate PDT signaling and related data with the police officer.
[0028] Among them, the base station identifier is the unique code of the PDT wireless base station within the system.
[0029] Specifically, because base stations within tunnels provide chain-like coverage, the same station may be covered by multiple base stations, and the coverage area of the same base station may also extend to adjacent stations. This creates inherent ambiguity in the table regarding overlapping coverage areas between neighboring stations and shared station areas at transfer stations. Existing technologies directly use base station identifiers as keys to look up a unique station (i.e., one-to-one hard decision). This method fails to provide correct results in overlapping coverage areas and shared station areas, further amplifying positioning errors and resulting in poor accuracy. Furthermore, base station handover suffers from measurement lag and the ping-pong effect. Independent decisions based on single-frame signaling can cause the terminal position to repeatedly jump between adjacent stations, outputting a "false trajectory" that does not conform to actual movement patterns.
[0030] This application models base stations and stations as weighted many-to-many probabilistic associations and seeks the global optimal solution over the entire time series. Therefore, it can maintain the continuity and accuracy of positioning results in areas with overlapping coverage of neighboring stations, areas with multiple base stations sharing a station at transfer stations, and handover ping-pong intervals.
[0031] In one specific embodiment, this application is implemented through a combination of software and hardware.
[0032] Regarding the hardware field: This application does not involve any new positioning devices at the hardware level, but rather fully reuses the existing PDT infrastructure. Its connection relationships are as follows: 1) The PDT core network switch and the base station controller are connected via Ethernet links, and are responsible for managing the registration, authentication and handover of each base station along the subway line; 2) The coverage area of each base station and the subway station (including underground stations, ground stations and elevated stations) have a many-to-many coverage relationship, that is, the same station can be covered by multiple base stations, and the coverage area of the same base station can also span adjacent stations. This coverage relationship is fixed in the configuration after the operation and maintenance department conducts preliminary surveys and serves as the basic data for base station-station coverage weight modeling; 3) When the PDT user terminal (i.e., walkie-talkie) is powered on, handovers across base stations, or reports on a regular schedule, the PDT radio subsystem pushes the above signaling events to the signaling data access module of this system through a TCP long connection; 4) After the application server and Web server deployed in the central computer room complete the calculation of the valid signaling records, the real-time message push module pushes the station-level location to the browser corresponding to each terminal through a WebSocket long connection. The location events are also persisted by the historical data playback and comprehensive query module.
[0033] Regarding the software field: The algorithm logic of the target positioning method based on base station association mapping provided in the embodiments of this application.
[0034] In one specific embodiment, the specific implementation of determining the current scene state of the terminal includes: Based on the base station mapping table, the segments corresponding to each base station within multiple consecutive sliding time windows and the coverage weights pre-configured for the base stations are obtained. For each base station, the coverage weights corresponding to multiple sliding time windows are summed based on the obtained segments to obtain a weighted vote; when the weighted vote is greater than the scene decision threshold and the segments of multiple sliding time windows are consistent, the current segment is determined to be the scene state of the terminal.
[0035] The base station mapping table records the segment where each station is located, and the segment is used to represent the scene status.
[0036] In one specific embodiment, a base station coverage weight model is constructed to obtain the coverage weight of each base station based on the coverage weight model.
[0037] Specifically, due to the existence of multiple base station co-location areas between the base station and transfer stations in the overlapping coverage boundaries of neighboring stations, station positioning errors may occur. This application addresses this issue by establishing a many-to-many probabilistic association using a coverage weight model.
[0038] For any base station b, its coverage weight vector (coverage weight) for each candidate station is defined as shown in formula (1): ...(1) Formula (1) satisfies the normalization condition. With range of values .
[0039] Where n is the number of candidate stations (n≤50, i.e., the dimension of the coverage weight vector of base station b). This indicates that the coverage area of base station b falls within the candidate station. The probability within the jurisdiction (j=1,2,…,n).
[0040] The coverage weight vector is generated from on-site field strength measurement data or historical residence statistics.
[0041] In one specific embodiment, the observation likelihood is calculated when the current scene state is an underground scene.
[0042] The base station and the terminal will conduct periodic data exchanges. During each data exchange, the PDT signaling sent by the base station is obtained. The logical algorithm of the target positioning method is executed in each exchange, which is an iterative loop calculation.
[0043] Specifically, when the base station identifier observed in the k-th observation (i.e., the k-th acquisition of PDT signaling, or the k-th iteration loop) is... At that time, candidate stations The observation likelihood is defined in formula (2): ...(2) in, This represents the observation value at the k-th observation, and its value is the base station identifier observed in this observation. This observation is the only observable external evidence. Since the terminal cannot obtain satellite positioning underground, it can only be determined which base station the terminal is currently connected to through this observation. This represents the hidden state of the terminal at the k-th observation, i.e., the actual station where the terminal is located, and its value is taken from the candidate station set. Specifically, the station number, such as 1-n, is defined as the hidden state. This is because the station where the terminal is located cannot be directly observed, but can only be inferred through the base station identifier. Therefore, the positioning problem in the underground scenario can be modeled as a hidden Markov model, where the observation sequence consists of the base station identifier of each observation, and the state sequence consists of the hidden state of each observation.
[0044] Formula (2) is used to characterize the terminal located at the candidate station. At that time, it was observed The conditional probability is equal to right Coverage weight.
[0045] When a terminal is located in the strong coverage area of a station, that station obtains a high likelihood; when a terminal is located in the coverage overlap area of two adjacent stations, each station obtains a likelihood proportional to its coverage weight, thus avoiding the error amplification caused by hard decision.
[0046] In one specific embodiment, the state transition probabilities of topological constraints are calculated.
[0047] With candidate stations in a hidden state, the terminal is controlled by the station. Move to its topologically adjacent station The state transition probability is given by formula (3): ...(3) in, Represents the state transition probability. Represents the normalization factor. , This indicates the station where the terminal is located during the (k-1)th observation. Includes multiple This indicates that on the route topology diagram, it is related to... The corresponding set of candidate stations λ represents the distance between the two stations on the topology map, and λ represents the distance attenuation coefficient.
[0048] Among them, when Not belonging to At that time, take =0.
[0049] By using state transition probabilities, the transition probability of crossing unreachable line topologies is kept constant to zero, thus eliminating the possibility of mismatches across lines in principle.
[0050] In one specific embodiment, the optimal position is obtained based on the Viterbi algorithm.
[0051] Let the length of the sliding time window be W, and in the window [k Define the forward recursion within W+1,k. Let the hidden state up to the k-th observation be a value of . The maximum joint likelihood among all state paths. That is, From the start of the window up to the k-th observation, among all possible state paths, the k-th observation falls on... The maximum value of the joint probability corresponding to the target path.
[0052] Define a backtrack pointer Record the optimal predecessor state that achieves this maximum value. The recursive formula is shown in formula (4): ... (4) in, This represents the forward recursion quantity corresponding to the k-th observation. This represents the forward recursion quantity corresponding to the (k-1)th observation. This represents the backtracking pointer corresponding to the k-th observation.
[0053] The essence of Viterbi recursion is to "maximize the score of a certain state j in the current frame by considering all possible states i in the previous frame," where i is the origin and j is the destination. The same j remains fixed within the same frame, and i is maximized after trying all n candidate stations. Therefore, This represents the state transition probability from i to j. That is, the maximum value ending with j.
[0054] Specifically, the initial condition for the recursion is: window starting point k Observations prior to W+1 have already slipped out of the window, and there are no usable predecessor states at the beginning of the window. Therefore, each candidate station takes the equivalent prior. At the same time, Null value (denoted as) ), indicating that the state at the beginning of the window has no predecessor, and the backtracking terminates when the window begins. Therefore, the recursion starts from k. Starting with W+2, each observation within the window is executed frame by frame until the end of the window, K.
[0055] After recursively reaching the end of the window K, the optimal final state is obtained. Start by backtracking step by step using the backtracking pointer. This yields the global optimal position sequence (optimal position) within the window.
[0056] in, The optimal hidden state (which is the optimal final state when k=K) is the k-th observation on the backtracking path, and its value is the candidate station number.
[0057] in, and The differences are: The value of the hidden state is determined at step k. The maximum joint likelihood at time is a likelihood value, and It is via backtracking pointer The k-th step of the actual optimal state obtained by backtracking step by step is a station number, and the two cannot be used interchangeably.
[0058] The optimal final state and the optimal predecessor state are the opposite directions of the same set of backtracking pointers, and their relationship is as follows: Optimal final state: At the end of the window K, let The station with the highest score is the end point of the entire sequence.
[0059] Optimal predecessor state: backtracking pointer The record is to make The state i of the previous frame when the maximum value is obtained is the origin of each step, which is the pointer of the optimal station in the previous frame (the (k-1)th observation).
[0060] The backtracking process includes: first, extracting the optimal final state from the end of the window. Then, its optimal predecessor is read by the pointer. , and then ...By tracing back step by step to the beginning of the window, we can obtain the entire global optimal position sequence within the window, and thus obtain the optimal position (the first optimal position).
[0061] In other words, Responsible for scoring and selecting the final state. The two are responsible for guiding the push back, and they work together to restore the score to the position.
[0062] The purpose of this embodiment is to solve for the global optimum over the entire time series, thus effectively suppressing trajectory jumps caused by single-frame switching jitter.
[0063] In one specific embodiment, the optimal position is subjected to de-jitter processing.
[0064] To further suppress residual jumps, a dual constraint of minimum dwell time and hysteresis count is imposed on the globally optimal position sequence obtained by backtracking: Only when candidate stations Within a sliding window of length W, the number of times the state is backtracked and determined to be the optimal state is no less than the threshold N, i.e. And the terminal's continuous dwell time at the station meets the requirements. Only then will The stable positioning result is output externally.
[0065] in, Indicate candidate stations The number of backtracking votes within a sliding window of length W (i.e., the number of times the state is determined to be optimal). This represents the optimal backtracking state of the k′-th observation (the candidate station number), and N represents the threshold (preset number of times). Indicates that the terminal has left the station. At that moment, Indicates that the terminal has entered the station. At that moment, Indicates the minimum dwell time (preset duration).
[0066] Where I(·) is an indicator function, which takes the value 1 when the condition is met and 0 otherwise, i.e., when the optimal state of the backtracking in the k′th observation is exactly the candidate station. One vote was cast per hour.
[0067] Specifically, by the rate of decrease in jitter To measure the shaking effect, see formula (5): ...(5) in, This indicates the number of state transitions per unit time before dejittering. This indicates the number of state flips per unit time after dejittering.
[0068] Specifically, This is to statistically determine the number of state flips in the original location sequence obtained by backtracking using the Viterbi algorithm per unit time (i.e., the number of times the location station number changes between two adjacent frames). This is the number of state flips in a sequence after adding constraints, calculated per unit time.
[0069] It should be noted that, in the case of an underground scene, the parameters involved are as follows: the candidate station set is the first candidate station set, the candidate station is the first candidate station, and the optimal location is the first optimal location, etc.
[0070] In one specific embodiment, when the current scene state is a ground scene, the second optimal position is calculated.
[0071] Specifically, the second set of candidate stations was determined.
[0072] Construct a second candidate station set based on all stations on the line registered by the terminal and its adjacent lines. .
[0073] Where m is the number of second candidate stations. Central latitude and longitude ( , ), l=1,2,…,m; the number of second candidate stations m is determined by the line topology and satisfies m≤50.
[0074] Specifically, assuming the terminal reports GPS coordinates at a period τ, then the time of the kth observation is... (k=0,1,2,…), where The starting time of this mission is τ, which is the position update period, defaulted to τ=1s and can be configured as needed in the system management interface; the terminal coordinates corresponding to the k-th observation are ( , ).
[0075] Specifically, for the k-th observation, the terminal coordinates and the candidate station spherical distance between The calculation is performed according to the Haversine formula, see formula (6): ... (6) Where R represents the Earth's radius, which is 6371 km.
[0076] Specifically, for the k-th observation, the minimum and second minimum distances are taken from the candidate station set C: , .
[0077] in .
[0078] Specifically, to measure the reliability of the nearest neighbor matching results, the location confidence score of the k-th observation is defined. The separation degree between the nearest and second nearest distances: .
[0079] when much smaller hour, A value close to 1 indicates that the terminal is clearly close to a certain station and the matching result is reliable; when two candidate stations are close to each other, A value close to 0 indicates that the matching result is ambiguous.
[0080] And, when ≥ S threshold Only when the matching result of the kth observation is reached will it be pushed to the front end; otherwise, the observation will be discarded or marked as "location pending confirmation".
[0081] in, S threshold For example, the location confidence threshold.S threshold =0.7. .
[0082] And when ≥ S threshold At that time, the matching result (second optimal position) is required to satisfy... , matching results Push to the front end.
[0083] "Meeting line topology constraints" means that the second candidate station must be the same as or adjacent to the line registered by the terminal, in order to avoid cross-line mismatches near transfer stations.
[0084] In one specific embodiment, the reporting cycle is adaptively adjusted using location confidence.
[0085] To further reduce terminal signaling reporting volume and power consumption, the location update cycle τ in ground scenarios is no longer fixed, but adaptively adjusted according to the location confidence of the previous observation: when the match is reliable (S(k) is large, greater than the preset confidence), the reporting cycle is appropriately extended to reduce redundant reporting; when the match is ambiguous (S(k) is small, less than or equal to the preset confidence), the reporting cycle is shortened to increase sampling density and restore reliable matching as soon as possible, as shown in formula (7): ... (7) in, and These are the lower and upper limits of the reporting period, respectively, with the default value being... =1s、 =10s; when the confidence level is insufficient, observations are discarded, or marked as "location pending confirmation", τ is taken to the lower limit. To ensure that new observations are obtained as soon as possible.
[0086] This application significantly reduces terminal signaling reporting volume and power consumption by adjusting the adaptive reporting cycle driven by location confidence, while ensuring positioning accuracy during critical periods, thereby alleviating the signaling link load.
[0087] It should be noted that, when the current scene is a ground scene, the parameters involved are: the candidate station set is the second candidate station set, the candidate station is the second candidate station, the optimal position is the second optimal position, etc.
[0088] In one specific embodiment, after obtaining the optimal location, the message push module sends a WebSocket push command, which is then rendered by the front-end browser as the terminal's real-time location; the input of the algorithm comes from the existing hardware fact of the PDT base station-terminal connection relationship.
[0089] The specific control signal flow is as follows: The connection status between the terminal and the PDT base station changes. The base station controller reports this to the PDT core network. The PDT radio subsystem pushes TCP messages to the signaling access module of this system. Optimal location positioning logic is then implemented. Finally, the police officer icon position on the front-end page is refreshed via the WebSocket protocol.
[0090] In one specific embodiment, the implementation environment of this application is illustrated by example: The server-side uses a Linux (CentOS 7 / Ubuntu 22.04) operating system, and the application server deploys OpenJDK 11, Kafka 3.x message queue, MySQL 8.x relational database, and ElasticSearch + Kibana log and time-series retrieval components; the front-end deploys an Nginx reverse proxy, and the browser side supports Chrome 90 and above.
[0091] The following example illustrates the implementation environment described above: (1) Set up a PDT signaling access pipeline. Deploy a Kafka cluster in the central computer room, configure the front-end machine for PDT radio subsystem, and write signaling messages in JSON format to the message queue through a TCP long connection.
[0092] (2) Configure base station mapping relationships and coverage weights. For example, input the PDT base station ID, station line affiliation, geographical coordinates, and section (underground / ground / elevated) of approximately 80 subway stations from Line 1 to Line 4 to form a persistent relationship table; and generate a base station coverage weight vector w(b) based on the actual field strength measurement or historical residence statistics for each base station in terms of coverage overlap between neighboring stations, and persist it along with the relationship table.
[0093] (3) Perform two validity filters on each signaling record: first, the terminal identifier must be non-empty; second, the base station identifier must be in the preset base station list.
[0094] (4) Scene recognition and candidate set construction. The scene status of the terminal is determined by voting on the base station sequence within the sliding time window; if it is determined to be an underground scene, a candidate station set is constructed according to the line registered by the terminal and its adjacent lines; if it is determined to be a ground scene, the process of GPS coordinate analysis and nearest neighbor matching is initiated.
[0095] (5) Core solution for underground scene. The observation likelihood of each candidate station is calculated based on the coverage weight model. The line topology reachability is used as the state transition constraint. The global optimal location sequence is solved by Viterbi algorithm within the sliding time window. Then, the minimum dwell time and hysteresis count constraints are applied to de-jitter and the station-level positioning result is output. When passing through transfer stations, line-level disambiguation is performed according to the previously determined location, line topology reachability and the service shift line affiliation.
[0096] (6) Encapsulate the parsed terminal location, line, station, personnel category and other fields into standardized JSON, and broadcast it to all logged-in front-end instances through Spring Cloud Gateway's WebSocket to achieve second-level location updates.
[0097] The following example illustrates this using a real-world scenario: a police officer on duty on Metro Line 1. (1) When a user enters an underground subway station with a PDT walkie-talkie, the walkie-talkie automatically connects to the PDT base station covered by the station. The PDT radio subsystem detects that the terminal is online and pushes the signaling event to the signaling access module of the system.
[0098] (2) The scene recognition and base station mapping module consumes the message and votes on the base station sequence within the sliding time window. Since the base stations observed in each window belong to the underground section and the voting conclusion is consistent, it is determined to be an underground scene. Then, a set of candidate stations is constructed according to Line 1 and its adjacent lines registered by the terminal.
[0099] (3) The solution module calculates the observation likelihood of each candidate station based on the base station-station coverage weight model, takes the line topology reachability as the state transition constraint, and obtains the global optimal location sequence using the Viterbi algorithm within the sliding time window. After de-jittering by minimum dwell time and hysteresis count, it outputs the station-level location information such as the subway station name and Line 1.
[0100] (4) The real-time message push module broadcasts the encapsulated JSON to all connected front-end browsers via WebSocket. Each front-end adds an online police officer's identifier (terminal identifier) at the corresponding location on the subway map.
[0101] (5) When the police officer walks out of the ground entrance through the transfer passage, the terminal restores GPS positioning capability. The scene recognition module votes according to the base station sequence within the sliding time window to determine the scene status as a ground scene. The ground coordinate analysis and matching module calculates the distance and matching confidence of the candidate stations, outputs the matching station and continues to push it to the front end via WebSocket, thereby realizing the seamless connection between underground and ground scenes.
[0102] (6) The above events are also persisted to the Elasticsearch time-series index. When the leader clicks the trajectory playback button for the police officer, the front end queries the historical data playback module for the location event sequence from 0:00 on that day to the present, and connects them in sequence to form a trajectory line.
[0103] This application reuses existing PDT infrastructure, requiring no new underground positioning hardware, resulting in low construction costs, short construction periods, and minimal disruption to the existing system. Real-time push notifications based on WebSocket reduce the latency of police location updates to the second level, significantly improving the immediacy and accuracy of command and dispatch in the intelligence command center. Through base station-station coverage weight modeling, Viterbi sequence decoding under line topology constraints, and minimum dwell-hysteresis jitter filtering, the positioning granularity is improved from the base station level (hundreds of meters) to the station level (within hundreds of meters), eliminating trajectory jumps caused by base station handover jitter. It supports multi-dimensional presentation, including line view, department view, electronic map view, historical trajectory playback, comprehensive query, and Excel export, meeting the diverse needs of the intelligence command center, police station integrated command rooms, and managers at all levels. Adopting a Spring Cloud microservice architecture and the Vue.js front-end framework, it facilitates horizontal expansion and maintenance upgrades, and can be smoothly integrated with future new subway lines.
[0104] Figure 2 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 2 As shown, the electronic device may include a processor 201, a communications interface 202, a memory 203, and a communication bus 204. The processor 201, communications interface 202, and memory 203 communicate with each other via the communication bus 204. The processor 201 can call logical instructions from the memory 203 to execute a target localization method based on base station association mapping.
[0105] Furthermore, the logical instructions in the aforementioned memory 203 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0106] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, and when the program instructions are executed by a computer, the computer is able to execute the target positioning method based on base station association mapping provided by the above methods.
[0107] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the target localization method based on base station association mapping provided in the above embodiments.
[0108] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0109] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This 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 to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0110] Finally, it should be noted that the above descriptions are merely preferred embodiments of this application, and this application is not limited to the above embodiments. It is understood that other improvements and variations directly derived or conceived by those skilled in the art without departing from the spirit and concept of this application should be considered to be included within the protection scope of this application.
Claims
1. A target localization method based on base station association mapping, characterized in that, The method includes: Obtain the current PDT signaling sent by the base station and extract the current target parameters carried in the current PDT signaling. The target parameters include: terminal identifier, base station identifier, signaling timestamp and GPS field. Based on the current target parameters, sliding time window, and preset base station mapping table, determine the current scene state of the terminal; If the current scenario is determined to be an underground scenario, a first candidate station set is constructed based on the scheduled routes registered by the terminal and their adjacent routes; based on the preset base station station coverage weight model, the current observation likelihood corresponding to each first candidate station in the first candidate station set is calculated; with the first candidate station as the state, the route topology reachability as the state transition constraint, and the current observation likelihood as the transmission probability, the current first optimal position is calculated based on the Viterbi algorithm within a sliding time window; a preset minimum dwell time and hysteresis count constraint are applied to the current first optimal position to obtain the current first station position after jitter reduction; the current first station position is sent to the front end.
2. The target localization method based on base station association mapping according to claim 1, characterized in that, After obtaining the current first station location after shake reduction, it also includes: Determine whether the current first station location is a preset transfer station; If the current first station location is determined to be a transfer station, line disambiguation processing is performed based on the previous station location, line topology accessibility and scheduling route, and the step of sending the current first station location to the front end is executed after the line disambiguation processing. If it is determined that the current first station location is not a transfer station, the step of sending the current first station location to the front end is executed.
3. The target localization method based on base station association mapping according to claim 1, characterized in that, Taking the first candidate station as the state, the line topology reachability as the state transition constraint, and the current observation likelihood as the emission probability, the current first optimal position is calculated based on the Viterbi algorithm within a sliding time window, including: The state transition probability from the previous first optimal position to each first candidate station is calculated based on the state transition probability calculation formula. The formulas for calculating the state transition probability include: ; in, Represents the state transition probability. Represents the normalization factor. , This indicates the station corresponding to the previous optimal location. Includes multiple This indicates that on the route topology diagram, it is related to... The corresponding set of candidate stations Indicates the first candidate station. λ represents the distance between the two stations on the topology map, and λ represents the distance attenuation coefficient. Within the sliding time window, the current first optimal position is obtained based on the Viterbi algorithm and the state transition probability.
4. The target localization method based on base station association mapping according to claim 1, characterized in that, By applying preset minimum dwell time and hysteresis count constraints to the current optimal position, the current first station position after jitter reduction is obtained, including: If the first candidate station in the candidate station set is back-determined as the current first optimal position more than a preset number of times within the sliding time window, and the terminal stays at the current first station position for a longer period than a preset duration, then the position of the first candidate station is determined as the current first station position after shake removal.
5. The target localization method based on base station association mapping according to any one of claims 1-4, characterized in that, The method further includes: If the scenario is determined to be a ground-based scenario, a second set of candidate stations is constructed based on the scheduling routes registered by the terminal and their adjacent routes; The current terminal coordinates are determined based on the GPS field, and the spherical distance between the current terminal coordinates and the positions of each second candidate station in the second candidate station set is calculated to obtain the position of the second candidate station corresponding to the minimum spherical distance. If the reliability of determining the location of the second candidate station corresponding to the minimum spherical distance is greater than the preset reliability threshold, and the line topology reachability is satisfied, then this location is determined as the current second optimal location, and the current second optimal location is sent to the front end.
6. The target localization method based on base station association mapping according to any one of claims 1-4, characterized in that, The method further includes: If the current scene state is determined to be a transitional scene, the previous station value is used, and the process returns to the step of determining the current scene state of the terminal based on the current target parameters, sliding time window and preset base station station mapping table, until the current scene state is an underground scene or a ground scene.
7. The target localization method based on base station association mapping according to any one of claims 1-3, characterized in that, Scene states include: underground scenes and above-ground scenes; Based on the current target parameters, the sliding time window, and the preset base station mapping table, determine the current scene state of the terminal, including: Based on the base station mapping table, the segment corresponding to each base station and the coverage weight pre-configured for the base station are obtained within multiple consecutive sliding time windows. The base station mapping table records the segment where each station is located, and the segment is used to characterize the scene status. For each base station, the coverage weights corresponding to multiple sliding time windows are summed based on the acquired segment to obtain a weighted vote; when the weighted vote is greater than the scene decision threshold and the segments of multiple sliding time windows are consistent, the current segment is determined to be the scene state of the terminal.
8. The target localization method based on base station association mapping according to claim 7, characterized in that, Scene states also include: transition scenes; Determine the current scene state of the terminal, including: For each base station, if there are segments with the same weighted votes, and the weighted votes of each segment are less than the scenario decision threshold, the scenario state of the terminal is set as a transitional scenario.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the target localization method based on base station association mapping as described in any one of claims 1 to 8.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the target localization method based on base station association mapping as described in any one of claims 1 to 8.
