Method and device for evaluating living environment quality of organisms and electronic equipment
The machine learning algorithm based on the gradient boosting framework trains the living environment quality assessment model to predict the occurrence probability of target biological nests, solving the problem of low accuracy of habitat quality assessment in the existing technology and achieving more accurate habitat quality assessment and protection measures. formulation.
Patent Information
- Application Number
- CN202410722646.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-05
AI Technical Summary
The existing technology has the problem of low data quality in habitat quality assessment, resulting in low accuracy of assessment results, especially when using the InVEST model or the Forest-BGC model.
A machine learning algorithm based on the gradient boosting framework is used to obtain the spatialized environmental data of the target organism's living environment to be evaluated, train the living environment quality assessment model, and predict the occurrence probability of the target organism's nest, thereby improving the accuracy of habitat quality assessment.
Through the analysis of nest probability, we can accurately evaluate the habitat quality of the target organism in the living environment to be evaluated, improve the accuracy of the habitat quality assessment results, and guide protective measures to improve the quality of the target organism's living environment.
Smart Images

Figure CN118690134A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of habitat quality assessment, for example, to a method and device, and electronic equipment for assessing the quality of a biological living environment. Background Art
[0002] At present, in order to protect rare and endangered species and improve habitat quality, my country has established a number of nature reserves for rare and endangered species. The assessment of habitat quality in nature reserves can help formulate targeted protection measures and provide scientific guidance for the protection work of nature conservation workers. However, there are still limitations in the current assessment of habitat quality for rare and endangered species, such as lack of real-time data and single assessment model, and the results of habitat quality assessment are not accurate.
[0003] Related technology discloses a habitat quality monitoring method, including: constructing a basic geographic database in a cloud platform based on attribute information of multiple monitoring areas and multi-source land cover products; constructing a habitat quality monitoring model in a cloud platform based on evaluation rule information in a desktop evaluation model; obtaining habitat quality evaluation parameters of a target monitoring area through public information; obtaining land cover products corresponding to the target monitoring area based on a geographic database; inputting habitat quality evaluation parameters and corresponding land cover products of the target monitoring area into the habitat quality monitoring model to obtain the habitat quality of the target monitoring area. Among them, the desktop evaluation model is, for example, the InVEST model (Integrated Valuation of Ecosystem Services and Trade-offs) or the Forest-BGC model (forest biogeochemical cycles, process-based biogeochemical cycle model).
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] In the related art, a habitat quality monitoring model is constructed on a cloud platform based on the InVEST model or the Forest-BGC model. However, when the data quality is not high, there is still the problem of low accuracy of habitat quality assessment results.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a method, an apparatus, and an electronic device for evaluating the quality of a biological living environment, so as to improve the accuracy of the habitat quality evaluation results.
[0009] In some embodiments, a method for evaluating the quality of a biological living environment includes: obtaining spatialized environmental data of a living environment to be evaluated in which a target organism is located; wherein the spatialized environmental data includes spatialized raster data of environmental data of the living environment to be evaluated; inputting the spatialized environmental data into a living environment quality evaluation model corresponding to the target organism to obtain a nest probability of the target organism's nest appearing in the living environment to be evaluated; wherein the living environment quality evaluation model is obtained by training a machine learning algorithm based on a gradient boosting framework; and determining a habitat quality evaluation result of the living environment to be evaluated for the target organism based on the nest probability.
[0010] Optionally, a living environment quality assessment model corresponding to the target organism is obtained in the following manner: a training data set is obtained based on the environmental data of the living environment of the target organism and the distribution data of the target organism's nest; the training data set includes a training set and a test set; a machine learning algorithm based on a gradient boosting framework is used to perform model training on the training set, and model parameters are determined to obtain an initial living environment quality assessment model; error evaluation and optimization training are performed on the initial living environment quality assessment model based on the test set to obtain a trained living environment quality assessment model.
[0011] Optionally, a training data set is obtained based on environmental data of the target organism's living environment and the target organism's nest distribution data, including: spatially gridding the environmental data to obtain environmental grid data, and spatially gridding the target organism's nest distribution data to obtain label grid data; using the environmental grid data and the label grid data as a grid data set; extracting the grid data set into a corresponding spatial grid to obtain a training data set.
[0012] Optionally, the environmental data includes water source information, soil information, elevation and land use type; the environmental data is spatially gridded to obtain environmental grid data, including: spatially processing the water source information and soil information respectively to obtain raster data; uniformly projecting raster data such as water source information, soil information, elevation, land use type, etc. to obtain projection data; dividing the living environment to be evaluated into spatial grids of preset sizes, and assigning the projection data to the spatial grids corresponding to the projection data to obtain environmental grid data.
[0013] Optionally, the method also includes: normalizing the elevation, soil information and water source information; and, performing classification variable processing on the land use type.
[0014] Optionally, a machine learning algorithm based on a gradient boosting framework performs model training on the training set to determine model parameters, including: performing model training on the training set based on a machine learning algorithm based on a gradient boosting framework to determine multiple initial parameter combinations; determining a target parameter combination from multiple initial parameter combinations according to preset evaluation indicators; and optimizing and adjusting the target parameter combination to obtain model parameters.
[0015] Optionally, the initial living environment quality assessment model is optimized and trained according to the test set to obtain a trained living environment quality assessment model, including: inputting the test set into the initial living environment quality assessment model to obtain a test result; evaluating the error of the initial living environment quality assessment model according to the test result to obtain an error evaluation result; optimizing and adjusting the initial living environment quality assessment model according to the error evaluation result to obtain a trained living environment quality assessment model.
[0016] Optionally, based on the nest probability, the habitat quality assessment result of the living environment to be assessed for the target organism is determined, including: dividing the nest probability according to preset habitat quality assessment levels; and generating a habitat quality assessment map based on the divided nest probability.
[0017] In some embodiments, the device for evaluating the quality of a biological living environment includes a processor and a memory storing program instructions, and the processor is configured to execute the method for evaluating the quality of a biological living environment as described above when running the program instructions.
[0018] In some embodiments, the electronic device includes: an electronic device body; and the device for evaluating the quality of a biological living environment as described above, which is installed in the electronic device body.
[0019] The method, device, and electronic device for evaluating the quality of a biological living environment provided by the embodiments of the present disclosure can achieve the following technical effects:
[0020] In the disclosed embodiment, the spatialized environmental data of the target organism's living environment to be evaluated is obtained, and a living environment quality evaluation model obtained by training a machine learning algorithm based on a gradient boosting framework is input to obtain the nest probability of the target organism's nest in the living environment to be evaluated output by the model, and the habitat quality evaluation result of the living environment to be evaluated for the target organism is analyzed by the nest probability. The nest probability of the target organism's nest appearing in the living environment to be evaluated is predicted. The higher the nest probability, the higher the possibility of the target organism building a nest in the area, and the more suitable the area is for the survival of the target organism. By analyzing the nest probability, the habitat quality of the living environment to be evaluated for the target organism can be accurately obtained, and the accuracy of the habitat quality evaluation results can be improved. In addition, after obtaining the habitat quality evaluation results, protection can be carried out according to the areas with a higher probability of the target organism's nest in the living environment to be evaluated, thereby improving the quality of the living environment of the target organism.
[0021] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0023] Figure 1 is a schematic diagram of a method for evaluating the quality of a living environment of a biological organism provided by an embodiment of the present disclosure;
[0024] Figure 2 is a schematic diagram of a method for constructing a living environment quality assessment model provided by an embodiment of the present disclosure;
[0025] Figure 3 is a schematic diagram of another method for constructing a living environment quality assessment model provided by an embodiment of the present disclosure;
[0026] Figure 4 is a schematic diagram of another method for evaluating the quality of a living environment for organisms provided by an embodiment of the present disclosure;
[0027] Figure 5 is a schematic diagram of a habitat quality assessment map for black-headed gulls provided in an embodiment of the present disclosure;
[0028] Figure 6 It is a schematic diagram of a device for evaluating the quality of a living environment of organisms provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0030] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0031] Unless otherwise stated, the term "plurality" means two or more.
[0032] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0033] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0034] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0035] Combination Figure 1 As shown, the embodiment of the present disclosure provides a method for evaluating the quality of a living environment for organisms. The execution subject of the method may be a processor. The method includes:
[0036] S001, the processor obtains the spatialized environmental data of the living environment to be evaluated where the target organism is located; wherein the spatialized environmental data includes the spatialized raster data of the environmental data of the living environment to be evaluated.
[0037] S002, the processor inputs the spatialized environmental data into the living environment quality assessment model corresponding to the target organism, and obtains the nest probability of the target organism's nest appearing in the living environment to be assessed; wherein, the living environment quality assessment model is obtained by training the machine learning algorithm based on the gradient boosting framework.
[0038] S003, the processor determines the habitat quality assessment result of the living environment to be assessed for the target organism based on the nest probability.
[0039] In the disclosed embodiment, the spatialized environmental data of the target organism's living environment to be evaluated is obtained, and a living environment quality evaluation model obtained by training a machine learning algorithm based on a gradient boosting framework is input to obtain the nest probability of the target organism's nest in the living environment to be evaluated output by the model, and the habitat quality evaluation result of the living environment to be evaluated for the target organism is analyzed by the nest probability. The nest probability of the target organism's nest appearing in the living environment to be evaluated is predicted. The higher the nest probability, the higher the possibility of the target organism building a nest in the area, and the more suitable the area is for the survival of the target organism. By analyzing the nest probability, the habitat quality of the living environment to be evaluated for the target organism can be accurately obtained, and the accuracy of the habitat quality evaluation results can be improved. In addition, after obtaining the habitat quality evaluation results, protection can be carried out according to the areas with a higher probability of the target organism's nest in the living environment to be evaluated, thereby improving the quality of the living environment of the target organism.
[0040] Optionally, a living environment quality assessment model corresponding to the target organism is obtained in the following manner: a training data set is obtained based on the environmental data of the living environment of the target organism and the distribution data of the target organism's nest; the training data set includes a training set and a test set; a machine learning algorithm based on a gradient boosting framework is used to perform model training on the training set, and model parameters are determined to obtain an initial living environment quality assessment model; error evaluation and optimization training are performed on the initial living environment quality assessment model based on the test set to obtain a trained living environment quality assessment model.
[0041] Combination Figure 2 As shown, the embodiment of the present disclosure provides a method for constructing a living environment quality assessment model. The execution subject of the method may be a processor. The method includes:
[0042] S101, the processor obtains a training data set according to the environmental data of the living environment of the target organism and the distribution data of the target organism's nest; the training data set includes a training set and a test set.
[0043] S102, the processor performs model training on the training set based on the machine learning algorithm of the gradient boosting framework, determines the model parameters, and obtains the initial living environment quality assessment model.
[0044] S103, the processor optimizes and trains the initial living environment quality assessment model according to the test set to obtain a trained living environment quality assessment model.
[0045] The training process of the living environment quality assessment model includes obtaining a training data set, training a model, and optimizing the model. The training data set is divided into a training set and a test set, where the training set and the test set account for 80% and 20% respectively. The machine learning algorithm based on the gradient boosting framework uses the training set to perform preliminary training on the model, and then uses the test set to optimize the model to obtain a trained living environment quality assessment model.
[0046] Optionally, a training data set is obtained based on environmental data of the target organism's living environment and the target organism's nest distribution data, including: spatially gridding the environmental data to obtain environmental grid data, and spatially gridding the target organism's nest distribution data to obtain label grid data; using the environmental grid data and the label grid data as a grid data set; extracting the grid data set into a corresponding spatial grid to obtain a training data set.
[0047] In this embodiment, the environmental data and the target organism nest distribution data are spatially gridded, respectively, so that the living environment of the target organism can be divided into multiple spatial grids, and in each spatial grid, the environmental data and the organism nest distribution data corresponding to the spatial grid are determined.
[0048] Optionally, the environmental data includes water source information, soil information, elevation and land use type; the environmental data is spatially gridded to obtain environmental grid data, including: spatially processing the water source information and soil information respectively to obtain raster data; uniformly projecting raster data such as water source information, soil information, elevation, land use type, etc. to obtain projection data; dividing the living environment to be evaluated into spatial grids of preset sizes, and assigning the projection data to the spatial grids corresponding to the projection data to obtain environmental grid data.
[0049] In this embodiment, the environmental data that affects the nesting of organisms includes water source information, soil information, elevation, and land use type. The water source information and soil information will be different in each area of the target organism's living environment, so it is necessary to spatially process the water source information and soil information respectively to obtain corresponding raster data. Then, the raster data is uniformly projected with the elevation and land use type to obtain projection data. Finally, the projection data is assigned to the corresponding spatial grid.
[0050] Optionally, the water source information includes the distance to the coastline and the distance to the riverbank.
[0051] Optionally, the soil information includes soil copper content, soil electrical conductivity, soil lead content, soil pH, soil temperature, normalized vegetation index, and vegetation height.
[0052] Optionally, the water source information is spatially processed, including: using ARCGIS (Advanced Raster and Geographic Information System, Geographic Information System) distance analysis to calculate the distance from the target biological living environment to the coastline and riverbank, and outputting it as raster data.
[0053] ARCGIS is a comprehensive geographic information system construction and application platform. Through the distance analysis function of ARCGIS, the distance from the target biological habitat to the coastline and riverbank can be quickly obtained and output as raster data.
[0054] Optionally, the soil information is spatially processed, including: based on the Kriging interpolation method of ARCGIS, the data such as vegetation height, soil copper content, soil conductivity, soil lead content, soil pH, soil temperature in the target biological living environment are spatialized into raster data.
[0055] Kriging interpolation is a mathematical interpolation method based on spatial autocorrelation theory. It determines the location of the interpolation point, calculates the spatial weights of the surrounding data points to the interpolation point, and calculates the contribution rate of the surrounding data points to the interpolation point based on the spatial weights. Finally, the contribution rate of the surrounding data points to the interpolation point is used to estimate the value of the interpolation point. For the data type in soil information, the soil information of adjacent data points usually affects each other. Therefore, the Kriging interpolation method can be used to interpolate the soil information in the living environment of the target organism to obtain richer soil information data.
[0056] Optionally, the raster data, the elevation, and the land use type are projected, including: the raster data, the elevation, and the land use type are uniformly projected using a projection tool of ARCGIS.
[0057] The projection tool of ARCGIS can convert geographic data from one coordinate system to another. In this embodiment, the raster data, elevation, and land use type need to be projected onto the same coordinate system to unify different environmental data and facilitate the subsequent assignment of the spatial grid of the target biological living environment.
[0058] Optionally, the living environment to be evaluated is divided into spatial grids of preset sizes, including: using a fishing net tool of ARCGIS to divide the space of the living environment of the target organism into spatial grids of preset sizes.
[0059] In the ARCGIS fishing net tool, by setting the fishing net parameters, the target biological habitat can be divided into spatial grids. The preset sizes of spatial grids include: 10m×10m spatial grids.
[0060] Optionally, assigning the projection data to a spatial grid corresponding to the projection data includes: using a spatial statistical tool to assign the projection data to the corresponding spatial grid using a grid mean.
[0061] In a spatial grid, there may be multiple environmental data collection points. The mean value of each environmental data of all collection points in the spatial grid is calculated as the environmental data of the spatial grid.
[0062] Optionally, the target biological nest distribution data is spatially gridded, including: after dividing the space of the target biological living environment into spatial grids of preset sizes, for each spatial grid, if there is a target biological nest, the label of the spatial grid is recorded as 1, otherwise the label of the spatial grid is recorded as 0.
[0063] Optionally, the method also includes: normalizing the elevation, soil information and water source information; and, performing classification variable processing on the land use type.
[0064] In this embodiment, in different areas of the target biological living environment, the elevation, soil information and water source information will vary greatly. Directly using them as data for model training may produce large errors, so these data need to be normalized. In addition, the land use type is text data, and classification variable processing can be performed to classify different types of land use types.
[0065] Optionally, taking elevation as an example, the elevation is normalized according to the following formula:
[0066]
[0067] Among them, x inew is the normalized value of the ith elevation, x i is the value of the ith elevation, x min is the minimum value of elevation, x max is the maximum value of the elevation.
[0068] Optionally, a machine learning algorithm based on a gradient boosting framework performs model training on the training set to determine model parameters, including: performing model training on the training set based on a machine learning algorithm based on a gradient boosting framework to determine multiple initial parameter combinations; determining a target parameter combination from multiple initial parameter combinations according to preset evaluation indicators; and optimizing and adjusting the target parameter combination to obtain model parameters.
[0069] Combination Figure 3 As shown, the embodiment of the present disclosure provides another method for constructing a living environment quality assessment model, comprising:
[0070] S201, the processor obtains a training data set according to the environmental data of the living environment of the target organism and the distribution data of the target organism's nest; the training data set includes a training set and a test set.
[0071] S202, the processor performs model training on the training set based on a machine learning algorithm of a gradient boosting framework to determine multiple initial parameter combinations.
[0072] S203: The processor determines a target parameter combination from a plurality of initial parameter combinations according to a preset evaluation index.
[0073] S204, the processor optimizes and adjusts the target parameter combination, obtains model parameters, and determines an initial living environment quality assessment model.
[0074] S205, the processor optimizes and trains the initial living environment quality assessment model according to the test set to obtain a trained living environment quality assessment model.
[0075] By training the model on the training set, multiple initial parameter combinations can be determined. For each initial parameter combination, an evaluation result is obtained. Based on the preset evaluation index, the target parameter combination can be determined from the multiple initial parameter combinations. Finally, the target parameter combination is optimized and adjusted to determine the optimal parameter combination as the model parameter.
[0076] Optionally, machine learning algorithms based on the gradient boosting framework include: LightGBM (Light GradientBoosting Machine).
[0077] LightGBM is a fast, distributed, high-performance gradient boosting framework based on the gradient boosting framework for sorting, classification, and many other machine learning tasks. It is based on a tree algorithm and optimized using a histogram-based decision tree algorithm. LightGBM has faster training speed and lower memory consumption while maintaining high accuracy. Using the LightGBM algorithm, a large amount of data in the training set can be quickly processed to determine the multiple initial parameter combinations required.
[0078] Optionally, according to preset evaluation indicators, a target parameter combination is determined among multiple initial parameter combinations, including: performing a search process for all parameters respectively, and determining the optimal parameter of each parameter according to the preset evaluation indicator as the target parameter combination; wherein, performing a search process for the target parameter includes: using GridSearchCV (grid search cross validation) to control all parameters except the target parameter, and determining the optimal parameter of the target parameter within the search range of the target parameter.
[0079] In this embodiment, in GridSearchCV, the search range of the target parameter can be determined by setting the parameter grid, and the preset evaluation index can be set by the ROC (Receiver Operating Characteristic) curve. The ROC curve uses the size of the area under the curve (AUC) to evaluate the model. The value range of AUC is between 0.5 and 1. The larger the AUC is, the closer it is to 1, and the better the diagnostic or predictive effect of the model. When AUC is between 0.5 and 0.7, the accuracy is low; when it is between 0.7 and 0.9, it has a certain accuracy; when AUC is above 0.9, the accuracy is high. GridSearchCV can perform an exhaustive search for parameter combinations. First, the search range for each parameter value is determined based on the parameter grid, and a list of possible values for the parameter is obtained. Then, all possible parameter combinations composed of these values are evaluated, and the best combination is determined based on the ROC curve. In addition, evaluating model performance through cross-validation helps to reduce the impact of overfitting or underfitting.
[0080] Optionally, the initial living environment quality assessment model is optimized and trained according to the test set to obtain a trained living environment quality assessment model, including: inputting the test set into the initial living environment quality assessment model to obtain test results; performing error evaluation on the initial living environment quality assessment model according to the test results; and optimizing and adjusting the initial living environment quality assessment model according to the error evaluation results to obtain a trained living environment quality assessment model.
[0081] According to the test set, the initial living environment quality assessment model is evaluated for error, the nest probability output by the model is compared with the distribution probability of the target organism's nest in the label grid data, the error assessment result is determined, and based on the error assessment result, the initial living environment quality assessment model is optimized and adjusted, and the optimal model is saved as the living environment quality assessment model.
[0082] Optionally, based on the nest probability, the habitat quality assessment result of the living environment to be assessed for the target organism is determined, including: dividing the nest probability according to preset habitat quality assessment levels; and generating a habitat quality assessment map based on the divided nest probability.
[0083] Combination Figure 4 As shown, the embodiment of the present disclosure provides another method for evaluating the quality of a living environment for organisms, comprising:
[0084] S301, the processor obtains the spatialized environmental data of the living environment to be evaluated where the target organism is located; wherein the spatialized environmental data includes the spatialized raster data of the environmental data of the living environment to be evaluated.
[0085] S302, the processor inputs the spatialized environmental data into the living environment quality assessment model corresponding to the target organism, and obtains the nest probability of the target organism's nest appearing in the living environment to be assessed; wherein the living environment quality assessment model is obtained by training a machine learning algorithm based on a gradient boosting framework.
[0086] S303: The processor divides the nest probabilities according to preset habitat quality assessment levels.
[0087] S304: The processor generates a habitat quality assessment map according to the divided nest probabilities.
[0088] The nest probability output by the living environment quality assessment model is a random value between 0 and 1. The higher the nest probability, the higher the possibility that the target organism will build a nest in the area, and the more suitable the area is for the survival of the target organism. Therefore, the habitat quality assessment level is set in advance, and the nest probability is divided. Taking the four habitat quality assessment levels as an example, the area with a nest probability of [0, 0.5] is divided into a general habitat, the area with a nest probability of [0.5, 0.7] is divided into a medium habitat, the area with a nest probability of [0.7, 0.9] is divided into a good habitat, and the area with a nest probability of [0.9, 0.1] is divided into a high-quality habitat. According to the divided nest probability, the areas of different habitat quality assessment levels are marked with different colors to construct a habitat quality assessment map.
[0089] Optionally, the nest probabilities are divided according to preset habitat quality assessment levels, including dividing the nest probabilities according to the following formula:
[0090]
[0091] Among them, F(i) is the target habitat quality assessment level, lgbm(i) is the nest probability output by the living environment quality assessment model, i is the grid number, and w m is the weighted number of habitat quality grades, and m is the grade threshold parameter.
[0092] In a specific embodiment, the method for evaluating the quality of the living environment of organisms provided by the embodiment of the present disclosure is described by taking the habitat quality evaluation of the living environment of black-headed gulls as an example.
[0093] First, it is necessary to train a living environment quality assessment model corresponding to the black-headed gull, based on the known environmental data of the black-headed gull's living environment and the distribution data of the black-headed gull's nests. Based on the above method, by setting the objective function and setting the appropriate range of each LightGBM model parameter, the optimal number of training times is determined in combination with the model running time, and the optimal parameter combination is automatically searched according to the target value to obtain the living environment quality assessment model.
[0094] In an optional embodiment, the optimal parameter combination includes: n_estimators=100; learning_rate=0.1; num_leaves=31; max_depth=9; boosting_type=gbdt; min_child_weight=0.0001; min_gain_to_split=0; subsample_for_bin=200000; reg_alpha=0; reg_lambda=0.
[0095] Among them, n_estimators is the number of iterations of the LightGBM algorithm, which is set to 100 by default. Depending on different environmental data, n_estimators can be selected between 100 and 1000. In addition, you can set a larger value and use early_stopping_round to let the model automatically select the best number of iterations based on performance. Choosing a larger number of iterations will achieve better performance in the training set but it is easy to overfit and cause performance degradation in the test set. learning_rate is the learning rate, which is set to 0.1 by default and is generally set between 0.05 and 0.1. Choosing a smaller learning rate can obtain stable and better model performance. num_leaves is the number of leaf nodes on a tree in the tree algorithm. The default setting is 31. It is used with max_depth to determine the shape of the null value tree. It is generally set to a value in the range of (0, 2^max_depth-1]. max_depth is the maximum depth of the tree model. It is generally limited to between 3 and 5 and is an important parameter to prevent overfitting. boosting_type is used to specify the type of weak learner. The default value is "gbdt", which means that a tree-based model is used for calculation. min_child_weight is the minimum hessian sum on a leaf. The default setting is 0.001. min_gain_to_split is the gain required for branching of leaf nodes. The minimum loss reduction required, the default value is 0. The larger the value, the more conservative the model. subsample_for_bin is the maximum number of samples that a single box of a single feature can accommodate. When building a column histogram, each feature will be binned to accommodate the samples. reg_alpha is the L1 regularization parameter, which is set to 0 by default. This parameter will not have a particularly large difference after feature selection. If it is found that the value of this parameter is large, it means that there are some features with lower effects in the model, and the model needs to be adjusted to control overfitting. reg_lambda is the L2 regularization parameter, which is set to 0 by default. A larger value will make the influence of each feature on the model tend to be uniform, and no single feature will dominate the performance of the entire model.
[0096] The spatialized environmental data of the living environment to be evaluated in which the black-headed gull is located is obtained, and the spatialized environmental data includes the raster data of the spatialized environmental data of the living environment to be evaluated. In combination with the above description, the raster data can also be obtained through various functions in ARCDIS. The living environment to be evaluated is divided into multiple spatial grids, and the raster data of each spatial grid is determined by ARCDIS. Taking one of the spatial grids as an example, the raster data corresponding to the spatial grid is (17, 11, 2.081237, 798.4885, 1.448566, 7.14006, 31.92602, 45, 0.063204, 75.53122, 3791.695, 3791.695). Among them, 17 is the number of the spatial grid, 11 is the elevation, 2.081237 is the soil copper content, 798.4885 is the soil conductivity, 1.448566 is the soil lead content, 7.14006 is the soil pH, 31.92602 is the soil temperature, 45 is the land use type, 0.063204 is the normalized vegetation index, 75.53122 is the vegetation height, 3791.695 is the distance from the coastline, and 3791.695 is the distance from the riverbank. The raster data of the spatial grid is input into the living environment quality assessment model corresponding to the black-headed gull, and the nest probability of the black-headed gull nest in the spatial grid is 0.021994. It can be determined that the area where the spatial grid is located is not suitable for black-headed gulls to build nests and belongs to general habitats.
[0097] A corresponding nest probability is obtained for each grid data of all spatial grids, and the nest probability is divided into habitat quality assessment levels. According to the divided nest probability, the areas with different habitat quality assessment levels are marked with different colors, so as to construct the following: Figure 5 The habitat quality assessment map shown. The blue part is the general habitat area, the green part is the medium habitat area, the orange part is the good habitat area, and the red part is the high-quality habitat area.
[0098] Combination Figure 6 As shown, the embodiment of the present disclosure provides a device 300 for evaluating the quality of a living environment for organisms, including a processor 100 and a memory 101. Optionally, the device may also include a communication interface 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other through the bus 103. The communication interface 102 may be used for information transmission. The processor 100 may call the logic instructions in the memory 101 to execute the method for evaluating the quality of a living environment for organisms of the above embodiment.
[0099] In addition, the logic instructions in the memory 101 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0100] The memory 101 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 100 executes the function application and data processing by running the program instructions / modules stored in the memory 101, that is, the method for evaluating the quality of the biological living environment in the above embodiment is implemented.
[0101] The memory 101 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 101 may include a high-speed random access memory and may also include a non-volatile memory.
[0102] The embodiments of the present disclosure provide an electronic device, comprising: an electronic device body, and the above-mentioned device for evaluating the quality of a living environment for organisms. The device for evaluating the quality of a living environment for organisms is installed in the electronic device body. The installation relationship described here is not limited to placement inside the electronic device, but also includes installation connections with other components of the electronic device, including but not limited to physical connections, electrical connections, or signal transmission connections. It can be understood by those skilled in the art that the device for evaluating the quality of a living environment for organisms can be adapted to a feasible electronic device body, thereby realizing other feasible embodiments.
[0103] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for evaluating the quality of a biological living environment.
[0104] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0105] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0106] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0107] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0108] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for evaluating the quality of a biological living environment, characterized in that: include: Acquire spatialized environmental data of the living environment to be evaluated where the target organism is located; wherein the spatialized environmental data includes spatialized raster data of environmental data of the living environment to be evaluated; The spatialized environmental data is input into the living environment quality assessment model corresponding to the target organism to obtain the nest probability of the target organism's nest in the living environment to be assessed; wherein the living environment quality assessment model is obtained by training the machine learning algorithm based on the gradient boosting framework; Based on the nest probability, the habitat quality assessment result of the living environment to be assessed for the target organism is determined.
2. The method according to claim 1, characterized in that The living environment quality assessment model corresponding to the target organism is obtained as follows: A training data set is obtained according to the environmental data of the living environment of the target organism and the distribution data of the target organism's nest; the training data set includes a training set and a test set; Based on the machine learning algorithm of the gradient boosting framework, the model is trained on the training set, the model parameters are determined, and the initial living environment quality assessment model is obtained; The initial living environment quality assessment model is optimized and trained according to the test set to obtain a trained living environment quality assessment model.
3. The method according to claim 2, characterized in that According to the environmental data of the target organism's living environment and the target organism's nest distribution data, a training data set is obtained, including: Perform spatial gridding processing on environmental data to obtain environmental grid data, and perform spatial gridding processing on target biological nest distribution data to obtain label grid data; The environment grid data and the label grid data are used as grid data sets; Extract the grid dataset into the corresponding spatial grid to obtain the training dataset.
4. The method according to claim 3, characterized in that: Environmental data include water source information, soil information, elevation, and land use type; Perform spatial grid processing on environmental data to obtain environmental grid data, including: The water source information and soil information are spatially processed to obtain raster data; Unify the raster data such as water source information, soil information, elevation, land use type, etc. and obtain projection data; The living environment to be evaluated is divided into spatial grids of preset sizes, and the projection data is assigned to the spatial grids corresponding to the projection data to obtain environmental grid data.
5. The method according to claim 4, characterized in that Also includes: Normalize the elevation, soil information and water source information; and, Land use types are processed as categorical variables.
6. The method according to claim 2, characterized in that Based on the machine learning algorithm of the gradient boosting framework, the model is trained on the training set and the model parameters are determined, including: The machine learning algorithm based on the gradient boosting framework performs model training on the training set and determines multiple initial parameter combinations; According to the preset evaluation index, determine the target parameter combination among multiple initial parameter combinations; The target parameter combination is optimized and adjusted to obtain the model parameters.
7. The method according to claim 2, characterized in that The initial living environment quality assessment model is optimized and trained according to the test set to obtain a trained living environment quality assessment model, including: Input the test set into the initial living environment quality assessment model to obtain the test results; Conduct error assessment on the initial living environment quality assessment model based on the test results; According to the error assessment results, the initial living environment quality assessment model is optimized and adjusted to obtain a trained living environment quality assessment model.
8. The method according to any one of claims 1 to 7, characterized in that: Based on the nest probability, determine the habitat quality assessment results of the living environment to be assessed for the target organisms, including: The nest probability is divided according to the preset habitat quality assessment level; Based on the divided nest probabilities, a habitat quality assessment map is generated.
9. A device for evaluating the quality of a living environment of a living being, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for assessing the quality of a biological living environment as claimed in any one of claims 1 to 8 when running the program instructions.
10. An electronic device, characterized in that: include: Electronic device body; The device for evaluating the quality of a living environment of a living being as described in claim 9 is installed in the electronic device body.
Citation Information
Patent Citations
Waterfowl habitat suitability evaluation method based on combination of remote sensing and geographical information system (GIS)
CN103208028A
Evaluation technique for suitability of wetland waterfowl community habitat
CN108197829A
Spatial gridding drought disaster risk assessment method and system based on multi-source data
CN111737651A
Gridding rice sheath blight habitat evaluation method integrating multi-source remote sensing information
CN111738066A
Ecological environment quality assessment method and related equipment
CN117829684A
