Indoor and outdoor positioning method and device, electronic equipment, medium and product

By constructing a decision tree model and using network signal parameters and characteristic parameters, the problem of low indoor and outdoor positioning accuracy in the existing technology is solved, high-precision indoor and outdoor switching judgment is achieved, and the misjudgment rate and environmental interference impact are reduced.

CN118870513APending Publication Date: 2024-10-29CHINA MOBILE DIGITAL INTELLIGENCE TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410935046.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing indoor and outdoor positioning methods have low accuracy. The Bluetooth beacon method requires additional equipment and has low reliability. There are missed judgments in RFID detection. Changes in the number of visible satellites and signal-to-noise ratio are affected by environmental interference, resulting in a lag in indoor and outdoor switching judgment time.

Method used

By obtaining the network signal parameter information of the terminal to be located, a decision tree model is constructed based on the initial positioning results, and characteristic parameters such as service base station attributes, outdoor signal reception information, pre-order location attributes, target status, and satellite signal strength are used to adjust decision nodes to improve Positioning accuracy.

Benefits of technology

It achieves more accurate indoor and outdoor positioning, reduces misjudgment rates, avoids environmental interference and time lag problems, requires no additional equipment, and simplifies deployment and application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118870513A_ABST
    Figure CN118870513A_ABST
Patent Text Reader

Abstract

The invention provides an indoor and outdoor positioning method and device, electronic equipment, a medium and a product, and belongs to the technical field of communication, and the method comprises the steps: obtaining the network signal parameter information of a to-be-positioned terminal; determining an initial positioning result of the to-be-positioned terminal based on the network signal parameter information; the initial positioning result is indoor or outdoor; inputting the signal correlation characteristic parameters of the to-be-positioned terminal and the initial positioning result into a decision tree model to obtain a target positioning result of the to-be-positioned terminal output by the decision tree model; the decision tree model comprises a root node and a decision node; the root node comprises a positioning result; each decision node and the corresponding signal correlation characteristic parameter are used for terminal positioning. According to the method, further positioning can be carried out according to the decision tree model in combination with the initial positioning result and the signal correlation characteristic parameters, so that an accurate target positioning result of whether the to-be-processed terminal is indoor or outdoor is obtained, and the accuracy of indoor and outdoor positioning can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an indoor and outdoor positioning method, device, electronic equipment, medium and product. Background Art

[0002] With the continuous development of indoor and outdoor positioning technology, there are more and more positioning methods, higher and higher positioning accuracy, and wider positioning scenarios. In order to meet the scene positioning accuracy requirements, different positioning technology routes are often used indoors and outdoors. Real-time and accurate judgment indoors and outdoors is the top priority for achieving seamless switching of positioning methods.

[0003] At present, indoor and outdoor judgment can be performed through Bluetooth beacon judgment, Radio Frequency Identification (RFID) reader detection, visible satellite number and corresponding signal-to-noise ratio change judgment, etc. However, the Bluetooth beacon method requires additional equipment and networks, has low reliability and weak environmental adaptability; the RFID detection method has missed judgments and low judgment accuracy; the visible satellite number and corresponding signal-to-noise ratio change are greatly affected by environmental interference, the judgment accuracy is not enough, and affected by the terminal's satellite search speed, there is a large time lag in the indoor / outdoor switching judgment.

[0004] Therefore, the accuracy of current indoor and outdoor positioning is low. Summary of the invention

[0005] The present application provides an indoor and outdoor positioning method, device, electronic device, medium and product, which are used to solve the problem of low accuracy when performing indoor and outdoor positioning through the current indoor and outdoor judgment method, and to improve the accuracy of indoor and outdoor positioning.

[0006] The present application provides an indoor and outdoor positioning method, the method comprising: obtaining network signal parameter information of a terminal to be positioned; determining an initial positioning result of the terminal to be positioned based on the network signal parameter information; the initial positioning result is indoors or outdoors; inputting a signal-associated characteristic parameter of the terminal to be positioned and the initial positioning result into a decision tree model, and obtaining a target positioning result of the terminal to be positioned output by the decision tree model; the decision tree model comprises a root node and a decision node; the root node comprises a positioning result; each decision node and its corresponding signal-associated characteristic parameter are used for terminal positioning.

[0007] According to an indoor and outdoor positioning method provided by the present application, the decision tree model is determined in the following manner: the positioning result is determined as the root node, and the signal-related characteristic parameters of the sample terminal are used as decision nodes to construct an initial decision tree; the signal-related characteristic parameters include at least one of service base station attribute information, outdoor signal reception information, previous position attribute information, target state attribute information, mobile information, indoor signal strength information and satellite signal strength information; according to the signal-related characteristic parameters corresponding to each decision node, the sub-node position of the decision node of the initial decision tree is adjusted; and corresponding processing rules are set for each decision node after the sub-node position is adjusted to obtain a decision tree model.

[0008] According to an indoor and outdoor positioning method provided by the present application, when the sub-node positions of the decision nodes of the initial decision tree are adjusted according to the signal-related characteristic parameters corresponding to each decision node, the following operations are performed for each sub-node position: the information entropy and the Gini coefficient of the signal-related characteristic parameters corresponding to each decision node are obtained; the target decision node is determined from each decision node according to the information entropy and the Gini coefficient of the signal-related characteristic parameters corresponding to each decision node; and the target decision node is determined as the decision node of the current sub-node position.

[0009] According to an indoor and outdoor positioning method provided by the present application, the target decision node is determined from each decision node based on the information entropy and the Gini coefficient of the signal-related characteristic parameters corresponding to each decision node, including: comparing the Gini coefficient of the signal-related characteristic parameters corresponding to each decision node with a preset coefficient range; determining the decision nodes whose Gini coefficients are within the preset coefficient range as candidate decision nodes; and determining the target decision node from each candidate decision node based on the information entropy of the signal-related characteristic parameters corresponding to each candidate decision node.

[0010] According to an indoor and outdoor positioning method provided by the present application, the initial positioning result of the terminal to be located based on the network signal parameter information is determined, including: determining the location information of the terminal to be located based on the network signal parameter information; locating the terminal to be located based on the location information to obtain an initial positioning result.

[0011] According to an indoor and outdoor positioning method provided by the present application, the location information of the terminal to be located is determined based on the network signal parameter information, including: determining a target parameter from each network signal parameter of the network signal parameter information; comparing the target parameter with an association relationship in a preset fingerprint library; the association relationship is an association relationship between each location information and a corresponding characteristic parameter; and determining the location information associated with the characteristic parameter corresponding to the target parameter in the association relationship as the location information of the terminal to be located.

[0012] According to an indoor and outdoor positioning method provided by the present application, the association relationship in the preset fingerprint library is determined in the following manner: obtaining sample location information and sample network signal parameter information of a sample terminal; performing data preprocessing on the sample network signal parameter information to obtain preprocessing parameter information; performing feature extraction on the preprocessing parameter information to obtain at least one feature parameter; setting an association relationship between each of the parameter features and the corresponding location information in the sample location information; and constructing a preset fingerprint library based on the association relationship.

[0013] The present application also provides an indoor and outdoor positioning device, including: an acquisition module, used to obtain network signal parameter information of a terminal to be located; a determination module, used to determine an initial positioning result of the terminal to be located based on the network signal parameters; the initial positioning result is indoors or outdoors; an input module, used to input the signal-associated characteristic parameters of the terminal to be located and the initial positioning result into a decision tree model to obtain a target positioning result of the terminal to be located output by the decision tree model; the decision tree model includes a root node and a decision node; the root node includes a positioning result; each decision node and its corresponding signal-associated characteristic parameter are used for terminal positioning.

[0014] The present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the indoor and outdoor positioning method as described above is implemented.

[0015] The present application also provides a medium, which is a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the indoor and outdoor positioning method as described above is implemented.

[0016] The present application also provides a product, which is a computer program product, including a computer program, and when the computer program is executed by a processor, it implements any of the indoor and outdoor positioning methods described above.

[0017] The indoor and outdoor positioning method, device, electronic device, medium and product provided by the present application are constructed in advance according to the root node and the decision node. Since the root node includes the positioning result, and each decision node and its corresponding signal-related characteristic parameter can be used for terminal positioning, after obtaining the network signal parameter information of the terminal to be positioned and determining the initial positioning result of the terminal to be positioned as indoor or outdoor based on the network signal parameter, the signal-related characteristic parameter of the terminal to be positioned and the initial positioning result are input into the decision tree model, and the target positioning result of the terminal to be positioned output by the decision tree model can be obtained. Therefore, after obtaining the initial positioning result according to the network signal parameter information of the terminal to be positioned, since the decision tree model is constructed in advance according to the root node and the decision node, the root node includes the positioning result, and each decision node and its corresponding signal-related characteristic parameter can be used for terminal positioning, the terminal to be positioned can be further positioned according to the root node and the decision node in the decision tree model, combined with the initial positioning result and the signal-related characteristic parameter of the terminal to be positioned, thereby obtaining an accurate target positioning result of whether the terminal to be processed is indoors or outdoors, thereby improving the accuracy of indoor and outdoor positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 It is a flowchart of the indoor and outdoor positioning method provided by this application.

[0020] Figure 2 It is a schematic diagram of a decision tree model of the indoor and outdoor positioning method provided in this application.

[0021] Figure 3 It is a schematic diagram of the fingerprint library construction process of the indoor and outdoor positioning method provided by this application.

[0022] Figure 4 It is a schematic diagram of the overall process of the indoor and outdoor positioning method provided by this application.

[0023] Figure 5 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0025] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The orientation or position relationship indicated by the terms "upper", "lower" and the like is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For those skilled in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0026] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0027] Combine the following Figure 1-Figure 5 The present invention describes the indoor and outdoor positioning method, device, electronic device, medium and product.

[0028] Figure 1 It is a flowchart of the indoor and outdoor positioning method provided by this application, such as Figure 1As shown, the method includes the following steps 100 to 300.

[0029] Step 100: Obtain network signal parameter information of the terminal to be located.

[0030] Step 200: Determine an initial positioning result of the terminal to be positioned based on network signal parameter information; the initial positioning result is indoors or outdoors.

[0031] Step 300: Input the signal-associated characteristic parameters of the terminal to be located and the initial positioning result into a decision tree model to obtain the target positioning result of the terminal to be located output by the decision tree model; the decision tree model includes a root node and a decision node; the root node includes the positioning result; each decision node and its corresponding signal-associated characteristic parameter are used for terminal positioning.

[0032] It should be noted that the execution entity of the indoor and outdoor positioning method provided in the embodiments of the present application can be a server, computer equipment, etc., such as a mobile phone, tablet computer, laptop computer, PDA, vehicle-mounted electronic equipment, wearable device, ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), netbook or personal digital assistant (Personal Digital Assistant, PDA), etc.

[0033] The server or computer device of the present application may be provided with or connected with an indoor or outdoor positioning device. In the present application, the indoor or outdoor positioning device may be controlled to execute the indoor or outdoor positioning method of the present application by controlling the indoor or outdoor positioning device.

[0034] In the present application, a terminal that needs to be positioned indoors or outdoors may be defined as a terminal to be positioned.

[0035] Furthermore, network signal parameter information of the terminal to be located may be obtained, wherein the network signal may specifically be a fifth generation mobile communication technology (5G) signal, and the network signal parameter information may include but is not limited to network signal parameters such as signal strength, signal delay, and signal arrival angle.

[0036] It should be noted that when this application obtains terminal parameters and other data involving user privacy information, it is obtained with the user's authorization or under other legal conditions.

[0037] After obtaining the network signal parameter information of the terminal to be located, the present application can further perform preliminary positioning based on the network signal parameter information in combination with a preset fingerprint library to obtain an initial positioning result of whether the terminal to be located is indoors or outdoors.

[0038] Furthermore, the present application can further obtain signal-related characteristic parameters of the terminal to be located, which may include but are not limited to service base station attribute information, outdoor signal reception information, previous position attribute information, target state attribute information, mobile information, indoor signal strength information and satellite signal strength information, etc. Among them, the outdoor signal reception information may include information on whether there is outdoor signal reception and outdoor signal strength information when there is outdoor signal reception. Mobile information may include moving speed, moving time, etc., which can be used to judge the rationality of position change. The target state attribute information may include at least (stationary and moving), and the service base station attribute information may include outdoor macro stations and indoor distribution systems, etc.

[0039] The determination of the state attributes of the object's motion in this application is mainly based on the time series function algorithm, combined with spatiotemporal geographic information, to determine the regularity and rationality of the change of position information over time, and then determine whether the object's motion state is stationary or in motion. For the state in motion, the maximum possible path is selected by using the previous position and time relationship, combined with the geographic location information, and the average motion speed is calculated.

[0040] It should be noted that the present application can construct a decision tree model based on the root node and the decision node in advance. The decision tree model takes the root node as the positioning result, and the processing rules of each decision node and its corresponding signal-related characteristic parameters form a solution for terminal positioning.

[0041] Therefore, the present application can input the signal association characteristic parameters of the terminal to be located and the initial positioning results into the decision tree model, and the decision tree model performs further positioning based on the input information. After the decision tree model completes the positioning, the decision tree model outputs the target positioning result of whether the terminal to be located is indoors or outdoors.

[0042] Using the measurement signals and calculation information provided by this application, the target object can obtain the initial location information, service base station attributes, indoor and outdoor signal reception conditions (whether there is a signal, signal change trend), object current state, object previous location information, satellite signal conditions (signal strength change trend), distance speed calculation to obtain the rationality of indoor and outdoor changes (reasonable or unreasonable). Using these feature information, a decision tree model is used to determine whether it is indoors or outdoors.

[0043] This application determines whether to retain or switch the positioning mode based on the target positioning results of reliable indoor and outdoor position determination. When the indoor and outdoor status has not changed, the original positioning mode is retained. When the indoor and outdoor status has changed, the corresponding positioning mode is changed to obtain accurate positioning results and reduce or avoid positioning information errors caused by indoor and outdoor switching.

[0044] The indoor and outdoor positioning method provided by the embodiment of the present application constructs a decision tree model according to the root node and the decision node in advance. Since the root node includes the positioning result, and each decision node and its corresponding signal-related characteristic parameter can be used for terminal positioning, after obtaining the network signal parameter information of the terminal to be positioned and determining the initial positioning result of whether the terminal to be positioned is indoors or outdoors based on the network signal parameter, the signal-related characteristic parameter of the terminal to be positioned and the initial positioning result are input into the decision tree model, and the target positioning result of the terminal to be positioned output by the decision tree model can be obtained. Therefore, after obtaining the initial positioning result according to the network signal parameter information of the terminal to be positioned, since the decision tree model is constructed in advance according to the root node and the decision node, the root node includes the positioning result, and each decision node and its corresponding signal-related characteristic parameter can be used for terminal positioning, the terminal to be positioned can be further positioned according to the root node and the decision node in the decision tree model, combined with the initial positioning result and the signal-related characteristic parameter of the terminal to be positioned, thereby obtaining an accurate target positioning result of whether the terminal to be positioned is indoors or outdoors, thereby improving the accuracy of indoor and outdoor positioning.

[0045] After obtaining the initial positioning result, the present application performs multiple discrimination verifications through each decision node in the decision tree model to obtain a high-precision positioning result, which can effectively reduce the misjudgment rate.

[0046] This application uses a decision tree model to comprehensively consider multiple factors, conduct verification and supplementation on the basis of maximum possibility, avoid misjudgment caused by single factor data errors, and improve the accuracy and credibility of judgments.

[0047] Moreover, it does not require any additional requirements or auxiliary facilities, is easy to deploy, convenient to use, is less affected by environmental interference factors, and has a wide range of uses.

[0048] In one embodiment, the decision tree model is determined in the following manner: the positioning result is determined as the root node, and the signal-related characteristic parameters of the sample terminal are used as decision nodes to construct an initial decision tree; the signal-related characteristic parameters include at least one of service base station attribute information, outdoor signal reception information, previous position attribute information, target state attribute information, mobile information, indoor signal strength information and satellite signal strength information; according to the signal-related characteristic parameters corresponding to each decision node, the sub-node position of the decision node of the initial decision tree is adjusted; and corresponding processing rules are set for each decision node after the sub-node position is adjusted to obtain a decision tree model.

[0049] Furthermore, when the sub-node positions of the decision nodes of the initial decision tree are adjusted according to the signal-related characteristic parameters corresponding to each decision node, the following operations are performed for each sub-node position: the information entropy and the Gini coefficient of the signal-related characteristic parameters corresponding to each decision node are obtained; the target decision node is determined from each decision node according to the information entropy and the Gini coefficient of the signal-related characteristic parameters corresponding to each decision node; and the target decision node is determined as the decision node at the current sub-node position.

[0050] Furthermore, according to the information entropy and the Gini coefficient of the signal-related characteristic parameters corresponding to each decision node, a target decision node is determined from each decision node, including: comparing the Gini coefficient of the signal-related characteristic parameters corresponding to each decision node with a preset coefficient range; determining the decision nodes whose Gini coefficients are within the preset coefficient range as candidate decision nodes; and determining the target decision node from each candidate decision node according to the information entropy of the signal-related characteristic parameters corresponding to each candidate decision node.

[0051] This application needs to first clarify the definition of the target variable and collect data related to the target variable. In this application, the main purpose is to establish a decision tree model to determine whether the target object is indoors or outdoors, so the target variable is "indoor" or "outdoor", and the data related to it includes at least one of the signal-related characteristic parameters such as service base station attribute information, outdoor signal reception information, previous position attribute information, target state attribute information, mobile information, indoor signal strength information and satellite signal strength information.

[0052] In this application, data features can be analyzed and the best features can be selected as the root node. Since the construction of the preset fingerprint library uses 5G signals, after model algorithms and experimental tests, a relatively accurate positioning method is used, so the positioning result is selected as the node of the root of the decision tree. Therefore, in this application, the positioning result can be determined as the root node, and each signal-related feature parameter of the sample terminal is used to build a decision tree for the decision node as the initial decision tree. Among them, the sub-node position of each decision node in the initial decision tree can be randomly set, so the decision nodes at each sub-node position need to be adjusted later.

[0053] This application can be based on the information entropy and Gini coefficient of the decision node, combined with the positioning characteristics: outdoor positioning has rich positioning means and higher positioning accuracy than indoor positioning. The information of outdoor positioning is relatively accurate, while the indoor positioning accuracy is relatively weak and the error probability is relatively high. Therefore, for positioning switching, especially outdoor to indoor switching, it is important to consider a multi-factor coordination plan and finally form a decision tree model.

[0054] For example, the present application can further adjust the sub-node position of the signal-associated characteristic parameters of each decision node in the initial decision tree according to the signal-associated characteristic parameters corresponding to each decision node. When adjusting the sub-node position of the signal-associated characteristic parameters of each decision node in the initial decision tree, the information entropy and Gini coefficient of the signal-associated characteristic parameters corresponding to each decision node can be obtained for the current sub-node position. Specifically, the information entropy and Gini coefficient of the signal-associated characteristic parameters of each decision node can be determined by the following formulas (1) and (2), respectively: (1); (2); Among them, i represents the i-th parameter of the decision node, c and C both represent that the decision node includes c parameters in total, and t represents the t-th calculation process or the calculation process at time t.

[0055] Furthermore, the present application can determine the target decision node from each decision node according to the information entropy and the Gini coefficient of the signal-related feature parameters corresponding to each decision node.

[0056] Specifically, the Gini coefficient of the signal-related characteristic parameters of each decision node can be compared with the preset coefficient range to determine whether the Gini coefficient is within the preset coefficient range. The preset coefficient range is a numerical range set in advance according to actual needs, and the specific setting process is not limited in this application.

[0057] Furthermore, a decision node whose Gini coefficient is within a preset coefficient range may be determined as a candidate decision node.

[0058] After determining each candidate decision node, the present application can further determine a target decision node from each candidate decision node based on the information entropy of the signal-related feature parameters corresponding to each candidate decision node.

[0059] In an exemplary embodiment, the present application may determine the candidate decision node with the largest information entropy as the target decision node, and determine the target decision node as the decision node at the current child node position.

[0060] Based on the same process, the position of each sub-node in the initial decision tree can be adjusted.

[0061] Furthermore, the present application can set corresponding processing rules for each decision node after adjusting the position of the sub-nodes to obtain a decision tree model. It should be noted that the corresponding processing rules for each decision node after adjusting the position of the sub-nodes can be set according to actual needs, or can be set through existing tools, which is not specifically limited in the present application.

[0062] Figure 2 is a schematic diagram of a decision tree model of the indoor and outdoor positioning method provided by this application, such as Figure 2 As shown, after obtaining the positioning result, if the positioning result is outdoor, the previous position attribute is judged. If the previous position attribute is outdoor, the target positioning result is judged to be outdoor; if the previous position attribute is indoor, the indoor signal strength is further judged. If the indoor signal strength is weakened, the target positioning result is judged to be outdoor; if the indoor signal strength is enhanced, the position change is further judged. If the position change is unreasonable, the target positioning result is judged to be outdoor. If the position change is reasonable, the target positioning result is judged to be indoor.

[0063] If the positioning result is indoor, the service base station attribute is first determined. If the service base station attribute is a macro base station, the indoor signal strength is further determined. If the indoor signal strength is enhanced, the target positioning result is determined to be indoor; if the indoor signal strength is weakened, the previous position attribute is further determined. If the previous position attribute is indoor, the target positioning result is determined to be indoor; if the previous position attribute is outdoor, the target state attribute is further determined. If the target state attribute is stationary, the target positioning result is determined to be outdoor; if the target state attribute is moving, the position change is further determined. If the position change is unreasonable, the target positioning result is determined to be outdoor. If the position change is reasonable, the target positioning result is determined to be indoor.

[0064] If the service base station attribute is indoor, then determine whether there is outdoor signal reception. If so, further determine the outdoor signal strength. If the indoor signal strength weakens, determine that the target positioning result is indoor; if the indoor signal strength increases, then further determine the previous position attribute. If the previous position attribute is indoor, determine that the target positioning result is indoor; if the previous position attribute is outdoor, then further determine the target state attribute. If the target state attribute is stationary, determine that the target positioning result is outdoor; if the target state attribute is moving, then further determine the position change. If the position change is unreasonable, determine that the target positioning result is outdoor. If the position change is reasonable, then further determine the satellite signal strength. If the satellite signal strength increases, determine that the target positioning result is outdoor. If the satellite signal strength weakens, determine that the target positioning result is indoor.

[0065] If there is no outdoor signal reception, the previous position attribute is judged. If the previous position attribute is indoor, the target positioning result is determined to be indoor; if the previous position attribute is outdoor, the target state attribute is further judged. If the target state attribute is stationary, the target positioning result is determined to be outdoor; if the target state attribute is moving, the position change is further judged. If the position change is unreasonable, the target positioning result is determined to be outdoor. If the position change is reasonable, the indoor signal strength is further judged. If the indoor signal strength is enhanced, the target positioning result is determined to be indoor. If the indoor signal strength is weakened, the satellite signal strength is further judged. If the satellite signal strength is enhanced, the target positioning result is determined to be outdoor. If the satellite signal strength is weakened, the target positioning result is determined to be indoor.

[0066] It should be noted that after obtaining the decision tree model, the present application can simulate the actual usage scenario in the positioning scenario by manual or automated means, record the real location information (indoor or outdoor), and compare it with the result information calculated by the decision tree model, analyze the effect of the model in different scenarios (wandering outdoors at the edge of indoors and outdoors, wandering indoors at the edge of indoors and outdoors, walking from indoors to outdoors, and from outdoors to indoors), judge the performance of the decision tree model, and accept the decision tree model if the effect is ideal; otherwise, improve the decision tree model by adjusting the parameters and characteristics of the decision tree model.

[0067] This application can use the effect verification method of the decision tree model, establish a judgment effect evaluation score calculation method, distinguish between those within and outside the error range, set different weights, set different scores according to correctness and error, use the Z test to determine whether the model results are credible, and repeat the model adjustment for unreliable results until they are credible. At the same time, in order to eliminate signal changes and environmental influences, the model needs to be evaluated and scored regularly to ensure that the results are always credible.

[0068] The present application constructs a decision tree model in advance according to the root node and the decision node. Since the root node includes the positioning result, and each decision node and its corresponding signal-related characteristic parameters can be used for terminal positioning, after obtaining the network signal parameter information of the terminal to be positioned and determining the initial positioning result of whether the terminal to be positioned is indoors or outdoors based on the network signal parameter, the signal-related characteristic parameters of the terminal to be positioned and the initial positioning result are input into the decision tree model, and the target positioning result of the terminal to be positioned output by the decision tree model can be obtained. Therefore, after obtaining the initial positioning result according to the network signal parameter information of the terminal to be positioned, since the decision tree model is constructed in advance according to the root node and the decision node, its root node includes the positioning result, and each decision node and its corresponding signal-related characteristic parameters can be used for terminal positioning, the terminal to be positioned can be further positioned according to the root node and the decision node in the decision tree model, combined with the initial positioning result and the signal-related characteristic parameters of the terminal to be positioned, thereby obtaining an accurate target positioning result of whether the terminal to be positioned is indoors or outdoors, thereby improving the accuracy of indoor and outdoor positioning.

[0069] In one embodiment, determining an initial positioning result of a terminal to be positioned based on network signal parameter information includes: determining location information of the terminal to be positioned based on the network signal parameter information; and positioning the terminal to be positioned based on the location information to obtain an initial positioning result.

[0070] Furthermore, the location information of the terminal to be located is determined based on the network signal parameter information, including: determining the target parameter from each network signal parameter of the network signal parameter information; comparing the target parameter with the association relationship in the preset fingerprint library; the association relationship is the association relationship between each location information and a corresponding characteristic parameter; and determining the location information associated with the characteristic parameter corresponding to the target parameter in the association relationship as the location information of the terminal to be located.

[0071] It should be noted that the association relationship in the preset fingerprint library is determined in the following manner: obtaining the sample location information and sample network signal parameter information of the sample terminal; performing data preprocessing on the sample network signal parameter information to obtain preprocessing parameter information; performing feature extraction on the preprocessing parameter information to obtain at least one feature parameter; setting the association relationship between each parameter feature and the corresponding position information in the sample location information; and constructing the preset fingerprint library based on the association relationship.

[0072] This application can first build a fingerprint library.

[0073] Figure 3 This is a schematic diagram of the fingerprint library construction process of the indoor and outdoor positioning method provided by this application, such as Figure 3As shown, the present application can mark the 5G signal-related parameters in the unit position by manual and automated methods. The specific method is to first perform signal acquisition and position marking, and then divide the geographical plane into unit grids with accuracy requirements according to the requirements of the business scenario for positioning accuracy. For the unit grid, the robot automatically uses special equipment or mobile test terminals (ie, sample terminals) to scan and record location information and 5G signal parameters, such as signal strength, signal delay, signal arrival angle, etc. Secondly, accurately calculate the location information of each unit grid as the location information of the corresponding sample terminal, focusing on the longitude and latitude information of the four vertices of the square corresponding to each grid. Further, manual point filling tests can be performed, and the correlation and correspondence between the unit grid and the original signal data (ie, 5G signal parameters) can be established. Finally, the corresponding relationship data is recorded as the original data and imported into the data analysis platform in a specified format.

[0074] Furthermore, data collation and feature extraction can be performed in the data analysis platform. Specifically, data quality management tools and artificial intelligence (AI) noise analysis functions can be used to collate and associate the collected signal parameters and corresponding position information. Specifically, data noise can be removed, and secondary collection can be used to supplement missing key data. At the same time, data standardization can be performed to form statistically significant sample data in the analysis.

[0075] Furthermore, the data analysis platform is used to construct and service the fingerprint library. Specifically, through big data and AI analysis, with the help of feature extraction and clustering algorithms, representative feature parameters can be extracted from the signal parameters in the grid. Through regression verification, these feature parameters can better distinguish different unit grids, and finally establish the correlation between the location information of each unit grid and the characteristic parameters of the corresponding 5G signal.

[0076] Based on the association relationship established in the previous work, a suitable data structure is used to store this information. Following the principle of quick and accurate query and matching, the location information of each unit grid is combined with the association relationship of the characteristic parameters of the corresponding 5G signal to build a fingerprint library that can provide positioning services to the outside world. Furthermore, the signal collection and location labeling process can be dynamically optimized and adjusted based on the information in the fingerprint library.

[0077] Therefore, after obtaining the network signal parameter information of the terminal to be located, the present application can first determine the target parameter from each network signal parameter in the network signal parameter information. Specifically, the corresponding parameter can be extracted from each network signal parameter in the network signal parameter information as the target parameter according to the characteristic parameters in each association relationship in the fingerprint library.

[0078] Furthermore, the target parameter can be compared with the association relationship in the preset fingerprint library. Since the association relationship is the association relationship between each location information and a corresponding characteristic parameter, after the comparison, the location information associated with the characteristic parameter corresponding to the target parameter in the association relationship can be further determined as the location information of the terminal to be located.

[0079] Furthermore, positioning can be performed based on the location information of the terminal to be located to obtain an initial positioning result. When the terminal location information is known, existing technologies can be used for positioning to determine whether the terminal to be located is indoors or outdoors to obtain an initial positioning result.

[0080] The present application can determine the initial positioning result of whether the terminal to be positioned is indoors or outdoors based on the network signal parameters, and then the signal-related characteristic parameters of the terminal to be positioned and the initial positioning result can be input into the decision tree model, and the accurate target positioning result of the terminal to be positioned output by the decision tree model can be obtained through the auxiliary positioning of the decision tree model. Therefore, by performing preliminary positioning to obtain the initial positioning result, further positioning can be performed according to the decision tree model in combination with the initial positioning result and the signal-related characteristic parameters, thereby obtaining the accurate target positioning result of whether the terminal to be processed is indoors or outdoors, thereby improving the accuracy of indoor and outdoor positioning.

[0081] Figure 4 It is a schematic diagram of the overall process of the indoor and outdoor positioning method provided by this application, such as Figure 4 As shown, in one embodiment, the present application can first construct a decision tree model, specifically, first construct a 5G signal location fingerprint library, and use the positioning result obtained by preliminary positioning based on the fingerprint library as the root node of the decision tree, and determine the decision node. Furthermore, the decision node uses feature selection, performs unique hot encoding on each feature, further constructs a decision tree model based on the decision tree and performs parameter training, and further verifies the effect of the decision model (i.e., the decision tree model).

[0082] Furthermore, real-time indoor and outdoor judgments can be made based on the decision tree model, specifically, based on the object's motion state and speed calculation. Furthermore, basic information and calculation information can be used to determine indoor and outdoor through the model, wherein the basic information may include changes in indoor and outdoor signal strengths, initial position information of the object, and spatial coordinate information of the building.

[0083] Furthermore, the decision tree model can be self-optimized. Specifically, the effect score can be obtained according to the judgment effect evaluation model. If the stage requirements are not met, the effect and decision tree model parameter influence function is constructed, and the model is iterated according to this function. After the parameter adjustment is completed, the effect score is performed again.

[0084] Furthermore, the position may be revised and the positioning mode may be switched. Specifically, the position may be revised according to the determination result, more specifically, the indoor positioning mode may be switched to the outdoor positioning mode, or the outdoor positioning mode may be switched to the indoor positioning mode.

[0085] This application provides a dynamic liberalization model to ensure that the accuracy and credibility of judgments will not weaken with the application time, but will improve with the continuous optimization of the model, while reducing the cost of model revision and operation and maintenance.

[0086] The indoor and outdoor positioning devices provided in the present application are described below. The indoor and outdoor positioning devices described below and the indoor and outdoor positioning methods described above can refer to each other.

[0087] Furthermore, the present application also provides an indoor and outdoor positioning device.

[0088] The indoor and outdoor positioning device includes: an acquisition module, which is used to obtain network signal parameter information of the terminal to be located; a determination module, which is used to determine the initial positioning result of the terminal to be located based on the network signal parameters; the initial positioning result is indoors or outdoors; an input module, which is used to input the signal-related characteristic parameters of the terminal to be located and the initial positioning result into a decision tree model to obtain the target positioning result of the terminal to be located output by the decision tree model; the decision tree model includes a root node and a decision node; the root node includes a positioning result; each decision node and its corresponding signal-related characteristic parameters are used for terminal positioning.

[0089] In one embodiment, the determination module is specifically used to: determine the location information of the terminal to be located based on the network signal parameter information; and locate the terminal to be located based on the location information to obtain an initial positioning result.

[0090] In one embodiment, the determination module includes a determination unit, which is used to: determine the target parameter from each network signal parameter of the network signal parameter information; compare the target parameter with the association relationship in a preset fingerprint library; the association relationship is the association relationship between each location information and a corresponding characteristic parameter; and determine the location information associated with the characteristic parameter corresponding to the target parameter in the association relationship as the location information of the terminal to be located.

[0091] The indoor and outdoor positioning device provided by the embodiment of the present application constructs a decision tree model according to the root node and the decision node in advance. Since the root node includes the positioning result, and each decision node and its corresponding signal-related characteristic parameter can be used for terminal positioning, after obtaining the network signal parameter information of the terminal to be positioned and determining the initial positioning result of whether the terminal to be positioned is indoors or outdoors based on the network signal parameter, the signal-related characteristic parameter of the terminal to be positioned and the initial positioning result are input into the decision tree model, and the target positioning result of the terminal to be positioned output by the decision tree model can be obtained. Therefore, after obtaining the initial positioning result according to the network signal parameter information of the terminal to be positioned, since the decision tree model is constructed in advance according to the root node and the decision node, the root node includes the positioning result, and each decision node and its corresponding signal-related characteristic parameter can be used for terminal positioning, the terminal to be positioned can be further positioned according to the root node and the decision node in the decision tree model, combined with the initial positioning result and the signal-related characteristic parameter of the terminal to be positioned, thereby obtaining an accurate target positioning result of whether the terminal to be processed is indoors or outdoors, thereby improving the accuracy of indoor and outdoor positioning.

[0092] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the indoor and outdoor positioning method, the method comprising: obtaining network signal parameter information of the terminal to be positioned; determining the initial positioning result of the terminal to be positioned based on the network signal parameter information; the initial positioning result is indoor or outdoor; inputting the signal-related characteristic parameters of the terminal to be positioned and the initial positioning result into a decision tree model to obtain the target positioning result of the terminal to be positioned output by the decision tree model; the decision tree model comprises a root node and a decision node; the root node comprises a positioning result; each decision node and its corresponding signal-related characteristic parameters are used for terminal positioning.

[0093] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0094] On the other hand, the present application also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the indoor and outdoor positioning methods provided by the above methods, and the method includes: obtaining network signal parameter information of the terminal to be located; determining the initial positioning result of the terminal to be located based on the network signal parameter information; the initial positioning result is indoors or outdoors; inputting the signal-related characteristic parameters of the terminal to be located and the initial positioning result into a decision tree model to obtain the target positioning result of the terminal to be located output by the decision tree model; the decision tree model includes a root node and a decision node; the root node includes a positioning result; each decision node and its corresponding signal-related characteristic parameters are used for terminal positioning.

[0095] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the indoor and outdoor positioning methods provided by the above-mentioned methods, the method comprising: obtaining network signal parameter information of the terminal to be located; determining an initial positioning result of the terminal to be located based on the network signal parameter information; the initial positioning result is indoors or outdoors; inputting the signal-associated characteristic parameters of the terminal to be located and the initial positioning result into a decision tree model to obtain a target positioning result of the terminal to be located output by the decision tree model; the decision tree model comprises a root node and a decision node; the root node comprises a positioning result; each decision node and its corresponding signal-associated characteristic parameters are used for terminal positioning.

[0096] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An indoor and outdoor positioning method, characterized in that: The method comprises: Obtain network signal parameter information of the terminal to be located; Determining an initial positioning result of the terminal to be positioned based on the network signal parameter information; the initial positioning result is indoors or outdoors; The signal-associated characteristic parameters of the terminal to be located and the initial positioning result are input into a decision tree model to obtain a target positioning result of the terminal to be located output by the decision tree model; the decision tree model includes a root node and a decision node; the root node includes a positioning result; each decision node and its corresponding signal-associated characteristic parameter are used for terminal positioning.

2. The indoor and outdoor positioning method according to claim 1, characterized in that: The decision tree model is determined in the following way: An initial decision tree is constructed by determining the positioning result as the root node and using the signal-related characteristic parameters of the sample terminal as the decision node; the signal-related characteristic parameters include at least one of the service base station attribute information, outdoor signal reception information, previous position attribute information, target state attribute information, movement information, indoor signal strength information and satellite signal strength information; According to the signal correlation characteristic parameters corresponding to each decision node, the sub-node positions of the decision nodes of the initial decision tree are adjusted; The corresponding processing rules are set for each decision node after the position of the sub-node is adjusted to obtain a decision tree model.

3. The indoor and outdoor positioning method according to claim 2, characterized in that: When adjusting the sub-node positions of the decision nodes of the initial decision tree according to the signal correlation characteristic parameters corresponding to each decision node, the following operations are performed for each sub-node position: Obtain the information entropy and Gini coefficient of the signal correlation characteristic parameters corresponding to each decision node; According to the information entropy and Gini coefficient of the signal correlation characteristic parameters corresponding to each decision node, the target decision node is determined from each decision node; The target decision node is determined as the decision node at the current child node position.

4. The indoor and outdoor positioning method according to claim 3, characterized in that: The step of determining a target decision node from each decision node according to the information entropy and the Gini coefficient of the signal correlation characteristic parameters corresponding to each decision node includes: The Gini coefficient of the signal-related characteristic parameter corresponding to each decision node is compared with the preset coefficient range; Determine a decision node whose Gini coefficient is within the preset coefficient range as a candidate decision node; According to the information entropy of the signal-related characteristic parameters corresponding to each candidate decision node, the target decision node is determined from each candidate decision node.

5. The indoor and outdoor positioning method according to claim 1, characterized in that: The determining the initial positioning result of the terminal to be positioned based on the network signal parameter information includes: Determine the location information of the terminal to be located based on the network signal parameter information; The terminal to be located is located based on the location information to obtain an initial positioning result.

6. The indoor and outdoor positioning method according to claim 5, characterized in that: The determining the location information of the terminal to be located based on the network signal parameter information includes: Determining a target parameter from each network signal parameter of the network signal parameter information; Compare the target parameter with the association relationship in the preset fingerprint library; the association relationship is the association relationship between each position information and a corresponding characteristic parameter; The location information associated with the characteristic parameter corresponding to the target parameter in the association relationship is determined as the location information of the terminal to be located.

7. The indoor and outdoor positioning method according to claim 6, characterized in that: The association relationship in the preset fingerprint library is determined in the following manner: Obtaining sample location information and sample network signal parameter information of the sample terminal; Performing data preprocessing on the sample network signal parameter information to obtain preprocessing parameter information; Performing feature extraction on the preprocessing parameter information to obtain at least one feature parameter; Setting an association relationship between each of the parameter features and the position information respectively corresponding to the sample position information; A preset fingerprint library is constructed based on the association relationship.

8. An indoor and outdoor positioning device, characterized in that: include: An acquisition module is used to acquire network signal parameter information of the terminal to be located; A determination module, configured to determine an initial positioning result of the terminal to be positioned based on the network signal parameter; the initial positioning result is indoors or outdoors; An input module is used to input the signal-associated characteristic parameters of the terminal to be located and the initial positioning result into a decision tree model to obtain the target positioning result of the terminal to be located output by the decision tree model; the decision tree model includes a root node and a decision node; the root node includes the positioning result; each decision node and its corresponding signal-associated characteristic parameter are used for terminal positioning.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the indoor and outdoor positioning method as described in any one of claims 1 to 7 is implemented.

10. A medium, the medium being a non-transitory computer-readable storage medium, on which a computer program is stored, characterized in that: When the computer program is executed by a processor, the indoor and outdoor positioning method as claimed in any one of claims 1 to 7 is implemented.

11. A product, the product being a computer program product, comprising a computer program, characterized in that: When the computer program is executed by a processor, the indoor and outdoor positioning method as claimed in any one of claims 1 to 7 is implemented.