Method and device for determining environmental data
By calculating the spatial fold distance between the target detection point and the adjacent detection points, and using the elevation grid data structure and satellite remote sensing data, the problem of inaccurate pollution data caused by geographical barriers is solved, and the effectiveness of environmental pollution detection is improved.
Patent Information
- Application Number
- CN202111149019.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2041-09-29
AI Technical Summary
In the existing technology, due to geographical barriers, it is impossible to accurately obtain precise pollution data based on adjacent locations or regions, which reduces the effectiveness of environmental pollution detection.
By calculating the spatial fold distance between the target detection point and the adjacent detection points, the shortest spatial feature attribute distance is determined using the elevation grid data structure and satellite remote sensing data, and the environmental data of the adjacent detection points that meet the preset threshold are selected as the target environmental data of the target detection point for pollution detection.
It improves the problem of inaccurate pollution data caused by geographical barriers and improves the effectiveness of environmental pollution detection.
Smart Images

Figure CN114036999B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method and device for determining environmental data. Background Art
[0002] In the detection of atmospheric environment and air pollution, the concentration distribution of pollutants in the atmosphere has a high correlation in space, and the atmospheric pollution characteristics between adjacent locations are similar. Therefore, when analyzing environmental pollution data of target locations or regions, pollution data of adjacent locations or regions are often used as a basis.
[0003] At present, the existing monitoring data of target locations or regions obtained as pollution data for atmospheric environment and air pollution based on spatial distance similarity is only based on direct comparison of spatial straight-line distance. However, since the geographical environment includes peaks, basins, mountain ranges, etc., the obstruction of the geographical environment makes the spatial straight-line distance unsuitable for similarity association conversion. The pollution data will undergo significant changes due to the obstruction of the geographical environment. Therefore, it is impossible to accurately obtain accurate pollution data based on adjacent locations or regions, thereby reducing the effectiveness of environmental pollution detection. Summary of the Invention
[0004] In view of this, the present application provides a method and device for determining environmental data, the main purpose of which is to improve the current technical problem that due to geographical barriers, accurate pollution data cannot be accurately obtained based on adjacent locations or regions, thereby reducing the effectiveness of environmental pollution detection.
[0005] According to one aspect of the present application, a method for determining environmental data is provided, the method comprising:
[0006] Obtaining first position information of a target detection point and second position information of an adjacent detection point;
[0007] Determine a spatial fold distance between the first position information and the second position information, where the spatial fold distance is used to represent a shortest distance with spatial characteristic attributes between the first position information and the second position information determined based on different elevation distances and different surface distances;
[0008] If the spatial wrinkle distance meets the preset spatial distance threshold, the environmental data corresponding to the second position information is used as the target environmental data of the target detection point to perform environmental pollution detection on the target environmental data.
[0009] Preferably, determining the spatial wrinkle distance between the first position information and the second position information includes:
[0010] establishing an elevation grid data structure by combining the first position information and the second position information;
[0011] Calculating a surface distance and an elevation distance between the first location information and the second location information based on the altitude value and the maximum elevation difference in the elevation grid data structure;
[0012] A spatial fold distance matching the surface distance and the elevation distance is calculated based on a spatial fold distance function.
[0013] Preferably, the calculating the surface distance and the elevation distance between the first position information and the second position information based on the elevation grid data structure includes:
[0014] Determine a starting grid and an ending grid from the elevation grid data structure, and search for all grid paths between the starting grid and the ending grid;
[0015] Calculating the path distances of all the grid paths based on the grid width, grid length, and altitude value of the elevation grid data structure, and calculating the surface distance based on the sum of the path distances;
[0016] The elevation distance of all the grid paths is calculated by combining the grid width, grid length, and maximum elevation difference of the elevation grid data structure.
[0017] Preferably, the establishing of the elevation grid data structure by combining the first position information and the second position information includes:
[0018] Acquire satellite remote sensing elevation data corresponding to the first position information and the second position information respectively;
[0019] Determine a grid width and a grid length according to a spatial resolution and a distance between arc surfaces corresponding to the first position information and the second position information;
[0020] The elevation grid data structure is constructed according to the grid width and grid length, and the satellite remote sensing elevation data is converted into altitude elevation values and maximum elevation difference values and filled into the elevation grid data structure to calculate the surface distance and elevation distance based on the elevation grid data structure.
[0021] Preferably, the calculating of the spatial fold distance matching the surface distance and the elevation distance based on the spatial fold distance function includes:
[0022] The maximum elevation distance among the elevation distances is selected, and the spatial fold distance that matches the surface distance and the maximum elevation distance is calculated in combination with the spatial fold distance function. The spatial fold distance function is, wherein, is the surface distance, is the maximum elevation distance, is the surface parameter, and is the elevation parameter.
[0023] Preferably, after determining the spatial wrinkle distance between the first position information and the second position information, the method further includes:
[0024] If the spatial wrinkle distance does not meet the preset spatial distance threshold, distance warning information of the adjacent detection point is generated to indicate that the adjacent detection point should be replaced.
[0025] Preferably, the using the environmental data corresponding to the second position information as the target environmental data of the target detection point includes:
[0026] Obtain target environment data corresponding to a preset number of target detection points;
[0027] If the target environmental data is greater than or equal to a reasonable pollution threshold, the target environmental data is marked as a polluted state. The reasonable pollution threshold is obtained by performing expected detection processing on the target environmental data based on an environmental detection model that has completed model training.
[0028] According to another aspect of the present application, a device for determining environmental data is provided, comprising:
[0029] an acquiring unit, configured to acquire first position information of a target detection point and second position information of an adjacent detection point;
[0030] a determining unit, configured to determine a spatial fold distance between the first position information and the second position information, wherein the spatial fold distance is used to represent a shortest distance with spatial characteristic attributes between the first position information and the second position information determined based on different elevation distances and different surface distances;
[0031] A detection unit is used to use the environmental data corresponding to the second position information as the target environmental data of the target detection point if the spatial wrinkle distance meets the preset spatial distance threshold, so as to perform environmental pollution detection on the target environmental data.
[0032] Preferably, the determining unit includes:
[0033] An establishing module, configured to establish an elevation grid data structure by combining the first position information and the second position information;
[0034] a calculation module, configured to calculate a surface distance and an elevation distance between the first location information and the second location information based on the altitude value and the maximum elevation difference in the elevation grid data structure;
[0035] The calculation module is further used to calculate the spatial fold distance that matches the surface distance and the elevation distance based on the spatial fold distance function.
[0036] Preferably, the calculation module includes:
[0037] A search submodule, configured to determine a starting grid and an ending grid from the elevation grid data structure, and to search for all grid paths between the starting grid and the ending grid;
[0038] a calculation submodule, configured to calculate the path distances of all the grid paths based on the grid width, grid length, and altitude value of the elevation grid data structure, and calculate the surface distance based on the sum of the path distances;
[0039] The calculation submodule is further used to calculate the elevation distance of all the grid paths by combining the grid width, grid length, and maximum elevation difference of the elevation grid data structure.
[0040] Preferably, the establishment module includes:
[0041] An acquisition submodule, configured to acquire satellite remote sensing elevation data corresponding to the first position information and the second position information respectively;
[0042] a determination submodule, configured to determine a grid width and a grid length according to a spatial resolution and a distance between arc surfaces corresponding to the first position information and the second position information;
[0043] The conversion submodule is used to construct the elevation grid data structure according to the grid width and grid length, and convert the satellite remote sensing elevation data into altitude elevation values and maximum elevation difference values and fill them into the elevation grid data structure, so as to calculate the surface distance and elevation distance based on the elevation grid data structure.
[0044] Preferably, the calculation module is further used for:
[0045] The maximum elevation distance among the elevation distances is selected, and the spatial fold distance that matches the surface distance and the maximum elevation distance is calculated in combination with the spatial fold distance function. The spatial fold distance function is, wherein, is the surface distance, is the maximum elevation distance, is the surface parameter, and is the elevation parameter.
[0046] Preferably, after the determining unit, the device further includes:
[0047] An alarm unit is configured to generate distance alarm information of the adjacent detection point if the spatial wrinkle distance does not meet a preset spatial distance threshold, so as to indicate that the adjacent detection point should be replaced.
[0048] Preferably, the detection unit includes:
[0049] An acquisition module is used to obtain target environment data corresponding to a preset number of target detection points;
[0050] A marking module is used to mark the target environmental data as being in a polluted state if the target environmental data is greater than or equal to a reasonable pollution threshold, where the reasonable pollution threshold is obtained by performing expected detection processing on the target environmental data based on an environmental detection model for which model training has been completed.
[0051] According to another aspect of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned method for determining environmental data.
[0052] According to another aspect of the present invention, there is provided a terminal, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;
[0053] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned method for determining environmental data.
[0054] By means of the above technical solution, the technical solution provided by the embodiment of the present application has at least the following advantages:
[0055] This application provides a method and device for determining environmental data. Compared to the prior art, the embodiments of this application utilize the spatial fold distance between two points to select adjacent detection points that meet a preset spatial distance threshold. The environmental data of these adjacent detection points is then used to train a reasonable environmental pollution threshold. By comparing the target environmental data corresponding to multiple target detection points with the reasonable pollution threshold, the target environmental data is judged to be contaminated. This improves the current problem of being unable to accurately obtain accurate pollution data based on adjacent locations or regions due to geographical barriers, thereby reducing the effectiveness of environmental pollution detection.
[0056] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0058] Figure 1 A flow chart of a method for determining environmental data provided by an embodiment of the present invention is shown;
[0059] Figure 2 A flow chart of another method for determining environmental data provided by an embodiment of the present invention is shown;
[0060] Figure 3 A diagram of satellite remote sensing geographic location information provided by an embodiment of the present invention is shown;
[0061] Figure 4 A schematic diagram of the elevation data numbering rule provided by an embodiment of the present invention is shown;
[0062] Figure 5 A schematic diagram of a gridded elevation dataset provided by an embodiment of the present invention is shown;
[0063] Figure 6 A schematic diagram of a grid path provided by an embodiment of the present invention is shown;
[0064] Figure 7 A schematic diagram illustrating calculation of the adjacent grid distance l1 provided by an embodiment of the present invention is shown;
[0065] Figure 8 FIG2 shows a schematic diagram illustrating the calculation of the maximum elevation distance L2 provided by an embodiment of the present invention;
[0066] Figure 9 A schematic structural diagram of a device for determining environmental data provided by an embodiment of the present invention is shown;
[0067] Figure 10 A schematic structural diagram of another device for determining environmental data provided by an embodiment of the present invention is shown;
[0068] Figure 11 A schematic structural diagram of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0069] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0070] The present application embodiment provides a method for determining environmental data, such as Figure 1 As shown, the method includes:
[0071] Step 101: Acquire first position information of a target detection point and second position information of adjacent detection points.
[0072] In the embodiment of the present application, the target detection point is the target location where environmental pollution data analysis is required, and the adjacent detection point is the detection point that is closer to the target detection point. Among them, the adjacent monitoring point can first select the detection point that is closer to the target detection point in a straight line as the pending adjacent detection point. Further judgment is required to determine whether the adjacent detection point can be used as a reference point for the target detection point. Generally, the location information of the detection point is obtained, which may include but is not limited to: longitude information, latitude information, elevation information, etc. For example, the target detection point A is located at 41° north latitude, 123° east longitude, and has an absolute elevation of 30 meters; the pending adjacent detection point B is located at 43° north latitude, 125° east longitude, and has an absolute elevation of 65 meters. A and B are geographically adjacent. At this time, it is necessary to further obtain the specific location information from A to B and perform analysis to determine whether A and B are also adjacent in the dimension of spatial distance.
[0073] It should be noted that in the detection of atmospheric environment and pollution, the concentration distribution of pollutants in the atmosphere has a high correlation in space, and the atmospheric pollution characteristics between adjacent locations are similar. Usually, when analyzing environmental pollution data of target locations or regions, pollution data of adjacent locations or regions are often used as a basis.
[0074] Step 102: Determine the spatial wrinkle distance between the first position information and the second position information.
[0075] In the embodiment of the present application, the spatial fold distance is used to represent the shortest distance with spatial characteristic attributes between the first location information and the second location information, determined based on different elevation distances and different surface distances. Based on step 101, by obtaining the location information of the target detection station A and the undetermined adjacent detection station B, the geographical location and elevation information between the two locations can be obtained. After calculation, the elevation distance and surface distance of all possible paths from A to B can be obtained. The elevation distance and surface distance obtained by different paths are different. Among them, the shortest distance is selected as the spatial fold distance between the two locations, and this path is the shortest fold path.
[0076] It is understandable that, since the pollution characteristics of two places that are close in space have similarities, in atmospheric environment and pollution detection based on this characteristic, it is usually only based on direct comparison of spatial straight-line distance. The disadvantage of this is that when there are peaks, basins, mountain ranges, etc. between the two places, due to the obstruction of the geographical environment, the pollution data of the two places with a close straight-line distance will change greatly, so that this similarity is no longer applicable. Therefore, the embodiment of the present application defines a "spatial fold distance" between two points in space, which takes into account geographical environmental factors such as the arc distance between the two points and the change in surface elevation. Compared with the ordinary surface straight-line distance, it improves the problem of inapplicability of similarity caused by the obstruction of the geographical environment, and can more accurately associate the characteristic correlation of the two points in the field of atmospheric environment and pollution detection.
[0077] Step 103: If the spatial wrinkle distance meets the preset spatial distance threshold, the environmental data corresponding to the second position information is used as the target environmental data of the target detection point.
[0078] Furthermore, environmental pollution detection is performed on the target environmental data.
[0079] In an embodiment of the present application, the spatial fold distance between two points is used to select adjacent detection points that meet a preset spatial distance threshold, and the environmental data of the adjacent detection point is used as the target environmental data of the target detection point to perform environmental pollution detection on the target environmental data, thereby improving the current problem that due to the obstruction of the geographical environment, it is impossible to accurately obtain accurate pollution data based on adjacent locations or regions, thereby reducing the effectiveness of environmental pollution detection. As mentioned above, first, the detection point that is closer to the surface of the target detection point in a straight line is used as a pending detection point. By determining the spatial fold distance between the two places and comparing it with the preset threshold, if it meets the requirements, it means that the spatial distance between the pending detection point and the target detection point is also closer, and it can be used as an adjacent detection point. The atmospheric environments of the two places are similar. The environmental data of the adjacent detection point can be used as the target environmental data of the target detection point, and further environmental pollution detection is performed on the target environmental data.
[0080] It should be noted that the spatial distance threshold can be pre-set based on the actual situation of the project. For example, based on previous testing experience, in the mountainous Qinling Mountains, when the spatial distance between two locations is less than 50 meters, the concentration of air pollutants is similar. In this case, the threshold can be set to 50 meters. In the Northeast Plains, due to the relatively flat terrain and the lack of mountain barriers between two locations, the concentration of air pollutants is similar even if the spatial distance between the two locations is 100 meters. In this case, the threshold can be appropriately increased based on the actual situation.
[0081] An embodiment of the present application provides a method for determining environmental data. Compared with the prior art, the embodiment of the present application utilizes the spatial fold distance between two points to select adjacent detection points that meet a preset spatial distance threshold. Since the atmospheric environments of two adjacent places have similar phases, the environmental data of the adjacent detection points can be used as the target environmental data of the target detection points, and environmental pollution detection can be performed on them, thereby improving the current problem of being unable to accurately obtain accurate pollution data based on adjacent locations or regions due to geographical barriers, thereby reducing the effectiveness of environmental pollution detection.
[0082] The embodiment of the present invention provides another method for determining environmental data, such as Figure 2 As shown, the method includes:
[0083] Step 201: Acquire first position information of a target detection point and second position information of adjacent detection points.
[0084] Step 202: Create an elevation grid data structure by combining the first position information and the second position information.
[0085] In the embodiment of the present application, the target detection point and the adjacent detection points to be determined that are close in straight line distance are first determined. Preferably, the location information of the target detection point and the adjacent detection points to be determined can be obtained by satellite remote sensing technology, which may include the longitude and latitude information and elevation information between the target detection point and the adjacent detection point to be determined. For example, the longitude and latitude information and elevation information between the target detection point and the adjacent detection point to be determined obtained by satellite remote sensing technology, such as Figure 3 As shown. Based on the acquired satellite remote sensing data, preferably, the width and length of a single grid can be determined according to the spatial resolution of the satellite remote sensing data and the arc distance between the two detection points. Among them, the spatial resolution specifically refers to the minimum distance between two adjacent features that can be identified on the remote sensing image. The arc distance specifically refers to the distance of the arc formed by the high mountains when there are high mountains between the two places. Optionally, the width and length of a single grid can also be determined based on project requirements. Specifically, it depends on the geographical environment of the project target location. For example, a plain with a relatively flat terrain is rarely blocked by mountains and has a higher similarity in atmospheric environment. A lower resolution can be selected. A hilly area with more mountains is easily blocked by mountains, resulting in differences in atmospheric environment. A higher resolution can be selected to divide the ground more finely. This embodiment of the present application is not specifically limited here.
[0086] It is understood that different devices have different spatial resolutions when acquiring satellite remote sensing data. When acquiring the above-mentioned two-location location information, different spatial resolutions can be selected as needed, and this embodiment of the present application does not specifically limit this. Preferably, the size of the grid can be equal to the spatial resolution of the satellite remote sensing data.
[0087] Based on the width and length of a single grid, a grid can be created between the target detection station and the adjacent detection station to be determined. Satellite remote sensing data is then imported into the grid to create an elevation grid data structure. The data in each grid of the elevation grid data structure represents the absolute elevation of that grid, allowing the difference between the maximum elevation and the elevation of each location to be obtained.
[0088] It should be noted that the use of this elevation grid data structure can, on the one hand, clearly display the elevation situation between two places, and on the other hand, clearly find the entire path from the starting point to the end point, thereby obtaining the surface path distance, and combining it with the maximum elevation distance to obtain the shortest spatial fold distance.
[0089] Furthermore, the surface distance and elevation distance between the two locations are obtained. Accordingly, step 202 may specifically include: obtaining satellite remote sensing elevation data corresponding to the first location information and the second location information respectively; determining a grid width and a grid length according to the spatial resolution and the arc surface distance corresponding to the first location information and the second location information; constructing an elevation grid data structure according to the grid width and the grid length, and converting the satellite remote sensing elevation data into altitude values and maximum elevation difference values and filling them into the elevation grid data structure, so as to calculate the surface distance and elevation distance based on the elevation grid data structure.
[0090] In specific application scenarios, the location information between two places is obtained through satellite remote sensing technology, such as Figure 4 As shown, first determine that points A and B are the target detection point and the adjacent detection point to be determined, respectively. A dataset grid is established with points A and B as diagonals. Point A is located in the grid at the lower left corner of the dataset (which can be numbered 11), and point B is located in the grid at the upper right corner of the dataset (which can be numbered xy). The grid length ly and grid width lx can be obtained, and the length and width of each grid are determined based on the spatial resolution of the satellite remote sensing data and the arc distance between points A and B. Further, the satellite remote sensing data is converted into altitude values and filled into the grid to construct the elevation grid data structure, as shown in the figure. Figure 5 shown.
[0091] Step 203: Calculate the surface distance and elevation distance between the first position information and the second position information based on the altitude value and the maximum elevation difference in the elevation grid data structure.
[0092] To illustrate the implementation process of step 203, step 203 may further specifically include: determining the starting grid and the end grid from the elevation grid data structure, and finding all grid paths between the starting grid and the end grid; calculating the path distance of all grid paths based on the grid width, grid length, and altitude value of the elevation grid data structure, and calculating the surface distance based on the sum of the path distances; calculating the elevation distance of all grid paths based on the grid width, grid length, and maximum elevation difference of the elevation grid data structure.
[0093] In the embodiment of the present application, first, the starting grid and the ending grid are determined in the elevation grid data structure mentioned above, as well as all possible grid paths from the starting point to the ending point. For example, Figure 6 As shown in the figure, the lower left corner is the starting point and the upper right corner is the end point. Starting from the starting grid, move up or right to the next grid until reaching the end grid position. There may be multiple paths, for example, starting from the starting point, right - up - right - right - up, or up - up - right - right - right, etc.
[0094] Secondly, the length and width of the grid of the elevation grid data structure mentioned above, as well as the altitude value, are used to obtain the distance of all possible paths, and the sum is used to obtain the surface distance of the path. Figure 7 As shown, for each path, the distance l1 between every two adjacent grids between the paths is calculated as follows:
[0095] As mentioned above, there can be multiple paths from the starting grid to the ending grid.
[0096] When you move to the next grid to the right, the adjacent grids are connected horizontally.
[0097] When moving up to the next grid, the adjacent grids are connected vertically.
[0098] Among them, h (m,n) is the absolute elevation of grid cell mn, i.e., the elevation value converted from satellite remote sensing data, lx is the grid cell width, and ly is the grid cell length. The path surface distance L1 is the sum of the distances l1 of all adjacent grid cells traversed from the starting grid to the ending grid.
[0099] Again, the maximum elevation distance of all possible paths is obtained by using the length and width of the grid of the elevation grid data structure and the maximum elevation difference. Figure 8 As shown, for each path, the maximum elevation distance L2 is calculated as follows:
[0100]
[0101] Among them, hmax is the maximum altitude in the path, h (1,1) is the absolute altitude of the starting grid, h (x,y) is the absolute altitude of the end grid, lx is the grid width, and ly is the grid length.
[0102] It should be noted that there can be many paths from the starting point to the end point, and the surface distance L1 corresponding to each path is different, so the obtained spatial fold distance is also different.
[0103] Step 204: Calculate the spatial fold distance that matches the surface distance and the elevation distance based on the spatial fold distance function.
[0104] In the embodiment of the present application, preferably, the maximum elevation distance in the elevation distance is selected, and the spatial fold distance matching the surface distance and the maximum elevation distance is calculated in combination with the spatial fold distance function. The spatial fold distance function is L=a×L1+b×L2, wherein L1 is the surface distance, L2 is the maximum elevation distance, a is the surface parameter, and b is the elevation parameter.
[0105] It should be noted that, illustratively, parameters a and b can be weights derived based on a certain actual project. For example, the specific task of Project B is that there are a series of air quality monitoring stations across the country, and it is desired to determine whether the monitoring data of a monitoring station A is reliable based on the monitoring data of a monitoring station near the monitoring station A. According to the technical solution of this embodiment, the spatial distance between each two monitoring stations is calculated, and then it is determined which monitoring stations are actually the monitoring stations adjacent to A. Based on the verification data in the project, the reliable monitoring data of the monitoring station A is screened out. And these reliable data are used to continuously adjust the parameters a and b, and finally the optimal parameters are obtained. Among them, in order to further illustrate and define, since the specific geographical location of each project is different, when the target site of the project is in a hilly area, the proportion of the maximum elevation distance in the formula can be appropriately increased, that is, the elevation parameter b, which is not specifically limited here.
[0106] Step 205a: If the spatial wrinkle distance meets the preset spatial distance threshold, the environmental data corresponding to the second position information is used as the target environmental data of the target detection point.
[0107] Furthermore, environmental pollution detection is performed on the target environmental data.
[0108] In an embodiment of the present invention, optionally, a spatial distance threshold can be pre-set according to the specific project situation. When the spatial fold distance between the target detection point and the adjacent detection point to be determined meets the threshold, it means that the two points are indeed adjacent points that meet the requirements in terms of spatial distance and have similar atmospheric environments. Therefore, the environmental data of the adjacent detection point can be used as the target environmental data of the target monitoring point, and the target environmental data can be further subjected to pollution detection.
[0109] It is understandable that based on the specific geographical location of each project, the spatial distance threshold can be determined according to the specific situation. For example, in hilly areas, since the atmospheric environment is greatly affected by mountains, the spatial distance threshold can be appropriately narrowed so that the spatial distance between the selected adjacent detection points and the target detection points is closer and the atmospheric environment is more similar.
[0110] In step 205b, which is parallel to step 205a, if the spatial wrinkle distance does not meet the preset spatial distance threshold, distance warning information of the adjacent detection points is generated.
[0111] Furthermore, an instruction is given to replace the adjacent detection points.
[0112] In this embodiment of the present application, if the spatial fold distance between the target detection point and the pending adjacent detection point does not meet a preset spatial distance threshold, it indicates that the two points are not adjacent points that meet the requirements. For example, the two points may be close in straight-line distance, but there is an obstruction such as a mountain range or basin between them, resulting in the two points being spatially disjointed and having dissimilar atmospheric environments. Optionally, a distance warning message for the adjacent detection point can be generated, and an instruction to replace the pending adjacent detection point can be further provided.
[0113] It is understandable that when the spatial fold distance does not meet the threshold set according to the specific project, it means that the atmospheric environment of the pending adjacent detection point and the target detection point is not necessarily similar. Therefore, the data of the pending adjacent detection station is not instructive. A closer adjacent detection station can be selected to recalculate the spatial fold distance and determine whether it meets the standard.
[0114] Step 206a: Acquire target environment data corresponding to target detection points that meet a preset number.
[0115] Step 207a: If the target environmental data is greater than or equal to the reasonable pollution threshold, mark the target environmental data as being in a polluted state.
[0116] In the embodiments of the present application, preferably, the reasonable pollution threshold is obtained by performing expected detection processing on the target environmental data based on the environmental detection model that has completed model training. Environmental data from multiple adjacent detection stations are pre-selected, and a machine learning method is used to establish and train the environmental detection model to obtain a reasonable environmental pollution threshold. The target environmental data of the target detection point is compared with the threshold to determine whether it is polluted.
[0117] It can be understood that by selecting multiple adjacent detection stations through the above method, using the monitoring data of the adjacent detection stations as input values, an initial environmental detection model is established. After training, the environmental detection model and the reasonable environmental pollution threshold are obtained. Then, the target environmental data is compared with the threshold to know whether the data is reliable.
[0118] An embodiment of the present application provides another method for determining environmental data. Compared with the prior art, the embodiment of the present application uses the spatial fold distance between two points to select adjacent detection points that meet a preset spatial distance threshold, and uses the environmental data of the adjacent detection points to train a reasonable environmental pollution threshold. By comparing the target environmental data corresponding to multiple target detection points with the reasonable pollution threshold, it is determined whether the target environmental data is polluted, thereby improving the current problem of being unable to accurately obtain accurate pollution data based on adjacent locations or regions due to geographical barriers, thereby reducing the effectiveness of environmental pollution detection.
[0119] Furthermore, as a response to the above Figure 1 In order to realize the method shown in FIG, an embodiment of the present invention provides a device for determining environmental data, such as Figure 9 As shown, the device includes: an acquisition unit 31, a determination unit 32, and a detection unit 33.
[0120] The acquiring unit 31 may be configured to acquire first position information of a target detection point and second position information of an adjacent detection point;
[0121] The determining unit 32 may be configured to determine a spatial fold distance between the first location information and the second location information, where the spatial fold distance represents a shortest distance with spatial characteristic attributes between the first location information and the second location information, determined based on different elevation distances and different surface distances.
[0122] The detection unit 33 can be used to use the environmental data corresponding to the second position information as the target environmental data of the target detection point if the spatial wrinkle distance meets the preset spatial distance threshold, so as to perform environmental pollution detection on the target environmental data.
[0123] It should be noted that for other corresponding descriptions of the functional units involved in the device for determining environmental data provided in this embodiment, please refer to Figure 1The corresponding description in will not be repeated here.
[0124] Furthermore, as a response to the above Figure 2 In order to realize the method shown in FIG, the embodiment of the present invention provides another device for determining environmental data, such as Figure 10 As shown, the device includes:
[0125] In a specific application scenario, the determining unit further includes:
[0126] The establishing module 321 may be used to establish an elevation grid data structure by combining the first position information and the second position information;
[0127] A calculation module 322 may be configured to calculate a surface distance and an elevation distance between the first location information and the second location information based on the altitude value and the maximum elevation difference in the elevation grid data structure;
[0128] The calculation module 322 can also be used to calculate the spatial fold distance that matches the surface distance and the elevation distance based on the spatial fold distance function.
[0129] In a specific application scenario, further, the calculation module 322 includes:
[0130] The search submodule 3221 can be used to determine the starting grid and the ending grid from the elevation grid data structure, and search for all grid paths between the starting grid and the ending grid;
[0131] The calculation submodule 3222 may be configured to calculate the path distances of all the grid paths based on the grid width, grid length, and altitude value of the elevation grid data structure, and calculate the surface distance based on the sum of the path distances;
[0132] The calculation submodule 3222 can also be used to calculate the elevation distance of all grid paths by combining the grid width, grid length, and maximum elevation difference of the elevation grid data structure.
[0133] In a specific application scenario, the establishment module 321 includes:
[0134] The acquisition submodule 3211 may be used to acquire satellite remote sensing elevation data corresponding to the first location information and the second location information respectively;
[0135] The determination submodule 3212 may be configured to determine a grid width and a grid length according to a spatial resolution and a distance between arc surfaces corresponding to the first position information and the second position information;
[0136] The conversion submodule 3213 can be used to construct the elevation grid data structure according to the grid width and grid length, and convert the satellite remote sensing elevation data into altitude elevation values and maximum elevation difference values and fill them into the elevation grid data structure to calculate the surface distance and elevation distance based on the elevation grid data structure.
[0137] In a specific application scenario, the calculation module 322 can also be used to:
[0138] The maximum elevation distance among the elevation distances is selected, and the spatial fold distance that matches the surface distance and the maximum elevation distance is calculated in combination with the spatial fold distance function. The spatial fold distance function is L=a×L1+b×L2, wherein L1 is the surface distance, L2 is the maximum elevation distance, a is the surface parameter, and b is the elevation parameter.
[0139] In a specific application scenario, preferably, after the determining unit 32, the device further includes:
[0140] The alarm unit 34 may be configured to generate distance alarm information of the adjacent detection point if the spatial wrinkle distance does not meet a preset spatial distance threshold, so as to indicate that the adjacent detection point should be replaced.
[0141] In a specific application scenario, further, the detection unit 33 includes:
[0142] The acquisition module 331 may be used to acquire target environment data corresponding to a preset number of target detection points;
[0143] The marking module 332 can be used to mark the target environmental data as a polluted state if the target environmental data is greater than or equal to a reasonable pollution threshold. The reasonable pollution threshold is obtained by performing expected detection processing on the target environmental data based on the environmental detection model that has completed model training.
[0144] It should be noted that for other corresponding descriptions of the functional units involved in the apparatus for determining another environmental data provided in this embodiment, please refer to Figure 2 The corresponding description in will not be repeated here.
[0145] An embodiment of the present application provides a device for determining environmental data. Compared with the prior art, the embodiment of the present application uses the spatial fold distance between two points to select adjacent detection points that meet a preset spatial distance threshold, and uses the environmental data of the adjacent detection points to train a reasonable environmental pollution threshold. By comparing the target environmental data corresponding to multiple target detection points with the reasonable pollution threshold, it is determined whether the target environmental data is polluted, thereby improving the current problem of being unable to accurately obtain accurate pollution data based on adjacent locations or regions due to geographical barriers, thereby reducing the effectiveness of environmental pollution detection.
[0146] According to one embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the data query method in any of the above method embodiments.
[0147] Figure 11 A schematic structural diagram of a terminal provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the terminal.
[0148] like Figure 11 As shown, the terminal may include: a processor (processor) 402 , a communication interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .
[0149] The processor 402 , the communication interface 404 , and the memory 406 communicate with each other via a communication bus 408 .
[0150] The communication interface 404 is used to communicate with other devices such as clients or other servers.
[0151] The processor 402 is configured to execute the program 410 , and specifically may execute the relevant steps in the embodiment of the method for determining environmental data.
[0152] Specifically, the program 410 may include program codes, which include computer operation instructions.
[0153] Processor 402 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs, or processors of different types, such as one or more CPUs and one or more ASICs.
[0154] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0155] The program 410 may be specifically configured to cause the processor 402 to perform the following operations:
[0156] Obtain the first position information of the target detection point and the second position information of the adjacent detection point; determine the spatial fold distance between the first position information and the second position information, wherein the spatial fold distance is used to characterize the shortest distance with spatial characteristic attributes between the first position information and the second position information based on different elevation distances and different surface distances; if the spatial fold distance meets the preset spatial distance threshold, the environmental data corresponding to the second position information is used as the target environmental data of the target detection point to perform environmental pollution detection on the target environmental data.
[0157] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the technical solution of this embodiment, compared with the current existing technology, the embodiment of the present application uses the spatial fold distance between two points to select adjacent detection points that meet the preset spatial distance threshold, and uses the environmental data of the adjacent detection points to train and obtain a reasonable environmental pollution threshold. By comparing the target environmental data corresponding to multiple target detection points with the reasonable pollution threshold, it is determined whether the target environmental data is polluted, thereby improving the current problem of being unable to accurately obtain accurate pollution data based on adjacent locations or regions due to geographical barriers, thereby reducing the effectiveness of environmental pollution detection.
[0158] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, centralized on a single computing device, or distributed across a network of multiple computing devices. Alternatively, they can be implemented using program code executable by a computing device, which can then be stored in a storage device and executed by the computing device. In some cases, the steps shown or described can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0159] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A method for determining environmental data, characterized in that: include: Obtaining first position information of a target detection point and second position information of an adjacent detection point; Determine a spatial fold distance between the first position information and the second position information, where the spatial fold distance is used to represent a shortest distance with spatial characteristic attributes between the first position information and the second position information determined based on different elevation distances and different surface distances; If the spatial wrinkle distance meets the preset spatial distance threshold, the environmental data corresponding to the second position information is used as the target environmental data of the target detection point to perform environmental pollution detection on the target environmental data; Determining the spatial wrinkle distance between the first position information and the second position information includes: establishing an elevation grid data structure by combining the first position information and the second position information; Calculating a surface distance and an elevation distance between the first location information and the second location information based on the altitude value and the maximum elevation difference in the elevation grid data structure; A spatial fold distance matching the surface distance and the elevation distance is calculated based on a spatial fold distance function.
2. The method according to claim 1, characterized in that The calculating the surface distance and the elevation distance between the first position information and the second position information based on the elevation grid data structure includes: Determine a starting grid and an ending grid from the elevation grid data structure, and search for all grid paths between the starting grid and the ending grid; Calculating the path distances of all the grid paths based on the grid width, grid length, and altitude value of the elevation grid data structure, and calculating the surface distance based on the sum of the path distances; The elevation distance of all the grid paths is calculated by combining the grid width, grid length, and maximum elevation difference of the elevation grid data structure.
3. The method according to claim 1, characterized in that The establishing of the elevation grid data structure by combining the first position information and the second position information includes: Acquire satellite remote sensing elevation data corresponding to the first position information and the second position information respectively; Determine a grid width and a grid length according to a spatial resolution and a distance between arc surfaces corresponding to the first position information and the second position information; The elevation grid data structure is constructed according to the grid width and grid length, and the satellite remote sensing elevation data is converted into altitude elevation values and maximum elevation difference values and filled into the elevation grid data structure to calculate the surface distance and elevation distance based on the elevation grid data structure.
4. The method according to claim 1, wherein The calculating of the spatial fold distance matching the surface distance and the elevation distance based on the spatial fold distance function includes: The maximum elevation distance among the elevation distances is selected, and the spatial fold distance that matches the surface distance and the maximum elevation distance is calculated in combination with the spatial fold distance function. The spatial fold distance function is L=a×L1+b×L2, wherein L1 is the surface distance, L2 is the maximum elevation distance, a is the surface parameter, and b is the elevation parameter.
5. The method according to claim 1, wherein After determining the spatial wrinkle distance between the first position information and the second position information, the method further includes: If the spatial wrinkle distance does not meet the preset spatial distance threshold, distance warning information of the adjacent detection point is generated to indicate that the adjacent detection point should be replaced.
6. The method according to any one of claims 1 to 5, characterized in that The using the environmental data corresponding to the second position information as the target environmental data of the target detection point includes: Obtain target environment data corresponding to a preset number of target detection points; If the target environmental data is greater than or equal to a reasonable pollution threshold, the target environmental data is marked as a polluted state. The reasonable pollution threshold is obtained by performing expected detection processing on the target environmental data based on an environmental detection model that has completed model training.
7. A device for determining environmental data, characterized in that: include: an acquiring unit, configured to acquire first position information of a target detection point and second position information of an adjacent detection point; a determining unit, configured to determine a spatial fold distance between the first position information and the second position information, wherein the spatial fold distance is used to represent a shortest distance with spatial characteristic attributes between the first position information and the second position information determined based on different elevation distances and different surface distances; a detection unit, configured to use the environmental data corresponding to the second position information as target environmental data of the target detection point if the spatial wrinkle distance meets a preset spatial distance threshold, so as to perform environmental pollution detection on the target environmental data; The determining unit includes: An establishing module, configured to establish an elevation grid data structure by combining the first position information and the second position information; a calculation module, configured to calculate a surface distance and an elevation distance between the first position information and the second position information based on the altitude value and the maximum elevation difference in the elevation grid data structure; The calculation module is further used to calculate the spatial fold distance that matches the surface distance and the elevation distance based on the spatial fold distance function.
8. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute an operation corresponding to the method for determining environmental data according to any one of claims 1 to 6.
9. A terminal comprising: A processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the method for determining environmental data according to any one of claims 1 to 6.
Citation Information
Patent Citations
Pseudo-three-dimensional wireless sensor network routing method based on geographical position
CN102238687A
Method, device and equipment for intelligently pushing environmental monitoring data and storage medium
CN111460326A