This application claims priority to Chinese application number 201811310492.9, filed Nov. 6, 2018, with a title of DATA ACQUISITION POINT DEPLOYMENT METHOD AND SYSTEM. The above-mentioned patent application is incorporated herein by reference in its entirety.
The present invention relates to the field of water quality monitoring, and in particular, to a data acquisition point deployment method and system.
When sampling points of a water environment field are deployed, they are deployed uniformly often in a manner that considers a monitoring coverage rate, that is, a cost function based on the coverage rate is constructed, and an iterative search is performed by using a particle swarm optimization algorithm to obtain the best sampling point deployment structure. However, the method of merely considering the coverage rate to uniformly deploy the sampling points is only applicable to a situation where water environment features are distributed uniformly, and as the particle swarm algorithm has the shortcomings of being slow in convergence speed, easy to fall into local best and the like, in case water environment features are in Gaussian distribution, data information obtained by this method is not sufficient to reflect the water quality status of an entire area.
An objective of the present invention is to provide a data sampling point deployment method and system, to better reflect the water quality status of an entire water environment monitoring area according to a sampled value.
To achieve the above purpose, the present invention provides the following technical solutions.
A data acquisition point deployment method includes:
Optionally, the determining a grid coverage rate of a to-be-detected water area specifically includes:
where when Dis(Xd, p)≤RS, P(Xd,p)=1, indicating that the grid where the sampling point is located is covered; when Dis(Xd, p)>RS, P(Xd, p)=0, indicating that the grid where the sampling point is located is not covered; Dis(Xd, p) is an Euclidean distance from the sampling point d to a central point p(x, y) of any of the grids: Dis(Xd, P)=√{square root over ((xd−x)2(yd−y2)}; RS is an effective sensing radius of a monitoring point;
Optionally, the determining a scalar field reconstruction error of an environment field of non-uniformly distributed water quality features specifically includes:
Optionally, the constructing a fitness function specifically includes:
Optionally, the optimizing a location set of sampling points by a particle swarm optimization algorithm and a gravitational search algorithm, to determine the best solution of the location set of the sampling points and a fitness value corresponding to the best solution specifically includes:
and the velocity satisfies the formula
the particle represents a location set of a group of sampling points, i.e. =(Xi1, Xi2, . . . , XiD), where and Xid=(xid, yid), i=1, 2, . . . , N and d=1, 2, . . . , D; Xid indicates the location of a sampling point d; {right arrow over (X)}i indicates the location of a particle i; Vid indicates the velocity of the sampling point d; {right arrow over (V)}i indicates the velocity of the particle i;
where wmax is a maximum value of the inertia weight; wmin is a minimum value of the inertia weight; ƒ indicates a fitness function value of the particle; ƒavg indicates an average fitness function value of all particles; ƒmin indicates a minimum fitness function value of all particles.
A data acquisition point deployment system includes:
Optionally, the grid coverage rate and scalar field reconstruction error determining unit includes a grid coverage rate determining subunit; the grid coverage rate determining subunit is configured for determining the grid coverage rate of the to-be-detected water area, and specifically includes:
where when Dis(Xd, p)≤RS, P(Xd, p)=1, indicating that (the grid where the sampling point is located is covered; when Dis(Xd, p)>RS, P(Xd, p)=0, indicating that the grid where the sampling point is located is not covered; Dis(Xd, p)is an Euclidean distance from the sampling point d to a central point p=(x, y) of any of the grids: Dis(Xd, p)=√{square root over ((xd−x)2+(yd−y)2)}; RS is an effective sensing radius of a monitoring point;
Optionally, the grid coverage rate and scalar field reconstruction error determining unit further includes a scalar field reconstruction error determining subunit; the scalar field reconstruction error determining subunit is configured for determining the scalar field reconstruction error of the environment field of non-uniformly distributed water quality features, and specifically includes:
Optionally, the fitness function construction unit is configured for constructing a fitness function, and specifically includes:
Optionally, the optimizing unit is configured for optimizing a location set of sampling points by a particle swarm optimization algorithm and a gravitational search algorithm, to determine the best solution of the location set of the sampling points and a fitness value corresponding to the best solution, and specifically includes:
and the velocity satisfies the formula
the particle represents a location set of a group of sampling points, i.e. =(Xi1, Xi2, . . . , XiD), where Xid=(xid, yid), i=1, 2, . . . , N and d=1, 2, . . . , D; Xid indicates the location of a sampling point d; {right arrow over (X)}i indicates the location of a particle i; Vid indicates the velocity of the sampling point d; {right arrow over (V)}i indicates the velocity of the particle i;
a fitness value comparison subunit, for comparing the fitness values of all particles in the particle swarm, determining a minimum value of the fitness values, using a particle corresponding to the minimum value of the fitness values as the best solution of the location set of the sampling points, and using the minimum value of the fitness values as a fitness value fitness corresponding to the best solution; and
where wmax is a maximum value of the inertia weight; wmin is a minimum value of the inertia weight; ƒ indicates a fitness function value of the particle; ƒavg indicates an average fitness function value of all particles; ƒmin indicates a minimum fitness function value of all particles.
According to specific embodiments provided in the present invention, the present invention discloses the following technical effects. The present invention considers both coverage performance and reconstruction performance that can reflect the quality of sampled data to construct a fitness function, making sampling points maximally cover an environmental scalar field; to search for the best sampling point, a traditional particle swarm optimization algorithm is combined with a gravitational search algorithm to optimize a location set of the sampling points to determine the best solution of the location set of the sampling points and a fitness value corresponding to the best solution, thereby improving the convergence speed and accuracy of the algorithm to well reflect the water quality status of an entire water environment monitoring area according to a sampled value.
To describe the technical solutions in the embodiments of the present invention or in the prior art more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
The following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely a part rather than all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
An objective of the present invention is to provide a data acquisition point deployment method and system, to better reflect the water quality status of an entire water environment monitoring area according to a sampled value.
To make the foregoing objective, features, and advantages of the present invention clearer and more comprehensible, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
As shown in
Step 101: determine a grid coverage rate of a to-be-detected water area and a scalar field reconstruction error of an environment field of non-uniformly distributed water quality features.
In the present embodiment, specifically, the following steps are performed to determine the grid coverage rate of the to-be-detected water area and the scalar field reconstruction error of the environment field of non-uniformly distributed water quality features.
The step of determining a grid coverage rate of a to-be-detected water area specifically includes:
where when Dis(Xd, p)≤RS, P(Xd, p)=1 indicating that the grid where the sampling point is located is covered; when Dis(Xd, p)>RS, P(Xd, p)=0, indicating that the grid where the sampling point is located is not covered; Dis(Xd, p) is an Euclidean distance from the sampling point d to a central point p(x, y) of any of the grids: Dis(Xd, p)=√{square root over ((xd−x)2+(yd−y)2)}; RS is an effective sensing radius of a monitoring point;
The grid coverage rate determined by the Boolean sensing model can reflect actual coverage more accurately, and can be directly used as a measurement index for a water environment detection coverage rate.
The step of determining a scalar field reconstruction error of an environment field of non-uniformly distributed water quality features specifically includes:
For the environment field of non-uniformly distributed water quality features, more sampling locations are deployed in a zone with a larger change and an obvious feature, while a relatively few sampling points are deployed in a gently changing zone, thus obtaining better environmental scalar field reconstruction performance compared to a method of completely uniform deployment.
Step 102: construct a fitness function by combining the grid coverage rate and the scalar field reconstruction error.
The step of constructing a fitness function specifically includes:
A performance measurement criterion of water environment detection based on a maximum coverage rate and a minimum scalar field reconstruction error is established by the fitness function, so that the sampling point deployment can achieve maximum coverage of an environmental scalar field.
Step 103: optimize a location set of sampling points by a particle swarm optimization algorithm and a gravitational search algorithm according to the fitness function, to determine the best solution of the location set of the sampling points and a fitness value corresponding to the best solution.
The step of optimizing a location set of sampling points by a particle swarm optimization algorithm and a gravitational search algorithm, to determine the best solution of the location set of the sampling points and a fitness value corresponding to the best solution specifically includes:
and the velocity satisfies the formula
the particle represents a location set of a group of sampling points, i.e. =(Xi1, Xi2, . . . , XiD), where Xid=(xid, yid), i=1, 2, . . . , N and d=1, 2, . . . , D; Xid indicates the location of a sampling point d; {right arrow over (X)}i indicates the location of a particle i; Vid indicates the velocity of the sampling point d; {right arrow over (V)}i indicates the velocity of the particle i;
where wmax is a maximum value of the inertia weight; wmin is a minimum value of the inertia weight; ƒ indicates a fitness function value of the particle; ƒavg indicates an average fitness function value of all particles; ƒmin indicates a minimum fitness function value of all particles.
The location set of the sampling points is optimized by the particle swarm optimization algorithm and the gravitational search algorithm, to determine the best solution of the location set of the sampling points and a fitness value corresponding to the best solution, thereby realizing maximized coverage monitoring of the water area and better reconstructing the water quality distribution features of the entire water area to better reflect the water quality status of the entire water environment monitoring area.
Step 104: deploy a data sampling point in the to-be-detected water area according to the location of a sampling point corresponding to the best solution of the location set of the sampling points.
The data acquisition point deployment method proposed by the present application combines the grid coverage rate and the scalar field reconstruction error as a performance measurement standard for a water environment test, establishes a fitness function correlated to the measurement standard, and by optimizing, determines the best solution of the location set of the sampling points and a fitness value corresponding to the best solution, thereby realizing maximized coverage monitoring of the water area and better reconstructing the water quality distribution features of the entire water area to better reflect the water quality status of the entire water environment monitoring area.
As shown in
The grid coverage rate and scalar field reconstruction error determining unit 201 is configured for determining a grid coverage rate of a to-be-detected water area and a scalar field reconstruction error of an environment field of non-uniformly distributed water quality features.
The grid coverage rate and scalar field reconstruction error determining unit 201 includes a grid coverage rate determining subunit and a scalar field reconstruction error determining subunit.
The grid coverage rate determining subunit specifically includes:
where when Dis(Xd, p)≤RS, P (Xd, p)=1, indicating that the grid where the sampling point is located is covered; when Dis(Xd, p)>RS, P(Xd, p)=0, indicating that the grid where the sampling point is located is not covered; Dis(Xd, p) is an Euclidean distance from the sampling point d to a central point p=(x, y) of any of the grids: Dis(Xd, p)=√{square root over ((xd−x)2+(yd−y)2)}; RS is an effective sensing radius of a monitoring point;
The grid coverage rate determined by the Boolean perception model can reflect actual coverage more accurately, and can be directly used as a measurement index for a water environment detection coverage rate.
The scalar field reconstruction error determining subunit specifically includes:
For the environment field of non-uniformly distributed water quality features, more sampling locations are deployed in a zone with a larger change and an obvious feature, while a relatively few sampling points are deployed in a gently changing zone, thus obtaining better environmental scalar field reconstruction performance compared to a method of completely uniform deployment.
The fitness function construction unit 202 is configured for constructing a fitness function by combining the grid coverage rate and the scalar field reconstruction error. The fitness function construction unit 202 specifically includes:
A performance measurement criterion for water environment detection based on a maximum coverage rate and a minimum scalar field reconstruction error is established by the fitness function, so that the sampling point deployment can achieve maximum coverage of an environmental scalar field.
The optimizing unit 203 is configured for optimizing a location set of sampling points by a particle swarm optimization algorithm and a gravitational search algorithm according to the fitness function, to determine the best solution of the location set of the sampling points and a fitness value corresponding to the best solution. The optimizing unit 203 specifically includes:
and
the particle represents a location set of a group of sampling points, i.e. =(Xi1, Xi2, . . . , XiD), where Xid=(xid, yid), i=1, 2, . . . , N and d=1, 2, . . . , D; Xid indicates the location of a sampling point d; {right arrow over (X)}i indicates the location of a particle i; Vid indicates the velocity of the sampling point d; {right arrow over (V)}i indicates the velocity of the particle i;
where wmax is a maximum value of the inertia weight; wmin is a minimum value of the inertia weight; ƒ indicates a fitness function value of the particle; ƒavg indicates an average fitness function value of all particles; ƒmin indicates a minimum fitness function value of all particles.
The location set of the sampling points is optimized by the particle swarm optimization algorithm and the gravitational search algorithm, to determine the best solution of the location set of the sampling points and a fitness value corresponding to the best solution, thereby realizing maximized coverage monitoring of the water area and better reconstructing the water quality distribution features of the entire water area to better reflect the water quality status of the entire water environment monitoring area.
The deployment unit 204 is configured for deploying a data sampling point in the to-be-detected water area according to the location of a sampling point corresponding to the best solution of the location set of the sampling points.
The data acquisition point deployment system proposed by the present application combines the grid coverage rate determining subunit and the scalar field reconstruction error determining subunit to form a performance measurement standard for a water environment test, establishes a fitness function correlated to the measurement standard, and by the optimizing unit, determines the best solution of the location set of the sampling points and a fitness value corresponding to the best solution, thereby realizing maximized coverage monitoring of the water area and better reconstructing the water quality distribution features of the entire water area to better reflect the water quality status of the entire water environment monitoring area.
For a system disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and reference can be made to the method description.
Several examples are used for illustration of the principles and implementation methods of the present invention. The description of the embodiments is used to help illustrate the method and its core principles of the present invention. In addition, those skilled in the art can make various modifications in terms of specific embodiments and scope of application in accordance with the teachings of the present invention. In conclusion, the content of this specification shall not be construed as a limitation to the present invention.
| Number | Date | Country | Kind |
|---|---|---|---|
| 201811310492.9 | Nov 2018 | CN | national |