Positioning method, model generation method and equipment
Patent Information
- Application Number
- CN202280089401.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-19
- Publication Date
- 2024-08-27
AI Technical Summary
Existing communication systems lack accuracy in positioning electronic devices, making it difficult to accurately identify positioning parameters in wireless signals, affecting the accuracy and processing efficiency of positioning information.
The target model is used to process the received wireless signals, and the preset model is trained through training samples to generate positioning parameters for processing wireless signals, thereby determining the positioning information of the device and improving positioning accuracy and efficiency.
Identifying positioning feature information in wireless signals through the target model significantly improves the accuracy and processing efficiency of positioning information, and is suitable for a variety of communication systems, including 5G systems and other new communication scenarios.
Smart Images

Figure CN118556432A
Abstract
Description
Positioning method, model generation method and device Technical Field
[0001] The present application relates to the field of communications, and more specifically, to a positioning method, a model generation method, a device, a computer-readable storage medium, a computer program product, and a computer program. Background Art
[0002] In communication scenarios, it is often necessary to locate electronic devices. In related technologies, electronic devices are usually located using wireless signals from a signal source. However, how to make the positioning of electronic devices more accurate is a problem that needs to be solved.
[0003] Summary of the Invention
[0004] Embodiments of the present application provide a positioning method, a model generation method, a device, a computer-readable storage medium, a computer program product, and a computer program.
[0005] This embodiment of the present application provides a positioning method, including:
[0006] The first device receives a wireless signal;
[0007] The first device processes the wireless signal based on the target model to obtain positioning parameters;
[0008] The first device determines the positioning information of the first device based on the positioning parameters.
[0009] The present invention provides a model generation method, including:
[0010] Use training samples to train the preset model to obtain the trained target model;
[0011] The target model is used to process the wireless signal to obtain positioning parameters, and the positioning parameters are used to determine positioning information.
[0012] An embodiment of the present application provides a first device, including:
[0013] a communication unit, configured to receive wireless signals;
[0014] A processing unit is configured to process the wireless signal based on a target model to obtain positioning parameters; and determine positioning information of the first device based on the positioning parameters.
[0015] An embodiment of the present application provides an electronic device, including:
[0016] A training unit is used to train a preset model using training samples to obtain a trained target model; wherein the target model is used to process wireless signals to obtain positioning parameters, and the positioning parameters are used to determine positioning information.
[0017] An embodiment of the present application provides a first device, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and execute the computer program stored in the memory, so that the first device performs the above method.
[0018] An embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory, so that the electronic device executes the above method.
[0019] The embodiment of the present application provides a chip for implementing the above method.
[0020] Specifically, the chip includes: a processor, which is used to call and run a computer program from a memory, so that a device equipped with the chip executes the above method.
[0021] An embodiment of the present application provides a computer-readable storage medium for storing a computer program, which enables a device to perform the above method when the computer program is executed by the device.
[0022] An embodiment of the present application provides a computer program product, including computer program instructions, which enable a computer to execute the above method.
[0023] An embodiment of the present application provides a computer program, which, when executed on a computer, enables the computer to execute the above method.
[0024] In the embodiment of the present application, by adopting the solution provided in this embodiment, when a first device receives a wireless signal, the wireless signal is processed using a target model to obtain positioning parameters, and then the positioning information of the first device is determined based on the positioning parameters. In this way, the positioning parameters in the wireless signal can be more accurately identified using the target model, thereby ensuring the accuracy of the final positioning information and ensuring processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] FIG1 is a schematic diagram of an application scenario according to an embodiment of the present application.
[0026] FIG2 is a schematic flowchart of a positioning method according to an embodiment of the present application.
[0027] FIG3 is a schematic diagram of a CIR of a wireless signal according to an embodiment of the present application.
[0028] FIG4 is a schematic diagram of a scene based on distance positioning according to an embodiment of the present application.
[0029] FIG5 is a schematic diagram of a processing structure of a target model according to an embodiment of the present application.
[0030] FIG6 is a schematic flowchart of a model generation method according to an embodiment of the present application.
[0031] FIG7 is a schematic diagram of a processing structure of a preset model according to an embodiment of the present application.
[0032] FIG8 is a schematic diagram of wireless signals received under different environmental characteristics according to an embodiment of the present application.
[0033] FIG9 is a schematic block diagram of a first device according to an embodiment of the present application.
[0034] FIG10 is a schematic block diagram of an electronic device according to an embodiment of the present application.
[0035] FIG11 is a schematic block diagram of a communication device according to an embodiment of the present application.
[0036] FIG12 is a schematic block diagram of a chip according to an embodiment of the present application.
[0037] FIG13 is a schematic block diagram of a communication system according to an embodiment of the present application. DETAILED DESCRIPTION
[0038] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0039] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, Advanced Long Term Evolution (LTE-A) system, New Radio (NR) system, NR system evolution system, LTE on unlicensed spectrum (LTE-U) system, NR on unlicensed spectrum (NR-U) system, Non-Terrestrial Networks (NTN) system, Universal Mobile Telecommunication System (UMTS), Wireless Local Area Networks (WLAN), Wireless Fidelity (Wireless Fidelity) system. Fidelity, WiFi), fifth-generation communication (5th-Generation, 5G) system or other communication systems, etc.
[0040] Generally speaking, traditional communication systems support a limited number of connections and are easy to implement. However, with the development of communication technology, mobile communication systems will not only support traditional communications, but will also support, for example, device-to-device (D2D) communication, machine-to-machine (M2M) communication, machine-type communication (MTC), vehicle-to-vehicle (V2V) communication, or vehicle-to-everything (V2X) communication, etc. The embodiments of the present application can also be applied to these communication systems.
[0041] In one possible implementation, the communication system in the embodiment of the present application can be applied to a carrier aggregation (CA) scenario, a dual connectivity (DC) scenario, and a standalone (SA) networking scenario.
[0042] In one possible implementation, the communication system in the embodiment of the present application can be applied to an unlicensed spectrum, where the unlicensed spectrum can also be considered as a shared spectrum; or, the communication system in the embodiment of the present application can also be applied to an authorized spectrum, where the authorized spectrum can also be considered as an unshared spectrum.
[0043] The embodiments of the present application describe various embodiments in conjunction with network devices and terminal devices, wherein the terminal device may also be referred to as user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.
[0044] The terminal device can be a station (STAION, STA) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a next-generation communication system such as a terminal device in an NR network, or a terminal device in a future evolved Public Land Mobile Network (PLMN) network, etc.
[0045] In an embodiment of the present application, the terminal device can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on the water surface (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons and satellites, etc.).
[0046] In an embodiment of the present application, the terminal device may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.
[0047] As an example and not a limitation, in the embodiment of the present application, the terminal device may also be a wearable device. Wearable devices may also be called wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0048] In the embodiment of the present application, the network device may be a device for communicating with a mobile device, and the network device may be an access point (AP) in WLAN, a base station (BTS) in GSM or CDMA, a base station (NodeB, NB) in WCDMA, or an evolved base station in LTE.
[0049] (Evolutional Node B, eNB or eNodeB), or relay station or access point, or vehicle-mounted equipment, wearable devices and network equipment in NR network (gNB) or network equipment in future evolved PLMN network or network equipment in NTN network, etc.
[0050] As an example and not a limitation, in an embodiment of the present application, the network device may have a mobile feature, for example, the network device may be a mobile device. Alternatively, the network device may be a satellite or a balloon station. For example, the satellite may be a low earth orbit (LEO) satellite, a medium earth orbit (MEO) satellite, a geostationary earth orbit (GEO) satellite, a high elliptical orbit (HEO) satellite, etc. Optionally, the network device may also be a base station set up in a location such as land or water.
[0051] In an embodiment of the present application, the network device can provide services for a cell, and the terminal device communicates with the network device through the transmission resources used by the cell (for example, frequency domain resources, or spectrum resources). The cell can be a cell corresponding to the network device (for example, a base station). The cell can belong to a macro base station or a base station corresponding to a small cell. The small cells here may include: metro cells, micro cells, pico cells, femto cells, etc. These small cells have the characteristics of small coverage and low transmission power, and are suitable for providing high-speed data transmission services.
[0052] FIG1 exemplarily illustrates a communication system 100. The communication system includes a network device 110 and two terminal devices 120. In one possible implementation, the communication system 100 may include multiple network devices 110, and each network device 110 may include a different number of terminal devices 120 within its coverage area, which is not limited in this embodiment of the present application.
[0053] In one possible implementation, the communication system 100 may further include other network entities such as a Mobility Management Entity (MME) and an Access and Mobility Management Function (AMF), which is not limited in this embodiment of the present application.
[0054] Among them, the network equipment may include access network equipment and core network equipment. That is, the wireless communication system also includes multiple core networks for communicating with the access network equipment. The access network equipment can be an evolutionary base station (evolutional node B, abbreviated as eNB or e-NodeB) macro base station, micro base station (also called "small base station"), pico base station, access point (AP), transmission point (TP) or new generation base station (new generation Node B, gNodeB), etc. in a long-term evolution (LTE) system, a next-generation (mobile communication system) (next radio, NR) system or an authorized auxiliary access long-term evolution (LAA-LTE) system.
[0055] It should be understood that in the embodiments of the present application, a device having a communication function in a network / system may be referred to as a communication device. Taking the communication system shown in Figure 1 as an example, the communication device may include a network device and a terminal device having a communication function. The network device and the terminal device may be specific devices in the embodiments of the present application and will not be described in detail here. The communication device may also include other devices in the communication system, such as a network controller, a mobility management entity, and other network entities, which are not limited in the embodiments of the present application.
[0056] It should be understood that the terms "system" and "network" are often used interchangeably herein. The term "and / or" is simply a description of an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " generally indicates that the related objects are in an "or" relationship.
[0057] It should be understood that the "indication" mentioned in the embodiments of this application can be a direct indication, an indirect indication, or an indication of an association. For example, "A indicates B" can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B.
[0058] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between the two, or an association relationship between the two, or a relationship between indication and being indicated, configuration and being configured, etc.
[0059] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following relevant technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the protection scope of the embodiments of the present application.
[0060] Figure 2 is a schematic flow chart of a positioning method according to an embodiment of the present application. The method includes at least part of the following contents.
[0061] S210, the first device receives a wireless signal;
[0062] S220: The first device processes the wireless signal based on the target model to obtain positioning parameters;
[0063] S230: The first device determines the positioning information of the first device based on the positioning parameters.
[0064] In S210, the first device receives a wireless signal, which may be: the first device receives N wireless signals; wherein the N wireless signals are sent by N second devices. N may be an integer greater than or equal to 1; preferably, N is an integer greater than or equal to 2.
[0065] The N wireless signals are sent by N second devices, which specifically means that there is a one-to-one correspondence between the wireless signals and the second devices. For example, the first wireless signal is sent by the first second device, the second wireless signal is sent by the second second device, and so on.
[0066] Among the N wireless signals, the signal type of each wireless signal can be the same. For example, if any wireless signal is the i-th wireless signal, the signal type of the i-th wireless signal can be one of the following: Bluetooth signal, WiFi signal, cellular network signal, Ultra Wide Band (UWB) signal, etc., wherein i is an integer greater than or equal to 1 and less than or equal to N. It should be understood that the aforementioned signal types are merely exemplary and do not limit all possible signal types of wireless signals. In fact, any signal type of wireless signal that can be used for positioning is within the scope of protection of this embodiment, but this is not an exhaustive list.
[0067] In this embodiment, the first device may be any electronic device, such as a terminal device. In this embodiment, the N second devices may be of the same device type. Exemplarily, the N second devices may be access network devices in a cellular network, such as a base station, eNB, gNB, etc.; or, the N second devices may be access points (AP, Access Point) (or may also be referred to as AP stations (STA, Station)); or, the N second devices may be other devices capable of sending Bluetooth signals, such as devices set at a certain location, etc. It should be understood that any device that can send a wireless signal of any of the aforementioned signal types may be the second device in this embodiment, and this embodiment does not exhaustively enumerate all possible device types of the second device.
[0068] The target model includes a first sub-model and a second sub-model; wherein the first sub-model is used to process the wireless signal to obtain location feature information; and the second sub-model is used to process the location feature information to obtain positioning parameters. The target model may be a pre-trained model. The training process of the target model may be performed in the first device or in a device other than the first device. The other device may be other electronic devices, such as personal computers, laptops, servers, etc., which are not exhaustive here.
[0069] In S220, the first device processes the wireless signal based on the target model to obtain the positioning parameters, which may include: the first device inputs the wireless signal into the first sub-model of the target model to obtain the location feature information output by the first sub-model; and inputs the location feature information into the second sub-model of the target model to obtain the positioning parameters output by the second sub-model.
[0070] As mentioned above, the wireless signal can specifically be N wireless signals. Accordingly, the first device processes the wireless signal based on the target model to obtain the positioning parameter, which specifically includes: the first device inputs the jth wireless signal among the N wireless signals into the first sub-model to obtain the jth position feature information output by the first sub-model; wherein j is an integer greater than or equal to 1 and less than or equal to N; and inputs the jth position feature information into the second sub-model to obtain the jth positioning parameter output by the second sub-model.
[0071] The aforementioned j-th wireless signal can be any one of the N wireless signals. This embodiment processes the N wireless signals in the same manner, but will not go into details one by one; accordingly, the j-th positioning parameter can also be any one of all the positioning parameters finally obtained. Since the first device receives N wireless signals, N positioning parameters can be obtained through the above-mentioned processing.
[0072] In this embodiment, the j-th wireless signal among the N wireless signals is input into the first sub-model of the target model, which may specifically refer to inputting the CIR (Channel Impulse Response) of the j-th wireless signal into the first sub-model of the target model. Here, the CIR of the j-th wireless signal may be as shown in FIG3 , and may include the attenuation (or attenuation value) of the j-th wireless signal received by the first device at different moments in the time domain after channel attenuation. The first device is represented by k, the j-th wireless signal is the wireless signal sent by the j-th second device, and the CIR of the j-th wireless signal received by the first device is r kj (t) as an example, the r kj (t) can be expressed by the following formula: Among them, s j (t) is a signal representation of the j-th second device transmitting the wireless signal, Y is the number of multipaths, y={1, 2, ..., Y} is an indication of different transmission links of the wireless signal, and are the amplitude and delay corresponding to the signal of the y-th transmission link from the j-th second device to the first device k, and n(t) is Gaussian white noise.
[0073] Furthermore, as the specific functions of the target model vary, the specific content of the aforementioned positioning parameters will also vary; accordingly, the processing method for the first device to determine the positioning information of the first device based on the positioning parameters will also vary, as described below:
[0074] In one embodiment, the target model is specifically used to process the wireless signal to obtain the distance between the first device and the second device. Accordingly, the N positioning parameters include: the distance between the first device and each of the N second devices.
[0075] As previously explained, the first device can receive N wireless signals, specifically N wireless signals transmitted by N second devices. In processing the jth wireless signal, the target model is specifically used to process the CIR of the jth wireless signal to obtain the jth distance between the first device and the jth second device.
[0076] The positioning information of the first device may be determined based on the N distances and the position information of the N second devices. The above-mentioned N may specifically be an integer greater than or equal to 3. Specifically, the above-mentioned S230, in which the first device determines the positioning information of the first device based on the positioning parameters, may include: the first device determines the positioning information of the first device based on the N distances and the position information of the N second devices. Taking the geographic coordinate system as an example, the positioning information of the first device may include at least: the longitude and latitude of the first device. The position information of the N second devices may include at least: the longitude and latitude of each second device in the N second devices. It should be understood that the above-mentioned positioning information and position information are explained here only by taking the geographic coordinate system as an example. In actual processing, other coordinate systems may also be used, but they are not exhaustive.
[0077] The longitude and / or latitude of at least some of the N second devices are different from those of the other second devices; that is, the N second devices are not on the same straight line.
[0078] This embodiment can be based on the location information of N second devices and the distances between the N second devices (i.e., N source nodes) and the first device, to determine the N possible location ranges of the first device. There is a unique intersection position in the N possible location ranges, and the intersection position is used as the positioning information of the first device. For example, assuming that the first device is represented as k in the standard coordinate system, the distance d from the first device to the jth second device among the N second devices is kj It can be expressed as: kj =||p k -p j ||; where p k is the positioning information of the first device, p j is the location information of the jth second device. j If d is known, we can get kj You can determine p k A possible position range (which can be a circular range); and then other possible value ranges can be determined based on the distance between other second devices in the N second devices and the first device. Based on the N possible position ranges, a unique intersection position can be determined, and the intersection position is used as the positioning information of the first device.
[0079] Exemplarily, N is equal to 3, the first distance refers to the distance between the first device and the first second device; the second distance refers to the distance between the first device and the second second device; and the third distance refers to the distance between the first device and the third second device. The first device determines the positioning information of the first device based on the three distances and the position information of the three second devices, as shown in FIG4 , specifically: the first device determines a first position range 401 with the position information of the first second device as the center o1 and the first distance as the radius r1; similarly, the first device determines a second position range 402 with the position information of the second second device as the center o2 and the second distance as the radius r2; the first device determines a third position range 403 with the position information of the third second device as the center o3 and the third distance as the radius r3; and the longitude and latitude of the unique intersection of the first position range 401, the second position range 402, and the third position range 403 are used as the positioning information of the first device.
[0080] In one embodiment, the target model is specifically used to process the wireless signal to obtain the distance deviation. Accordingly, the N positioning parameters are N distance deviations.
[0081] As previously described, the first device can receive N wireless signals, specifically N wireless signals transmitted by N second devices. In processing the jth wireless signal, the target model is specifically used to process the CIR of the jth wireless signal to obtain the jth distance deviation between the first device and the jth second device.
[0082] The positioning information of the first device may be determined based on the N distance deviations, the N initial distances, and the position information of the N second devices. Specifically, N may be an integer greater than or equal to 3.
[0083] Before executing the aforementioned S230, it may also include: the first device determines the N initial distances between the first device and the N second devices based on the N wireless signals. The first device may process each of the N wireless signals separately. Specifically, the first device determines the jth initial distance between the first device and the jth second device among the N second devices based on the jth wireless signal among the N wireless signals. That is, the jth initial distance may be obtained by the first device based on the CIR estimation of the jth wireless signal. Here, the definition and representation of the CIR of any wireless signal are the same as those in the aforementioned embodiment and will not be elaborated on. The method of obtaining the jth initial distance based on the CIR estimation of the jth wireless signal may be set according to actual conditions. For example, a first-reaching path estimation algorithm may be used, which is not limited in this embodiment.
[0084] The aforementioned S230, in which the first device determines the positioning information of the first device based on the positioning parameters, may include: the first device correcting the N initial distances based on the N distance deviations to obtain N adjusted distances; and determining the positioning information of the first device based on the N adjusted distances and the position information of the N second devices.
[0085] Any distance deviation among the N distance deviations may be a positive number, a negative number, or zero.
[0086] The first device determines N adjusted distances based on the N distance deviations and the N initial distances. Specifically, the first device calculates the jth distance deviation among the N distance deviations and the jth initial distance among the N initial distances to obtain the jth adjusted distance among the N adjusted distances.
[0087] For example, assuming that the jth initial distance is the initial distance between the jth second device and the first device k, it can be expressed as The jth distance deviation is denoted as b kj , then the jth adjusted distance d kj , can be calculated using the following formula:
[0088] In this embodiment, the positioning information of the first device and the location information of the N second devices are the same as those defined in the previous embodiment and are not described repeatedly.
[0089] Exemplarily, N is equal to 3, and the first initial distance among the three initial distances refers to the initial distance between the first device and the first second device. The first distance deviation is subtracted from the first initial distance to obtain the first adjusted distance; the second initial distance refers to the initial distance between the first device and the second second device. The second distance deviation is subtracted from the second initial distance to obtain the second adjusted distance; the third initial distance refers to the initial distance between the first device and the third second device. The third distance deviation is subtracted from the third initial distance to obtain the third adjusted distance.
[0090] Regarding the specific processing method for the first device to determine the positioning information of the first device based on the three adjusted distances and the position information of the three second devices, it is similar to the specific processing method for determining the positioning information of the first device based on the three distances and the position information of the three second devices, so it is not repeated.
[0091] In one embodiment, the target model is specifically used to process the wireless signal to obtain the RSS value of the wireless signal. Accordingly, the N positioning parameters are N RSS (Received Signal Strength) values.
[0092] As previously explained, the first device can receive N wireless signals, specifically N wireless signals sent by N second devices. In processing the jth wireless signal, the target model is specifically used to process the CIR of the jth wireless signal to obtain the RSS value of the jth wireless signal received by the first device.
[0093] The positioning information of the first device may be determined based on the N RSS values and the signal feature library. Specifically, the aforementioned S230, in which the first device determines the positioning information of the first device based on the positioning parameters, may include: the first device determines the positioning information of the first device based on the N positioning parameters and the signal feature library; wherein the signal feature library includes a feature value for each reference position among a plurality of reference positions; and the feature value for each reference position includes an RSS reference value of a reference signal of each second device among the N second devices.
[0094] It should be noted that the above-mentioned signal feature library can also be called a fingerprint library, or a fingerprint database, or a signal fingerprint information library, etc., and all possible names are not exhaustively listed here.
[0095] The multiple reference locations may refer to multiple locations within the area where the first device is currently located; wherein the area where the first device is currently located may refer to indoors or outdoors, and this embodiment does not limit it. Each of the multiple reference locations may be represented by a geographic coordinate system. For example, the signal feature library contains 10 reference locations, the first reference location is represented by (longitude 1, latitude 1), the second reference location is represented by (longitude 2, latitude 2), and so on, without exhaustive enumeration; it should be understood that each reference location may also be represented by other coordinate systems, but they are not exhaustive here.
[0096] The above-mentioned multiple reference positions can be multiple grid reference positions. Each grid reference position can be represented by the center point of each grid reference position; or, each grid reference position is represented by at least two coordinate points (such as the upper left coordinate point of the grid and the lower right coordinate point of the grid). Taking the example that each coordinate point can be represented by a geographic coordinate system, it is assumed that the first grid reference position in the signal feature library is represented as {(longitude 11, latitude 11), (longitude 12, latitude 12)}, the second grid reference position is represented as {(longitude 21, latitude 21), (longitude 22, latitude 22)}, and so on without exhaustive enumeration.
[0097] It should also be noted that the RSS reference value of the reference signal of each second device may be the RSS value of the wireless signal of each second device measured at each reference position when constructing the signal feature library.
[0098] Specifically, the N positioning parameters are N RSS values; accordingly, the first device determining the positioning information of the first device based on the N positioning parameters and the signal feature library means that the first device determines the positioning information of the first device based on the N RSS values and the signal feature library. N can be an integer greater than or equal to 2.
[0099] The first device determines the positioning information of the first device based on the N RSS values and the signal feature library. Specifically, the N RSS values are compared with the feature quantities of each reference position in the signal feature library, and the reference position where the feature quantities matching the N RSS values are located is used as the target position, and the target position is used as the positioning information of the first device.
[0100] Among them, whether the N RSS values match the feature quantities at each reference position can be achieved by using any one of the NN (Nearst Neighbor) algorithm, NNN (N-Nearest Neighbor, N nearest neighbor) algorithm, Bass algorithm, etc., and all possible algorithms are not enumerated here.
[0101] Taking the NN algorithm as an example, whether the N RSS values match the feature values at each reference position can be determined by Euclidean distance. For example, N is equal to 3, and the 3 RSS values are matched with the feature values of each reference position in the signal feature library (for example, containing 3 RSS reference values) for similarity; the reference position with the smallest Euclidean distance between the two is used as the positioning information of the first device. For example, the 3 RSS values obtained by the first device are expressed as (RSS 1, RSS 2, RSS 3), and the signal feature library contains reference position A (coordinates = (longitude 11, latitude 11), corresponding RSS reference values = (RSS 1, RSS 2, RSS 4)); reference position B (coordinates = (longitude 21, latitude 21), corresponding RSS reference values = (RSS 3, RSS 5, RSS 4)). By comparison, it can be found that the three RSS values are most similar to the characteristic quantities corresponding to the reference position A (ie, the RSS reference values), so it can be determined that the positioning information of the first device is equal to the coordinates of the reference position A (longitude 11, latitude 11).
[0102] In one embodiment, the target model is specifically used to process the wireless signal to obtain the RSS deviation. Accordingly, the N positioning parameters are N RSS deviations.
[0103] The positioning information of the first device may be determined based on the N RSS values and a signal feature library. The aforementioned S230, wherein the first device determines the positioning information of the first device based on the positioning parameters, may include: the first device determines the positioning information of the first device based on the N positioning parameters and a signal feature library; wherein the signal feature library includes a feature value for each reference position in a plurality of reference positions; and wherein the feature value for each reference position includes an RSS reference value of a reference signal of each second device in the N second devices.
[0104] Specifically, the first device determines the positioning information of the first device based on N positioning parameters and a signal feature library, which may include: the first device determines N adjusted RSS values based on the N RSS deviations and N initial strength estimation values; and determines the positioning information of the first device based on the N adjusted RSS values and the signal feature library.
[0105] Any one of the N initial strength estimation values, such as the jth initial strength estimation value, may be obtained by the first device measuring the reception strength of the jth wireless signal among the N wireless signals. The jth initial strength estimation value may specifically be the jth initial RSS value.
[0106] Any RSS deviation among the N RSS deviations may be a positive number, a negative number, or zero.
[0107] The first device determines N adjusted RSS values based on the N RSS deviations and the N initial strength estimation values. Specifically, the first device calculates the jth adjusted RSS value among the N adjusted RSS values based on the jth RSS deviation among the N RSS deviations and the jth initial strength estimation value among the N initial strength estimation values.
[0108] The contents that may be included in the aforementioned signal feature library are the same as those in the aforementioned implementation method and will not be repeated here.
[0109] The aforementioned determination of the positioning information of the first device based on the N adjusted RSS values and the signal feature library can be performed by comparing the N adjusted RSS values with the feature quantities of each reference position in the signal feature library, using the reference position where the feature quantities matching the N adjusted RSS values are located as the target position, and using the target position as the positioning information of the first device. Here, the specific comparison method is similar to that in the aforementioned embodiment and will not be repeated here.
[0110] In one embodiment, the target model is specifically used to process the wireless signal to obtain the reception angle of the first device for the wireless signal. The N positioning parameters are the N reception angles of the first device for each of the N wireless signals.
[0111] The receiving angle at which the first device receives any one of the N wireless signals may be the angle between any one of the wireless signals received by the first device and the equivalent center point of its own antenna array relative to the reference direction. The antenna array of the first device may be an antenna array comprising two or more antennas. The reference direction may be pre-set, and specifically may be the same reference direction pre-set in each device in the system, such as due north or due south, etc., which are not exhaustive here.
[0112] As previously explained, the first device can receive N wireless signals, specifically N wireless signals transmitted by N second devices. In processing the jth wireless signal, the target model is specifically used to process the CIR of the jth wireless signal to obtain the jth reception angle between the first device and the jth second device.
[0113] The positioning information of the first device may be determined based on the N receiving angles and the position information of the N second devices. Specifically, N may be an integer greater than or equal to 3.
[0114] Specifically, the aforementioned S230, in which the first device determines the positioning information of the first device based on the positioning parameters, may include: the first device determines the positioning information of the first device based on the N receiving angles and the position information of the N second devices.
[0115] In this embodiment, the positioning information of the first device and the location information of the N second devices are the same as those defined in the previous embodiment and are not described repeatedly.
[0116] The longitude and / or latitude of at least some of the N second devices are different from those of the other second devices; that is, the N second devices are not on the same straight line.
[0117] For example, N is equal to 3, and the first receiving angle of the three receiving angles refers to the receiving angle of the first device for the first wireless signal sent by the first second device; the second receiving angle refers to the receiving angle of the first device for the second wireless signal sent by the second second device; and the third receiving angle refers to the receiving angle of the first device for the third wireless signal sent by the third second device. The first device determines the positioning information of the first device based on the three receiving angles and the position information of the three second devices, specifically:
[0118] The first device determines an angle 1 between the first second device, the second second device, and the first device at a first receiving angle and a second receiving angle; similarly, the first device determines an angle 2 between the second second device, the third second device, and the first device at a second receiving angle and a third receiving angle; the first device determines an angle 3 between the first second device, the third second device, and the first device at a third receiving angle and the first receiving angle;
[0119] Based on angle 1 and the position of the first second device and the position of the second second device, the first circular range is determined; based on angle 2 and the position of the second second device and the position of the second second device, the second circular range is determined; based on angle 3 and the position of the first second device and the position of the third second device, the third circular range is determined; the position of the intersection of the first circular range, the second circular range and the third circular range is used as the positioning information of the first device.
[0120] In one embodiment, the target model is specifically used to process the wireless signal to obtain the angular deviation of the first device receiving the wireless signal; accordingly, the N positioning parameters are N angular deviations.
[0121] The positioning information of the first device may be determined based on the N angle deviations, the N initial receiving angles, and the position information of the N second devices. The above-mentioned N may specifically be an integer greater than or equal to 3. Specifically, the aforementioned S230, in which the first device determines the positioning information of the first device based on the positioning parameters, may include: the first device determines the positioning information of the first device based on the N positioning parameters and the position information of the N second devices. Specifically, the first device corrects the N initial receiving angles based on the N angle deviations to obtain N adjusted angles; and determines the positioning information of the first device based on the N adjusted angles and the position information of the N second devices.
[0122] Any of the N initial receiving angles, such as the jth initial receiving angle, may be estimated by the first device based on the jth wireless signal among the N wireless signals. Here, the angle of incidence of the jth wireless signal may be determined by the first device based on its own antenna array. The antenna array of the first device may include two or more antennas.
[0123] Any one of the N angular deviations may be a positive number, a negative number, or zero.
[0124] The first device determines N adjusted angles based on the N angle deviations and the N initial receiving angles. Specifically, the first device may calculate based on the j-th angle deviation among the N angle deviations and the j-th initial receiving angle among the N initial receiving angles to obtain the j-th adjusted angle among the N adjusted angles. Here, the calculation may be set to addition or subtraction according to actual conditions.
[0125] In this embodiment, the positioning information of the first device and the location information of the N second devices are the same as those defined in the previous embodiment and are not described repeatedly.
[0126] Exemplarily, N is equal to 3, the first angle deviation among the three angle deviations refers to the angle deviation between the first wireless signal sent by the first device and the first second device, and the first angle estimation value among the three initial receiving angles refers to the angle estimation value between the first device and the first wireless signal sent by the first second device; the second angle deviation refers to the angle deviation between the first device and the second wireless signal sent by the second second device, and the second angle estimation value refers to the angle estimation value between the first device and the second wireless signal sent by the second second device; the third angle deviation refers to the angle deviation between the first device and the third wireless signal sent by the third second device, and the third angle estimation value refers to the angle estimation value between the first device and the third wireless signal sent by the third second device.
[0127] The specific processing method for the first device to determine the positioning information of the first device based on the three adjusted angles and the position information of the three second devices is similar to the above embodiment and will not be repeated here.
[0128] It should be understood that in the aforementioned embodiment, N equal to 3 is only an exemplary illustration. In actual processing, the number of N can be adjusted according to the accuracy requirements, for example, it can be 4 or 5, or more or less, which will not be elaborated here.
[0129] It should be noted that in the aforementioned various implementations, the processing instructions based on the N positioning parameters each include one of the following: the distance between the first device and each of the N second devices; the reception angle of the first device for each of the N wireless signals; N signal reception strength (RSS) values; N distance deviations; N angle deviations; and N RSS deviations. However, in actual processing, each of the N positioning parameters may include two or more of the above. The following describes more possible implementations:
[0130] In a possible implementation, the j-th positioning parameter among the N positioning parameters may include the distance between the first device and the j-th second device, and the receiving angle of the first device to the j-th wireless signal; that is, the target model processes one wireless signal at a time, and can obtain the above-mentioned distance and the above-mentioned receiving angle at the same time.
[0131] In this embodiment, N can be 1. That is, the first device determines the positioning information of the first device based on a positioning parameter and the position information of a second device. Specifically, the first device determines the transmission angle of the wireless signal transmitted by the second device based on the reception angle of the wireless signal by the first device and the reference direction contained in the positioning parameters; based on the position information of the second device, the transmission angle and the distance between the first device and the second device, a target position can be determined, and the target position is used as the positioning information of the first device. The reference direction can be the same reference direction set for all devices in the system, such as due north. Of course, it can also be set to due south and other directions. As long as the reference directions set for each device in the system are the same, it is within the protection scope of this embodiment.
[0132] It should be understood that in this embodiment, the distance between the first device and the second device can also be replaced by a distance deviation, and / or the reception angle of the wireless signal by the first device can be replaced by an angle deviation. For example, when the distance between the first device and the second device is replaced by a distance deviation, the specific processing can be as follows: the first device determines the transmission angle of the wireless signal transmitted by the second device based on the reception angle of the wireless signal by the first device and the reference angle contained in the positioning parameters; the adjusted distance between the first device and the second device can be obtained by calculation based on the initial distance between the first device and the second device and the distance deviation; a target position can be determined based on the position information of the second device, the transmission angle and the adjusted distance, and the target position is used as the positioning information of the first device.
[0133] Regarding the processing in which the receiving angle of the wireless signal of the aforementioned first device can be replaced by the angle deviation, it is similar to the above and will not be repeated.
[0134] It should be noted that as long as the positioning parameters output by the target model include at least one of the aforementioned contents, they are all within the protection scope of this embodiment, but all possible implementation methods are not exhaustively listed here.
[0135] In one embodiment, the target model further includes a third sub-model. The first sub-model of the target model is further configured to process the wireless signal to obtain environmental characteristic information; the target model further includes a third sub-model, and the third sub-model is configured to process the environmental characteristic information to obtain scene type information.
[0136] For example, refer to Figure 5, which shows that the target model 500 includes a first sub-model 501, a second sub-model 502, and a third sub-model 503; wherein the first sub-model 501 is used to process the wireless signal 510 to obtain the location feature information 511 and the environmental feature information 512 of the wireless signal 510; the second sub-model 502 is used to process the location feature information 511 to obtain the positioning parameter 521; the third sub-model 503 is used to process the environmental feature information 512 to obtain the scene type information 522.
[0137] Specifically, the scene type information may include probability values for multiple scene types. The number of scene types may be determined based on actual circumstances, such as 3, 6, or 7, or more, or fewer, and is not limited in this embodiment. For example, the scene type information may include: {scene type 1: probability value 1, scene type 2: probability value 2, scene type 3: probability value 3}.
[0138] The specific meanings of the various scene types can be set according to actual conditions, for example, they may include: indoor, outdoor, NLOS (non line of sight) obstacle types (such as metal obstacles, plastic obstacles, etc.), and LOS (line of sight) scene types where there are no obstacles. Different scene types can be represented by preset values. Assume that the scene type of the environment where the first device k is located is represented by l k , different scene type values can represent different obstacle information, or different environment information; for example, l k =0 means the scene type is indoor, l k =1 indicates that the scene type is outdoor; for example, it may also include: l k =00 means the scene type is indoor without any obstruction, k =01 means the scene type is indoor with wooden obstructions, l k =10 means the scene type is outdoor without any obstructions, l k =11 indicates that the scene type is metal obstructions outdoors, etc. It should be understood that this is only an example and does not mean that the scene types mentioned above are the only ones that exist. More scene types can be set according to actual conditions, such as plastic obstructions indoors, glass obstructions outdoors, etc., which are not listed here.
[0139] Correspondingly, the method further includes: the first device determining the environment in which the first device is located based on the scene type information output by the third sub-model.
[0140] As pointed out in the foregoing embodiment, the first device may receive N wireless signals, where N may be greater than or equal to 1.
[0141] In one example, N is equal to 1, that is, when the first device receives only one wireless signal, the environment in which the first device is located can be determined directly based on the scene type information output by the third sub-model. Assume that the scene type information obtained at one time may include probability values of multiple scene types, specifically {l k =00: probability value 0.1, l k =01: probability value 0.7, l k =10: probability value 0.2, l k =11: probability value 0.3}, then the scene type with the largest probability value l k =01 as the environment where the first device is located, for example, k =01 means there is a wooden obstruction indoors, then it can be determined that the environment where the first device is located is indoors and there is a wooden obstruction.
[0142] In one example, N is greater than 1, that is, when the first device receives multiple wireless signals, the first submodel of the target model is further used to process the i-th wireless signal among the N wireless signals to obtain the i-th environmental characteristic information corresponding to the i-th wireless signal; the target model also includes a third submodel, and the third submodel is used to process the i-th environmental characteristic information to obtain the i-th scene type information. The i-th scene type information specifically includes probability values corresponding to multiple scene types.
[0143] Correspondingly, the first device determines the environment in which the first device is located based on the scene type information output by the third sub-model, including: the first device determines the environment in which the first device is located based on N scene type information output by the third sub-model.
[0144] Specifically, when the scene types with the largest probability values in the N scene type information are the same, the first device uses the scene type with the largest probability value as the environment in which the first device is located;
[0145] Alternatively, when some of the scene types with the largest probability values in the N scene type information are different, the scene type with the largest number of identical scene types with the largest probability values in the N scene type information is used as the environment in which the first device is located.
[0146] Alternatively, when the scene types with the largest probability values corresponding to the N scene type information are all different, the scene type with the largest probability value is used as the environment in which the first device is located.
[0147] Of course, in the case where there are multiple scene type information above, the description of determining the environment in which the first device is located is only an exemplary description. Other judgment methods may be used in actual processing. This embodiment does not list them all. As long as the environment in which the first device is located can be determined based on multiple scene type information, it is within the protection scope of this embodiment.
[0148] As can be seen, by adopting the above solution, when the first device receives a wireless signal, it can process the wireless signal using the target model to obtain positioning parameters, and then determine the first device's location information based on the positioning parameters. In this way, the target model can more accurately identify the characteristic information in the wireless signal used for positioning, thereby ensuring the accuracy of the final positioning information and ensuring processing efficiency.
[0149] Figure 6 is a schematic flow chart of a model generation method according to an embodiment of the present application. The method includes at least part of the following contents.
[0150] S610: train the preset model using the training samples to obtain a trained target model;
[0151] The target model is used to process the wireless signal to obtain positioning parameters, and the positioning parameters are used to determine positioning information.
[0152] The model generation method provided in this embodiment can be applied to an electronic device, which may be the same as or different from the first device that performs the positioning method in the aforementioned embodiment. In the case where the electronic device that performs the model generation method is the same as the first device that performs the positioning method, it may be that after the first device completes the training of the preset model to obtain the target model, the target model is directly used to perform the aforementioned positioning method. In the case where the electronic device that performs the model generation method is different from the first device that performs the positioning method, it may be that after the electronic device that performs the model generation method completes the training of the preset model to obtain the target model, the target model (specifically, the parameters of the first sub-model, the second sub-model, and the third sub-model in the target model) is sent to the first device that performs the positioning method, so that the first device that performs the positioning method performs the aforementioned positioning method based on the received target model.
[0153] The training sample may include: a wireless training signal, a first preset label corresponding to the wireless training signal, and a second preset label corresponding to the wireless training signal. Here, the training sample may be any one of a plurality of training samples included in the training data set.
[0154] The first preset label corresponding to the wireless training signal includes at least one of the following: a distance label corresponding to the wireless training signal; an angle label corresponding to the wireless training signal; an RSS label corresponding to the wireless training signal; a distance deviation label corresponding to the wireless training signal; an angle deviation label corresponding to the wireless training signal; and an RSS deviation label corresponding to the wireless training signal.
[0155] The above-mentioned first preset tag, when actually used, can only use one of them according to the selection of the training goal. For example, if the training goal is to obtain a target model that can obtain the distance as a positioning parameter based on the received wireless signal processing, then the distance tag corresponding to the wireless training signal can be used as the first preset tag. Of course, you can also use multiple of them according to actual needs. For example, if the training goal is to obtain a target model that can obtain the distance and angle based on the received wireless signal processing, and use the distance and angle as positioning parameters, then the distance tag and angle tag corresponding to the wireless training signal can be used as the first preset tag. The above is only an exemplary description, and does not mean that there are only the above methods in actual use. The specific content of the first preset tag can be flexibly selected and set according to actual needs.
[0156] The second preset label corresponding to the wireless training signal includes: a scene type label corresponding to the environment where the wireless training signal is located.
[0157] The scene type tag included in the second preset tag may specifically be a preset value corresponding to the scene type. For example, 0 indicates that the scene type is indoor, 1 indicates that the scene type is outdoor, and so on. This is merely an example and does not mean that the preset values of the scene type are limited to the above two. As the scene type classification becomes more detailed, more preset value possibilities may exist, and this embodiment does not list them all.
[0158] The wireless training signal can be obtained by placing the signal source node and the target node at any two locations and recording the received signal of the target node. Placing the signal source node and the target node at any two locations can mean placing the signal source node and the target node at any two locations within an arbitrary area. The signal source node can be a device capable of transmitting a wireless signal of any one of the signal types selected from Bluetooth, Wi-Fi, cellular, and ultra-wideband (UWB) signals; and the target node can be a device capable of receiving a wireless signal of any of the above signal types.
[0159] While acquiring the above-mentioned wireless training signal, the aforementioned first preset label and the second preset label can be set based on the relevant information of the signal source node and the target node. For example, if there is an obstruction between the signal source node and the target node, the scene type can be determined based on the material of the obstruction, and then the scene type label (i.e., the aforementioned second preset label) can be determined; the material of the aforementioned obstruction includes but is not limited to glass, wood, plastic, metal, etc. For another example, based on the distance between the signal source node and the target node, the distance label in the aforementioned first preset label is determined; or, based on the angle between the signal source node and the target node, the angle label in the aforementioned first preset label is determined; or, based on the RSS value measured by the target node, the RSS label in the aforementioned first preset label is determined. For example, the distance deviation, that is, the distance deviation label in the aforementioned first preset label, can be determined based on the distance between the signal source node and the target node, and the initial distance estimated by the current target node; or, the angle deviation, that is, the angle deviation label in the aforementioned first preset label can be determined based on the angle between the signal source node and the target node, and the initial angle estimated by the current target node; or, the RSS deviation label in the aforementioned first preset label can be determined based on the RSS value measured by the target node and the actual RSS value.
[0160] Through the above processing, training samples can be obtained. The following is a detailed explanation of how to train the preset model based on the training samples:
[0161] The method of training the preset model using the training samples includes:
[0162] Inputting the wireless training signal in the training sample into the first preset sub-model of the preset model to obtain positioning feature prediction information and scene feature prediction information output by the first preset sub-model;
[0163] Inputting the positioning feature prediction information and the scene feature prediction information into a fourth preset sub-model in the preset model to obtain a reconstructed signal of the wireless training signal output by the fourth preset sub-model;
[0164] Inputting the positioning feature prediction information into a second preset sub-model in the preset model to obtain a positioning estimation parameter output by the second preset sub-model, and inputting the scene feature prediction information into a third preset sub-model in the preset model to obtain a scene type estimation value output by the third preset sub-model;
[0165] Determining a loss function based on at least one of the reconstructed signal, the positioning estimation parameter, the scene type estimation value, the first preset label, and the second preset label;
[0166] Based on the loss function, back propagation is used to update at least one of the first preset sub-model, the second preset sub-model, the third preset sub-model, and the fourth preset sub-model.
[0167] The preset model may be shown in FIG7 , including a first preset sub-model 701, a second preset sub-model 702, a third preset sub-model 703, and a fourth preset sub-model 704. FIG7 shows that the wireless training signal in the training sample can be input into the first preset sub-model 701 in the preset model, and positioning feature prediction information and scene feature prediction information can be obtained through the first preset sub-model 701; the fourth preset sub-model 704 receives the positioning feature prediction information and scene feature prediction information as input, and outputs a reconstructed signal; the second preset sub-model 702 receives the positioning feature prediction information as input, and outputs the predicted positioning estimation parameters; the third preset sub-model 703 receives the scene feature prediction information as input, and outputs the predicted scene type estimation value.
[0168] The above-mentioned positioning estimation parameters may include at least one of the following: a distance prediction value, an angle prediction value, an RSS prediction value, a distance deviation prediction value, an angle deviation prediction value, and an RSS deviation prediction value.
[0169] The above-mentioned positioning estimation parameters can vary depending on the goal of the current training, and the positioning estimation parameters correspond to the specific content of the aforementioned first preset label. For example, if the current training goal is to obtain a target model that can obtain the positioning parameter of distance based on the received wireless signal processing, the distance label corresponding to the wireless training signal can be used as the first preset label. Similarly, the positioning estimation parameter is the distance prediction value. For example, if the current training goal is to obtain a target model that can obtain the positioning parameter of RSS value based on the received wireless signal processing, the RSS value label corresponding to the wireless training signal can be used as the first preset label. Similarly, the positioning estimation parameter is the RSS prediction value. If the current training goal is to obtain a target model that can obtain the distance and angle based on the received wireless signal processing, and use both the distance and angle as positioning parameters, the distance label and the angle label corresponding to the wireless training signal can be used as the first preset label. Similarly, the positioning estimation parameter can include the distance and angle. The above is only an example and does not mean that the above methods are the only ones that can be used in actual use. According to actual needs, the parameters of each sub-model in the preset model can be set so that the positioning estimation parameters output by the preset model are of the type or content required for the current training.
[0170] The training of the preset model may be performed in multiple cycles. The following describes the implementation methods that may be included in any one cycle:
[0171] In one embodiment, the above-mentioned determination of the loss function based on the reconstructed signal, the positioning estimation parameter, the scene type estimation value, the first preset label and at least one of the second preset label includes: determining a first loss function based on the reconstructed signal, the wireless training signal, the positioning estimation parameter, and the scene type estimation value.
[0172] For example, the transformation process of the first preset sub-network is represented as f θ , the change processing of the fourth preset sub-network is represented as f φ ; Where θ, φ represent the parameters of the first preset sub-network and the fourth preset sub-network (or network parameters). The input wireless training signal is represented as r, and the position feature prediction information z output by the first preset sub-network is represented as p and scene feature prediction information z l The fourth preset sub-network outputs the reconstructed received signal Specifically expressed as Then the first loss function is expressed as:
[0173] L AE (θ,φ;r)=||rf φ (f θ (r))|| 2 +||z p || 2 +‖z l ‖ 2 ;
[0174] Among them, L AE (θ, φ; r) is the first loss function; rf φ (f θ (r)) ‖.‖ means calculating the absolute value.
[0175] Backward propagation updating at least one of the first, second, third, and fourth preset sub-models based on the loss function includes: backward propagation updating parameters of the first and fourth preset sub-models based on the first loss function. The aforementioned example is also used to illustrate that the aforementioned θ and φ are updated based on the first loss function through back propagation.
[0176] The loss function is determined based on at least one of the reconstructed signal, the positioning estimation parameter, the scene type estimation value, the first preset label and the second preset label, and also includes: determining a second loss function based on the positioning estimation parameter and the first preset label; and determining a third loss function based on the scene type estimation value and the second preset label.
[0177] For example, assuming that the first preset label is the distance deviation; accordingly, the positioning estimation parameter includes the distance deviation estimation value. Assume that the transformation relationship of the second preset sub-model is expressed as in is the parameter of the second preset sub-model (or network parameter); the input position feature prediction information of the second preset sub-model is represented by z p , after the second preset sub-model, the output distance deviation estimate Right now Compare the distance deviation estimate with the distance deviation b included in the first preset label to calculate the second loss function (for example, expressed as The second loss function term is specifically:
[0178] Assume that the transformation relationship of the third preset sub-model is expressed as in is the parameter of the third preset sub-model (or network parameter); the input of the third preset sub-model is the scene feature prediction information z l , after the third preset sub-model, the output scene type estimation value Right now Compare the scene type estimate with the scene type label l included in the second preset label to calculate the third loss function The third loss function can specifically be:
[0179] The method of back-conducting and updating at least one of the first preset sub-model, the second preset sub-model, the third preset sub-model, and the fourth preset sub-model based on the loss function includes: back-conducting and updating the parameters of the second preset sub-model based on the second loss function, and back-conducting and updating the parameters of the third preset sub-model based on the third loss function.
[0180] It should be understood that since the training of the preset model is performed in a loop, in any loop, such as the t-th loop (t is a positive integer), the first loss function can be used to perform reverse conduction based on the first loss function to update the parameters of the first preset sub-model and the fourth preset sub-model; in the t+1 loop, the second loss function and the third loss function can be used to perform reverse conduction to update the parameters of the second preset model and the third preset sub-model; and then in the t+2 loop, the first loss function is again used to perform reverse conduction to update the parameters of the first preset sub-model and the fourth preset sub-model; in the t+3 loop, the second loss function and the third loss function are used to perform reverse conduction to update the parameters of the second preset model and the third preset sub-model. And so on, until the preset model converges as a whole, it is determined that the training of the preset model is completed.
[0181] It should be noted that the conditions for determining whether the preset model has converged may include at least one of the following: the number of training cycles reaches a preset threshold; the first loss function, the second loss function, and the third loss function no longer change or are each less than a specified value, etc. The preset threshold value can be set according to actual conditions, for example, 100 times, 50 times, etc. This embodiment does not exhaustively list all possible convergence conditions for the preset model.
[0182] The derivation process of the aforementioned first loss function is explained as follows: the received wireless signal is the wireless signal after the wireless signal transmitted by the signal source node passes through the obstacle, and different environmental characteristics will make the received wireless signal different. For example, as shown in Figure 8, the received wireless signal obtained when the wireless signal passes through the environmental characteristics including a glass obstacle (for example, the CIR of the received wireless signal shown in the upper part of Figure 8) is different from the received wireless signal obtained when the wireless signal passes through the environmental characteristics including a plastic obstacle (for example, the CIR of the received wireless signal shown in the lower part of Figure 8).
[0183] The received wireless signal r (that is, the wireless training signal in the aforementioned training sample) can be decomposed into two conditionally independent features in the latent space, namely the aforementioned position feature prediction information z p and environmental characteristic prediction information z l The distribution of latent variables can be expressed as follows: p(z p ,z l |r)=p(z p |r)p(z l |r). Among them, p() represents the calculation of latent variable distribution. p Contains information related only to the location of the wireless training signal in the training sample, which is not affected by environmental factors. Therefore, the positioning estimation parameters can be completely determined by z pDecision. l Contains information related only to environmental factors and is not affected by location, so the relevant information of the scene can be completely determined by the environmental characteristics z l Then use the position feature to predict information z p and environmental characteristic prediction information z l , we can get the conditional distribution p(b|z p ), p(l|z l ); where b represents the positioning estimation parameter and l represents the scene type estimation value). Then, using the variational inference method, we construct the variational distribution q(z p ,z l |r)(where q() is the variational distribution function), to approximate the unknown joint feature distribution p(z p ,z l |r). Assume that the variational distribution also has the following decomposition relationship: q(z p ,z l |r)=q(z p |r)q(z l |r). According to variational theory, we can derive the variational distribution q(z p ,z l |r) and the evidence variational lower bound L of observation r is:
[0184] -D KL (q(z l |r)||p(z l )); among them, D KL (·||·) is the Kullback-Leibler (KL) divergence between distributions; E is the empirical distribution function.
[0185] Assume that the prior distribution p(z p |r)p(z l |r) are all Gaussian distributions with mean 0 and variance 1 to ensure a certain degree of randomness in the encoding; assuming that the variational distribution q(z p |r)q(z l |r) is a random distribution with mean and variance of 1, and its mean is obtained by the first preset sub-model (encoder). Substitute the above assumptions into D KL (q(z p |r)||p(z p )) and D KL (q(z l |r)||p(z l )), we can get D KL (q(z p |r)||p(z p )) is ||z p || 2, D KL (q(z l |r)||p(z l )) is ‖z l ‖ 2 . The above function The second preset sub-model (decoder) inputs the result z of any sampling in the distribution of the first preset sub-model p ,z l ~q(z p ,z l |r), output the reconstructed signal r~p(r|z p =z p ,z l =z l ), the empirical distribution function of the reconstruction result can be used to express We hope to maximize L, that is, maximize this item, which is equivalent to making the reconstructed r close to the r of the initial input first sub-network. We can use ||rf φ (f θ (r))|| 2 To express it. Thus, through the above derivation process, we can get the first loss function expressed as: L AE (θ,φ;r)=||rf φ (f θ (r))|| 2 +||z p || 2 +‖z l ‖ 2 .
[0186] In another embodiment, the loss function is determined based on at least one of the reconstructed signal, the positioning estimation parameter, the scene type estimation value, the first preset label and the second preset label, including: determining a first loss function based on the reconstructed signal, the wireless training signal, the positioning estimation parameter, and the scene type estimation value; determining a second loss function based on the positioning estimation parameter and the first preset label; determining a third loss function based on the scene type estimation value and the second preset label; and obtaining a total loss function based on weighted calculation of the first loss function, the second loss function, and the third loss function.
[0187] Among them, the method of constructing the first loss function, the second loss function, and the third loss function has been explained in the aforementioned embodiment and will not be repeated here.
[0188] Based on the example of the above embodiment, the total loss function is further described. The total loss function can be expressed as:
[0189]
[0190] Among them, L AE (θ, φ; r) is the first loss function mentioned above. The specific calculation method has been explained above and will not be repeated here. AE That is, the weight of the first loss function; That is, the aforementioned second loss function, the specific calculation method is the same as the aforementioned embodiment, α p That is, the weight of the second loss function; That is, the third loss function, the specific calculation method is the same as the above embodiment, α l That is, the weight of the third loss function. AE ,α p ,α l The specific value of can be determined according to the actual situation, for example, α can be set AE =α p =α l =1, or can be set to other values, which are not limited here.
[0191] The backward conduction based on the loss function updates at least one of the first preset sub-model, the second preset sub-model, the third preset sub-model and the fourth preset sub-model, including: backward conduction based on the total loss function updates the parameters of the first preset sub-model, the parameters of the second preset sub-model, the parameters of the third preset sub-model and the parameters of the fourth preset sub-model.
[0192] It should be understood that since the training for the preset model can be performed in a loop, in this embodiment, in any loop, the above-mentioned total loss function can be used to reversely conduct and update the parameters of the first preset model, the parameters of the second preset model, the parameters of the third preset model, and the parameters of the fourth preset model; and so on, until the preset model converges as a whole, it is determined that the training of the preset model is completed. It should be pointed out that the conditions for determining whether the preset model has converged may include at least one of the following: the number of training cycles reaches a preset threshold value; the total loss function no longer changes or is less than a preset value, etc. The preset threshold value can be set according to actual conditions, for example, it can be 100 times, 50 times, etc. This embodiment does not enumerate all possible convergence conditions of the preset model.
[0193] After determining that the training of the preset model is completed, the first preset sub-model in the preset model is used as the first sub-model in the target model, the second preset sub-model in the preset model is used as the second sub-model in the target model, and the third preset sub-model in the preset model is used as the third sub-model in the target model. It can be seen that the fourth preset sub-model is only used when training the preset model, and when using the trained preset model (i.e., the target model) for actual prediction, as shown in Figure 5, only the first sub-model, the second sub-model, and the third sub-model need to be used.
[0194] As can be seen, by adopting the above solution, the preset model can be trained to obtain a target model. This target model can be used to process wireless signals to obtain positioning parameters, which are used to determine positioning information. In this way, the target model can be used to identify wireless signals to obtain more accurate positioning parameters, ensuring positioning accuracy and processing efficiency.
[0195] In addition, in the aforementioned scheme, the signal can be decomposed into a latent space. On the one hand, high-level semantic features can be adaptively extracted from high-dimensional data, making better use of signal information than traditional triangulation positioning and other positioning schemes based on estimated values, thereby achieving improved positioning accuracy through the trained target model; on the other hand, the aforementioned scheme can decouple the environmental characteristics and positioning-related features of the signal, separate the environmental impact from the positioning features, and further explicitly exclude environmental interference compared to traditional positioning schemes, thereby achieving improved positioning robustness. Moreover, the algorithm complexity of the aforementioned scheme is low, and it can meet the high real-time requirements of actual application scenarios. Since the above algorithm is designed based on deep learning technology, after completing offline training to obtain the target model, it only needs to store the model parameters on the first device (i.e., the node to be measured) to achieve real-time position and environmental feature estimation, which is easy to deploy and process for hardware computing.
[0196] FIG9 is a schematic structural diagram of a first device according to an embodiment of the present application, including:
[0197] Communication unit 901, configured to receive wireless signals;
[0198] The processing unit 902 is configured to process the wireless signal based on a target model to obtain positioning parameters; and determine positioning information of the first device based on the positioning parameters.
[0199] The communication unit 901 is configured to receive N wireless signals; the N wireless signals are sent by N second devices; and N is an integer greater than or equal to 1.
[0200] The target model includes a first sub-model and a second sub-model;
[0201] The processing unit 902 is used to input the jth wireless signal among the N wireless signals into the first sub-model to obtain the jth position feature information output by the first sub-model; wherein j is an integer greater than or equal to 1 and less than or equal to N; and input the jth position feature information into the second sub-model to obtain the jth positioning parameter output by the second sub-model.
[0202] The processing unit 902 is configured to determine the positioning information of the first device based on the N positioning parameters and the position information of the N second devices.
[0203] The N positioning parameters include at least one of the following:
[0204] a distance between the first device and each of the N second devices;
[0205] A receiving angle of the first device for each of the N wireless signals.
[0206] The N positioning parameters include: N distance deviations;
[0207] The processing unit 902 is configured to correct the N initial distances based on the N distance deviations to obtain N adjusted distances; and determine the positioning information of the first device based on the N adjusted distances and the position information of the N second devices.
[0208] The processing unit 902 is configured to determine the N initial distances between the first device and the N second devices based on the N wireless signals.
[0209] The N positioning parameters include: N angle deviations; the processing unit is used to correct N initial receiving angles based on the N angle deviations to obtain N adjusted angles; based on the N adjusted angles and the position information of the N second devices, determine the positioning information of the first device.
[0210] The processing unit 902 is configured to determine the N initial receiving angles for receiving the N wireless signals.
[0211] The processing unit 902 is used to determine the positioning information of the first device based on N positioning parameters and a signal feature library; wherein the signal feature library contains a feature value of each reference position in multiple reference positions; and the feature value of each reference position contains the RSS reference value of the reference signal of each second device in N second devices.
[0212] The N positioning parameters include N received signal strength RSS values.
[0213] The N positioning parameters include N RSS deviations; the processing unit is used to determine N adjusted RSS values based on the N RSS deviations and N initial strength estimation values; and determine the positioning information of the first device based on the N adjusted RSS values and the signal feature library.
[0214] The first sub-model of the target model is further used to process the wireless signal to obtain environmental feature information corresponding to the wireless signal;
[0215] The target model also includes a third sub-model, and the third sub-model is used to process the environmental feature information to obtain scene type information.
[0216] The processing unit 902 is configured to determine the environment in which the first device is located based on the scene type information output by the third sub-model.
[0217] The signal type of the i-th wireless signal among the N wireless signals is one of the following: a Bluetooth wireless signal, a WIFI wireless signal, a cellular network wireless signal, and an ultra-wideband UWB wireless signal.
[0218] FIG10 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application, including:
[0219] The training unit 1001 is used to train a preset model using training samples to obtain a trained target model; wherein the target model is used to process wireless signals to obtain positioning parameters, and the positioning parameters are used to determine positioning information.
[0220] The training sample includes: a wireless training signal, a first preset label corresponding to the wireless training signal, and a second preset label corresponding to the wireless training signal.
[0221] The first preset label corresponding to the wireless training signal includes at least one of the following: a distance label corresponding to the wireless training signal; an angle label corresponding to the wireless training signal; an RSS label corresponding to the wireless training signal; a distance deviation label corresponding to the wireless training signal; an angle deviation label corresponding to the wireless training signal; and an RSS deviation label corresponding to the wireless training signal.
[0222] The second preset label corresponding to the wireless training signal includes: a scene type label corresponding to the environment where the wireless training signal is located.
[0223] The training unit 1001 is used to input the wireless training signal in the training sample into the first preset sub-model of the preset model to obtain the positioning feature prediction information and the scene feature prediction information output by the first preset sub-model; input the positioning feature prediction information and the scene feature prediction information into the fourth preset sub-model in the preset model to obtain the reconstructed signal of the wireless training signal output by the fourth preset sub-model; input the positioning feature prediction information into the second preset sub-model in the preset model to obtain the positioning estimation parameter output by the second preset sub-model, and input the scene feature prediction information into the third preset sub-model in the preset model to obtain the scene type estimation value output by the third preset sub-model; determine the loss function based on the reconstructed signal, the positioning estimation parameter, the scene type estimation value, at least one of the first preset label and the second preset label; and based on the loss function, backpropagation updates at least one of the first preset sub-model, the second preset sub-model, the third preset sub-model and the fourth preset sub-model.
[0224] The training unit 1001 is configured to determine a first loss function based on the reconstructed signal, the wireless training signal, the positioning estimation parameter, and the scene type estimation value.
[0225] The training unit 1001 is used to update the parameters of the first preset sub-model and the parameters of the fourth preset sub-model through reverse conduction based on the first loss function.
[0226] The training unit 1001 is configured to determine a second loss function based on the positioning estimation parameter and the first preset label; and to determine a third loss function based on the scene type estimation value and the second preset label.
[0227] The training unit 1001 is used to update the parameters of the second preset sub-model by reverse conduction based on the second loss function, and to update the parameters of the third preset sub-model by reverse conduction based on the third loss function.
[0228] The training unit 1001 is used to determine a first loss function based on the reconstructed signal, the wireless training signal, the positioning estimation parameter, and the scene type estimation value; determine a second loss function based on the positioning estimation parameter and the first preset label; determine a third loss function based on the scene type estimation value and the second preset label; and obtain a total loss function based on weighted calculation of the first loss function, the second loss function, and the third loss function.
[0229] The training unit 1001 is used to update the parameters of the first preset sub-model, the parameters of the second preset sub-model, the parameters of the third preset sub-model and the parameters of the fourth preset sub-model based on the back conduction of the total loss function.
[0230] The electronic device of the embodiment of the present application can realize the corresponding function in the model generation method in the aforementioned method embodiment. The process, function, implementation method and beneficial effect corresponding to each module (submodule, unit or component, etc.) in the electronic device can be found in the corresponding description in the aforementioned method embodiment, which will not be repeated here. It should be understood that the above-mentioned electronic device may further include a receiving unit, a sending unit and a storage unit, etc. in addition to the above-mentioned training unit. For example, after obtaining the trained target model, it can be sent to the aforementioned first device through the sending unit; for example, the aforementioned training sample can be stored in a storage unit, etc. It should be noted that the functions described in the various modules (submodules, units or components, etc.) in the electronic device of the application embodiment can be implemented by different modules (submodules, units or components, etc.) or by the same module (submodule, unit or component, etc.).
[0231] Figure 11 is a schematic structural diagram of a communication device 1100 according to an embodiment of the present application. The communication device 1100 includes a processor 1110, which can call and execute a computer program from a memory to enable the communication device 1100 to implement the method in the embodiment of the present application.
[0232] In a possible implementation, the communication device 1100 may further include a memory 1120. The processor 1110 may call and execute a computer program from the memory 1120 to enable the communication device 1100 to implement the method in the embodiment of the present application.
[0233] The memory 1120 may be a separate device independent of the processor 1110 , or may be integrated into the processor 1110 .
[0234] In one possible implementation, the communication device 1100 may further include a transceiver 1130 , and the processor 1110 may control the transceiver 1130 to communicate with other devices. Specifically, the transceiver 1130 may send information or data to other devices, or receive information or data sent by other devices.
[0235] The transceiver 1130 may include a transmitter and a receiver. The transceiver 1130 may further include an antenna, and the number of antennas may be one or more.
[0236] In one possible implementation, the communication device 1100 may be the first device of the embodiment of the present application, and the communication device 1100 may implement the corresponding processes implemented by the first device in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0237] In one possible implementation, the communication device 1100 may be an electronic device of an embodiment of the present application, and the communication device 1100 may implement the corresponding processes implemented by the electronic device in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0238] 12 is a schematic structural diagram of a chip 1200 according to an embodiment of the present application. The chip 1200 includes a processor 1210, which can call and execute a computer program from a memory to implement the method according to the embodiment of the present application.
[0239] In one possible implementation, the chip 1200 may further include a memory 1220. The processor 1210 may call and execute a computer program from the memory 1220 to implement the method performed by the first device or electronic device in the embodiment of the present application.
[0240] The memory 1220 may be a separate device independent of the processor 1210 , or may be integrated into the processor 1210 .
[0241] In a possible implementation, the chip 1200 may further include an input interface 1230. The processor 1210 may control the input interface 1230 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.
[0242] In a possible implementation, the chip 1200 may further include an output interface 1240. The processor 1210 may control the output interface 1240 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.
[0243] In one possible implementation, the chip can be applied to the first device in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the first device in each method of the embodiment of the present application. For the sake of brevity, it will not be repeated here.
[0244] In one possible implementation, the chip can be applied to the electronic device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the electronic device in each method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0245] The chips used in the first device and the electronic device may be the same chip or different chips.
[0246] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0247] The processor mentioned above may be a general-purpose processor, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or other programmable logic devices, transistor logic devices, discrete hardware components, etc. The general-purpose processor mentioned above may be a microprocessor or any conventional processor, etc.
[0248] The memory mentioned above may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM).
[0249] It should be understood that the above-mentioned memories are exemplary but not restrictive. For example, the memories in the embodiments of the present application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct RAM RAM (DR RAM), etc. In other words, the memories in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0250] FIG13 is a schematic block diagram of a communication system 1300 according to an embodiment of the present application. The communication system 1300 includes a first device 1310 and a second device 1320 .
[0251] The first device 1310 can be used to implement the corresponding functions implemented by the first device in the above method, and the second device 1320 can be used to implement the corresponding functions implemented by the second device in the above method. For the sake of brevity, they are not described here in detail.
[0252] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function in accordance with the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode to another website, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state drive (SSD)).
[0253] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0254] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0255] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A positioning method, comprising: The first device receives a wireless signal; The first device processes the wireless signal based on the target model to obtain positioning parameters; The first device determines the positioning information of the first device based on the positioning parameters.
2. The method according to claim 1, wherein The first device receives a wireless signal, including: The first device receives N wireless signals; the N wireless signals are sent by N second devices; N is an integer greater than or equal to 1.
3. The method according to claim 2, wherein: The target model includes a first sub-model and a second sub-model; The first device processes the wireless signal based on the target model to obtain positioning parameters, including: The first device inputs the jth wireless signal of the N wireless signals into the first sub-model to obtain the jth position feature information output by the first sub-model; where j is an integer greater than or equal to 1 and less than or equal to N; The j-th position feature information is input into the second sub-model to obtain the j-th positioning parameter output by the second sub-model.
4. The method according to claim 3, wherein: The first device determining, based on the positioning parameter, positioning information of the first device, including: The first device determines the positioning information of the first device based on the N positioning parameters and the position information of the N second devices.
5. The method according to claim 4, wherein The N positioning parameters include at least one of the following: a distance between the first device and each of the N second devices; A receiving angle of the first device for each of the N wireless signals.
6. The method according to claim 4, wherein: The N positioning parameters include: N distance deviations; The first device determines the positioning information of the first device based on the N positioning parameters and the position information of the N second devices, including: The first device corrects N initial distances based on the N distance deviations to obtain N adjusted distances; and determines positioning information of the first device based on the N adjusted distances and position information of the N second devices.
7. The method according to claim 6, wherein: The method further comprises: The first device determines the N initial distances between the first device and the N second devices based on the N wireless signals.
8. The method according to claim 4, 6 or 7, wherein: The N positioning parameters include: N angle deviations; The first device determines the positioning information of the first device based on the N positioning parameters and the position information of the N second devices, including: The first device corrects N initial receiving angles based on the N angle deviations to obtain N adjusted angles; and determines the positioning information of the first device based on the N adjusted angles and the position information of the N second devices.
9. The method according to claim 8, wherein The method further comprises: The first device determines the N initial receiving angles for receiving the N wireless signals.
10. The method according to claim 3, wherein: The first device determining, based on the positioning parameter, positioning information of the first device, including: The first device determines the positioning information of the first device based on N positioning parameters and a signal feature library; wherein the signal feature library contains a feature value of each reference position in a plurality of reference positions; and the feature value of each reference position contains the RSS reference value of the reference signal of each second device in N second devices.
11. The method according to claim 10, wherein: The N positioning parameters include N received signal strength RSS values.
12. The method according to claim 10, wherein: The N positioning parameters include N RSS deviations; The first device determines the positioning information of the first device based on the N positioning parameters and the signal feature library, including: The first device determines N adjusted RSS values based on the N RSS deviations and the N initial strength estimation values; and determines the positioning information of the first device based on the N adjusted RSS values and the signal feature library.
13. The method according to any one of claims 1 to 12, wherein: The first sub-model of the target model is further used to process the wireless signal to obtain environmental feature information corresponding to the wireless signal; The target model also includes a third sub-model, and the third sub-model is used to process the environmental feature information to obtain scene type information.
14. The method according to claim 13, wherein The method further comprises: The first device determines the environment in which the first device is located based on the scene type information output by the third sub-model.
15. The method according to any one of claims 2 to 14, wherein: The signal type of the i-th wireless signal among the N wireless signals is one of the following: a Bluetooth wireless signal, a WIFI wireless signal, a cellular network wireless signal, and an ultra-wideband UWB wireless signal.
16. A model generation method comprising: Use training samples to train the preset model to obtain the trained target model; The target model is used to process the wireless signal to obtain positioning parameters, and the positioning parameters are used to determine positioning information.
17. The method according to claim 16, wherein The training sample includes: a wireless training signal, a first preset label corresponding to the wireless training signal, and a second preset label corresponding to the wireless training signal.
18. The method according to claim 17, wherein The first preset label corresponding to the wireless training signal includes at least one of the following: A distance tag corresponding to the wireless training signal; An angle label corresponding to the wireless training signal; An RSS tag corresponding to the wireless training signal; A distance deviation label corresponding to the wireless training signal; An angle deviation label corresponding to the wireless training signal; The RSS deviation label corresponding to the wireless training signal.
19. The method according to claim 17 or 18, wherein The second preset label corresponding to the wireless training signal includes: a scene type label corresponding to the environment where the wireless training signal is located.
20. The method according to any one of claims 17 to 19, wherein: The method of training the preset model using the training samples includes: Inputting the wireless training signal in the training sample into the first preset sub-model of the preset model to obtain positioning feature prediction information and scene feature prediction information output by the first preset sub-model; Inputting the positioning feature prediction information and the scene feature prediction information into a fourth preset sub-model in the preset model to obtain a reconstructed signal of the wireless training signal output by the fourth preset sub-model; Inputting the positioning feature prediction information into a second preset sub-model in the preset model to obtain a positioning estimation parameter output by the second preset sub-model, and inputting the scene feature prediction information into a third preset sub-model in the preset model to obtain a scene type estimation value output by the third preset sub-model; Determining a loss function based on at least one of the reconstructed signal, the positioning estimation parameter, the scene type estimation value, the first preset label, and the second preset label; Based on the loss function, back propagation is used to update at least one of the first preset sub-model, the second preset sub-model, the third preset sub-model, and the fourth preset sub-model.
21. The method according to claim 20, wherein The determining of a loss function based on at least one of the reconstructed signal, the positioning estimation parameter, the scene type estimation value, the first preset label, and the second preset label includes: A first loss function is determined based on the reconstructed signal, the wireless training signal, the positioning estimation parameter, and the scene type estimation value.
22. The method according to claim 21, wherein The backpropagation updating of at least one of the first preset sub-model, the second preset sub-model, the third preset sub-model, and the fourth preset sub-model based on the loss function includes: Based on the first loss function, back propagation updates the parameters of the first preset sub-model and the parameters of the fourth preset sub-model.
23. The method according to any one of claims 20 to 22, wherein: The determining of a loss function based on at least one of the reconstructed signal, the positioning estimation parameter, the scene type estimation value, the first preset label, and the second preset label includes: A second loss function is determined based on the positioning estimation parameter and the first preset label; and a third loss function is determined based on the scene type estimation value and the second preset label.
24. The method according to claim 23, wherein The backpropagation updating of at least one of the first preset sub-model, the second preset sub-model, the third preset sub-model, and the fourth preset sub-model based on the loss function includes: Based on the second loss function, the parameters of the second preset sub-model are updated by back-conduction, and based on the third loss function, the parameters of the third preset sub-model are updated by back-conduction.
25. The method according to claim 20, wherein Determining a loss function based on at least one of the reconstructed signal, the first estimated value, the scene type estimated value, the first preset label, and the second preset label includes: Determining a first loss function based on the reconstructed signal, the wireless training signal, the positioning estimation parameter, and the scene type estimation value; determining a second loss function based on the positioning estimation parameter and the first preset label; and determining a third loss function based on the scene type estimation value and the second preset label; A total loss function is obtained by weighted calculation based on the first loss function, the second loss function, and the third loss function.
26. The method according to claim 25, wherein The backpropagation updating of at least one of the first preset sub-model, the second preset sub-model, the third preset sub-model, and the fourth preset sub-model based on the loss function includes: Based on the total loss function, the parameters of the first preset sub-model, the parameters of the second preset sub-model, the parameters of the third preset sub-model and the parameters of the fourth preset sub-model are updated through back propagation.
27. A first device, comprising: a communication unit, configured to receive wireless signals; a processing unit, configured to process the wireless signal based on a target model to obtain positioning parameters; Based on the positioning parameters, positioning information of the first device is determined.
28. The first device according to claim 27, wherein The communication unit is used to receive N wireless signals; the N wireless signals are sent by N second devices; N is an integer greater than or equal to 1.
29. The first device according to claim 28, wherein The target model includes a first sub-model and a second sub-model; The processing unit is used to input the jth wireless signal among the N wireless signals into the first sub-model to obtain the jth position feature information output by the first sub-model; wherein j is an integer greater than or equal to 1 and less than or equal to N; and input the jth position feature information into the second sub-model to obtain the jth positioning parameter output by the second sub-model.
30. The first device according to claim 29, wherein The processing unit is configured to determine the positioning information of the first device based on N positioning parameters and the position information of the N second devices.
31. The first device according to claim 30, wherein The N positioning parameters include at least one of the following: a distance between the first device and each of the N second devices; A receiving angle of the first device for each of the N wireless signals.
32. The first device according to claim 29, wherein The N positioning parameters include: N distance deviations; The processing unit is configured to correct the N initial distances based on the N distance deviations to obtain N adjusted distances; and determine the positioning information of the first device based on the N adjusted distances and the position information of the N second devices.
33. The first device according to claim 32, wherein The processing unit is configured to determine the N initial distances between the first device and the N second devices based on the N wireless signals.
34. The first device according to claim 30, 32 or 33, wherein The N positioning parameters include: N angle deviations; The processing unit is used to correct N initial receiving angles based on the N angle deviations to obtain N adjusted angles; and determine the positioning information of the first device based on the N adjusted angles and the position information of the N second devices.
35. The first device according to claim 34, wherein The processing unit is used to determine the N initial receiving angles for receiving the N wireless signals.
36. The first device according to claim 29, wherein The processing unit is used to determine the positioning information of the first device based on N positioning parameters and a signal feature library; wherein the signal feature library contains a feature value of each reference position in multiple reference positions; the feature value of each reference position includes the RSS reference value of the reference signal of each second device in N second devices.
37. The first device according to claim 36, wherein The N positioning parameters include N received signal strength RSS values.
38. The first device according to claim 36, wherein The N positioning parameters include N RSS deviations; The processing unit is configured to determine N adjusted RSS values based on the N RSS deviations and the N initial strength estimates; Based on the N adjusted RSS values and the signal feature library, the positioning information of the first device is determined.
39. The first device according to any one of claims 27 to 38, wherein: The first sub-model of the target model is further used to process the wireless signal to obtain environmental feature information corresponding to the wireless signal; The target model also includes a third sub-model, and the third sub-model is used to process the environmental feature information to obtain scene type information.
40. The first device according to claim 39, wherein The processing unit is used to determine the environment in which the first device is located based on the scene type information output by the third sub-model.
41. The first device according to any one of claims 28 to 40, wherein: The signal type of the i-th wireless signal among the N wireless signals is one of the following: a Bluetooth wireless signal, a WIFI wireless signal, a cellular network wireless signal, and an ultra-wideband UWB wireless signal.
42. An electronic device comprising: A training unit is used to train a preset model using training samples to obtain a trained target model; wherein the target model is used to process wireless signals to obtain positioning parameters, and the positioning parameters are used to determine positioning information.
43. The electronic device according to claim 42, wherein The training sample includes: a wireless training signal, a first preset label corresponding to the wireless training signal, and a second preset label corresponding to the wireless training signal.
44. The electronic device according to claim 43, wherein The first preset label corresponding to the wireless training signal includes at least one of the following: A distance tag corresponding to the wireless training signal; An angle label corresponding to the wireless training signal; An RSS tag corresponding to the wireless training signal; A distance deviation label corresponding to the wireless training signal; An angle deviation label corresponding to the wireless training signal; The RSS deviation label corresponding to the wireless training signal.
45. The electronic device according to claim 43 or 44, wherein: The second preset label corresponding to the wireless training signal includes: a scene type label corresponding to the environment where the wireless training signal is located.
46. The electronic device according to any one of claims 43 to 45, wherein: The training unit is configured to input the wireless training signal in the training sample into a first preset sub-model of the preset model to obtain positioning feature prediction information and scene feature prediction information output by the first preset sub-model; Inputting the positioning feature prediction information and the scene feature prediction information into a fourth preset sub-model in the preset model to obtain a reconstructed signal of the wireless training signal output by the fourth preset sub-model; The positioning feature prediction information is input into the second preset sub-model in the preset model to obtain the positioning estimation parameters output by the second preset sub-model, and the scene feature prediction information is input into the third preset sub-model in the preset model to obtain the scene type estimation value output by the third preset sub-model; based on the reconstructed signal, the positioning estimation parameters, the scene type estimation value, the first preset label and at least one of the second preset label, a loss function is determined; based on the loss function, at least one of the first preset sub-model, the second preset sub-model, the third preset sub-model and the fourth preset sub-model is updated by reverse conduction.
47. The electronic device according to claim 46, wherein The training unit is configured to determine a first loss function based on the reconstructed signal, the wireless training signal, the positioning estimation parameter, and the scene type estimation value.
48. The electronic device according to claim 47, wherein The training unit is used to update the parameters of the first preset sub-model and the parameters of the fourth preset sub-model through reverse conduction based on the first loss function.
49. The electronic device according to any one of claims 46 to 48, wherein: The training unit is used to determine a second loss function based on the positioning estimation parameter and the first preset label; and to determine a third loss function based on the scene type estimation value and the second preset label.
50. The electronic device according to claim 49, wherein The training unit is used to update the parameters of the second preset sub-model by reverse conduction based on the second loss function, and to update the parameters of the third preset sub-model by reverse conduction based on the third loss function.
51. The electronic device according to claim 46, wherein The training unit is used to determine a first loss function based on the reconstructed signal, the wireless training signal, the positioning estimation parameter, and the scene type estimation value; determine a second loss function based on the positioning estimation parameter and the first preset label; determine a third loss function based on the scene type estimation value and the second preset label; and obtain a total loss function based on weighted calculation of the first loss function, the second loss function, and the third loss function.
52. The electronic device according to claim 51, wherein The training unit is used to update the parameters of the first preset sub-model, the parameters of the second preset sub-model, the parameters of the third preset sub-model and the parameters of the fourth preset sub-model based on the back conduction of the total loss function.
53. A first device comprising: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, so that the terminal device executes the method according to any one of claims 1 to 15.
54. An electronic device comprising: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, so that the terminal device executes the method according to any one of claims 16 to 26.
55. A chip, comprising: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes the method according to any one of claims 1 to 15 or claims 16 to 26.
56. A computer-readable storage medium for storing a computer program, which, when executed by a device, causes the device to perform the method according to any one of claims 1 to 15 or claims 16 to 26.
57. A computer program product comprising computer program instructions for causing a computer to perform the method of any one of claims 1 to 15 or claims 16 to 26.
58. A computer program causing a computer to perform the method of any one of claims 1 to 15 or claims 16 to 26.
