A method for optimizing power consumption of wireless positioning base stations based on BPSO algorithm
Optimizing the operating status of wireless positioning base stations through the BPSO algorithm solves the problem of power consumption waste caused by the small number of measured objects in the positioning area in short-range wireless positioning technology, achieving reduced power consumption and improved flexibility of the positioning system.
Patent Information
- Application Number
- CN202210258690.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-16
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-03-16
AI Technical Summary
In short-range wireless positioning technology, when the number of measured objects in the positioning area is small, the power consumption of the positioning base station is wasted. It is difficult for existing technologies to effectively reduce the energy consumption of the base station.
Adopt a wireless positioning base station power consumption optimization method based on the BPSO algorithm, determine the number and location of measured objects through the TDOA positioning algorithm, and use the BPSO algorithm to determine the minimum number of positioning base stations that need to be run, control the redundant base stations to enter the dormant state, and optimize the operation of the base stations state.
It effectively reduces the power consumption of the positioning system, extends the working time of the positioning base station, saves power costs, and improves the flexibility and mobility of the positioning system.
Smart Images

Figure CN114615728B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power consumption optimization, and in particular to a method for optimizing power consumption of a wireless positioning base station based on a BPSO algorithm. Background Art
[0002] At present, short-range wireless positioning technology has been widely used in tunnel construction and workshop production. By adopting wireless positioning technologies such as UWB (ultra-wideband), Wi-Fi, RFID, and Bluetooth, it can better support scenes such as personnel positioning and equipment positioning in tunnels and workshops.
[0003] The TDOA (Time Difference of Arrival) algorithm is a wireless positioning algorithm that uses time difference for positioning. Taking a two-dimensional positioning scenario as an example, the algorithm determines the location of the signal source by detecting the absolute time difference between the signal reaching two base stations. By comparing the time difference between the signal reaching the two base stations, a hyperbola with the base station as the focus and the distance difference as the major axis can be drawn. The intersection of multiple hyperbolas is the location of the signal source. The TDOA algorithm requires at least three different base stations to obtain two hyperbolas to complete positioning.
[0004] In large-area positioning scenarios such as tunnels and workshops, the number of deployed base stations is usually large. In the positioning process, personnel and equipment often show a certain degree of aggregation. For example, in most cases, there are more people in certain areas, while there are fewer people in other areas. In addition, for nighttime construction work, there are also fewer people. In most positioning application scenarios, high positioning accuracy is not required, only the approximate location of the person or object to be located is required. These scenarios will cause power consumption waste of positioning base stations. Therefore, it is of great significance to reduce the energy consumption waste of positioning base stations.
[0005] The Chinese invention patent with application number 201610928215.9 discloses a low-power positioning method based on base station positioning. By deregistering the network, the terminal turns off the radio frequency transmission to reduce the power consumption caused by the radio frequency transmission, while ensuring that the terminal can obtain cell information for auxiliary positioning. While achieving base station positioning, the device can be in a low-power state, so that it can work longer. However, the application scenario of this invention is to locate the terminal device based on the communication base station of the telecommunications mobile operator network, which is different from the application scenario of the short-range wireless positioning technology in the present invention. In addition, the power consumption optimization method described in this invention is mainly for the located terminal, rather than for the positioning base station itself. The solution described in the present invention optimizes the power consumption of the positioning base station itself, and uses the BPSO algorithm to find the optimal solution for the power consumption optimization solution. Summary of the invention
[0006] In view of the technical problem that in short-range wireless positioning technology, when the number of measured objects in the positioning area is small, the power consumption of the positioning base station will be wasted. The present invention proposes a power consumption optimization method for wireless positioning base stations based on the BPSO algorithm, which can reduce the power consumption of short-range wireless positioning base stations.
[0007] In order to achieve the above-mentioned purpose, the technical solution of the present invention is implemented as follows: a method for optimizing power consumption of a wireless positioning base station based on a BPSO algorithm, comprising placing all positioning base stations in operation, and determining the total number and position of objects to be measured in the current positioning area through a TDOA positioning algorithm; then, based on the position of the positioning base station and the position of the object to be measured, the BPSO algorithm is run to determine the minimum number of positioning base stations that need to be run under the premise that the object to be measured can be located, and other redundant positioning base stations are controlled to enter a sleep state.
[0008] According to whether the positioning base station is at the edge of the positioning area, the positioning base stations are divided into two categories: edge positioning base stations and internal positioning base stations. The edge positioning base stations are always in operation, identifying the objects entering and leaving the positioning area, thereby determining the total number of objects under test in the positioning area; when a new object under test enters the positioning area and is detected by the edge positioning base station, all positioning base stations are started to use the TDOA positioning algorithm to re-position the object under test, and then the BPSO algorithm is used to optimize the power consumption of the positioning base stations.
[0009] In two-dimensional positioning, if the number of positioning base stations that can monitor a certain object is less than 3, the last position and time of the object are obtained, and then the BPSO algorithm is used to determine the operation and sleep of the positioning base station based on the position of all objects at that moment, and control the operation status of the corresponding positioning base station.
[0010] The implementation method of the TDOA positioning algorithm is: according to the positioning signal sent by the measured object received by each positioning base station, the total number of the measured objects in the positioning area is determined, and a mapping table between the positioning base station and the measured objects is established, and each row in the mapping table represents all the measured objects that can be monitored by the positioning base station; at least 3 positioning base stations that can monitor the measured objects are selected, and a group of equations is established using the position of the positioning base station, the timestamp when the positioning signal of the measured object reaches the 3 positioning base stations, and the speed of light, and the coordinate value of the measured object is obtained by solving the group of equations.
[0011] Assume that the position of the object under test is OB(x,y), the positions of the three selected positioning base stations that can detect the signal of the object under test are BS1(x1,y1), BS2(x2,y2) and BS3(x3,y3), the timestamps of the positioning signal of the object under test arriving at the three positioning base stations are t1, t2 and t3 respectively, the speed of light is c, and the following equations are obtained:
[0012]
[0013] By solving the above equations, the coordinate value OB(x, y) of the object to be measured is obtained.
[0014] In order to improve the positioning accuracy, the method of solving the position coordinates of the measured object multiple times and taking the average value can be adopted. Since the number of positioning base stations selected for solving the position coordinates of the measured object is 3, the two positioning base stations determine a hyperbola equation with themselves as the focus. According to the position coordinates of the positioning base stations BS1 (x1, y1), BS2 (x2, y2) and BS3 (x3, y3) and the timestamps t1, t2 and t3 when the signal arrives at the positioning base station, the hyperbola equations are obtained respectively:
[0015]
[0016] Wherein, L(BS1, BS2) represents the hyperbolic equation with positioning base station BS1 and positioning base station BS2 as the focus;
[0017] A position coordinate of the object to be measured is determined by any two of the hyperbolas, and the hyperbola combinations are: L(BS1, BS2) and L(BS1, BS3), L(BS1, BS2) and L(BS2, BS3), and L(BS1, BS3) and L(BS2, BS3); then the average value of the three position coordinates is calculated to obtain the coordinate value of the object to be measured to improve the positioning accuracy.
[0018] In three-dimensional spatial positioning, each object under test is monitored by four positioning base stations. Assume that the position of the object under test is OB(x, y, z), and the positions of the four positioning base stations that can detect the positioning signals of the object under test are BS1(x1, y1, z1), BS2(x2, y2, z2), BS3(x3, y3, z3) and BS4(x4, y4, z4). The timestamps of the positioning signals of the object under test arriving at the four positioning base stations are t1, t2, t3 and t4 respectively. The speed of light is c, and the equation group is obtained:
[0019]
[0020] The position coordinates OB (x, y, z) of the object being measured are calculated by solving the equation group.
[0021] The implementation method of the BPSO algorithm is as follows: the number of positioning base stations is set to n, and the operation and sleep of each positioning base station are represented by binary 1 or 0, 1 represents that the base station is in operation, and 0 represents that the base station is in sleep state; the number of particle swarms is d, and each particle is defined as an array with a dimension of n, and each dimension of the array represents the operation state of the corresponding positioning base station;
[0022] Initialize the particle population, and each dimension of each particle in the population is randomly assigned to 0 or 1 to represent the operating status of the base station;
[0023] Calculate the fitness value of each particle;
[0024] Initialize the flight speed of the particle population. Each dimension of each particle in the population is randomly assigned a speed value between [-5,5].
[0025] Initialize the historical optimal solution pbest and the corresponding fitness value pbest_fit for each particle;
[0026] Initialize the global optimal solution gbest of the population and the corresponding fitness value gbest_fit;
[0027] Perform iterative calculations to continuously update the velocity value of each particle, the current solution, the historical optimal solution, and the global optimal solution of the population until the termination conditions of the calculation are met.
[0028] The fitness value of the particle includes two:
[0029] The first is the number of objects f1 that the positioning base station can monitor, ensuring that each object can be monitored by at least three positioning base stations. The calculation method is: according to the operating status of the positioning base station represented by each dimension in each particle and the mapping table between the positioning base station and the object to be measured, determine the number of objects to be measured that the particle can find.
[0030] The second is the distance measurement value f2 between the measured object and the positioning base station. The calculation method is as follows: for each measured object, according to the operating status of the positioning base station represented by each dimension of the current particle and the mapping table between the positioning base station and the measured object, all the positioning base stations that can detect the current measured object are determined and the distance from the measured object to the positioning base station is calculated; then the three closest base stations are selected and their average distance l is calculated. i , i∈[1,m], m is the number of objects in the positioning area; finally, the distance metric is calculated based on the average distance value corresponding to each object:
[0031] During initialization, the value of the current particle is the historical optimal solution of the particle. The number of measured objects f1 and the distance measurement value f2 corresponding to the value of the current particle are solved and defined as the historical optimal fitness value;
[0032] When comparing, first compare the size of the number of measured objects f1, and find the particle corresponding to the larger value of the number of measured objects f1. Only when the number of measured objects f1 corresponding to two particles is the same, then compare the size of the appropriate distance measurement value f2 and find the particle with the smaller distance measurement value f2.
[0033] The implementation method of the iterative calculation is:
[0034] Update the particle's velocity:
[0035]
[0036] Among them, ω is the inertia weight, c1 and c2 are learning factors, and rand() is a random number between 0 and 1. represents the velocity of the j-th dimension of the ith particle in the k-th iteration, represents the value of the jth dimension of the current solution of the ith particle in the kth iteration, represents the value of the jth dimension of the historical optimal solution of the i-th particle in the k-th iteration, represents the value of the jth dimension of the global optimal solution of the population in the kth iteration;
[0037] The particle speed is mapped to 0 or 1 through the sigmoid function, that is
[0038] Update the value of a particle:
[0039]
[0040] After obtaining the value of the particle, the fitness value of the particle is calculated, compared with the particle's historical optimal solution pbest and the global optimal solution gbest, and the historical optimal solution pbest and the global optimal solution gbest are updated.
[0041] The positioning system of the wireless positioning base station power consumption optimization method based on the BPSO algorithm includes:
[0042] The positioning base station receives the positioning signal sent by the measured object in real time and sends the positioning signal to the master control system;
[0043] The master control system receives the positioning signal sent by the positioning base station and determines the position of the measured object through the TDOA positioning algorithm; runs the BPSO algorithm to solve the optimal power consumption solution according to the position of the measured object, and then sends a control signal to the positioning base station to put some redundant positioning base stations into sleep mode;
[0044] The positioning tag is installed on the object to be measured and sends the positioning signal of the object to the positioning base station in real time.
[0045] The positioning base station contains an operation controller, which controls the operation and sleep of the positioning base station. The operation controller receives a control signal sent by the master control system and controls the positioning base station.
[0046] The beneficial effects of the present invention are as follows: the power consumption of short-range wireless positioning base stations is optimized through the discrete binary particle swarm optimization algorithm. In scenarios such as when the number of measured objects in the positioning area is small or construction work is carried out at night, the master control system controls some redundant positioning base stations to sleep, which can effectively reduce the power consumption of the entire positioning system and save electricity costs. In addition, in scenarios such as tunnel positioning, in order to ensure the flexibility and mobility of the positioning system, the positioning base station is often battery-powered. By reducing the power consumption of the positioning base station of the entire system, the working time of the positioning base station can be extended, saving the workload caused by frequent battery replacement. At the same time, by controlling the redundant positioning base stations to sleep, the average working time of the positioning base station can be reduced, and the service life of the positioning base station can be extended, thereby effectively saving costs. It is suitable for scenarios such as tunnels and workshops where short-range wireless positioning technology is used. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A schematic diagram of a model for optimizing power consumption of the present invention.
[0049] Figure 2 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] Example 1
[0052] like Figure 2 As shown, a method for optimizing power consumption of a wireless positioning base station based on a BPSO algorithm includes:
[0053] All positioning base stations are put into operation, and the total number and position of the measured objects in the current positioning area are determined by the TDOA positioning algorithm. Then, based on the position of the positioning base station and the position of the measured object, the BPSO algorithm is run to determine the minimum number of positioning base stations that need to be run under the premise that the measured object can be located, and other redundant positioning base stations are put into a dormant state. During the positioning process, if it is found that the number of positioning base stations that can monitor a certain measured object is less than 3, the measured object can no longer be located. First, the last position and time of the measured object are obtained, and then the BPSO algorithm is used again based on the position of all measured objects at that moment to solve the optimal solution to determine the operation or dormancy of the positioning base station, and the operation state of the corresponding base station is switched.
[0054] In this solution, base stations can be divided into two categories according to whether they are at the edge of the positioning area: edge positioning base stations and internal positioning base stations. Edge positioning base stations are always in operation, and their purpose is to identify the objects being measured that enter and exit the positioning area, thereby determining the total number of objects being measured in the positioning area and preventing the phenomenon of objects being measured not being discovered. Figure 1 As shown, the positioning base stations marked as E11 to E18 are edge positioning base stations. When a new object to be measured enters the positioning area and is detected by the edge positioning base station, the master control system starts all positioning base stations to re-position the object to be measured, and after determining the position of the object to be measured, re-runs the BPSO algorithm to optimize the power consumption of the base station. Therefore, according to the present invention, when the number of objects to be measured in the positioning area is small, the power consumption of the positioning base station group can be effectively reduced.
[0055] Wireless positioning technology can be divided into two common scenarios: two-dimensional positioning and three-dimensional positioning. This embodiment takes two-dimensional positioning as an example for explanation. Figure 1 The figure shows a schematic diagram of power consumption optimization of positioning base stations, where the area represented by the square is the positioning area, the circle represents the positioning base station, the gray circle is the positioning base station currently in operation, the white circle is the positioning base station currently in sleep state, and the triangle represents the object under test. The object under test can send wireless signals to the surrounding positioning base stations for positioning. Each object under test requires at least three positioning base stations to receive signals to complete positioning. By setting the redundant positioning base stations that are not currently in use to sleep state, the power consumption of the entire positioning system is reduced. Figure 2 This is a flow chart of the power consumption optimization solution of the present invention, and the specific implementation method is as follows:
[0056] (1) Assume that the entire positioning area contains n positioning base stations, and the location of each positioning base station is BS i (x i ,y i),i∈[1,n]. Each positioning base station is identified as an edge positioning base station or an internal positioning base station. Positioning base stations are divided into running state or dormant state. When initialized for the first time, all positioning base stations are in running state.
[0057] (2) After the first initialization, the signal sent by the measured object received by each positioning base station is obtained to determine the total number of measured objects in the positioning area, and a mapping table between the positioning base stations and the measured objects is established, as shown below:
[0058]
[0059] Among them, OB represents the object to be measured, and each row in the mapping table represents which objects to be measured can be monitored by the positioning base station.
[0060] (3) Assuming that the current positioning area contains m objects to be measured, calculate the position of each object to be measured in turn. Since each object to be measured can be detected by multiple positioning base stations, some positioning base stations can be selected to calculate the position of the object to be measured. In the two-dimensional positioning of the present invention, at least three positioning base stations need to be selected. Assuming that the position of the object to be measured is OB(x, y), the positions of the three selected positioning base stations that can detect the signals of the object to be measured are BS1(x1, y1), BS2(x2, y2) and BS3(x3, y3), respectively. The timestamps of the positioning signals of the object to be measured arriving at the three positioning base stations are t1, t2 and t3, respectively. The speed of light is c, and the following set of equations can be obtained:
[0061]
[0062] By solving the above equations, the coordinate value OB(x, y) of the object being measured can be obtained.
[0063] In order to improve the positioning accuracy, the method of solving the position coordinates of the measured object multiple times and taking the average value can be adopted. For example, when the number of positioning base stations selected for solving the position coordinates of the measured object is 3, since two positioning base stations can determine a hyperbola equation with themselves as the focus, according to the position coordinates of the positioning base stations BS1 (x1, y1), BS2 (x2, y2) and BS3 (x3, y3) and the timestamps t1, t2 and t3 of the signal arriving at the positioning base station, the number of hyperbola equations that can be obtained is The resulting hyperbolic equations are:
[0064]
[0065] Among them, L(BS1, BS2) represents the hyperbola equation with positioning base station BS1 and positioning base station BS2 as the focus, and so on. Since the position of the object under test can be determined by any two of the hyperbolas, the number of position coordinates obtained according to the three hyperbolas is The hyperbolic combinations are: L(BS1, BS2) and L(BS1, BS3), L(BS1, BS2) and L(BS2, BS3), and L(BS1, BS3) and L(BS2, BS3). The coordinate value of the object being measured can then be obtained by calculating the average value of the three position coordinates.
[0066] (4) Use the BPSO algorithm to optimize the operating status of the positioning base station group. On the premise that all objects can be detected, reduce the number of positioning base stations in operation and set other redundant base stations to sleep, thereby reducing the power consumption of the positioning base station group.
[0067] Assume that the number of positioning base stations is n, and the operation and sleep of each base station are represented by binary 1 or 0, 1 represents that the base station is in operation, and 0 represents that the base station is in sleep. In the BPSO algorithm, the number of particle swarms is d, and each particle is defined as an array of dimension n, represented by array x. Each dimension represents the operation status of the corresponding base station, so each particle represents a solution for the operation status of the base station group.
[0068] First, the particle population is randomly initialized, and each dimension of each particle in the population is randomly assigned a value of 0 or 1. For example, x ij =0 means that the jth dimension of the ith particle is assigned a value of 0, that is, in the solution represented by the ith particle, the jth base station is in a dormant state.
[0069] Calculate the fitness value of each particle. There are two fitness values for particles:
[0070] First, the number of objects f1 that can be found by the solution represented by each particle needs to ensure that each object can be monitored by at least three positioning base stations. The specific calculation method is: according to the operating status of the positioning base station represented by each dimension in each particle and the mapping table between the positioning base station and the object to be measured, the number of objects that the particle can find can be determined.
[0071] The second is the distance measurement value f2 between the measured object and the positioning base station. If only the number of measured objects that can be found by the positioning base station is considered, there may be multiple solutions. For example, starting base stations 1, 3, and 5 or starting base stations 2, 6, and 7 can all find all measured objects, but the average distance between base stations 1, 3, and 5 and all measured objects is short. Therefore, choosing base stations 1, 3, and 5 can not only improve positioning accuracy, but also avoid frequent switching between the operating state and the dormant state of the positioning base station due to the short-distance movement of the measured objects.
[0072] The specific calculation method is as follows: for each object to be measured, all base stations that can detect the current object to be measured are determined according to the base station operation status represented by each dimension of the current particle and the mapping table between the positioning base station and the object to be measured, and the distance from the object to the base station is calculated; then the three base stations closest to the object are selected and their average distance l is calculated. i , i∈[1,m], m is the number of objects in the positioning area; finally, the distance metric is calculated based on the average distance value:
[0073] Initialize the flight speed of the particle population, and each dimension of each particle in the population is randomly assigned a speed value. For example, v ij =3 means that the velocity value of the jth dimension of the ith particle is assigned a value of 3. In order to prevent the particle from flying too fast or too slow, the particle's flying speed can be limited to between [-5,5].
[0074] Initialize the historical optimal solution pbest and the corresponding fitness value pbest_fit of each particle. During initialization, the current particle value is the historical optimal solution of the particle, and the fitness values f1 and f2 corresponding to the current particle value are solved, which are defined as the historical optimal fitness values.
[0075] Initialize the global optimal solution gbest of the population and the corresponding fitness value gbest_fit. Find the optimal fitness value of the particle population. The particle value corresponding to this value is the global optimal solution gbest, and its fitness value is gbest_fit. When comparing, first compare the size of the fitness value f1 and find the particle with the larger f1 value. Only when the f1 values of two particles are the same, compare the size of f2 and find the particle with the smaller f2.
[0076] Next, we can perform iterative calculations and continuously update the value of each particle to find the global optimal solution. First, update the particle speed:
[0077]
[0078] Among them, ω is the inertia weight, which can be 1, c1 and c2 are learning factors, and rand() is a random number between 0 and 1. represents the velocity of the j-th dimension of the ith particle in the k-th iteration, represents the value of the jth dimension of the current solution of the ith particle in the kth iteration, represents the value of the jth dimension of the historical optimal solution of the i-th particle in the k-th iteration, Represents the value of the j-th dimension of the global optimal solution of the population in the k-th iteration.
[0079] The particle speed is then mapped to 0 or 1 through the sigmoid function, that is,
[0080]
[0081] Finally, update the particle's value:
[0082]
[0083] After obtaining the value of the particle, calculate its fitness value, compare it with the historical optimal fitness value pbest_fit of the particle individual and the global optimal fitness value gbest_fit, and update the historical optimal solution pbest and the global optimal solution gbest. Repeat the iteration until the optimal solution is obtained.
[0084] (5) Based on the results of the BPSO algorithm, gbest controls the operation and sleep of each positioning base station. j The value of represents the operating status of the jth base station. j = 0, indicating that the base station is in sleep mode. j =1, it indicates that the base station is in operation, and the edge positioning base station is always in operation.
[0085] There are two situations that may occur during the positioning process. One is that the number of base stations that can monitor the object under test is less than 3, and the other is that a new object under test appears in the positioning area.
[0086] During the positioning process, the system will update the mapping table between the positioning base station and the measured object in real time according to the signal sent by the measured object received by the positioning base station, and calculate and store the position of the measured object in real time. When the system finds that the number of base stations that can monitor a certain measured object is less than 3, the measured object can no longer be located. At this time, the position and timestamp of the last positioning of the measured object stored in the system are first obtained, and then the discrete binary particle swarm algorithm is recalculated based on the position of all measured objects at that moment to solve the optimal solution and control the operating status of the positioning base station.
[0087] In the present invention, the edge positioning base station is always in operation, so when a new object to be measured enters the area, it can be immediately discovered by the positioning base station. Since the system cannot locate the position of the new object to be measured at this time, it is necessary to start all positioning base stations to locate the object to be measured, and then re-run the BPSO algorithm to optimize the base station power consumption.
[0088] Example 2
[0089] A method for optimizing power consumption of a wireless positioning base station based on a BPSO algorithm can also be used for optimizing power consumption of base stations in a three-dimensional spatial positioning scenario. The difference from the two-dimensional positioning scenario in Example 1 is that:
[0090] In three-dimensional spatial positioning, the implementation of the TDOA algorithm requires ensuring that each object being measured can be monitored by four positioning base stations.
[0091] The TDOA algorithm needs to be changed to the situation in a three-dimensional scene: Assume that the position of the object to be measured is OB(x, y, z), and the positions of the four selected positioning base stations that can detect the signal of the object to be measured are BS1(x1, y1, z1), BS2(x2, y2, z2),
[0092] BS3 (x3, y3, z3) and BS4 (x4, y4, z4), the time stamps of the measured object signal arriving at the four positioning base stations are t1, t2, t3 and t4 respectively, and the speed of light is c. The following set of equations can be obtained to calculate the position of the measured object:
[0093]
[0094] In the discrete binary particle swarm optimization algorithm, when calculating the fitness value of the particles, the position of the measured object is a three-dimensional coordinate.
[0095] The other implementation methods are the same as those in Example 1.
[0096] Example 3
[0097] A positioning system comprises:
[0098] The positioning base station receives the positioning signal sent by the measured object in real time and sends the positioning signal to the master control system. The positioning base station contains an operation controller, which can control the operation and sleep of the base station, saving power by putting the positioning base station into sleep state. The operation controller can receive the control signal sent by the master control system and control the positioning base station.
[0099] The master control system receives the positioning signal sent by the positioning base station and determines the position of the object under test through the TDOA positioning algorithm. It runs the BPSO optimization algorithm according to the position of the object under test to solve the optimal power consumption plan, and then sends a control signal to the positioning base station to put some redundant positioning base stations into sleep mode, thereby reducing the power consumption of the entire system.
[0100] The positioning tag is installed on the object to be measured and can send the positioning signal of the object to be measured to the positioning base station in real time, so as to locate the object to be measured through the positioning tag.
[0101] In the present invention, the master control system uses a discrete binary particle swarm optimization (BPSO) algorithm to control the operation and sleep of the positioning base station. Taking the two-dimensional positioning scenario as an example, first, during initialization, the master control system first puts all positioning base stations into operation, thereby determining the total number and position of the measured objects in the current positioning area through the TDOA positioning algorithm. Then, based on the position of the positioning base station and the position of the measured object, the discrete binary particle swarm optimization algorithm is run to determine the minimum number of positioning base stations that need to be run under the premise that the measured object can be located, and other redundant base stations are put into a dormant state. If the positioning system finds that the number of positioning base stations that can monitor a certain measured object is less than 3 during the positioning process, the measured object can no longer be located. At this time, the positioning base station of the positioning system first obtains the last position and time of the measured object through the positioning tag, and then recalculates the BPSO algorithm based on the position of all measured objects at that moment to solve the optimal solution, and switches the operation state of the corresponding base station.
[0102] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for optimizing power consumption of a wireless positioning base station based on a BPSO algorithm, characterized in that: include: Put all positioning base stations into operation state, and determine the total number and position of the measured objects in the current positioning area through the TDOA positioning algorithm; Then, based on the position of the positioning base station and the position of the measured object, the BPSO algorithm is run to determine the minimum number of positioning base stations that need to be run under the premise that the measured object can be located, and other redundant positioning base stations are controlled to enter a dormant state; The implementation method of the BPSO algorithm is as follows: the number of positioning base stations is set to n, and the operation and sleep of each positioning base station are represented by binary 1 or 0, 1 represents that the base station is in operation, and 0 represents that the base station is in sleep; The number of particle swarms is d, and each particle is defined as an array of dimension n. Each dimension of the array represents the operating status of the corresponding positioning base station. Initialize the particle population, and each dimension of each particle in the population is randomly assigned to 0 or 1 to represent the operating status of the base station; Calculate the fitness value of each particle; Initialize the flight speed of the particle population. Each dimension of each particle in the population is randomly assigned a speed value between [-5,5]. Initialize the historical optimal solution pbest and the corresponding fitness value pbest_fit for each particle; Initialize the global optimal solution gbest of the population and the corresponding fitness value gbest_fit; Perform iterative calculations to continuously update the velocity value of each particle, the current solution, the historical optimal solution, and the global optimal solution of the population until the termination condition of the calculation is met; The fitness value of the particle includes two: The first is the number of objects to be detected that the positioning base station can monitor, f1, to ensure that each object to be detected can be monitored by at least three positioning base stations; the calculation method is: according to the operating status of the positioning base station represented by each dimension in each particle and the mapping table between the positioning base station and the object to be detected, determine the number of objects to be detected that the particle can find; The second is the distance measurement value f2 between the measured object and the positioning base station. The calculation method is as follows: for each measured object, according to the operating status of the positioning base station represented by each dimension of the current particle and the mapping table between the positioning base station and the measured object, all the positioning base stations that can detect the current measured object are determined and the distance from the measured object to the positioning base station is calculated; then the three closest base stations are selected and their average distance l is calculated. i , i∈[1,m], m is the number of objects in the positioning area; finally, the distance metric is calculated based on the average distance value corresponding to each object: During initialization, the value of the current particle is the historical optimal solution of the particle. The number of measured objects f1 and the distance measurement value f2 corresponding to the value of the current particle are solved and defined as the historical optimal fitness value; When comparing, first compare the size of the number of measured objects f1, and find the particle corresponding to the larger value of the number of measured objects f1. Only when the number of measured objects f1 corresponding to two particles is the same, compare the size of the distance measurement value f2, and find the particle with the smaller distance measurement value f2.
2. The method for optimizing power consumption of a wireless positioning base station based on the BPSO algorithm according to claim 1, characterized in that: According to whether the positioning base station is at the edge of the positioning area, the positioning base stations are divided into two categories: edge positioning base stations and internal positioning base stations. The edge positioning base stations are always in operation, identifying the objects entering and leaving the positioning area, thereby determining the total number of objects under test in the positioning area; when a new object under test enters the positioning area and is detected by the edge positioning base station, all positioning base stations are started to use the TDOA positioning algorithm to re-position the object under test, and then the BPSO algorithm is used to optimize the power consumption of the positioning base stations.
3. The method for optimizing power consumption of a wireless positioning base station based on the BPSO algorithm according to claim 1 or 2, characterized in that: In two-dimensional positioning, if the number of positioning base stations that can monitor a certain object is less than 3, the last position and time of the object are obtained, and then the BPSO algorithm is used to determine the operation and sleep of the positioning base station based on the position of all objects at that moment, and control the operation status of the corresponding positioning base station.
4. The method for optimizing power consumption of a wireless positioning base station based on the BPSO algorithm according to claim 3 is characterized in that: The implementation method of the TDOA positioning algorithm is: according to the positioning signal sent by the measured object received by each positioning base station, the total number of the measured objects in the positioning area is determined, and a mapping table between the positioning base station and the measured objects is established, and each row in the mapping table represents all the measured objects that can be monitored by the positioning base station; at least 3 positioning base stations that can monitor the measured objects are selected, and a group of equations is established using the position of the positioning base station, the timestamp when the positioning signal of the measured object reaches the 3 positioning base stations, and the speed of light, and the coordinate value of the measured object is obtained by solving the group of equations.
5. The method for optimizing power consumption of a wireless positioning base station based on the BPSO algorithm according to claim 4 is characterized in that: Assume that the position of the object under test is OB(x,y), the positions of the three selected positioning base stations that can detect the signal of the object under test are BS1(x1,y1), BS2(x2,y2) and BS3(x3,y3), the timestamps of the positioning signal of the object under test arriving at the three positioning base stations are t1, t2 and t3 respectively, the speed of light is c, and the following equations are obtained: By solving the above equations, the coordinate value OB(x, y) of the object to be measured is obtained.
6. The method for optimizing power consumption of a wireless positioning base station based on the BPSO algorithm according to claim 5, characterized in that: The number of positioning base stations used to solve the position coordinates of the measured object is selected as 3. The two positioning base stations determine a hyperbola equation with themselves as the focus. According to the position coordinates of the positioning base stations BS1 (x1, y1), BS2 (x2, y2) and BS3 (x3, y3) and the timestamps t1, t2 and t3 when the signal arrives at the positioning base station, the hyperbola equations are obtained respectively: Wherein, L(BS1, BS2) represents the hyperbolic equation with positioning base station BS1 and positioning base station BS2 as the focus; A position coordinate of the object to be measured is determined by any two of the hyperbolas, and the hyperbola combinations are: L(BS1, BS2) and L(BS1, BS3), L(BS1, BS2) and L(BS2, BS3), and L(BS1, BS3) and L(BS2, BS3); then the average value of the three position coordinates is calculated to obtain the coordinate value of the object to be measured to improve the positioning accuracy.
7. The method for optimizing power consumption of a wireless positioning base station based on the BPSO algorithm according to claim 2, characterized in that: In three-dimensional spatial positioning, each object under test is monitored by four positioning base stations. Assume that the position of the object under test is OB(x, y, z), and the positions of the four positioning base stations that can detect the positioning signals of the object under test are BS1(x1, y1, z1), BS2(x2, y2, z2), BS3(x3, y3, z3) and BS4(x4, y4, z4). The timestamps of the positioning signals of the object under test arriving at the four positioning base stations are t1, t2, t3 and t4 respectively. The speed of light is c, and the equation group is obtained: The position coordinates OB (x, y, z) of the object being measured are calculated by solving the equation group.
8. The method for optimizing power consumption of a wireless positioning base station based on the BPSO algorithm according to claim 1, characterized in that: The implementation method of the iterative calculation is: Update the particle's velocity: Among them, ω is the inertia weight, c1 and c2 are learning factors, and rand() is a random number between 0 and 1. represents the velocity of the j-th dimension of the ith particle in the k-th iteration, represents the value of the jth dimension of the current solution of the ith particle in the kth iteration, represents the value of the jth dimension of the historical optimal solution of the ith particle in the kth iteration, represents the value of the jth dimension of the global optimal solution of the population in the kth iteration; The particle speed is mapped to 0 or 1 through the sigmoid function, that is Update the value of a particle: After obtaining the value of the particle, the fitness value of the particle is calculated, compared with the particle's historical optimal solution pbest and the global optimal solution gbest, and the historical optimal solution pbest and the global optimal solution gbest are updated.
9. A positioning system according to any one of claims 1 to 8, wherein the method for optimizing the power consumption of a wireless positioning base station based on the BPSO algorithm is characterized in that: include: The positioning base station receives the positioning signal sent by the measured object in real time and sends the positioning signal to the master control system; The master control system receives the positioning signal sent by the positioning base station and determines the position of the measured object through the TDOA positioning algorithm; runs the BPSO algorithm to solve the optimal power consumption solution according to the position of the measured object, and then sends a control signal to the positioning base station to put some redundant positioning base stations into sleep mode; The positioning tag is installed on the object to be measured and sends the positioning signal of the object to the positioning base station in real time.
10. The positioning system according to claim 9, characterized in that: The positioning base station contains an operation controller, which controls the operation and sleep of the positioning base station. The operation controller receives a control signal sent by the master control system and controls the positioning base station.
