Terminal positioning method, apparatus, device, storage medium and program product

By fusing features from multi-path sensing data and quantifying anchor point reliability, the problem of positioning instability in GNSS denied environments was solved, and high-precision positioning was achieved in complex scenarios.

CN123156252APending Publication Date: 2026-11-24SPREADTRUM COMM (TIANJIN) INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611339453.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In GNSS denied or weak signal environments, existing high-precision sensors such as inertial measurement units and ultra-wideband hardware are costly and have unstable positioning accuracy, which cannot meet the positioning needs of complex indoor and outdoor scenarios.

Method used

By acquiring multi-path sensing data, performing feature fusion, utilizing the point location reliability quantification mechanism of anchor point devices, determining candidate positioning points and positioning probabilities, and employing an optimal decision-making strategy to output the optimal position, multi-dimensional sensing information is integrated to adapt to complex scenarios.

Benefits of technology

It improves the versatility of positioning scenarios and the ability to resist environmental interference, significantly improves positioning accuracy and stability, avoids random errors in single-set solution results, and solves the problem of multiple solution ambiguity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123156252A_ABST
    Figure CN123156252A_ABST
Patent Text Reader

Abstract

This application relates to a terminal positioning method, apparatus, device, storage medium, and program product, applied to a terminal. The method includes: acquiring multi-channel sensing data of the terminal's environment; performing feature fusion on the multi-channel sensing data to obtain global fusion features; determining at least two candidate positioning points and the positioning probability corresponding to each candidate positioning point based on the global fusion features and the point location confidence of each anchor point device in the terminal's environment; wherein, the point location confidence characterizes the reliability of the anchor point device; and determining the target positioning result of the terminal from among the candidate positioning points based on the positioning probability corresponding to each candidate positioning point. This method ensures the stability and consistency of the positioning output.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of positioning technology, and in particular to a terminal positioning method, apparatus, device, storage medium, and program product. Background Technology

[0002] Global Navigation Satellite System (GNSS) has become the primary technology for outdoor positioning. However, in environments where GNSS is denied or weak, such as indoors, underground garages, tunnels, and high-rise canyons, satellite signals are easily blocked, resulting in a significant decrease in positioning accuracy or even complete failure.

[0003] Existing alternatives often employ high-precision sensors such as inertial measurement units (IMUs) and ultra-wideband hardware for positional compensation. However, high-precision IMUs and ultra-wideband hardware are expensive; moreover, inertial devices suffer from drift errors that accumulate over time, and the positioning deviation will continue to increase after a long period without GNSS correction, making it impossible to guarantee the accuracy and stability of positioning. Summary of the Invention

[0004] Therefore, it is necessary to provide a terminal positioning method, device, equipment, storage medium, and program product to address the aforementioned technical problems.

[0005] Firstly, this application provides a terminal positioning method, including:

[0006] Acquire multi-channel sensing data for the environment in which the terminal is located;

[0007] The multi-channel sensing data is fused to obtain global fused features;

[0008] Based on the global fusion features and the point location confidence of each anchor device in the environment where the terminal is located, at least two candidate positioning points and the positioning probability corresponding to each candidate positioning point are determined; wherein, the point location confidence represents the reliability of the anchor device;

[0009] Based on the positioning probability corresponding to each candidate positioning point, the target positioning result of the terminal is determined from each candidate positioning point.

[0010] Secondly, this application also provides a terminal positioning device, comprising:

[0011] The data acquisition module is used to acquire multi-channel sensing data for the environment in which the terminal is located;

[0012] The feature fusion module is used to perform feature fusion on the multi-channel sensing data to obtain global fused features;

[0013] The positioning acquisition module is used to determine at least two candidate positioning points and the positioning probability corresponding to each candidate positioning point based on the global fusion features and the point position confidence of each anchor point device in the environment where the terminal is located; wherein, the point position confidence represents the reliability of the anchor point device;

[0014] The result determination module is used to determine the target positioning result of the terminal from each candidate positioning point based on the positioning probability corresponding to each candidate positioning point.

[0015] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0016] Acquire multi-channel sensing data for the environment in which the terminal is located;

[0017] The multi-channel sensing data is fused to obtain global fused features;

[0018] Based on the global fusion features and the point location confidence of each anchor device in the environment where the terminal is located, at least two candidate positioning points and the positioning probability corresponding to each candidate positioning point are determined; wherein, the point location confidence represents the reliability of the anchor device;

[0019] Based on the positioning probability corresponding to each candidate positioning point, the target positioning result of the terminal is determined from each candidate positioning point.

[0020] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0021] Acquire multi-channel sensing data for the environment in which the terminal is located;

[0022] The multi-channel sensing data is fused to obtain global fused features;

[0023] Based on the global fusion features and the point location confidence of each anchor device in the environment where the terminal is located, at least two candidate positioning points and the positioning probability corresponding to each candidate positioning point are determined; wherein, the point location confidence represents the reliability of the anchor device;

[0024] Based on the positioning probability corresponding to each candidate positioning point, the target positioning result of the terminal is determined from each candidate positioning point.

[0025] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0026] Acquire multi-channel sensing data for the environment in which the terminal is located;

[0027] The multi-channel sensing data is fused to obtain global fused features;

[0028] Based on the global fusion features and the point location confidence of each anchor device in the environment where the terminal is located, at least two candidate positioning points and the positioning probability corresponding to each candidate positioning point are determined; wherein, the point location confidence represents the reliability of the anchor device;

[0029] Based on the positioning probability corresponding to each candidate positioning point, the target positioning result of the terminal is determined from each candidate positioning point.

[0030] The aforementioned terminal positioning methods, devices, equipment, storage media, and program products integrate multi-dimensional sensing information, breaking through the limitations of a single positioning data source. They can adapt to complex scenarios such as outdoor, indoor, obstructed, and weak signal environments, significantly improving the versatility of positioning scenarios and environmental anti-interference capabilities. By introducing a quantitative mechanism for anchor point location information, they can effectively distinguish between stable and reliable fixed anchor points and easily interfered mobile anchor points, suppressing the negative impact of ineffective and interfering information on positioning results from the data source, and significantly improving positioning accuracy. By generating multiple candidate points through multiple sets of anchor point combinations and matching corresponding positioning probabilities, they avoid the random errors and uncertainties of single-set calculation results. Through the optimal decision-making strategy, they output a unique optimal position, effectively solving the problem of multiple solution ambiguity and ensuring the stability and consistency of positioning output. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0032] Figure 1 This is a flowchart illustrating a terminal positioning method in one embodiment;

[0033] Figure 2 This is a flowchart illustrating the process of determining global fusion features in one embodiment;

[0034] Figure 3 This is a flowchart illustrating the process of determining the feature matrix corresponding to each type in one embodiment.

[0035] Figure 4 This is a flowchart illustrating the process of determining global fusion features in another embodiment;

[0036] Figure 5This is a flowchart illustrating the process of determining candidate location points and location probabilities in one embodiment;

[0037] Figure 6 This is a flowchart illustrating the terminal positioning method in another embodiment;

[0038] Figure 7 This is a structural block diagram of a terminal positioning device in one embodiment;

[0039] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0041] The terminal positioning method provided in this application embodiment can be executed by a computer device, which is a terminal.

[0042] In one exemplary embodiment, such as Figure 1 As shown, a terminal positioning method is provided. Taking the application of this method to a terminal as an example, the method includes the following steps:

[0043] S101, acquire multi-channel sensing data for the environment in which the terminal is located.

[0044] The terminal's environment refers to the physical space in which the terminal is currently located, including open outdoor scenes, scenes obstructed by tall buildings, enclosed indoor scenes, tunnels, underground parking garages, and other scenes with normal or weak GNSS signals. This environment contains various wireless anchor devices, sensor signals, and cellular network signals that can be scanned and identified by the terminal, providing the raw data source for positioning calculations.

[0045] Multi-channel sensing data refers to multi-dimensional environmental sensing data continuously collected by the terminal at the same time from different hardware channels and signal sources. Multi-channel data is heterogeneous and complementary, and can jointly characterize the terminal's position and state from spatial, signal, and motion dimensions.

[0046] Optionally, heterogeneous environmental perception data can be collected synchronously from multiple types of hardware channels to construct a multi-dimensional positioning raw dataset, ensuring data diversity and temporal consistency.

[0047] In one optional embodiment, the terminal simultaneously activates wireless scanning, cellular network detection, and sensor sampling functions, collecting multiple sensing data streams at the same sampling time. The wireless sensing data includes signal strength and ranging information from nearby Wi-Fi and Bluetooth devices; the cellular sensing data includes base station parameters and signal quality data from the current main cell and neighboring cells; and the sensor data includes the terminal's real-time acceleration, angular velocity, and attitude data. All data are timestamped to form a set of multiple sensing data streams at the same time.

[0048] In another optional embodiment, the terminal adaptively adjusts the data acquisition strategy according to the current GNSS signal status. Under normal GNSS conditions, the sensor sampling frequency is reduced, and the focus is on collecting wireless and cellular data. Under GNSS rejection or weak signal conditions, the sensor sampling frequency and wireless scanning frequency are increased to increase data redundancy and ensure that there is still sufficient sensing data to support positioning calculations in satellite-free scenarios.

[0049] S102, perform feature fusion on multi-channel sensing data to obtain global fused features.

[0050] Among them, global fusion features refer to high-dimensional comprehensive feature information obtained by fusing information from multiple sources, which includes spatial distance features, signal quality features, motion posture features, and environmental scene features.

[0051] Optionally, the fusion weights of various data can be dynamically allocated according to the real-time environmental signal quality. Data sources with stable signals are assigned high weights, while data sources with fluctuating signals or high noise levels are assigned lower weights. Multi-source features are integrated through an adaptive weighted fusion method to suppress noise data interference, enhance effective feature information, and output environmentally adaptive global fusion features.

[0052] S103, based on the global fusion features and the point location confidence of each anchor device in the environment where the terminal is located, determine at least two candidate positioning points and the positioning probability corresponding to each candidate positioning point.

[0053] Anchor devices refer to fixed or semi-fixed wireless devices within the terminal environment that can be scanned and identified and provide positioning reference information, including wireless routers, Bluetooth devices, cellular base stations, and UWB base stations. Anchor devices provide an observation benchmark for positioning calculation. Point location confidence characterizes the reliability of anchor devices, specifically used to quantify the reliability of a single anchor device as a positioning benchmark; fixed devices have stable signals and unchanged positions, resulting in high confidence; mobile devices, devices with large signal fluctuations, and devices that have been offline for a long time have low confidence. Confidence is used to suppress the negative impact of interfering anchors on the positioning results.

[0054] Candidate location points refer to reasonable alternative spatial coordinates obtained by combining observation data from a set of anchor point devices with global fusion features. Multiple combinations of different anchor points can generate multiple candidate locations, all of which are considered as candidates in the final decision. The location probability refers to the confidence probability value corresponding to a single candidate location point, which is calculated jointly by the point location confidence of the set of anchor point devices and is used to characterize the degree of confidence that the candidate location is the actual terminal location.

[0055] Optionally, high-quality anchor point devices with location confidence levels higher than a preset threshold can be pre-screened, and high-confidence anchor points can be prioritized for grouping and solving to generate multiple sets of high-reliability candidate points; the frequency of low-confidence anchor point devices participating in grouping can be reduced, thereby reducing the generation of low-quality candidate results from the source and improving the reliability of the overall candidate set.

[0056] S104. Based on the positioning probability corresponding to each candidate positioning point, determine the target positioning result of the terminal from each candidate positioning point.

[0057] The target positioning result is the optimal location coordinates finally output by the terminal, which is the final positioning output value obtained by filtering from multiple candidate points through a preset decision-making strategy.

[0058] Optionally, the frequency of occurrence of each candidate point can be counted. If a certain point is repeatedly calculated by multiple sets of anchor points, the high-frequency point is selected first. If the frequency of each point is scattered and there is no concentrated result, the candidate point with the highest probability is selected as the target positioning result, taking into account both the stability and reliability of the result.

[0059] The aforementioned terminal positioning method integrates multi-dimensional sensing information, overcoming the limitations of a single positioning data source. It can adapt to complex scenarios such as outdoor, indoor, obstructed, and weak signal environments, significantly improving the versatility of positioning scenarios and environmental anti-interference capabilities. The introduction of an anchor point location reliability quantification mechanism effectively distinguishes between stable and reliable fixed anchor points and easily interfered mobile anchor points, suppressing the negative impact of ineffective and interfering information on positioning results from the data source, thus significantly improving positioning accuracy. By generating multiple candidate locations through multiple anchor point combinations and matching corresponding positioning probabilities, it avoids the random errors and uncertainties of single-set calculation results. Through an optimal decision-making strategy, it outputs a unique optimal location, effectively resolving the problem of multiple solution ambiguity and ensuring the stability and consistency of positioning output.

[0060] Optionally, in some embodiments, the multi-path sensing data includes at least two types of sensing data, including at least two of the following: wireless communication sensing data, cellular network sensing data, and sensor data. The wireless communication sensing data refers to wireless observation data obtained by the terminal scanning surrounding wireless anchor devices, including Wi-Fi signal strength, Bluetooth signal strength, wireless ranging values, signal arrival time, signal arrival angle, and adjacent device identifiers. This type of data directly reflects the relative spatial distance and positional relationship between the terminal and surrounding anchor points. The cellular network sensing data refers to network observation data generated by the terminal interacting with cellular base stations, including primary and secondary cell base station IDs, base station signal received power, signal-to-noise ratio, cellular delay difference, and base station location auxiliary parameters. This type of data has a wide coverage and strong stability, providing the terminal with large-scale coarse-grained positional constraints and compensating for the sparse wireless anchor points in indoor and obstructed scenarios. The sensor data refers to motion state data collected by the terminal's built-in inertial sensors, including acceleration, angular velocity, attitude angle, displacement increment, and motion step frequency. This type of data does not rely on external anchor signals and can continuously depict the instantaneous motion changes of the terminal, which can be used to compensate for positioning jump errors caused by wireless signal jitter and signal disconnection.

[0061] Based on this, such as Figure 2 As shown, a method for determining global fusion features is provided, which specifically includes the following steps:

[0062] S201, For each type, the perceptual data of the type is encoded to obtain the corresponding encoded features.

[0063] Among them, the encoding features refer to the structured feature information obtained after dimensional mapping and normalized encoding of the original perceived data.

[0064] Optionally, noise reduction is performed independently for each type of sensing data according to preset rules, eliminating invalid and abnormal data. For example, for sensing data of wireless communication type, RSSI / RTT data that is out of ranging range, has negative values, or fluctuates drastically is eliminated; for sensing data of cellular network type, invalid data with excessively low signal-to-noise ratio, abnormal cell identification, or missing positioning parameters is eliminated; for sensing data of sensor type, abrupt abnormal values ​​caused by device jitter or stationary drift are eliminated. At the same time, core parameters that are strongly correlated with positioning in each type of data are screened, and redundant parameters are eliminated.

[0065] To address the issue of differences in the three types of data dimensions, extreme value normalization or Z-score standardization algorithms can be used to uniformly map the values ​​of all types of data to the [0,1] interval. This ensures that all physical quantities such as wireless signal strength, ranging values, cellular signal amplitude, sensor acceleration, and angular velocity are dimensionally unified, eliminating the impact of numerical magnitude differences on subsequent calculations.

[0066] Based on a unified timestamp, the sampling sequences of each type of sensing data are aligned and completed to fix the problems of inconsistent sampling frequencies and missing time sequences in some data, and the discrete raw sampling data are organized into a continuous and structured time sequence.

[0067] Differentiated coding rules are adopted for different types of data to transform structured data into fixed-dimensional feature vectors, i.e., encoded features. Wireless communication data focuses on signal feature coding, cellular network data focuses on network topology and base station location feature coding, and sensor data focuses on motion state temporal feature coding, ensuring that the core positioning characteristics of each type of data are not lost.

[0068] S202, for each type, feature extraction is performed on the corresponding encoded features to obtain the feature matrix corresponding to the type.

[0069] The feature matrix refers to a structured two-dimensional feature array output after deep feature mining and association operations on single-type encoded features. It can independently represent the core localization information of this type of sensing data. Different types of sensing data correspond to independent feature matrices and do not interfere with each other.

[0070] Optionally, for each type of standardized coding feature, a lightweight two-layer self-attention mechanism can be adopted to mine the implicit correlation features and effectively locate features within a single type of data, suppress invalid and redundant features, automatically increase the weight of high-value features and reduce the weight of interference features, upgrade the one-dimensional coding feature vector into a high-dimensional, high-density dedicated feature matrix, and enhance the localization and representation capabilities of a single data source.

[0071] S203, perform correlation and fusion of each feature matrix to obtain the global fused feature.

[0072] Optionally, for single-type feature matrices with multiple differences, multi-head attention correlation calculation, hierarchical fusion, and residual correction can be used to explore the complementary and constraint relationships between different types of data, offset the inherent defects of single-type data, integrate all effective positioning features, and generate a global fusion feature that has both local accuracy and global integrity.

[0073] The above embodiments, by first independently encoding and extracting features from multiple sensing data of different types according to data type, generating feature matrices corresponding to various types of sensing data, and then carrying out cross-type correlation fusion to obtain global fusion features, can fully retain the unique information characteristics of different data sources such as wireless communication sensing, cellular network sensing, and sensors. At the same time, the correlation fusion at the cross-type feature matrix level can uncover the hidden complementary correlations between multi-source sensing data, and use the advantages of different sensing sources to compensate for the data blind spots, noise errors, and environmental limitations existing in a single sensing type, effectively improving the information richness and reliability of the final global fusion features. As a result, the sensing results obtained based on the global fusion features have stronger anti-interference capabilities and environmental adaptability.

[0074] Optionally, in an exemplary embodiment, such as Figure 3 As shown, a method for determining the feature matrix corresponding to each type is provided, which specifically includes the following steps:

[0075] S301, generate a query matrix, a key matrix, and a value matrix based on the encoding characteristics corresponding to the type.

[0076] The query matrix is ​​a feature query matrix generated based on a single-type encoded feature through a learnable linear weight parameter mapping. It is used to actively retrieve key correlation information within the current encoded feature during the attention calculation process and to define the feature dimensions and feature ranges that the current feature needs to focus on.

[0077] The key matrix is ​​a feature matching matrix obtained by independent linear mapping of the same encoded feature. It is used to characterize the inherent attributes and semantic associations of each dimension of the encoded feature. It works in conjunction with the query matrix to complete feature similarity matching and to determine the importance of different feature components.

[0078] The value matrix is ​​a feature-carrying matrix generated after linear transformation of the encoded features. It fully retains all the effective numerical information of the original encoded features, without feature filtering or removal, and only serves as a carrier of feature content. Finally, it completes weighted feature aggregation based on the weight distribution.

[0079] Optionally, for each independent coding feature in wireless communication type, cellular network type, and sensor type, three sets of independent and trainable linear weight parameter matrices are used to perform linear transformation mapping on the original coding feature vectors respectively, and batch generate query matrix Q, key matrix K and value matrix V that are adapted to the attention calculation dimension specifications.

[0080] In the specific implementation process, the standardized coding features corresponding to the single-class perception data are first read. These coding features have fixed dimensions, normalized values, and ordered time sequence, which can completely represent the core positioning information of the current data type. Then, independent linear mapping layers are called respectively to complete the feature dimension up-transformation without superimposing nonlinear activation functions, generating Q, K, and V matrices with unified dimensions and symmetrical structure.

[0081] The three matrices share the same encoded feature input, but their mapping weights are independent of each other. This allows the query matrix to be feature-oriented, the key matrix to be feature-matching-oriented, and the value matrix to be feature-content-carrying. Each of the three matrices performs its own function and matches each other.

[0082] In one exemplary embodiment, for the coding characteristics of WiFi and Bluetooth wireless communications, a dedicated linear layer is used to generate Q, K, and V matrices. The matrix dimensions adapt to the temporal fluctuation characteristics of wireless signals, focusing on preserving subtle changes in RSSI signal strength and RTT ranging. For the coding characteristics of 5G cellular networks, corresponding Q, K, and V matrices are generated through independent weight parameters. The matrix dimensions adapt to the wide-area network topology characteristics, focusing on preserving the global correlation dimensions of cell location and signal delay. For the coding characteristics of accelerometer and gyroscope sensors, a dynamically motion-adaptive Q, K, and V matrix is ​​generated, focusing on capturing continuously changing temporal characteristics.

[0083] S302, through the first attention module, the query matrix and the key matrix are scaled and dot-producted to obtain the first weight distribution matrix, and the value matrix is ​​weighted according to the first weight distribution matrix to obtain the first feature result.

[0084] The first and second attention modules are dual-granularity differentiated self-attention computation modules. While both modules share the same structure and input, their computational granularity, receptive field, and weight allocation logic are independent, forming a coarse-grained, two-layer feature extraction mechanism. The computational granularity refers to the scale of the feature units scanned by the attention weights and the range of feature associations. The fine-grained module focuses on subtle local feature differences, while the coarse-grained module focuses on global feature associations. These two modules complement each other, addressing the issues of one-sided feature extraction and missed feature detection in single-layer attention.

[0085] The weight distribution matrix is ​​a probability weight matrix obtained by scaling dot product and Softmax normalization. Each value in the matrix corresponds to the importance weight of a single feature dimension in the encoded features. The larger the weight value, the higher the contribution of the corresponding feature component to the localization calculation and the greater its reference value.

[0086] The first feature result is the differential feature aggregation result output by the first attention module. The first feature result is the fine-grained local feature aggregation result, which focuses on capturing short-term, subtle, and local data fluctuation features.

[0087] Optionally, the first attention module first receives the query matrix and the key matrix, performs standard scaled dot product operation, first performs tensor dot product of Q matrix and K matrix to obtain the original similarity score matrix, and then performs scaling processing according to the square root of the key matrix dimension, effectively suppressing the numerical explosion and gradient saturation problems caused by the dot product of high-dimensional matrices; then, it performs global normalization processing on the scaled score matrix through the Softmax activation function to generate the first weight distribution matrix continuously distributed in the interval of 0 to 1. This matrix accurately describes the importance weight of each local feature dimension in the encoded features and has extremely high sensitivity to fine features such as signal jitter, small ranging deviations, and short-term motion fluctuations.

[0088] Finally, the first weight distribution matrix and the value matrix are subjected to weighted multiplication. Based on the local feature weights, the original feature information carried by the V matrix is ​​adaptively weighted and aggregated to strengthen high-value local subtle features and weaken local noise interference features. The final output is the first feature result that retains the fine local feature information.

[0089] In an exemplary embodiment, in an indoor GNSS denial scenario, the first attention module performs fine-grained weighting on the minute fluctuations in WiFi RTT ranging and the subtle attenuation features of Bluetooth signals to accurately capture the centimeter-level positional shift of the terminal and improve near-range positioning accuracy.

[0090] S303, through the second attention module, the query matrix and key matrix are scaled and dot-producted to obtain the second weight distribution matrix, and the value matrix is ​​weighted according to the second weight distribution matrix to obtain the second feature result.

[0091] The first and second attention modules have different computational granularities. The second feature result is the aggregated result of the differentiated features output by the second attention module; the second feature result is a coarse-grained global feature aggregation result, which focuses on capturing long-term, overall, and trend-related data correlation features.

[0092] Optionally, the second attention module also performs scaling dot product operations and Softmax normalization on the query matrix and key matrix to generate a second weight distribution matrix. However, this module adopts a larger receptive field for feature association, no longer focusing on local subtle features in a single time series or single dimension, but instead mining the overall trend of encoded features, long-term stable associations, and global distribution characteristics across time series and dimensions. This effectively filters out core benchmark features that are stable in the long term and have high reliability, and suppresses global interference caused by short-term burst noise and instantaneous abnormal data. Subsequently, the value matrix is ​​globally weighted and aggregated using the second weight distribution matrix, prioritizing the retention of the overall trend, stable features, and inherent attributes of the data, while weakening local invalid fluctuation features, and finally outputting a second feature result with global stability and trend consistency.

[0093] S304: Concatenate the first feature result and the second feature result, and perform a linear mapping on the concatenated result to obtain the feature matrix corresponding to the type.

[0094] Optionally, the first feature result output by the first attention module and the second feature result output by the second attention module are first checked for dimension to ensure that the dimension specifications of the two feature tensors are completely consistent. Then, a Concat concatenation operation is performed in the feature dimension direction to completely merge the fine-grained local feature information and the coarse-grained global feature information to form a combined feature tensor containing the advantages of the two layers of features. No feature deletion or weight overlay is performed during the concatenation process to retain all effective localization information of the single-class perception data to the maximum extent.

[0095] After feature concatenation is completed, the combined feature tensor is fed into a pre-defined fully connected linear mapping layer. The redundant concatenated features are integrated, reduced in dimensionality, and reconstructed through learnable weight parameters. The weight ratio of the two-layer features is balanced, and feature redundancy and dimensional redundancy caused by concatenation are eliminated. At the same time, the feature distribution is optimized and the feature values ​​are regularized through linear mapping. Finally, a single-type exclusive feature matrix with uniform dimensionality, compact features, and both details and global features is output.

[0096] In this embodiment, for the encoded features corresponding to the same type of perceptual data, a first attention module and a second attention module with different computational granularities are used to generate query matrices, key matrices, and value matrices respectively, and scaled dot product attention calculations are performed. This allows for the capture of fine-grained local correlation information and coarse-grained global dependencies within the perceptual data at different scales, resulting in first and second feature results with different focuses. Then, feature concatenation and linear mapping are used to achieve the organic integration of multi-scale information, avoiding the defect that a single attention granularity can only capture a fixed range of dependencies, resulting in the loss of some related features. The dual attention branches can complement each other's correlation weights between perceptual elements at different scales, enrich the semantic information of the output feature matrix, strengthen the feature's ability to distinguish noise and abnormal sampling points, and improve the representation quality of the obtained feature matrix.

[0097] Optionally, in some embodiments, the wireless communication sensing type includes Wi-Fi and Bluetooth types; such as Figure 4 As shown, a method for determining global fusion features is provided, which specifically includes the following steps:

[0098] S401, the feature matrix corresponding to the Wi-Fi type and the feature matrix corresponding to the Bluetooth type are correlated and fused to obtain the joint features of wireless communication.

[0099] Among them, the joint feature of wireless communication refers to the unified near-field wireless fusion feature generated by completing cross-subtype feature complementarity, weight adaptive matching, and feature association mining of the Wi-Fi feature matrix and the Bluetooth feature matrix through the correlation fusion algorithm.

[0100] Optionally, the Wi-Fi-specific feature matrix and the Bluetooth-specific feature matrix output after dual-granularity attention extraction are retrieved, and the two sets of feature matrices are dimensionally aligned and normalized to ensure that the two types of wireless features have a computable and correlated tensor dimension basis.

[0101] The two feature matrices are then input into the multi-head attention fusion module, which automatically calculates the cross-correlation weights between Wi-Fi and Bluetooth features through the attention mechanism. It adaptively identifies the effective overlapping features and differentiated complementary features of the two types of data, and dynamically adjusts the weight ratio of the two in different environments such as open indoor spaces, occlusion, dense anchor points, and sparse anchor points.

[0102] For scenarios requiring higher Wi-Fi ranging accuracy, the module automatically increases the weight of Wi-Fi features to strengthen high-precision distance constraints. For scenarios with more Bluetooth anchor points and denser signal coverage, it automatically increases the weight of Bluetooth features to enhance the representation of local location details. Simultaneously, the module uses a cross-attention mechanism to offset defects such as signal fluctuations, occlusion attenuation, and single-point abnormal noise in individual wireless data, eliminating redundant interference information from both types of wireless features and retaining the core effective features for short-range positioning. Finally, residual connections and layer normalization are used to achieve feature smoothing optimization, outputting unified, compact, and highly robust joint wireless communication features, thus achieving an overall enhancement of short-range wireless sensing capabilities.

[0103] S402, the joint features of wireless communication and the feature matrices corresponding to the cellular network sensing type are correlated and fused to obtain the first-level fused features.

[0104] Among them, the first-level fusion feature refers to the intermediate-level fusion feature obtained by cross-class association and fusion of the joint features of near-field wireless communication and the feature matrix of wide-area cellular network.

[0105] Optionally, cross-class correlation fusion is performed between the joint features of wireless communication and the independent feature matrices corresponding to cellular network sensing. First, the dimensionality of the two types of heterogeneous features is unified and the features are normalized to eliminate the differences in dimensionality, scale, and feature distribution between near-field wireless features and wide-area cellular features. Then, a cross-source multi-head attention module is used to explore the constraint and complementary relationships between the two types of features. The joint features of wireless communication are responsible for providing local fine location information at the meter or even sub-meter level, while the cellular network features are responsible for providing large-scale global location benchmarks at the city and street level, effectively constraining the local drift and multiple interpretation ambiguity problems that are prone to occur in near-field wireless features.

[0106] The weights of the two types of features are dynamically assigned based on the scene conditions. In enclosed scenes with no GNSS, such as indoors or underground, the high-precision advantage of joint wireless features is prioritized, while cellular features serve as a weak global constraint. In weak GNSS and wide-area complex scenes such as urban canyons and building edges, the global topological constraint capability of the cellular network is strengthened to correct deviations caused by local fluctuations in wireless signals. At the same time, attention-based cross-calculation is used to eliminate independent noise from the two types of features, and a first-level fused feature is generated that balances global stability and local accuracy, thus solving the dual defects of single near-range positioning lacking global constraints and single cellular positioning having coarse accuracy.

[0107] S403, associate and fuse the first-level fusion features and the feature matrix data corresponding to the sensor type to obtain the global fusion features.

[0108] Optionally, the primary fusion features are deeply correlated and fused with the feature matrices corresponding to the sensor types. The primary fusion features carry the static spatial location and environmental features composed of WiFi, Bluetooth, and cellular data, while the sensor features carry the dynamic changes in the terminal's real-time motion, attitude transformation, and temporal displacement. The two form a typical dynamic-static complementary relationship. During the fusion process, a multi-head attention mechanism is used to establish temporal correlation constraints between static spatial features and dynamic motion features. The real-time motion increment of the sensors is used to correct the hysteresis error of wireless and cellular static positioning, while the accurate spatial reference of the primary fusion features is used to correct the long-term accumulated drift error of the sensors.

[0109] The weight allocation is adaptively adjusted based on the terminal's motion state. When the terminal is stationary, the weight of sensor dynamic features is significantly reduced to avoid interference introduced by sensor drift, and static spatial features composed of wireless and cellular data are prioritized to ensure static positioning stability. When the terminal is in a dynamic state such as walking, vehicle-mounted, or moving rapidly, the weight of sensor dynamic features is significantly increased to track the terminal's motion trajectory in real time and compensate for the shortcomings of wireless cellular data update delay and insufficient dynamic response. Finally, through residual correction, feature integration, and dimensional normalization, the most comprehensive, robust, and scene-adaptable global fusion features are output.

[0110] In the above embodiments, a hierarchical and progressive fusion strategy is adopted. First, the feature matrices corresponding to Wi-Fi and Bluetooth types, which belong to the same wireless communication sensing category, are preferentially fused to obtain joint wireless communication features. This can first explore the inherent correlation between short-range wireless signals and complete the complementarity of information from similar data sources. Then, the joint wireless communication features are successively fused with the feature matrices of cellular network sensing type and sensor type to obtain first-level fusion features and the final global fusion features. The fusion range is gradually expanded from near to far and from wireless signals to physical sensing information. Compared with the method of directly fusing all sensing features at once, this can reduce the fusion conflict caused by the large differences in feature distribution between multi-source heterogeneous data. The feature deviations of different data sources are corrected layer by layer, so that the final global fusion features have a more comprehensive and stable information representation capability, effectively improving the environmental robustness and recognition accuracy of multi-source sensing fusion results.

[0111] Optionally, in some embodiments, such as Figure 5 As shown, a method for determining candidate location points and their probabilities is provided, which specifically includes the following steps:

[0112] S501, in response to the fact that the number of anchor point devices in the environment where the terminal is located is greater than the first preset number, the anchor point devices are grouped to obtain at least two device groups.

[0113] The first preset quantity is a preset location grouping activation threshold, a configurable system hyperparameter used to determine whether the current environment has conditions for multiple redundant location solutions. This preset quantity is used to distinguish between sparse anchor point scenarios and redundant anchor point scenarios. When the total number of valid anchor points exceeds this threshold, a multi-device grouping solution mechanism is activated to generate multiple candidate points for redundancy verification, thereby improving the robustness of location.

[0114] A device group refers to an independent positioning solution unit composed of a fixed number of effective anchor point devices. Each device group is a complete spatial position solution benchmark, and can independently calculate a corresponding candidate terminal positioning point based on the spatial coordinates of the anchor points within the group, signal observation parameters, and global fusion features. The number of anchor point devices is the same in different device groups. In a preferred embodiment, the number of anchor point devices in different device groups can be configured to be 3.

[0115] Optionally, the terminal first counts the total number of all valid anchor point devices in the current environment after data cleaning, validity screening, and confidence screening in real time, and compares the real-time anchor point number with the preset first number. When the number of valid anchor point devices is detected to be significantly greater than the first preset number, it is determined that the current environment has multiple sets of redundant solution conditions, and the equal grouping mechanism is automatically triggered.

[0116] The method ensures that all equipment groups have the same number of anchor points within each group and employs a fixed-unit traversal and combination grouping strategy. It prioritizes a three-point spatial positioning benchmark as the core grouping rule, meaning each group always contains three anchor point devices. Based on all valid anchor points, multiple independent equipment groups are generated through non-repeating logical combinations. This guarantees that each group can constitute a complete spatial triangulation positioning constraint and can independently support positioning calculations. This grouping method eliminates the uncertainties of random grouping and unevenly distributed grouping. By unifying the number of anchor points within each group, it ensures consistency in solution accuracy, constraints, and computational dimensions, avoiding the problems of uneven candidate point accuracy and incomparable probabilities caused by differences in the number of anchor points within a group.

[0117] Simultaneously, the generated multi-device groups are subjected to duplicate verification and invalid group filtering. Redundant device groups with excessively close spatial distribution and invalid constraints are removed, while valid device groups with reasonable spatial distribution and independent solution value are retained. Finally, at least two or more device groups with uniform specifications, equivalent dimensions, and balanced benchmarks are output.

[0118] It should be noted that when the number of effective environmental anchor points is 4 and the first preset number is 3, the quantity threshold condition is met. The 4 effective anchor points can be grouped into three-point full combination groups, generating a total of 4 independent equipment groups. Each group strictly contains 3 anchor point devices, and the specifications of each group are completely uniform, realizing the configuration of multiple candidate solutions with minimal redundancy.

[0119] S502, for each device group, determines the candidate positioning points corresponding to the device group based on the global fusion characteristics.

[0120] Optionally, for each group of devices, the precise spatial coordinates, device type, and signal topology of each anchor point device within the group can be retrieved independently. At the same time, the global fusion feature generated in real time by the terminal can be retrieved. This global fusion feature has fully integrated the multi-level static spatial features and dynamic motion features of WiFi, Bluetooth, cellular, and sensors, and can accurately characterize the real spatial distance constraints, signal attenuation correlation, and environmental matching relationship between the terminal and each group of anchor points.

[0121] For each device group, the spatial geometric constraints of the three anchor points within the group are coupled with the feature distance and signal matching degree of the global fusion feature output. The optimal spatial coordinate solution corresponding to the current device group is obtained by combining the spatial triangulation localization model with the multi-head attention fusion inference model. This coordinate solution is then determined as the candidate localization point of the current device group.

[0122] Because of the differences in anchor point combinations, spatial distribution, and signal sensing perspectives among different equipment groups, the candidate positioning points obtained by each group independently will produce slightly different results, forming a set of candidate points containing multiple valid spatial coordinates.

[0123] S503, determine the positioning probability of the candidate positioning point corresponding to the equipment group based on the product of the point position confidence of each anchor point device in the equipment group.

[0124] Optionally, for each device group with generated candidate points, the point location confidence values ​​of all anchor point devices in the group are retrieved first. The confidence of each anchor point is a normalized credible weight after cloud-based global evaluation and local real-time correction, which can accurately reflect the stability and reliability of a single anchor point.

[0125] The confidence scores of all anchor points within the same device group are multiplied cumulatively, and the product is used as the final positioning probability of the corresponding candidate point in the current device group. The product result can be normalized. The core logic of the confidence multiplication mechanism is that the overall reliability of a positioning result depends on the common reliability of all anchor points within the group. Only when all anchor points in the group are highly reliable devices will the final product probability remain high. If any low-reliability moving anchor point or abnormal anchor point exists within the group, its low confidence score will significantly reduce the overall probability, thus automatically penalizing and suppressing inferior anchor point combinations.

[0126] In an exemplary embodiment, when the device group consists entirely of high-confidence anchors such as fixed routers and fixed Bluetooth gateways, the confidence values ​​of each group are close to 1. The product yields a high positioning probability, corresponding to highly reliable candidate points, which are prioritized as final solution candidates. When the device group includes dynamic low-confidence anchors such as mobile phones and wearable devices, the low-confidence values ​​participate in the product operation, significantly reducing the positioning probability of the candidate points in that group and automatically weakening the weight of the positioning results corresponding to dynamic interference anchors. In scenarios where multiple candidate solutions coexist, the product mechanism automatically widens the probability gap between high-quality and low-quality combinations, achieving the effect of highlighting reliable solutions and suppressing interference solutions, greatly reducing the difficulty of subsequent decision-making.

[0127] In the above embodiments, when there are sufficient anchor point devices in the environment, the anchor point devices are divided into multiple groups of equal number. Each group is used to solve for the corresponding candidate positioning points by combining global fusion features. The positioning probability of the candidate point is then used as the product of the position confidence of each anchor point device in the group. Equal grouping can avoid the result bias caused by the large difference in the size of the positioning sample in a single group due to the uneven number of anchor points in each group. Solving the candidate points independently in multiple groups can generate multiple positioning results for comparison. The positioning probability can be calculated by using the confidence product method, which can simultaneously constrain the confidence of all anchor point devices in the group. If the confidence of any anchor point in the group is too low, the probability weight of the entire group of candidate points will be lowered, realizing the natural suppression of low confidence anchor point data, reducing the negative impact of abnormal anchor point measurement errors on the positioning results, and improving the objectivity and accuracy of candidate point probability assessment.

[0128] In some embodiments, the point location confidence of each anchor device can be obtained from the server, for example, from the cloud. Optionally, the point location confidence of each anchor device sent by the server is obtained; wherein, the point location confidence of each anchor device is determined based on at least one of the following: historical location distribution data of the anchor device, device reporting frequency, device attribute characteristics, and time decay coefficient. The server can be a cloud-based confidence assessment server, a cloud-based backend service unit equipped with a massive device feature database, a large language model semantic analysis module, a time-series decay calculation module, and global big data analysis capabilities. The server continuously aggregates wireless device observation data reported by terminals across the entire network, constructs a global anchor device feature library, and is responsible for offline training of device classification models, dynamically calculating global parameters, and distributing standardized point location confidence of each anchor device in real time. This provides a reliable weight basis for local terminal fusion positioning from a global perspective, compensating for the limitations of local single-device observation perspectives.

[0129] Historical location distribution data refers to the massive collection of historically reported trajectories and location records of anchor point devices accumulated over a long period of time on cloud servers. This includes temporal and spatial data such as the latitude and longitude coordinates of each appearance of the device, indoor locations, spatial distribution range, long-term residence areas, cross-regional movement trajectories, and location dispersion. This data can comprehensively reflect the long-term location stability characteristics of the anchor point devices.

[0130] The device reporting frequency refers to the cumulative number of times and time distribution density of the anchor device being scanned, sensed, signal collected, and data reported by various surrounding terminals within a preset statistical period. It includes frequency characteristics such as high-frequency stable reporting, intermittent reporting, and occasional instantaneous reporting, which can directly reflect the signal coverage stability, online continuity, and environmental resident status of the anchor device.

[0131] Device attribute features refer to the structured and semantic features that can characterize the hardware type, purpose, and inherent attributes of a device. These features include device name semantics, device manufacturer type, device communication protocol type, and device hardware identification features. They can be used to intelligently distinguish between fixed infrastructure devices and personal mobile terminal devices.

[0132] The time decay coefficient is a global hyperparameter that is dynamically adjusted in the cloud. It is used to quantify and correct the problem of credibility decay caused by the passage of time in historical data. By applying reasonable weight decay to old historical data and increasing the weight ratio of recently added data, it ensures that the anchor confidence level is adapted to the latest operating status of the device in real time, and avoids the evaluation lag problem caused by long-term static parameters.

[0133] Optionally, the cloud server relies on a large database of anchor point devices accumulated over a long period of time. For each scannable anchor point device, it independently extracts its historical location distribution data, device reporting frequency data, device attribute characteristics and time-series update records, and combines them with a dynamic adaptive time decay coefficient to jointly model and quantitatively evaluate the device's credibility from multiple dimensions, generating a normalized and unique corresponding point location credibility.

[0134] The evaluation logic based on historical location distribution data is as follows: the cloud statistically analyzes the spatial distribution dispersion of devices over long periods, multiple time periods, and across scenarios. Devices that have been stationary for a long time, have extremely low location dispersion, and have no large-scale migration trajectory are identified as high-confidence fixed anchors, significantly improving their confidence scores; devices that have frequent location changes, high distribution dispersion, and obvious cross-regional migration are identified as low-confidence mobile anchors, significantly reducing their confidence scores.

[0135] The evaluation logic based on device reporting frequency is as follows: the cloud assigns higher confidence weights to resident devices that are high-frequency, stable, and continuously scannable, based on the long-term online reporting density and periodic stability of the devices, and reduces the confidence weights to sparse devices that are intermittently offline, occasionally appear, or have unstable signals, effectively distinguishing between stable and usable anchor points and transient interference anchor points.

[0136] The evaluation logic based on device attribute characteristics is as follows: the cloud combines a built-in large language model to perform semantic parsing and classification of device names and device type identifiers, automatically distinguishing between fixed infrastructure devices such as routers, base stations, and fixed gateways, as well as personal mobile devices such as mobile phones, watches, and tablets, and completing the credibility differentiation scoring from the perspective of the inherent attributes of the devices.

[0137] The correction logic based on the time decay coefficient is as follows: the cloud dynamically configures a dedicated decay coefficient for the update frequency of different devices. For fixed devices that are stable for a long time but report infrequently, a small decay coefficient is used to avoid excessive decay of confidence. For mobile devices that change frequently and update their status quickly, a large decay coefficient is used to strengthen the weight of the latest data and ensure that the confidence assessment results are consistent with the real-time status of the device.

[0138] After multi-dimensional fusion calculation and normalization processing are completed in the cloud, a unified format list of anchor point device location confidence is generated. This list is then sent to the local terminal via a lightweight data interaction protocol. The terminal only receives the confidence score and core device identification information, without needing to synchronize massive amounts of original historical data. This greatly reduces local storage pressure and communication overhead while ensuring evaluation accuracy, ultimately achieving globally reliable, dynamically updated, and scenario-adaptive anchor point confidence acquisition.

[0139] The above embodiments obtain the point location reliability of each anchor point device from the server side. The point location reliability of the anchor point device is calculated by comprehensively referring to at least one of the following: historical location distribution data, device reporting frequency, device attribute characteristics, and time decay coefficient. This can quantitatively evaluate the reliability of the anchor point from multiple dimensions such as long-term operational stability, data reporting activity, device hardware attributes, and information timeliness. This makes the output point location reliability more consistent with the current actual working level of the anchor point device, effectively improving the stability and accuracy of the overall positioning results.

[0140] Figure 6 This is a flowchart illustrating a terminal positioning method in another embodiment. Based on the above embodiments, this embodiment provides an optional example of a terminal positioning method. (Combined with...) Figure 6 The specific implementation process is as follows:

[0141] S601, acquire multi-channel sensing data for the environment in which the terminal is located.

[0142] The multi-channel sensing data includes at least two types of sensing data, which include at least two of the following: wireless communication sensing type, cellular network sensing type, and sensor type; the wireless communication sensing type includes Wi-Fi type and Bluetooth type.

[0143] S602, for each type, the perceptual data of the type is encoded to obtain the corresponding encoded features of the type.

[0144] S603 generates a query matrix, key matrix, and value matrix for each type based on the encoding characteristics corresponding to the type.

[0145] S604. For each type, the query matrix and key matrix are scaled and dot-producted through the first attention module to obtain the first weight distribution matrix. The value matrix is ​​then weighted according to the first weight distribution matrix to obtain the first feature result.

[0146] S605, for each type, the query matrix and key matrix are scaled and dot-producted through the second attention module to obtain the second weight distribution matrix, and the value matrix is ​​weighted according to the second weight distribution matrix to obtain the second feature result.

[0147] The first attention module and the second attention module have different computational granularities.

[0148] S606: For each type, the first feature result and the second feature result are concatenated, and a linear mapping is performed on the concatenated result to obtain the feature matrix corresponding to the type.

[0149] S607, perform correlation and fusion of each feature matrix to obtain the global fused feature.

[0150] S608, in response to the fact that the number of anchor point devices in the environment where the terminal is located is greater than the first preset number, the anchor point devices are grouped to obtain at least two device groups.

[0151] The number of anchor point devices is the same in different equipment groups.

[0152] S609: For each device group, candidate positioning points are determined based on global fusion features.

[0153] S610, for each equipment group, determine the positioning probability of the candidate positioning point corresponding to the equipment group based on the product of the point position confidence of each anchor point equipment in the equipment group.

[0154] S611, based on the positioning probability corresponding to each candidate positioning point, determine the target positioning result of the terminal from each candidate positioning point.

[0155] The specific processes of S610-S611 described above can be found in the description of the above method embodiments. Their implementation principles and technical effects are similar and will not be repeated here.

[0156] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0157] Based on the same inventive concept, this application also provides a terminal positioning device for implementing the terminal positioning method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more terminal positioning device embodiments provided below can be found in the limitations of the terminal positioning method described above, and will not be repeated here.

[0158] In one exemplary embodiment, such as Figure 7 As shown, a terminal positioning device 700 is provided, including: a data acquisition module 710, a feature fusion module 720, a positioning acquisition module 730, and a result determination module 740, wherein:

[0159] The data acquisition module 710 is used to acquire multi-channel sensing data for the environment in which the terminal is located.

[0160] The feature fusion module 720 is used to fuse features from multi-channel sensing data to obtain global fused features.

[0161] The positioning acquisition module 730 is used to determine at least two candidate positioning points and the positioning probability corresponding to each candidate positioning point based on global fusion features and the point position confidence of each anchor point device in the environment where the terminal is located; wherein, the point position confidence characterizes the credibility of the anchor point device;

[0162] The result determination module 740 is used to determine the target positioning result of the terminal from each candidate positioning point based on the positioning probability corresponding to each candidate positioning point.

[0163] In one embodiment, the multi-channel sensing data includes at least two types of sensing data, including at least two of wireless communication sensing type, cellular network sensing type, and sensor type; the feature fusion module 720 includes:

[0164] A data encoding unit is used to encode the perceptual data for each type to obtain the type-specific encoded features; and,

[0165] The feature extraction unit is used to extract features from the encoded features corresponding to the type, and obtain the feature matrix corresponding to the type.

[0166] The feature fusion unit is used to correlate and fuse the feature matrices to obtain the global fused features.

[0167] In one embodiment, the feature extraction unit is specifically used for:

[0168] Based on the encoding features corresponding to the type, a query matrix, a key matrix, and a value matrix are generated. The query matrix and key matrix are scaled and dot-producted using a first attention module to obtain a first weight distribution matrix. The value matrix is ​​then weighted according to the first weight distribution matrix to obtain a first feature result. The query matrix and key matrix are then scaled and dot-producted using a second attention module to obtain a second weight distribution matrix. The value matrix is ​​then weighted according to the second weight distribution matrix to obtain a second feature result. The first and second attention modules have different computational granularities. The first and second feature results are concatenated, and a linear mapping is performed on the concatenated result to obtain the feature matrix corresponding to the type.

[0169] In one embodiment, the wireless communication sensing type includes Wi-Fi type and Bluetooth type; the feature fusion unit is specifically used for:

[0170] The feature matrices corresponding to Wi-Fi type and Bluetooth type are correlated and fused to obtain joint wireless communication features; the joint wireless communication features are correlated and fused with the feature matrices corresponding to cellular network sensing type to obtain first-level fused features; the first-level fused features are correlated and fused with the feature matrix data corresponding to sensor type to obtain global fused features.

[0171] In one embodiment, the positioning acquisition module 730 is specifically used for:

[0172] In response to the fact that the number of anchor devices in the environment where the terminal is located is greater than a first preset number, the anchor devices are grouped to obtain at least two device groups; wherein the number of anchor devices in different device groups is the same; for each device group, the candidate positioning point corresponding to the device group is determined according to the global fusion features; and the positioning probability of the candidate positioning point corresponding to the device group is determined according to the product of the point position confidence of each anchor device in the device group.

[0173] In one embodiment, the terminal positioning device 700 further includes a confidence acquisition module, used for:

[0174] Obtain the point location confidence of each anchor device sent by the server; wherein, the point location confidence of each anchor device is determined based on at least one of the following: historical location distribution data of the anchor device, device reporting frequency, device attribute characteristics, and time decay coefficient.

[0175] Each module in the aforementioned terminal positioning device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.

[0176] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown, the computer device includes a processor, memory, communication interface, display screen, and input device connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a terminal positioning method.

[0177] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0178] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps involved in the terminal positioning method described above.

[0179] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps involved in the terminal positioning method in the above embodiments.

[0180] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps involved in the terminal positioning method described above.

[0181] It should be noted that the data involved in this application (including but not limited to data used for analysis, data stored, data displayed, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0182] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0183] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0184] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A terminal positioning method, characterized in that, Applied to a terminal, the method includes: Acquire multi-channel sensing data for the environment in which the terminal is located; The multi-channel sensing data is fused to obtain global fused features; Based on the global fusion features and the point location confidence of each anchor device in the environment where the terminal is located, at least two candidate positioning points and the positioning probability corresponding to each candidate positioning point are determined; wherein, the point location confidence represents the reliability of the anchor device; Based on the positioning probability corresponding to each candidate positioning point, the target positioning result of the terminal is determined from each candidate positioning point.

2. The method according to claim 1, characterized in that, The multi-channel sensing data includes at least two types of sensing data, and the at least two types include wireless communication sensing type, cellular network sensing type, and sensor type. The step of fusing features from the multi-path sensing data to obtain global fused features includes: For each type, the perceptual data of that type is encoded to obtain the corresponding encoded features; and, Feature extraction is performed on the encoded features corresponding to the type to obtain the feature matrix corresponding to the type; The feature matrices are correlated and fused to obtain the global fused features.

3. The method according to claim 2, characterized in that, The step of extracting features from the encoded features corresponding to the type to obtain the feature matrix corresponding to the type includes: Based on the encoding features corresponding to the type, generate a query matrix, a key matrix, and a value matrix; The query matrix and the key matrix are scaled and dot-producted using the first attention module to obtain a first weight distribution matrix. The value matrix is ​​then weighted according to the first weight distribution matrix to obtain a first feature result. The query matrix and the key matrix are scaled and dot-producted using the second attention module to obtain a second weight distribution matrix. The value matrix is ​​then weighted according to the second weight distribution matrix to obtain a second feature result. The first attention module and the second attention module have different computational granularities. The first feature result and the second feature result are concatenated, and a linear mapping is performed on the concatenated result to obtain the feature matrix corresponding to the type.

4. The method according to claim 2, characterized in that, The wireless communication sensing types include Wi-Fi and Bluetooth. The process of correlating and fusing the feature matrices to obtain global fused features includes: The feature matrix corresponding to the Wi-Fi type and the feature matrix corresponding to the Bluetooth type are correlated and fused to obtain the joint features of wireless communication. The joint features of wireless communication and the feature matrix corresponding to the cellular network sensing type are correlated and fused to obtain the first-level fused features; The first-level fusion features and the feature matrix data corresponding to the sensor type are correlated and fused to obtain the global fusion features.

5. The method according to claim 1, characterized in that, The step of determining at least two candidate positioning points and the positioning probability corresponding to each candidate positioning point based on the global fusion features and the point location confidence of each anchor point device in the environment where the terminal is located includes: In response to the fact that the number of anchor devices in the environment where the terminal is located is greater than a first preset number, the anchor devices are grouped to obtain at least two device groups; wherein the number of anchor devices in different device groups is the same; For each device group, candidate location points corresponding to the device group are determined based on the global fusion features; and, The positioning probability of the candidate positioning point corresponding to the equipment group is determined by multiplying the point position confidence of each anchor point device in the equipment group.

6. The method according to claim 1, characterized in that, The method further includes: Obtain the point location confidence of each anchor device sent by the server; The confidence level of the location of each anchor point device is determined based on at least one of the following: the historical location distribution data of the anchor point device, the frequency of device reporting, device attribute characteristics, and time decay coefficient.

7. A terminal positioning device, characterized in that, The device includes: The data acquisition module is used to acquire multi-channel sensing data for the environment in which the terminal is located; The feature fusion module is used to perform feature fusion on the multi-channel sensing data to obtain global fused features; The positioning acquisition module is used to determine at least two candidate positioning points and the positioning probability corresponding to each candidate positioning point based on the global fusion features and the point position confidence of each anchor point device in the environment where the terminal is located; wherein, the point position confidence represents the reliability of the anchor point device; The result determination module is used to determine the target positioning result of the terminal from each candidate positioning point based on the positioning probability corresponding to each candidate positioning point.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.