Ecological security monitoring methods and devices for various districts and counties in coastal cities
By acquiring and standardizing ecological security monitoring data, and using neighborhood radius and density clustering methods to correct weights, the problem of low accuracy in coastal urban ecological security monitoring has been solved, and a more accurate ecological risk assessment has been achieved.
Patent Information
- Application Number
- CN202510954279.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-11
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2045-07-11
AI Technical Summary
In existing technologies, the ecological security monitoring methods for various districts and counties in coastal cities use the fixed weight method, which results in low monitoring accuracy.
After acquiring ecological security monitoring data and standardizing it, abnormal data points are identified using neighborhood radius and density clustering methods, the initial weights are corrected, and the ecological risk index is calculated.
It improved the accuracy of ecological security monitoring, identified abnormal data points, and enhanced the accuracy of the ecological risk index.
Smart Images

Figure CN120449068B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of ecological security monitoring technology, and in particular to a method and apparatus for ecological security monitoring in various districts and counties of coastal cities. Background Technology
[0002] With the intensification of global climate change and human activities, coastal cities are facing increasingly serious ecological security threats, such as sea-level rise, coastal erosion, and biodiversity loss.
[0003] In related technologies, the ecological security monitoring methods for various districts and counties in coastal cities often adopt fixed weight methods, such as the analytic hierarchy process (AHP) and expert questionnaires, to determine the weight of each ecological security monitoring parameter.
[0004] However, assigning fixed weights to each ecological security monitoring parameter can lead to low accuracy in ecological security monitoring across different districts and counties in coastal cities. Summary of the Invention
[0005] Based on this, the purpose of this application is to provide a method, device, electronic equipment and storage medium for ecological security monitoring in various districts and counties of coastal cities, which can improve the accuracy of ecological security monitoring in various districts and counties of coastal cities.
[0006] According to a first aspect of the embodiments of this application, a method for monitoring the ecological security of various districts and counties in coastal cities is provided, comprising the following steps:
[0007] Acquire ecological security monitoring data for each district and county of the target coastal city; the ecological security monitoring data includes several ecological security monitoring parameters and the first ecological security monitoring parameter value corresponding to each ecological security monitoring parameter;
[0008] The first ecological security detection parameter value corresponding to each ecological security detection parameter is standardized to obtain the second ecological security detection parameter value corresponding to each ecological security detection parameter.
[0009] Based on the value of each second ecological security detection parameter, the initial weight of each ecological security detection parameter, and the spatial location information of each district and county in the target coastal city, the neighborhood radius of each ecological security detection parameter is determined; based on the value of each second ecological security detection parameter and the total number of districts and counties in the target coastal city, the minimum number of neighborhood samples for each ecological security detection parameter is determined.
[0010] Based on the neighborhood radius of each ecological security detection parameter, the minimum number of neighborhood samples for each ecological security detection parameter, and a preset density clustering method, the second ecological security detection parameter values corresponding to each ecological security detection parameter are clustered to obtain the third ecological security detection parameter values corresponding to each ecological security detection parameter; wherein, the third ecological security detection parameter values are the abnormal second ecological security detection parameter values among the second ecological security detection parameter values;
[0011] Based on the value of the third ecological security monitoring parameter, the initial weight of each ecological security monitoring parameter is corrected to obtain the target weight of each ecological security monitoring parameter; based on the target weight of each ecological security monitoring parameter and the value of each second ecological security monitoring parameter, the ecological risk index of each district and county of the target coastal city is obtained.
[0012] According to a second aspect of the embodiments of this application, an ecological security monitoring device for various districts and counties in coastal cities is provided, comprising:
[0013] The data acquisition module is used to acquire ecological security monitoring data of various districts and counties in the target coastal city; the ecological security monitoring data includes several ecological security monitoring parameters and the first ecological security monitoring parameter value corresponding to each ecological security monitoring parameter;
[0014] The parameter value processing module is used to standardize the first ecological security detection parameter value corresponding to each ecological security detection parameter to obtain the second ecological security detection parameter value corresponding to each ecological security detection parameter.
[0015] The neighborhood radius determination module is used to determine the neighborhood radius of each ecological security detection parameter based on the value of each second ecological security detection parameter, the initial weight of each ecological security detection parameter, and the spatial location information of each district and county in the target coastal city; and to determine the minimum number of neighborhood samples for each ecological security detection parameter based on the value of each second ecological security detection parameter and the total number of districts and counties in the target coastal city.
[0016] The parameter value clustering module is used to cluster the second ecological security detection parameter value corresponding to each ecological security detection parameter according to the neighborhood radius of each ecological security detection parameter, the minimum number of neighborhood samples of each ecological security detection parameter, and a preset density clustering method, to obtain the third ecological security detection parameter value corresponding to each ecological security detection parameter; wherein, the third ecological security detection parameter value is the second ecological security detection parameter value that is abnormal among the second ecological security detection parameter values;
[0017] The ecological risk index acquisition module is used to correct the initial weight of each ecological security detection parameter based on the value of the third ecological security detection parameter, and obtain the target weight of each ecological security detection parameter; based on the target weight of each ecological security detection parameter and the value of each second ecological security detection parameter, the ecological risk index of each district and county of the target coastal city is obtained.
[0018] According to a third aspect of the embodiments of this application, an electronic device is provided, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method of the first aspect.
[0019] According to a fourth aspect of the embodiments of this application, the embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method of the first aspect.
[0020] This application embodiment acquires ecological security monitoring data from various districts and counties of a target coastal city. The ecological security monitoring data includes several ecological security monitoring parameters and a first ecological security monitoring parameter value corresponding to each parameter. The first ecological security monitoring parameter value corresponding to each parameter is standardized to obtain a second ecological security monitoring parameter value. Based on each second ecological security monitoring parameter value, the initial weight of each parameter, and the spatial location information of each district and county in the target coastal city, the neighborhood radius of each parameter is determined. Based on each second ecological security monitoring parameter value and the total number of districts and counties in the target coastal city, the minimum neighborhood sample of each parameter is determined. The method involves clustering the second ecological security detection parameter values corresponding to each ecological security detection parameter based on the neighborhood radius of each ecological security detection parameter, the minimum number of neighborhood samples for each ecological security detection parameter, and a pre-defined density clustering method. This results in the acquisition of a third ecological security detection parameter value corresponding to each ecological security detection parameter. The third ecological security detection parameter value is identified as an anomalous second ecological security detection parameter value among the second ecological security detection parameter values. Based on the third ecological security detection parameter value, the initial weight of each ecological security detection parameter is corrected to obtain the target weight for each ecological security detection parameter. Finally, based on the target weight of each ecological security detection parameter and the second ecological security detection parameter value, the ecological risk index of each district and county in the target coastal city is obtained. This application identifies anomalous second ecological security detection parameter values by clustering the corresponding second ecological security detection parameter values for each ecological security detection parameter, based on the neighborhood radius of each ecological security detection parameter and the minimum number of neighborhood samples for each ecological security detection parameter. Based on the abnormal values of the second ecological security detection parameter, the initial weights of the corresponding ecological security detection parameters are corrected, thereby improving the accuracy of the weights of the ecological security detection parameters. This, in turn, improves the accuracy of the ecological risk index of each district and county in the target coastal city, and further improves the precision of ecological security monitoring in each district and county of the target coastal city.
[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application.
[0022] To better understand and implement this invention, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description
[0023] Figure 1 A flowchart illustrating an ecological security monitoring method for various districts and counties in a coastal city, provided as an embodiment of this application;
[0024] Figure 2A structural block diagram of an ecological security monitoring device for various districts and counties in a coastal city, provided as an embodiment of this application;
[0025] Figure 3 This is a schematic block diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0027] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0028] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the embodiments of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0029] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0030] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0031] Please see Figure 1This is a flowchart illustrating an ecological security monitoring method for various districts and counties in a coastal city according to an embodiment of this application. The ecological security monitoring method for various districts and counties in a coastal city according to this embodiment includes the following steps:
[0032] S10: Obtain ecological security monitoring data for each district and county of the target coastal city; the ecological security monitoring data includes several ecological security monitoring parameters and the first ecological security monitoring parameter value corresponding to each ecological security monitoring parameter.
[0033] Among them, the target coastal cities are coastal cities that need to be monitored for ecological security.
[0034] In this embodiment of the application, based on the DPSIR (Driving Force-Pressure-State-Impact-Response) model, ecological security monitoring data of various districts and counties in the target coastal cities are collected. The ecological security monitoring data are sourced from statistical yearbooks, environmental statistical yearbooks, environmental quality bulletins, marine environmental status bulletins, marine environmental quality bulletins, marine disaster bulletins, China sea level bulletins, etc. of coastal cities.
[0035] Specifically, ecological security monitoring parameters include driving force indicators, pressure indicators, state indicators, impact indicators, and response indicators. Driving force indicators include: population density, GDP, the proportion of industrial output to GDP, and the proportion of marine output to GDP. Pressure indicators include: industrial SO2 emissions, industrial wastewater COD emissions, mariculture area, total number of coastal tourist visits, and the number of typhoon and storm surge disasters. State indicators include: nearshore and coastal wetland area, forest coverage, natural coastline retention rate, and water quality compliance rate of nearshore marine environmental functional zones. Impact indicators include: sea level change, coastal erosion length, annual average temperature in coastal areas, and losses from major marine disasters in coastal areas. Response indicators include: industrial wastewater discharge compliance rate, energy consumption per unit of GDP (in standard coal equivalent), investment in regional disaster prevention and mitigation infrastructure construction, and investment in environmental protection and governance.
[0036] S20: Standardize the first ecological security detection parameter value corresponding to each ecological security detection parameter to obtain the second ecological security detection parameter value corresponding to each ecological security detection parameter.
[0037] In this embodiment of the application, to ensure the comparability of different ecological security monitoring data, the ecological security monitoring data are standardized. The standardization method can be either range standardization or Z-score standardization.
[0038] S30: Determine the neighborhood radius of each ecological security detection parameter based on the value of each second ecological security detection parameter, the initial weight of each ecological security detection parameter, and the spatial location information of each district and county in the target coastal city; determine the minimum neighborhood sample size of each ecological security detection parameter based on the value of each second ecological security detection parameter and the total number of districts and counties in the target coastal city.
[0039] Among them, the spatial location information of each district and county in the target coastal city can be either the administrative center location or the geometric center location of each district and county in the target coastal city.
[0040] The neighborhood radius defines the neighborhood range of a data point, while the minimum number of neighborhood samples determines whether a data point belongs to a high-density region (cluster). Specifically, if the number of data points within a data point's neighborhood is greater than or equal to the minimum number of neighborhood samples, the data point is determined to belong to a high-density region.
[0041] In this embodiment of the application, the analytic hierarchy process (AHP) can be used to initialize the weight of each ecological security detection parameter to obtain the initial weight of each ecological security detection parameter.
[0042] Specifically, each ecological security monitoring parameter is assigned an initial weight. 'k' represents the k-th ecological security monitoring parameter, such as GDP, the proportion of industrial output to GDP, and the proportion of marine output to GDP. , m represents the number of ecological security monitoring parameters.
[0043] Each district / county includes multiple secondary ecological security monitoring parameter values. In order to identify abnormal secondary ecological security monitoring parameter values, it is necessary to determine the neighborhood radius and minimum neighborhood sample size for each ecological security monitoring parameter.
[0044] S40: Based on the neighborhood radius of each ecological security detection parameter, the minimum number of neighborhood samples for each ecological security detection parameter, and a preset density clustering method, cluster the second ecological security detection parameter value corresponding to each ecological security detection parameter to obtain the third ecological security detection parameter value corresponding to each ecological security detection parameter; wherein, the third ecological security detection parameter value is the abnormal second ecological security detection parameter value among the second ecological security detection parameter values.
[0045] The preset density clustering method is DBSCAN (Density-Based Spatial Clustering of Applications with Noise). DBSCAN's algorithm parameters include the neighborhood radius and the minimum number of neighborhood samples, used to divide points in the dataset into several clusters and identify noise points. The specific clustering process can be found in existing technologies and will not be elaborated here.
[0046] In this embodiment, the neighborhood radius of each ecological security detection parameter and the minimum number of neighborhood samples for each ecological security detection parameter are set as the parameter values of a preset density clustering method. The second ecological security detection parameter value corresponding to each ecological security detection parameter is used as the input data of the preset density clustering method. The second ecological security detection parameter value corresponding to each ecological security detection parameter is clustered to identify the third ecological security detection parameter value.
[0047] S50: Based on the value of the third ecological security detection parameter, the initial weight of each ecological security detection parameter is corrected to obtain the target weight of each ecological security detection parameter; based on the target weight of each ecological security detection parameter and the value of each second ecological security detection parameter, the ecological risk index of each district and county of the target coastal city is obtained.
[0048] Among them, the ecological risk index is used to indicate the risk level of ecological security monitoring.
[0049] In this embodiment, when a certain second ecological security monitoring parameter value in a district or county is abnormal, the initial weight of the ecological security monitoring parameter corresponding to that second ecological security monitoring parameter value is corrected to obtain the target weight of that ecological security monitoring parameter. When a certain second ecological security monitoring parameter value in a district or county is not abnormal, the initial weight of the ecological security monitoring parameter corresponding to that second ecological security monitoring parameter value is used as the target weight of that ecological security monitoring parameter.
[0050] Based on the target weight of each ecological security monitoring parameter, the second ecological security monitoring parameter value corresponding to each ecological security monitoring parameter in each district and county is weighted and summed to obtain the ecological risk index of each district and county in the target coastal city.
[0051] By comparing the ecological risk index of each district / county with preset risk thresholds, the risk level of each district / county can be determined. Specifically, if the ecological risk index of a district / county is greater than or equal to the first preset risk threshold, the district / county is determined to be at a high risk level. If the ecological risk index of a district / county is greater than or equal to the second preset risk threshold but less than the first preset risk threshold, the district / county is determined to be at a medium risk level. If the ecological risk index of a district / county is less than the second preset risk threshold, the district / county is determined to be at a low risk level. The first preset risk threshold is greater than the second preset risk threshold. For example, the first preset risk threshold is 0.8, and the second preset risk threshold is 0.3.
[0052] Applying the embodiments of this application, ecological security monitoring data of each district and county in the target coastal city is obtained. The ecological security monitoring data includes several ecological security monitoring parameters and a first ecological security monitoring parameter value corresponding to each parameter. The first ecological security monitoring parameter value corresponding to each parameter is standardized to obtain a second ecological security monitoring parameter value. Based on each second ecological security monitoring parameter value, the initial weight of each parameter, and the spatial location information of each district and county in the target coastal city, the neighborhood radius of each parameter is determined. Based on each second ecological security monitoring parameter value and the total number of districts and counties in the target coastal city, the minimum neighborhood of each parameter is determined. The sample size is determined by clustering the second ecological security detection parameter values corresponding to each ecological security detection parameter according to the neighborhood radius, the minimum number of neighborhood samples for each ecological security detection parameter, and a preset density clustering method. This clustering process yields the third ecological security detection parameter value corresponding to each ecological security detection parameter. The third ecological security detection parameter value is identified as anomaly among the second ecological security detection parameter values. Based on the third ecological security detection parameter value, the initial weight of each ecological security detection parameter is corrected to obtain the target weight for each ecological security detection parameter. Finally, based on the target weight of each ecological security detection parameter and the second ecological security detection parameter value, the ecological risk index of each district and county in the target coastal city is obtained. This application identifies anomalous second ecological security detection parameter values by clustering the corresponding second ecological security detection parameter values for each ecological security detection parameter, based on the neighborhood radius and the minimum number of neighborhood samples for each ecological security detection parameter. Based on the abnormal values of the second ecological security detection parameter, the initial weights of the corresponding ecological security detection parameters are corrected, thereby improving the accuracy of the weights of the ecological security detection parameters. This, in turn, improves the accuracy of the ecological risk index of each district and county in the target coastal city, and further improves the precision of ecological security monitoring in each district and county of the target coastal city.
[0053] In one embodiment, step S20 includes steps S201 to S204, as follows:
[0054] S201: Several ecological security monitoring parameters are divided into positive parameters and negative parameters.
[0055] Among them, positive parameters include: GDP, nearshore and coastal wetland area, forest coverage rate, natural coastline retention rate, water quality compliance rate of nearshore marine environmental functional zones, industrial wastewater discharge compliance rate, investment in regional disaster prevention and mitigation infrastructure construction, and investment in environmental protection and governance funds.
[0056] Negative parameters include: population density, industrial output as a percentage of GDP, marine output as a percentage of GDP, industrial SO2 emissions, industrial wastewater COD emissions, marine aquaculture area, total number of coastal tourists, number of typhoon and storm surge disasters, sea level change, coastal erosion length, annual average temperature in coastal areas, losses from major marine disasters in coastal areas, and energy consumption per unit of GDP (in standard coal equivalent).
[0057] S202: For the same ecological security monitoring parameter, determine the maximum and minimum values of the first ecological security monitoring parameter corresponding to the ecological security monitoring parameter from the first ecological security monitoring parameter values of each district and county of the target coastal city; determine the range of the first ecological security monitoring parameter value based on the maximum and minimum values of the first ecological security monitoring parameter.
[0058] In this embodiment, the values of the first ecological security monitoring parameter corresponding to the same ecological security monitoring parameter in different districts and counties are compared to obtain the maximum and minimum values of the first ecological security monitoring parameter corresponding to the ecological security monitoring parameter. The range of the first ecological security monitoring parameter is obtained by subtracting the maximum and minimum values.
[0059] S203: For the positive parameter, subtract the minimum value of the first ecological security detection parameter corresponding to the positive parameter from the value of the first ecological security detection parameter corresponding to the positive parameter to obtain the difference; divide the difference by the range of the first ecological security detection parameter corresponding to the positive parameter to obtain the value of the second ecological security detection parameter corresponding to the positive parameter.
[0060] In this embodiment, the formula for standardizing the positive parameter is as follows:
[0061]
[0062] in, This represents the value of the second ecological security detection parameter corresponding to the i-th positive parameter. This represents the value of the first ecological security detection parameter corresponding to the i-th positive parameter. This represents the minimum value of the first ecological security detection parameter corresponding to the i-th positive parameter. This represents the maximum value of the first ecological security detection parameter corresponding to the i-th positive parameter.
[0063] S204: For negative parameters, add the first ecological security detection parameter value corresponding to the negative parameter to the opposite of the maximum value of the first ecological security detection parameter value corresponding to the negative parameter to obtain a sum; divide the sum by the range of the first ecological security detection parameter value corresponding to the negative parameter to obtain the second ecological security detection parameter value corresponding to the negative parameter.
[0064] In this embodiment, the formula for standardizing the negative parameter is as follows:
[0065]
[0066] in, This represents the value of the second ecological security detection parameter corresponding to the i-th negative parameter. This represents the value of the first ecological security detection parameter corresponding to the i-th negative parameter. This represents the minimum value of the first ecological security detection parameter corresponding to the i-th negative parameter. This represents the maximum value of the first ecological security detection parameter corresponding to the i-th negative parameter.
[0067] The embodiments of this application employ the range standardization method to standardize the positive and negative parameters, thereby automatically and quickly obtaining the second ecological security detection parameter values corresponding to the positive and negative parameters.
[0068] In one embodiment, step S30, which determines the neighborhood radius of each ecological security detection parameter based on the value of each second ecological security detection parameter, the initial weight of each ecological security detection parameter, and the spatial location information of each district and county in the target coastal city, includes steps S301 to S306, as follows:
[0069] S301: Determine the spatial autocorrelation index of each ecological security detection parameter based on the value of each second ecological security detection parameter.
[0070] In this embodiment, the formula for calculating the spatial autocorrelation index of each ecological security detection parameter is as follows:
[0071]
[0072]
[0073] Where I represents the spatial autocorrelation index, and n represents the total number of districts and counties in the target coastal city. This represents the value of the second ecological security monitoring parameter corresponding to an ecological security monitoring parameter in the i-th district / county. This represents the value of the second ecological security monitoring parameter corresponding to an ecological security monitoring parameter in the j-th district / county. This represents the average value of the second ecological security monitoring parameter corresponding to one ecological security monitoring parameter. The weights represent the adjacency relationships between districts and counties. When the i-th district / county is adjacent to the j-th district / county, =1, otherwise, =0.
[0074] Based on the above calculation formula, the spatial autocorrelation index of each ecological security monitoring parameter can be calculated.
[0075] S302: Based on the spatial location information of each district and county in the target coastal city, determine the spatial distance between each district and county; traverse each district and county, sort the spatial distance between the current district and county and the remaining districts and counties in ascending order, and take the spatial distance sorted at the first preset position as the proximity distance of the current district and county.
[0076] The first preset position can be set according to actual needs.
[0077] In this embodiment, the spatial distances between the i-th district / county and all other districts / counties are calculated. These spatial distances are then sorted in ascending order, and the k-th nearest spatial distance to the i-th district / county is taken as the nearest neighbor distance to the i-th district / county. Here, k is set according to actual needs, for example, k=5.
[0078] S303: Sort the proximity distances of each district / county in ascending order, and take the proximity distance ranked at the second preset position as the target proximity distance.
[0079] The second preset position can be set according to actual needs.
[0080] In this embodiment of the application, after obtaining the nearest distance of each district / county, the nearest distances of each district / county are sorted in ascending order to determine the target nearest distance. For example, if there are 100 nearest distances, the nearest distance ranked 95th is taken as the target nearest distance.
[0081] S304: Determine the first neighborhood radius of each ecological security detection parameter based on the spatial autocorrelation index of each ecological security detection parameter and the target proximity distance.
[0082] In this embodiment, the formula for calculating the radius of the first neighborhood is:
[0083]
[0084]
[0085] in, Let I represent the first neighborhood radius, I represent the spatial autocorrelation index, and L represent the target's nearest neighbor distance. This represents the adjustment coefficient.
[0086] S305: Determine the second neighborhood radius of each ecological security detection parameter based on the second ecological security detection parameter value corresponding to each ecological security detection parameter, the spatial distance between districts and counties, and the initial weight of each ecological security detection parameter.
[0087] In this embodiment of the application, the calculation process of the second neighborhood radius is as follows:
[0088]
[0089] Where d represents a combined measure of the distance and parameter values between the i-th and j-th districts / counties. This represents the value of the second ecological security monitoring parameter corresponding to the k-th ecological security monitoring parameter in the i-th district / county. This represents the value of the second ecological security monitoring parameter corresponding to the k-th ecological security monitoring parameter in the j-th district / county. This represents the initial weight of the k-th ecological security detection parameter. This represents the spatial distance between the i-th and j-th districts / counties. This indicates the preset coefficient.
[0090] After obtaining the combined metric of the distance and parameter values between any two districts, calculate the average of the combined metric of the distance and parameter values between all districts, and use this average as the second neighborhood radius.
[0091] S306: Determine the neighborhood radius of each ecological security detection parameter based on the first neighborhood radius and the second neighborhood radius.
[0092] In this embodiment of the application, the sum of the first neighborhood radius and the second neighborhood radius of each ecological security detection parameter is used as the neighborhood radius of each ecological security detection parameter.
[0093] In one embodiment, step S30, which determines the minimum neighborhood sample size for each ecological security detection parameter based on the value of each second ecological security detection parameter and the total number of districts and counties in the target coastal city, includes steps S31 to S32, as follows:
[0094] S31: The total number of second ecological security monitoring parameter values for each district and county of the target coastal city.
[0095] S32: Determine the minimum neighborhood sample size for each ecological security detection parameter based on the total number of values of the second ecological security detection parameter and the total number of districts and counties in the target coastal cities.
[0096] In this embodiment of the application, the formula for calculating the minimum neighborhood sample size for each ecological security detection parameter is as follows:
[0097]
[0098] in, Let p represent the minimum neighborhood sample size, p represent the total number of second ecological security monitoring parameter values for each district / county, and n represent the total number of districts / counties in the target coastal city. Indicates rounding up. This indicates rounding down to the nearest integer.
[0099] In one embodiment, step S50, which involves correcting the initial weight of each ecological security detection parameter based on the third ecological security detection parameter value to obtain the target weight of each ecological security detection parameter, includes steps S51 to S55, as follows:
[0100] S51: Count the number of third ecological security detection parameter values corresponding to each ecological security detection parameter.
[0101] S52: Sum the number of third ecological security detection parameter values corresponding to each ecological security detection parameter to obtain the target number.
[0102] S53: Determine the abnormal frequency of the third ecological security detection parameter value corresponding to each ecological security detection parameter based on the number of third ecological security detection parameter values corresponding to each ecological security detection parameter and the target number.
[0103] In this embodiment, the abnormal frequency of the third ecological security detection parameter value corresponding to each ecological security detection parameter is obtained by dividing the number of values corresponding to the target number. Specifically, the expression for the abnormal frequency is:
[0104]
[0105] in, This indicates the number of values for the third ecological security detection parameter corresponding to the k-th ecological security detection parameter. Indicates the target quantity.
[0106] S54: Based on the anomaly frequency and the initial weight of each ecological security detection parameter, obtain the intermediate weight of each ecological security detection parameter.
[0107] In this embodiment of the application, the expression for the intermediate weight is:
[0108]
[0109] in, This represents the intermediate weight of the k-th ecological security detection parameter. Represents the coefficient.
[0110] S55: Normalize the intermediate weights of each ecological security detection parameter to obtain the target weight of each ecological security detection parameter.
[0111] In this embodiment of the application, the expression for the target weight is:
[0112]
[0113] in, This represents the target weight of the k-th ecological security detection parameter.
[0114] In one embodiment, step S55 includes steps S551 to S553, as follows:
[0115] S551: Normalize the intermediate weights of each ecological security detection parameter to obtain the normalized weights.
[0116] In the embodiments of this application, the specific process of step S551 can be referred to step S55, and will not be repeated here.
[0117] S552: Using the sliding window Z-score method, spatial local anomaly detection is performed on the second ecological security detection parameter value corresponding to each ecological security detection parameter, and the anomaly detection results of the second ecological security detection parameter value corresponding to each ecological security detection parameter in each district and county are obtained.
[0118] In this embodiment, for each ecological security detection parameter, the average value and standard deviation of the corresponding second ecological security detection parameter value are calculated. The difference between the second ecological security detection parameter value and the average value is obtained. The difference is then divided by the standard deviation to obtain the Z-score. The Z-score value is compared with a preset threshold. If the Z-score value is greater than or equal to the preset threshold, the second ecological security detection parameter value is determined to be an outlier. If the Z-score value is less than the preset threshold, the second ecological security detection parameter value is determined to be a normal value.
[0119] S553: When the abnormal state detection result indicates that the current second ecological security detection parameter value is abnormal in the current district / county, the normalized weight of the ecological security detection parameter corresponding to the current second ecological security detection parameter value in the current district / county is multiplied by the preset value to obtain the target weight of the ecological security detection parameter corresponding to the current second ecological security detection parameter value in the current district / county.
[0120] In this embodiment of the application, the expression for the target weight is:
[0121]
[0122] in, This is a coefficient, and its specific value is greater than 1.
[0123] In one embodiment, step S50, which involves obtaining the ecological risk index of each district and county of the target coastal city based on the target weight of each ecological security detection parameter and the value of each second ecological security detection parameter, includes steps S501 to S502, as follows:
[0124] S501: Multiply the corresponding second ecological security monitoring parameter value of each ecological security monitoring parameter of each district and county of the target coastal city by the target weight of each ecological security monitoring parameter to obtain the ecological risk index of each ecological security monitoring parameter of each district and county of the target coastal city.
[0125] S502: Sum the ecological risk indices of each ecological security monitoring parameter in each district and county of the target coastal city to obtain the ecological risk index of each district and county of the target coastal city.
[0126] In this embodiment of the application, the expression for the ecological risk index of each district and county of the target coastal city is as follows:
[0127]
[0128] in, This represents the ecological risk index of the i-th district / county.
[0129] The following are embodiments of the apparatus described in this application, which can be used to execute the methods described in the embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the methods described in the embodiments of this application.
[0130] Please see Figure 2 This document illustrates a structural schematic diagram of the ecological security monitoring device for various districts and counties in coastal cities provided in this embodiment of the application. The ecological security monitoring device 6 for various districts and counties in coastal cities provided in this embodiment of the application includes:
[0131] The data acquisition module 61 is used to acquire ecological security monitoring data of various districts and counties in the target coastal city; the ecological security monitoring data includes several ecological security monitoring parameters and the first ecological security monitoring parameter value corresponding to each ecological security monitoring parameter;
[0132] The parameter value processing module 62 is used to standardize the first ecological security detection parameter value corresponding to each ecological security detection parameter to obtain the second ecological security detection parameter value corresponding to each ecological security detection parameter.
[0133] The neighborhood radius determination module 63 is used to determine the neighborhood radius of each ecological security detection parameter based on the value of each second ecological security detection parameter, the initial weight of each ecological security detection parameter, and the spatial location information of each district and county in the target coastal city; and to determine the minimum number of neighborhood samples for each ecological security detection parameter based on the value of each second ecological security detection parameter and the total number of districts and counties in the target coastal city.
[0134] The parameter value clustering module 64 is used to cluster the second ecological security detection parameter value corresponding to each ecological security detection parameter according to the neighborhood radius of each ecological security detection parameter, the minimum number of neighborhood samples of each ecological security detection parameter, and a preset density clustering method, to obtain the third ecological security detection parameter value corresponding to each ecological security detection parameter; wherein, the third ecological security detection parameter value is the second ecological security detection parameter value that is abnormal among the second ecological security detection parameter values;
[0135] The ecological risk index acquisition module 65 is used to correct the initial weight of each ecological security detection parameter based on the value of the third ecological security detection parameter, and obtain the target weight of each ecological security detection parameter; based on the target weight of each ecological security detection parameter and the value of each second ecological security detection parameter, the ecological risk index of each district and county of the target coastal city is obtained.
[0136] It should be noted that the ecological security monitoring device for coastal cities and counties provided in the above embodiments is only illustrated by the division of the above functional modules when implementing the ecological security monitoring method for coastal cities and counties. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the ecological security monitoring device for coastal cities and counties provided in the above embodiments and the ecological security monitoring method for coastal cities and counties belong to the same concept, and its implementation process is detailed in the method embodiments, which will not be repeated here.
[0137] The following are embodiments of the device described in this application, which can be used to execute the methods described in the embodiments of this application. For details not disclosed in the embodiments of the device described in this application, please refer to the methods described in the embodiments of this application.
[0138] Please see Figure 3 This application also provides an electronic device 300, which may specifically be a computer, mobile phone, tablet computer, etc. In an exemplary embodiment of this application, the electronic device 300 is a computer, which may include: at least one processor 301, at least one memory 302, at least one display, at least one network interface 303, user interface 304, and at least one communication bus 305.
[0139] The user interface 304 is primarily used to provide an input interface for the user and to acquire user input data. Optionally, the user interface may also include a standard wired interface or a wireless interface.
[0140] The network interface 303 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0141] The communication bus 305 is used to enable communication between these components.
[0142] The processor 301 may include one or more processing cores. The processor connects to various parts of the electronic device using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory, and by calling data stored in memory. Optionally, the processor may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor.
[0143] The memory 302 may include random access memory (RAM) or read-only memory. Optionally, the memory may include a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, code, code sets, or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor. Figure 3 A memory, as a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and operating applications.
[0144] The processor can be used to call the application program storing the ecological security monitoring methods for various districts and counties of coastal cities in the memory, and specifically execute the method steps of the above-described embodiments. For the specific execution process, please refer to the detailed description shown in the embodiments, which will not be repeated here.
[0145] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0146] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for monitoring the ecological security of various districts and counties in coastal cities, characterized in that, Includes the following steps: Based on the DPSIR model, ecological security monitoring data of each district and county in the target coastal city are obtained; the ecological security monitoring data includes several ecological security monitoring parameters and a first ecological security monitoring parameter value corresponding to each of the ecological security monitoring parameters; The first ecological security detection parameter value corresponding to each of the ecological security detection parameters is standardized to obtain the second ecological security detection parameter value corresponding to each of the ecological security detection parameters. Based on each of the second ecological security detection parameter values, the initial weight of each ecological security detection parameter, and the spatial location information of each district and county in the target coastal city, the neighborhood radius of each ecological security detection parameter is determined; based on each of the second ecological security detection parameter values and the total number of districts and counties in the target coastal city, the minimum number of neighborhood samples for each ecological security detection parameter is determined. Based on the neighborhood radius of each ecological security detection parameter, the minimum number of neighborhood samples for each ecological security detection parameter, and a preset density clustering method, the second ecological security detection parameter values corresponding to each ecological security detection parameter are clustered to obtain the third ecological security detection parameter value corresponding to each ecological security detection parameter; wherein, the third ecological security detection parameter value is an abnormal second ecological security detection parameter value among the second ecological security detection parameter values; Based on the third ecological security detection parameter value, the initial weight of each ecological security detection parameter is corrected to obtain the target weight of each ecological security detection parameter. This includes: counting the number of third ecological security detection parameter values corresponding to each ecological security detection parameter; summing the number of third ecological security detection parameter values corresponding to each ecological security detection parameter to obtain a target number; determining the abnormal frequency of the third ecological security detection parameter value corresponding to each ecological security detection parameter based on the number of third ecological security detection parameter values corresponding to each ecological security detection parameter and the target number; obtaining the intermediate weight of each ecological security detection parameter based on the abnormal frequency and the initial weight of each ecological security detection parameter; normalizing the intermediate weight of each ecological security detection parameter to obtain the target weight of each ecological security detection parameter; and obtaining the ecological risk index of each district and county of the target coastal city based on the target weight of each ecological security detection parameter and each second ecological security detection parameter value.
2. The method for monitoring the ecological security of coastal cities in various districts and counties according to claim 1, characterized in that: The step of determining the neighborhood radius of each ecological security detection parameter based on each value of the second ecological security detection parameter, the initial weight of each ecological security detection parameter, and the spatial location information of each district and county of the target coastal city includes: Based on each value of the second ecological security detection parameter, determine the spatial autocorrelation index of each ecological security detection parameter; Based on the spatial location information of each district and county in the target coastal city, the spatial distance between each district and county is determined; each district and county is traversed, and the spatial distance between the current district and county and the remaining districts and counties is sorted in ascending order, and the spatial distance sorted at the first preset position is taken as the proximity distance of the current district and county; The proximity distances of each of the districts and counties are sorted in ascending order, and the proximity distances sorted at the second preset position are taken as the target proximity distances; The first neighborhood radius of each ecological security detection parameter is determined based on the spatial autocorrelation index of each parameter and the target proximity distance. The second neighborhood radius of each ecological security detection parameter is determined based on the second ecological security detection parameter value corresponding to each ecological security detection parameter, the spatial distance between the districts and counties, and the initial weight of each ecological security detection parameter. The neighborhood radius of each ecological security detection parameter is determined based on the first neighborhood radius and the second neighborhood radius.
3. The method for monitoring ecological security in various districts and counties of coastal cities according to claim 1, characterized in that: The step of determining the minimum neighborhood sample size for each of the second ecological security detection parameters based on each value of the second ecological security detection parameter and the total number of districts and counties in the target coastal city includes: The total number of second ecological security monitoring parameter values for each district and county of the target coastal city; The minimum neighborhood sample size for each ecological security detection parameter is determined based on the total number of values of the second ecological security detection parameter and the total number of districts and counties in the target coastal city.
4. The method for monitoring the ecological security of coastal cities in various districts and counties according to claim 1, characterized in that: The step of normalizing the intermediate weights of each of the ecological security detection parameters to obtain the target weights of each of the ecological security detection parameters includes: The intermediate weights of each of the ecological security detection parameters are normalized to obtain the normalized weights. Using the sliding window Z-score method, spatial local anomaly detection is performed on the second ecological security detection parameter value corresponding to each of the ecological security detection parameters, and the anomaly detection results of the second ecological security detection parameter value corresponding to each of the ecological security detection parameters in each district and county are obtained. When the abnormal state detection result indicates that the current second ecological security detection parameter value is abnormal in the current district / county, the normalized weight of the ecological security detection parameter corresponding to the current second ecological security detection parameter value in the current district / county is multiplied by a preset value to obtain the target weight of the ecological security detection parameter corresponding to the current second ecological security detection parameter value in the current district / county.
5. The method for monitoring the ecological security of coastal urban districts and counties according to any one of claims 1 to 4, characterized in that: The step of obtaining the ecological risk index of each district and county of the target coastal city based on the target weight of each of the ecological security detection parameters and the value of each of the second ecological security detection parameters includes: The ecological risk index of each ecological security detection parameter in each district and county of the target coastal city is obtained by multiplying the corresponding second ecological security detection parameter value of each ecological security detection parameter by the target weight of each ecological security detection parameter. The ecological risk index of each ecological security monitoring parameter in each district and county of the target coastal city is summed to obtain the ecological risk index of each district and county of the target coastal city.
6. The method for monitoring the ecological security of coastal urban districts and counties according to any one of claims 1 to 4, characterized in that: The step of standardizing the first ecological security detection parameter value corresponding to each of the ecological security detection parameters to obtain the second ecological security detection parameter value corresponding to each of the ecological security detection parameters includes: Several ecological security monitoring parameters are divided into positive parameters and negative parameters; For the same ecological security monitoring parameter, the maximum and minimum values of the first ecological security monitoring parameter corresponding to the ecological security monitoring parameter in each district and county of the target coastal city are determined; and the range of the first ecological security monitoring parameter value is determined based on the maximum and minimum values of the first ecological security monitoring parameter. For the positive parameter, the minimum value of the first ecological security detection parameter corresponding to the positive parameter is subtracted from the minimum value of the first ecological security detection parameter corresponding to the positive parameter to obtain the difference; the difference is divided by the range of the first ecological security detection parameter corresponding to the positive parameter to obtain the second ecological security detection parameter value corresponding to the positive parameter. For the negative parameter, the first ecological security detection parameter value corresponding to the negative parameter is added to the opposite of the maximum value of the first ecological security detection parameter value corresponding to the negative parameter to obtain a sum; the sum is divided by the range of the first ecological security detection parameter value corresponding to the negative parameter to obtain the second ecological security detection parameter value corresponding to the negative parameter.
7. An ecological security monitoring device for various districts and counties in coastal cities, characterized in that, include: The data acquisition module is used to acquire ecological security monitoring data of various districts and counties in the target coastal city based on the DPSIR model; The ecological security detection data includes several ecological security detection parameters and a first ecological security detection parameter value corresponding to each of the ecological security detection parameters; The parameter value processing module is used to standardize the first ecological security detection parameter value corresponding to each of the ecological security detection parameters to obtain the second ecological security detection parameter value corresponding to each of the ecological security detection parameters. The neighborhood radius determination module is used to determine the neighborhood radius of each ecological security detection parameter based on each value of the second ecological security detection parameter, the initial weight of each ecological security detection parameter, and the spatial location information of each district and county of the target coastal city; and to determine the minimum number of neighborhood samples for each ecological security detection parameter based on each value of the second ecological security detection parameter and the total number of districts and counties of the target coastal city. The parameter value clustering module is used to cluster the second ecological security detection parameter value corresponding to each ecological security detection parameter according to the neighborhood radius of each ecological security detection parameter, the minimum number of neighborhood samples of each ecological security detection parameter, and a preset density clustering method, to obtain the third ecological security detection parameter value corresponding to each ecological security detection parameter; wherein, the third ecological security detection parameter value is an abnormal second ecological security detection parameter value among the second ecological security detection parameter values; The ecological risk index acquisition module is used to correct the initial weight of each ecological security detection parameter based on the value of the third ecological security detection parameter, and obtain the target weight of each ecological security detection parameter. This includes: counting the number of third ecological security detection parameter values corresponding to each ecological security detection parameter; summing the number of third ecological security detection parameter values corresponding to each ecological security detection parameter to obtain a target number; determining the abnormal frequency of the third ecological security detection parameter values corresponding to each ecological security detection parameter based on the number of third ecological security detection parameter values corresponding to each ecological security detection parameter and the target number; obtaining the intermediate weight of each ecological security detection parameter based on the abnormal frequency and the initial weight of each ecological security detection parameter; normalizing the intermediate weight of each ecological security detection parameter to obtain the target weight of each ecological security detection parameter; and obtaining the ecological risk index of each district / county of the target coastal city based on the target weight of each ecological security detection parameter and each second ecological security detection parameter value.
8. An electronic device, comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method for evaluating ecological safety of coastal zone
CN107679703A
Gas leakage monitoring method, device and equipment based on Internet of Things and storage medium
CN119538750A