Ecological safety monitoring method and device for districts and counties in coastal zone city

By standardizing the ecological security detection data of various districts and counties in coastal cities and counties, identifying abnormal data points and correcting the weights, the problem of low monitoring accuracy caused by the fixed weight method is solved, and higher precision ecological security monitoring is achieved.

CN120449068AActive Publication Date: 2025-08-08GUANGZHOU INST OF GEOGRAPHY GUANGDONG ACAD OF SCI
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510954279.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-11
Publication Date
2025-08-08
Estimated Expiration
2045-07-11

AI Technical Summary

Technical Problem

In the prior art, the ecological security monitoring method of each district and county in coastal cities adopts a fixed weight method, resulting in low monitoring accuracy.

Method used

By obtaining ecological security detection data, after standardization, density clustering is performed using the neighborhood radius and the minimum neighborhood sample number to identify abnormal data points, and the initial weight is corrected based on the abnormal data points, and the ecological risk index is calculated.

Benefits of technology

The weight accuracy of ecological security detection parameters has been improved, thereby improving the ecological security monitoring accuracy of coastal cities and counties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120449068A_ABST
    Figure CN120449068A_ABST
Patent Text Reader

Abstract

The invention relates to an ecological safety monitoring method and device for each county of a coastal zone city. The method comprises the following steps: acquiring ecological safety detection data of each county of a target coastal zone city; performing standardization processing on each first ecological safety detection parameter value to obtain a second ecological safety detection parameter value; determining the neighborhood radius and the minimum neighborhood sample number of each ecological safety detection parameter; clustering the second ecological safety detection parameter value corresponding to each ecological safety detection parameter to obtain a third ecological safety detection parameter value; correcting the initial weight of each ecological safety detection parameter according to the third ecological safety detection parameter value to obtain the target weight of each ecological safety detection parameter; according to the target weight of each ecological safety detection parameter and each second ecological safety detection parameter value, the ecological risk index of each county of the target coastal zone city is obtained, and the precision of ecological safety monitoring of each county of the target coastal zone city is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of ecological safety monitoring, and in particular to a method and device for ecological safety monitoring in districts and counties of coastal cities. Background Art

[0002] With global climate change and the intensification of human activities, coastal cities are facing increasingly serious ecological security threats, such as rising sea levels, coastal erosion, and loss of biodiversity.

[0003] In related technologies, the ecological security monitoring methods of various districts and counties in coastal cities mostly adopt the fixed weight method, for example, the analytic hierarchy process (AHP) and expert questionnaire method are used to determine the weight of each ecological security detection parameter.

[0004] However, assigning a fixed weight to each ecological security monitoring parameter will result in low accuracy of ecological security monitoring in districts and counties of coastal cities. Summary of the Invention

[0005] Based on this, the purpose of this application is to provide an ecological security monitoring method and device, electronic equipment and storage medium for various districts and counties in coastal cities, which can improve the accuracy of ecological security monitoring in various districts and counties in coastal cities.

[0006] According to a first aspect of an embodiment of the present application, a method for monitoring ecological security in districts and counties of coastal cities is provided, comprising the following steps: Obtaining ecological security detection data for each district and county of the target coastal city; the ecological security detection data includes a number of ecological security detection parameters and a first ecological security detection parameter value corresponding to each ecological security detection parameter; Standardizing the first ecological safety detection parameter value corresponding to each ecological safety detection parameter to obtain a second ecological safety detection parameter value corresponding to each ecological safety detection parameter; 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 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; Clustering the second ecological security detection parameter value corresponding to each ecological security detection parameter based on 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 a 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; According to 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; according to the target weight of each ecological security detection parameter and each second ecological security detection parameter value, the ecological risk index of each district and county in the target coastal city is obtained.

[0007] According to a second aspect of an embodiment of the present application, there is provided an ecological security monitoring device for each district and county of a coastal city, comprising: A data acquisition module is used to obtain ecological security detection data of each district and county of the target coastal city; the ecological security detection data includes a number of ecological security detection parameters and a first ecological security detection parameter value corresponding to each ecological security detection parameter; a parameter value processing module, configured to perform standardization processing on a first ecological safety detection parameter value corresponding to each ecological safety detection parameter to obtain a second ecological safety detection parameter value corresponding to each ecological safety detection parameter; A neighborhood radius determination module is configured 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 of 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 of the target coastal city; A parameter value clustering module is used to cluster the second ecological security detection parameter value corresponding to each ecological security detection parameter based on 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 a 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 safety detection parameter according to the value of the third ecological safety detection parameter to obtain the target weight of each ecological safety detection parameter; based on the target weight of each ecological safety detection parameter and each second ecological safety detection parameter value, the ecological risk index of each district and county in the target coastal city is obtained.

[0008] According to the third aspect of the embodiments of the present application, the embodiments of the present application provide an electronic device, a processor, a memory, and a computer program stored in the memory and runnable on the processor, and when the processor executes the computer program, the steps of the method of the first aspect are implemented.

[0009] According to a fourth aspect of the embodiments of the present application, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the steps of the method of the first aspect.

[0010] The embodiment of the present application obtains ecological security detection data of each district and county of the target coastal city; the ecological security detection data includes a number of ecological security detection parameters and a first ecological security detection parameter value corresponding to each ecological security detection parameter; the first ecological security detection parameter value corresponding to each ecological security detection parameter is standardized to obtain a second ecological security detection parameter value corresponding to each ecological security detection parameter; the neighborhood radius of each ecological security detection parameter is determined based on each second ecological security detection parameter value, the initial weight of each ecological security detection parameter and the spatial location information of each district and county of the target coastal city; the minimum neighborhood sample of each ecological security detection parameter is determined based on each second ecological security detection parameter value and the total number of districts and counties of the target coastal city number; 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 the preset density clustering method, and 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 in the second ecological security detection parameter value; according to the third ecological security detection parameter value, correct the initial weight of each ecological security detection parameter to obtain the target weight of each ecological security detection parameter; according to the target weight of each ecological security detection parameter and each second ecological security detection parameter value, obtain the ecological risk index of each district and county of the target coastal city. This application clusters the second ecological security detection parameter value corresponding to each ecological security detection parameter by determining the neighborhood radius of each ecological security detection parameter and the minimum number of neighborhood samples of each ecological security detection parameter, and identifies the abnormal second ecological security detection parameter value. According to the abnormal second ecological security detection parameter value, the initial weight of the corresponding ecological security detection parameter is corrected, which improves the accuracy of the weight of the ecological security detection parameter, thereby improving the accuracy of the ecological risk index of each district and county in the target coastal city, and further improving the accuracy of ecological security monitoring in each district and county in the target coastal city.

[0011] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

[0012] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1A flow chart of a method for monitoring ecological security in districts and counties of coastal cities, provided as an embodiment of the present application; Figure 2 A structural block diagram of an ecological security monitoring device for various districts and counties in coastal cities provided in one embodiment of the present application; Figure 3 A schematic block diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0014] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

[0015] It should be clear that the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0016] The terms used in the embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit the embodiments of the present application. The singular forms "a," "the," and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0017] When the following description refers 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 the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.

[0018] In this application, unless otherwise specified, "plurality" refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0019] See also Figure 1, which is a flow chart of an ecological security monitoring method for each district and county of a coastal city provided by an embodiment of the present application. The ecological security monitoring method for each district and county of a coastal city provided by an embodiment of the present application includes the following steps: S10: Obtaining ecological security detection data of each district and county of the target coastal city; the ecological security detection data includes a plurality of ecological security detection parameters and a first ecological security detection parameter value corresponding to each ecological security detection parameter.

[0020] Among them, the target coastal cities are coastal cities where ecological security monitoring is to be carried out.

[0021] In an embodiment of the present application, based on the DPSIR (Driving Force-Pressure-State-Impact-Response) model, ecological security detection data of each district and county of the target coastal city are collected. The ecological security detection data are derived from the statistical yearbooks of coastal cities, environmental statistical yearbooks, environmental quality bulletins, marine environmental status bulletins, marine environmental quality bulletins, marine disaster bulletins, China Sea Level Bulletin, etc.

[0022] Specifically, ecological security monitoring parameters include driving force indicators, pressure indicators, status indicators, impact indicators, and response indicators. Driving force indicators include population density, gross domestic product, industrial output as a percentage of GDP, and marine output as a percentage of GDP. Pressure indicators include industrial SO2 emissions, industrial wastewater COD emissions, marine aquaculture area, total coastal tourist arrivals, and the number of typhoon storm surge disasters. Status indicators include nearshore and coastal wetland area, forest coverage, natural coastline retention rate, and water quality compliance rate in 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 compliance rate, energy consumption per unit of GDP (measured in standard coal), regional investment in disaster prevention and mitigation infrastructure, and investment in environmental protection and governance.

[0023] S20: performing standardization processing on 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.

[0024] In the embodiments of the present application, in order to ensure the comparability of different ecological safety detection data, the ecological safety detection data are standardized, wherein the standardization method can be the range standardization method or the Z-score standardization method.

[0025] 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 of the target coastal city; 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 of the target coastal city.

[0026] Among them, the spatial location information of each district and county of the target coastal city can be one of the administrative center location or geometric center location of each district and county of the target coastal city.

[0027] The neighborhood radius is used to define the neighborhood range of a data point, and the minimum number of neighborhood samples is used to determine whether a data point belongs to a high-density area (cluster). Specifically, if the number of data points in the neighborhood range of a data point is greater than or equal to the minimum number of neighborhood samples, the data point is determined to belong to a high-density area.

[0028] In an embodiment of the present application, a hierarchical analysis method can be used to initialize the weight of each ecological safety detection parameter to obtain the initial weight of each ecological safety detection parameter.

[0029] Specifically, each ecological security detection parameter is given an initial weight , k represents the kth ecological security detection parameter, such as gross domestic product, the proportion of industrial output value in GDP, the proportion of marine output value in GDP, etc., among which, , m represents the number of ecological safety detection parameters.

[0030] Each district or county includes multiple second ecological security detection parameter values. In order to identify abnormal second ecological security detection parameter values, it is necessary to determine the neighborhood radius and the minimum number of neighborhood samples for each ecological security detection parameter.

[0031] S40: Clustering 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 a 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.

[0032] The default density clustering method used is DBSCAN (Density-Based Spatial Clustering of Applications with Noise). DBSCAN's algorithm parameters, including the neighborhood radius and the minimum number of neighborhood samples, are used to partition points in the dataset into clusters and identify noise points. The specific clustering process can be referenced in existing technologies and will not be detailed here.

[0033] In an embodiment of the present application, the neighborhood radius of each ecological safety detection parameter and the minimum number of neighborhood samples of each ecological safety detection parameter are set as parameter values of a preset density clustering method, and the second ecological safety detection parameter value corresponding to each ecological safety detection parameter is used as input data of the preset density clustering method. The second ecological safety detection parameter value corresponding to each ecological safety detection parameter is clustered to identify the third ecological safety detection parameter value.

[0034] S50: According to 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; according to the target weight of each ecological security detection parameter and each second ecological security detection parameter value, the ecological risk index of each district and county in the target coastal city is obtained.

[0035] Among them, the ecological risk index is used to indicate the risk level of ecological security monitoring.

[0036] In an embodiment of the present application, when a second ecological security detection parameter value for a county or district shows an abnormality, the initial weight of the ecological security detection parameter corresponding to the second ecological security detection parameter value is corrected to obtain a target weight for the ecological security detection parameter. When a second ecological security detection parameter value for a county or district does not show an abnormality, the initial weight of the ecological security detection parameter corresponding to the second ecological security detection parameter value is used as the target weight for the ecological security detection parameter.

[0037] According to the target weight of each ecological security detection parameter, the second ecological security detection parameter value corresponding to each ecological security detection 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.

[0038] By comparing the ecological risk index of each county with the preset risk threshold, the risk level of each county can be determined. Specifically, when the ecological risk index of a county is greater than or equal to the first preset risk threshold, the county is determined to be at a high risk level. When the ecological risk index of a county is greater than or equal to the second preset risk threshold, and less than the first preset risk threshold, the county is determined to be at a medium risk level. When the ecological risk index of a county is less than the second preset risk threshold, the 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.

[0039] In the embodiment of the present application, the ecological security detection data of each district and county of the target coastal city are obtained; the ecological security detection data include several ecological security detection parameters and a first ecological security detection parameter value corresponding to each ecological security detection parameter; the first ecological security detection parameter value corresponding to each ecological security detection parameter is standardized to obtain a second ecological security detection parameter value corresponding to each ecological security detection parameter; the neighborhood radius of each ecological security detection parameter is determined based on each second ecological security detection parameter value, the initial weight of each ecological security detection parameter and the spatial location information of each district and county of the target coastal city; the minimum neighborhood radius of each ecological security detection parameter is determined based on each second ecological security detection parameter value and the total number of districts and counties of the target coastal city. The number of samples; based on the neighborhood radius of each ecological security detection parameter, the minimum number of neighborhood samples of each ecological security detection parameter, and the preset density clustering method, the second ecological security detection parameter value corresponding to each ecological security detection parameter is 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 the abnormal second ecological security detection parameter value in the second ecological security detection parameter value; 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; based on the target weight of each ecological security detection parameter and each second ecological security detection parameter value, the ecological risk index of each district and county of the target coastal city is obtained. This application clusters the second ecological security detection parameter value corresponding to each ecological security detection parameter by determining the neighborhood radius of each ecological security detection parameter and the minimum number of neighborhood samples of each ecological security detection parameter, and identifies the abnormal second ecological security detection parameter value. According to the abnormal second ecological security detection parameter value, the initial weight of the corresponding ecological security detection parameter is corrected, which improves the accuracy of the weight of the ecological security detection parameter, thereby improving the accuracy of the ecological risk index of each district and county in the target coastal city, and further improving the accuracy of ecological security monitoring in each district and county in the target coastal city.

[0040] In one embodiment, step S20 includes steps S201 to S204, which are specifically as follows: S201: Divide a number of ecological safety detection parameters into positive parameters and negative parameters.

[0041] Among them, the positive parameters include: gross domestic product, area of nearshore and coastal wetlands, forest coverage rate, natural coastline retention rate, water quality compliance rate of nearshore marine environmental functional zones, industrial wastewater discharge compliance rate, regional disaster prevention and mitigation infrastructure construction investment, and environmental protection and governance funding investment.

[0042] Negative parameters include: population density, proportion of industrial output value to GDP, proportion of marine output value to GDP, industrial SO2 emissions, COD emissions from industrial wastewater, area of marine aquaculture waters, total number of coastal tourists, number of typhoon storm surge disasters, sea level change, length of coastal erosion, annual average temperature in coastal areas, losses caused by major marine disasters in coastal areas, and energy consumption per unit of GDP (measured in standard coal).

[0043] S202: For the same ecological security detection parameter, determine the maximum value and minimum value of the first ecological security detection parameter value corresponding to the ecological security detection parameter from the first ecological security detection parameter values corresponding to the ecological security detection parameters of each district and county in the target coastal city; determine the range of the first ecological security detection parameter value based on the maximum value and minimum value of the first ecological security detection parameter value.

[0044] In this embodiment of the present application, the first ecological security detection parameter values corresponding to the same ecological security detection parameter in each district or county are compared to obtain the maximum and minimum values of the first ecological security detection parameter values corresponding to the ecological security detection parameter. The maximum and minimum values of the first ecological security detection parameter values are subtracted to obtain the range of the first ecological security detection parameter values.

[0045] S203: For the positive parameter, subtract the first ecological security detection parameter value corresponding to the positive parameter from the minimum value of the first ecological security detection parameter value corresponding to the positive parameter to obtain the difference; divide the difference by the extreme difference of the first ecological security detection parameter value corresponding to the positive parameter to obtain the second ecological security detection parameter value corresponding to the positive parameter.

[0046] In the embodiment of the present application, the formula for normalizing the forward parameter is as follows:

[0047] in, represents the second ecological security detection parameter value corresponding to the i-th positive parameter, represents the first ecological security detection parameter value corresponding to the i-th positive parameter, Indicates the minimum value of the first ecological security detection parameter corresponding to the i-th positive parameter, Indicates the maximum value of the first ecological security detection parameter corresponding to the i-th positive parameter.

[0048] S204: For a negative parameter, add the first ecological safety detection parameter value corresponding to the negative parameter and the inverse of the maximum value of the first ecological safety detection parameter value corresponding to the negative parameter to obtain a sum value; divide the sum value by the range of the first ecological safety detection parameter value corresponding to the negative parameter to obtain a second ecological safety detection parameter value corresponding to the negative parameter.

[0049] In the embodiment of the present application, the formula for normalizing the negative parameters is as follows:

[0050] in, Indicates the second ecological security detection parameter value corresponding to the i-th negative parameter, Indicates the first ecological security detection parameter value corresponding to the i-th negative parameter, Indicates the minimum value of the first ecological security detection parameter corresponding to the i-th negative parameter, Indicates the maximum value of the first ecological security detection parameter corresponding to the i-th negative parameter.

[0051] The embodiment of the present application adopts the range normalization method to standardize the positive parameters and the negative parameters, and can automatically and quickly obtain the second ecological safety detection parameter value corresponding to the positive parameter and the second ecological safety detection parameter value corresponding to the negative parameter.

[0052] In one embodiment, the step of determining the neighborhood radius of each ecological security detection parameter in step S30 based on each second ecological security detection parameter value, 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 steps S301 to S306, which are specifically as follows: S301: Determine the spatial autocorrelation index of each ecological security detection parameter according to each second ecological security detection parameter value.

[0053] In the embodiment of the present application, the calculation formula of the spatial autocorrelation index of each ecological safety detection parameter is as follows:

[0054]

[0055] Where I represents the spatial autocorrelation index, n represents the total number of counties and districts in the target coastal city, Indicates the second ecological security detection parameter value corresponding to an ecological security detection parameter of the i-th district or county, Indicates the second ecological security detection parameter value corresponding to an ecological security detection parameter of the jth district or county, Indicates the average value of the second ecological security detection parameter corresponding to an ecological security detection parameter, Represents the weight of the adjacent relationship between each district and county. When the i-th district and county are adjacent to the j-th district and county, =1, otherwise, =0.

[0056] Based on the above calculation formula, the spatial autocorrelation index of each ecological security detection parameter can be calculated.

[0057] S302: Determine the spatial distances between the districts and counties based on the spatial location information of the districts and counties of the target coastal city; traverse each district and county, sort the spatial distances between the current district and county and the remaining districts and counties in ascending order, and use the spatial distance sorted in the first preset position as the adjacent distance of the current district and county.

[0058] Among them, the first preset position can be set according to actual needs.

[0059] In this embodiment of the present application, the spatial distances between the i-th county and each of the other counties are calculated, these spatial distances are sorted in ascending order, and the k-th closest spatial distance to the i-th county is used as the proximity distance of the i-th county. Where k is set according to actual needs, for example, k=5.

[0060] S303: Sort the proximity distances of each district or county in ascending order, and use the proximity distance at the second preset position as the target proximity distance.

[0061] The second preset position can be set according to actual needs.

[0062] In the embodiment of the present application, after obtaining the proximity distance of each district or county, the proximity distances of each district or county are sorted in ascending order to determine the target proximity distance. For example, if there are 100 proximity distances, the proximity distance ranked 95 is used as the target proximity distance.

[0063] S304: Determine a first neighborhood radius of each ecological security detection parameter according to the spatial autocorrelation index of each ecological security detection parameter and the target proximity distance.

[0064] In the embodiment of the present application, the calculation formula of the first neighborhood radius is:

[0065]

[0066] in, represents the first neighborhood radius, I represents the spatial autocorrelation index, L represents the target proximity distance, Represents the adjustment coefficient.

[0067] S305: Determine a second neighborhood radius for 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 each district and county, and the initial weight of each ecological security detection parameter.

[0068] In the embodiment of the present application, the calculation process of the second neighborhood radius is as follows:

[0069] Among them, d represents the comprehensive measure of the distance between the i-th district and county and the parameter value, Indicates the second ecological security detection parameter value corresponding to the kth ecological security detection parameter of the i-th district or county, Indicates the second ecological security detection parameter value corresponding to the kth ecological security detection parameter of the jth district or county, represents the initial weight of the kth ecological security detection parameter, represents the spatial distance between the i-th district and county and the j-th district and county, Indicates the preset coefficient.

[0070] After obtaining the comprehensive measure of the distance and parameter values between any two districts and counties, the average of the comprehensive measures of the distance and parameter values between all districts and counties is calculated, and the average is used as the second neighborhood radius.

[0071] S306: Determine the neighborhood radius of each ecological security detection parameter according to the first neighborhood radius and the second neighborhood radius.

[0072] In an embodiment of the present application, the sum of the first neighborhood radius of each ecological security detection parameter and the second neighborhood radius of each ecological security detection parameter is used as the neighborhood radius of each ecological security detection parameter.

[0073] In one embodiment, the step of determining the minimum number of neighborhood samples for each ecological security detection parameter based on each second ecological security detection parameter value and the total number of counties and districts in the target coastal city in step S30 includes steps S31 to S32, specifically as follows: S31: Count the total number of the second ecological security detection parameter values of each district and county in the target coastal city.

[0074] S32: Determine the minimum number of neighborhood samples 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 city.

[0075] In the embodiment of the present application, the calculation formula for the minimum number of neighborhood samples for each ecological safety detection parameter is:

[0076] in, represents the minimum number of neighborhood samples, p represents the sum of the second ecological security detection parameter values of each district and county, n represents the total number of districts and counties in the target coastal city, Indicates rounding up. Indicates rounding down.

[0077] In one embodiment, the step of correcting the initial weight of each ecological safety detection parameter according to the third ecological safety detection parameter value in step S50 to obtain the target weight of each ecological safety detection parameter includes steps S51 to S55, which are specifically as follows: S51: Counting the number of third ecological security detection parameter values corresponding to each ecological security detection parameter.

[0078] S52: Sum the number of third ecological security detection parameter values corresponding to each ecological security detection parameter to obtain a target number.

[0079] S53: Determine the abnormal frequency of the third ecological security detection parameter value corresponding to each ecological security detection parameter according to the number of the third ecological security detection parameter values corresponding to each ecological security detection parameter and the target number.

[0080] In the embodiment of the present application, the number of third ecological security detection parameter values corresponding to each ecological security detection parameter is divided by the target number to obtain the abnormal frequency of the third ecological security detection parameter value corresponding to each ecological security detection parameter. Specifically, the expression of the abnormal frequency is:

[0081] in, represents the number of the third ecological security detection parameter values corresponding to the kth ecological security detection parameter, Indicates the number of targets.

[0082] S54: Obtaining an intermediate weight of each ecological safety detection parameter according to the abnormal frequency and the initial weight of each ecological safety detection parameter.

[0083] In the embodiment of the present application, the expression of the intermediate weight is:

[0084] in, represents the intermediate weight of the kth ecological security detection parameter, Represents the coefficient.

[0085] S55: normalizing the intermediate weight of each ecological security detection parameter to obtain the target weight of each ecological security detection parameter.

[0086] In the embodiment of the present application, the expression of the target weight is:

[0087] in, Represents the target weight of the kth ecological security detection parameter.

[0088] In one embodiment, step S55 includes steps S551 to S553, which are specifically as follows: S551: Normalize the intermediate weight of each ecological safety detection parameter to obtain the normalized weight.

[0089] In the embodiment of the present application, the specific process of step S551 can refer to step S55 and will not be repeated here.

[0090] S552: Using the sliding window Z-score method, perform spatial local abnormal state detection on the second ecological security detection parameter value corresponding to each ecological security detection parameter to obtain the abnormal state detection results of the second ecological security detection parameter value corresponding to each ecological security detection parameter in each district and county.

[0091] In an embodiment of the present application, for each ecological safety detection parameter, the average value and standard deviation of the second ecological safety detection parameter value corresponding to each ecological safety detection parameter are calculated, the second ecological safety detection parameter value corresponding to each ecological safety detection parameter is subtracted from the average value to obtain a difference, and the difference is divided by the standard deviation to obtain a Z-score value. The Z-score value is compared with a preset threshold value. When the Z-score value is greater than or equal to the preset threshold value, the second ecological safety detection parameter value is determined to be an abnormal value. When the Z-score value is less than the preset threshold value, the second ecological safety detection parameter value is determined to be a normal value.

[0092] S553: When the abnormal state detection result indicates that there is an abnormality in the current second ecological safety detection parameter value in the current district or county, the normalized weight of the ecological safety detection parameter corresponding to the current second ecological safety detection parameter value of the current district or county is multiplied by the preset value to obtain the target weight of the ecological safety detection parameter corresponding to the current second ecological safety detection parameter value of the current district or county.

[0093] In the embodiment of the present application, the expression of the target weight is:

[0094] in, is a coefficient, and its specific value is greater than 1.

[0095] In one embodiment, the step of obtaining the ecological risk index of each district and county of the target coastal city according to the target weight of each ecological security detection parameter and each second ecological security detection parameter value in step S50 includes steps S501 to S502, which are specifically as follows: S501: Multiplying the second ecological security detection parameter value corresponding to each ecological security detection parameter of each district and county in the target coastal city by the target weight of each ecological security detection parameter to obtain an ecological risk index for each ecological security detection parameter of each district and county in the target coastal city; S502: Sum the ecological risk index of each ecological security detection parameter of each district and county in the target coastal city to obtain the ecological risk index of each district and county in the target coastal city.

[0096] In the embodiment of the present application, the expression of the ecological risk index of each district and county of the target coastal city is as follows:

[0097] in, represents the ecological risk index of the i-th district or county.

[0098] The following are embodiments of the apparatus of the present application, which can be used to execute the contents of the method in the embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the contents of the method in the embodiments of the present application.

[0099] See Figure 2 , which shows a schematic diagram of the structure of the ecological security monitoring device for each district and county of a coastal city provided by an embodiment of the present application. The ecological security monitoring device 6 for each district and county of a coastal city provided by an embodiment of the present application includes: The data acquisition module 61 is used to obtain ecological security detection data of each district and county of the target coastal city; the ecological security detection data includes a plurality of ecological security detection parameters and a first ecological security detection parameter value corresponding to each ecological security detection parameter; a parameter value processing module 62 for performing standardization processing on the first ecological safety detection parameter value corresponding to each ecological safety detection parameter to obtain a second ecological safety detection parameter value corresponding to each ecological safety detection parameter; The neighborhood radius determination module 63 is configured 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 of 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 of the target coastal city; The parameter value clustering module 64 is configured to cluster the second ecological security detection parameter value corresponding to each ecological security detection parameter based on 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 a 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 65 is used to correct the initial weight of each ecological safety detection parameter based on the third ecological safety detection parameter value to obtain the target weight of each ecological safety detection parameter; based on the target weight of each ecological safety detection parameter and each second ecological safety detection parameter value, obtain the ecological risk index of each district and county in the target coastal city.

[0100] It should be noted that the ecological security monitoring device for each district and county of a coastal city provided in the above embodiment only uses the division of the above functional modules as an example when executing the ecological security monitoring method for each district and county of a coastal city. In actual application, 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 each district and county of a coastal city provided in the above embodiment and the ecological security monitoring method for each district and county of a coastal city are of the same concept. The implementation process is detailed in the method embodiment and will not be repeated here.

[0101] The following are device embodiments of the present application, which can be used to perform the content of the method in the embodiment of the present application. For details not disclosed in the device embodiments of the present application, please refer to the content of the method in the embodiment of the present application.

[0102] See also Figure 3 The present application also provides an electronic device 300, which may be a computer, a mobile phone, a tablet computer, etc. In an exemplary embodiment of the present 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, a user interface 304, and at least one communication bus 305.

[0103] The user interface 304 is mainly used to provide an input interface for the user and obtain data input by the user. Optionally, the user interface can also include a standard wired interface or a wireless interface.

[0104] The network interface 303 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0105] The communication bus 305 is used to realize the connection and communication between these components.

[0106] The processor 301 may include one or more processing cores. The processor utilizes various interfaces and circuits to connect various components within the electronic device. It executes instructions, programs, code sets, or instruction sets stored in memory, and accesses data stored in memory to perform various functions and process data. Optionally, the processor may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing content displayed on the display layer; and the modem handles wireless communications. It is understood that the modem may also be implemented as a separate chip, rather than integrated into the processor.

[0107] Among them, the memory 302 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory includes a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, codes, 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 a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory may also be optionally at least one storage device located away from the aforementioned processor. As Figure 3 , as a computer storage medium, the memory may include an operating system, a network communication module, a user interface module, and an operating application.

[0108] The processor can be used to call the application of the ecological security monitoring method for each district and county in the coastal city stored in the memory, and specifically execute the method steps of the above-mentioned embodiment. The specific execution process can be found in the specific description shown in the embodiment, which will not be repeated here.

[0109] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0110] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A method for monitoring ecological security in coastal urban districts and counties, characterized in that: The steps include: Obtaining ecological security detection data for each district and county of the target coastal city; the ecological security detection data includes a plurality of ecological security detection parameters and a first ecological security detection parameter value corresponding to each of the ecological security detection parameters; performing standardization processing on the first ecological safety detection parameter value corresponding to each of the ecological safety detection parameters to obtain a second ecological safety detection parameter value corresponding to each of the ecological safety detection parameters; 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 of the target coastal city; 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 of the target coastal city; Clustering the second ecological security detection parameter value corresponding to each ecological security detection parameter based on 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 a 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; According to 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; according to the target weight of each ecological security detection parameter and each second ecological security detection parameter value, the ecological risk index of each district and county in the target coastal city is obtained.

2. The method for monitoring ecological security in coastal urban districts and counties according to claim 1, characterized in that: The step of determining the neighborhood radius of each of the second ecological security detection parameters based on each of the second ecological security detection parameter values, the initial weight of each of the ecological security detection parameters, and the spatial location information of each district and county of the target coastal city includes: determining a spatial autocorrelation index of each of the ecological security detection parameters according to each of the second ecological security detection parameter values; Determine the spatial distances between the counties based on the spatial location information of the target coastal city districts; traverse each county, sort the spatial distances between the current county and the remaining counties in ascending order, and use the spatial distance that is ranked first in a preset position as the neighboring distance of the current county; Sort the proximity distances of each of the districts and counties in ascending order, and use the proximity distance in the second preset position as the target proximity distance; determining a first neighborhood radius of each of the ecological security detection parameters according to the spatial autocorrelation index of each of the ecological security detection parameters and the target proximity distance; Determining a second neighborhood radius of each ecological security detection parameter according to a 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 of the ecological safety detection parameters is determined based on the first neighborhood radius and the second neighborhood radius.

3. The method for monitoring ecological security in coastal urban districts and counties according to claim 1, characterized in that: The step of determining the minimum number of neighborhood samples for each of the second ecological security detection parameter values and the total number of districts and counties of the target coastal city comprises: Count the total number of the second ecological security detection parameter values of each district and county in the target coastal city; The minimum number of neighborhood samples for each of the ecological security detection parameters is determined based on the total number of the second ecological security detection parameter values and the total number of districts and counties in the target coastal cities.

4. The method for monitoring ecological security in coastal urban districts and counties according to claim 1, characterized in that: The step of correcting the initial weight of each of the ecological safety detection parameters according to the third ecological safety detection parameter value to obtain the target weight of each of the ecological safety detection parameters includes: Counting the number of third ecological safety detection parameter values corresponding to each of the ecological safety detection parameters; summing the number of third ecological safety detection parameter values corresponding to each of the ecological safety detection parameters to obtain a target number; determining, according to the number of third ecological security detection parameter values corresponding to each of the ecological security detection parameters and the target number, an abnormal frequency of the third ecological security detection parameter value corresponding to each of the ecological security detection parameters; Obtaining an intermediate weight of each of the ecological safety detection parameters according to the abnormal frequency and the initial weight of each of the ecological safety detection parameters; The intermediate weight of each of the ecological safety detection parameters is normalized to obtain the target weight of each of the ecological safety detection parameters.

5. The method for monitoring ecological security in coastal urban districts and counties according to claim 4, characterized in that: The step of normalizing the intermediate weight of each ecological safety detection parameter to obtain the target weight of each ecological safety detection parameter includes: Normalizing the intermediate weight of each of the ecological safety detection parameters to obtain a normalized weight; Using the sliding window Z-score method, perform spatial local abnormal state detection on the second ecological security detection parameter value corresponding to each of the ecological security detection parameters, and obtain abnormal state detection results of the second ecological security detection parameter value corresponding to each of the ecological security detection parameters in each district and county; When the abnormal state detection result indicates that there is an abnormality in the current second ecological safety detection parameter value in the current district or county, the normalized weight of the ecological safety detection parameter corresponding to the current second ecological safety detection parameter value of the current district or county is multiplied by the preset value to obtain the target weight of the ecological safety detection parameter corresponding to the current second ecological safety detection parameter value of the current district or county.

6. The method for monitoring ecological security of coastal cities and counties according to any one of claims 1 to 5, characterized in that: The step of obtaining the ecological risk index of each district and county of the target coastal city according to the target weight of each ecological security detection parameter and each second ecological security detection parameter value includes: Multiplying the second ecological security detection parameter value corresponding to each of the ecological security detection parameters of each district and county in the target coastal city by the target weight of each ecological security detection parameter to obtain the ecological risk index of each of the ecological security detection parameters of each district and county in the target coastal city; The ecological risk index of each ecological security detection parameter of each district and county in the target coastal city is summed to obtain the ecological risk index of each district and county in the target coastal city.

7. The method for monitoring ecological security of coastal cities and counties according to any one of claims 1 to 5, characterized in that: The step of performing standardization processing on the first ecological safety detection parameter value corresponding to each of the ecological safety detection parameters to obtain the second ecological safety detection parameter value corresponding to each of the ecological safety detection parameters includes: Divide several ecological security detection parameters into positive parameters and negative parameters; For the same ecological security detection parameter, determine the maximum and minimum values of the first ecological security detection parameter values corresponding to the ecological security detection parameter from the first ecological security detection parameter values corresponding to the ecological security detection parameter of each district or county in the target coastal city; and determine the range of the first ecological security detection parameter values based on the maximum and minimum values of the first ecological security detection parameter values; For the positive parameter, subtract the first ecological security detection parameter value corresponding to the positive parameter from the minimum value of the first ecological security detection parameter value corresponding to the positive parameter to obtain a difference; divide the difference by the range of the first ecological security detection parameter value corresponding to the positive parameter to obtain a second ecological security detection parameter value corresponding to the positive parameter; For the negative parameter, add the first ecological safety detection parameter value corresponding to the negative parameter and the inverse of the maximum value of the first ecological safety detection parameter value corresponding to the negative parameter to obtain the sum value; divide the sum value by the range of the first ecological safety detection parameter value corresponding to the negative parameter to obtain the second ecological safety detection parameter value corresponding to the negative parameter.

8. An ecological security monitoring device for coastal cities and counties, characterized by: include: The data acquisition module is used to obtain ecological security detection data of each district and county in the target coastal city; The ecological safety detection data includes a plurality of ecological safety detection parameters and a first ecological safety detection parameter value corresponding to each of the ecological safety detection parameters; a parameter value processing module, configured to perform standardization processing on a first ecological safety detection parameter value corresponding to each of the ecological safety detection parameters to obtain a second ecological safety detection parameter value corresponding to each of the ecological safety detection parameters; a neighborhood radius determination module, configured to determine the neighborhood radius of each of the second ecological security detection parameters based on the value of each second ecological security detection parameter, the initial weight of each of the ecological security detection parameters, and the spatial location information of each district and county of the target coastal city; and determine the minimum number of neighborhood samples for each of the ecological security detection parameters based on the value of each second ecological security detection parameter and the total number of districts and counties of the target coastal city; a parameter value clustering module, configured to cluster the second ecological security detection parameter value corresponding to each of the ecological security detection parameters based on the neighborhood radius of each of the ecological security detection parameters, the minimum number of neighborhood samples of each of the ecological security detection parameters, and a preset density clustering method, to obtain a third ecological security detection parameter value corresponding to each of the ecological security detection parameters; 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 safety detection parameter according to the third ecological safety detection parameter value to obtain the target weight of each ecological safety detection parameter; and obtain the ecological risk index of each district and county of the target coastal city according to the target weight of each ecological safety detection parameter and each second ecological safety detection parameter value.

9. An electronic device comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

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

  • Mine ecological risk prediction method and system based on artificial intelligence

    CN120278532A

  • Ecological vehicle safety inspection / maintenance system and business method for the same

    JP2011192249A

  • Apparatus and method for evaluating integrated risk in agricultural field

    KR102770323B1