Riparian zone ecological restoration effect prediction method and system based on machine learning

By preprocessing and feature extraction of the ecological information data of the riparian zone, and training the linear regression model, the problem of insufficient accuracy in the prediction of the riparian zone ecosystem in the existing technology is solved, and more accurate prediction and real-time monitoring of ecological restoration effects are achieved.

CN118822296AInactive Publication Date: 2024-10-22SICHUAN ACAD OF NATURAL RESOURCES SCI (SICHUAN PRODUCTIVITY PROMOTION CENT)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410791463.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the complexity and multivariability of urban riparian ecosystems lead to insufficient accuracy in machine learning model predictions, making it difficult to accurately predict the effects of riparian ecological restoration.

Method used

By collecting ecological information data of the riparian zone, preprocessing and feature extraction are performed, a linear regression model is selected, and through cross-validation and parameter adjustment, the trained linear regression model is used to predict the ecological restoration effect and calculate the evaluation coefficient of the ecological restoration effect.

Benefits of technology

The prediction accuracy of the machine learning model is improved, real-time monitoring of the ecological restoration effect of the riparian zone and more comprehensive data acquisition are achieved, and the problems of insufficient prediction accuracy and incomplete data acquisition in the existing technology are solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118822296A_ABST
    Figure CN118822296A_ABST
Patent Text Reader

Abstract

The invention discloses a riparian zone ecological restoration effect prediction method and system based on machine learning, and relates to the technical field of ecological restoration effect prediction. The method for predicting the ecological restoration effect of the riparian zone based on machine learning comprises the following steps: collecting ecological information data of the riparian zone, preprocessing the ecological information data of the riparian zone, performing feature extraction on the preprocessed ecological information data by using a principal component analysis method, and predicting the ecological restoration effect of the riparian zone. And training the linear regression model by using the historical ecological information data, and predicting the ecological restoration effect of the riparian zone by using the trained linear regression model. According to the method, the ecological information feature data is input into the trained linear regression model, so that the linear relation learned during training is used for predicting the ecological restoration effect, real-time monitoring of the ecological restoration effect is achieved, and the problem that in the prior art, the ecological restoration effect is not monitored in time is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ecological restoration effect prediction, and in particular to a method and system for predicting riparian zone ecological restoration effect based on machine learning. Background Art

[0002] With the continuous intensification of human activities, the riparian zones of many rivers have been damaged to varying degrees, such as land erosion, water pollution, and destruction of biological habitats. In order to restore the ecological functions of the riparian zone and improve its adaptability to environmental changes, ecological restoration is necessary to ensure the effectiveness and sustainability of the restoration work. Therefore, the development of riparian ecological restoration effect prediction methods and systems has important scientific significance. In recent years, with the rapid development of ecology, environmental science, remote sensing technology, big data analysis and other fields, new ideas and methods have been provided for the prediction of riparian ecological restoration effects. For example, using remote sensing technology and geographic information system (GIS) to analyze data such as vegetation coverage and land use changes in the riparian zone, combined with field surveys and model simulations, the effect of riparian ecological restoration can be predicted.

[0003] For example, a method for estimating green space carbon sinks for ecological restoration planning disclosed in a patent application with publication number: CN118014797A includes: S1: collecting historical urban green space images; S2: building a carbon dioxide prediction model; S3: adjusting the parameters of the carbon dioxide prediction model; S4: calculating the current carbon dioxide emissions of the city and adjusting the attributes of a single urban green space; S5: updating the parameters of the semantic segmentation model; S6: using a multivariate regression equation to calculate the carbon sink estimation results of the urban green space system.

[0004] For example, the invention patent announcement with announcement number: CN117575110B discloses a mine restoration effect prediction method based on soil reconstruction and related equipment, including: obtaining soil physical and chemical data and ecological data of the mine, preprocessing the soil physical and chemical data and the ecological data, classifying and sorting the soil physical and chemical data and the ecological data to obtain time series data, performing causal analysis on the time series data to obtain restoration variables, extracting and selecting the time series data to obtain change characteristics, obtaining first restoration data according to the change characteristics, constructing a mine restoration effect model according to the first restoration data and the restoration variables, inputting the data to be predicted into the mine restoration effect model, and outputting the prediction results.

[0005] However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the present application found that the above technology has at least the following technical problems:

[0006] In the existing technology, in the urban riparian ecosystem, domestic sewage and urban garbage will have a significant impact on the ecological restoration of the riparian zone. The complexity and multivariability of the urban riparian ecosystem means that features need to be carefully selected and combined to maximize the predictive ability of the model. There is a problem of insufficient accuracy in the prediction of machine learning models. Summary of the invention

[0007] The embodiments of the present application solve the problem of insufficient accuracy of machine learning model predictions in the prior art by providing a method and system for predicting the effects of riparian ecological restoration based on machine learning, thereby achieving the effect of improving the accuracy of machine learning model predictions.

[0008] The embodiment of the present application provides a method for predicting the ecological restoration effect of a riparian zone based on machine learning, comprising the following steps: collecting ecological information data of the riparian zone and dividing it into an ecological information data set of the riparian zone, preprocessing the ecological information data of the riparian zone to obtain preprocessed ecological information data; identifying features that have potential impact on the ecological restoration effect of the riparian zone, and using a principal component analysis method to extract features from the preprocessed ecological information data; selecting a linear regression model and training the linear regression model based on historical ecological information data obtained in a database, verifying the linear regression model through a cross-validation method, adjusting the parameters of the linear regression model through the verification result, and obtaining a trained linear regression model; using the trained linear regression model to predict the ecological restoration effect of the riparian zone to obtain a prediction result of the ecological restoration effect, and comprehensively analyzing the prediction result of the ecological restoration effect to obtain an ecological restoration effect evaluation coefficient.

[0009] Furthermore, the specific preprocessing process of the ecological information data of the riparian zone is as follows: removing the noise and outliers of the ecological information data of the riparian zone, integrating the ecological information data of the riparian zone in different formats, unifying the data format of the ecological information data of the riparian zone, regularizing the ecological information data of the riparian zone, and obtaining the preprocessed ecological information data.

[0010] Furthermore, the specific identification process of the characteristics that have potential impact on the ecological restoration of the riparian zone is as follows: the relevant academic literature and project reports on riparian ecological restoration are analyzed, and by comparing the ecological restoration project data of different riparian zones, the characteristic data that have potential impact on the ecological restoration of the riparian zone are identified and extracted.

[0011] Furthermore, a specific identification and extraction method for identifying and extracting characteristic data that have potential impact on the ecological restoration effect of riparian zones is proposed: keyword retrieval is performed on relevant academic literature and project reports to obtain ecological restoration project data of different riparian zones, and the NLTK library is referenced in Python to perform text data processing on the ecological restoration project data of different riparian zones to obtain ecological information characteristic data.

[0012] Furthermore, the specific training process of training the linear regression model based on the historical ecological information data obtained from the database is: selecting the linear regression model based on the data type, data volume and computer computing resources, using the linear regression model as a machine learning algorithm to predict the ecological restoration effect of the riparian zone, and using the historical ecological information data as a training set to train the linear regression model.

[0013] Furthermore, the specific verification process of the linear regression model by cross-validation method is as follows: the ecological information dataset of the riparian zone is divided into a validation set and a test set, and the linear regression model is verified by using the k-fold cross-validation technique in the cross-validation method. The ecological information dataset of the riparian zone is divided into k subsets of equal size, and k-1 subsets are used to train the model each time, and the remaining subset is used to verify the performance of the model. In the process of k-fold cross-validation, the linear regression model will make predictions on the validation set of each iterative cycle, and the performance of the linear regression model is evaluated by the mean square error to obtain the mean square error evaluation result of the linear regression model.

[0014] Furthermore, the specific parameter adjustment process of the linear regression model is carried out through the verification results: according to the mean square error evaluation result of the linear regression model, the intercept and slope of the linear regression model are adjusted, and the linear regression model is automatically adjusted using the grid search method. When the mean square error evaluation result of the linear regression model is inaccurate, the parameters of the linear regression model can also be manually adjusted. The above two methods can obtain a trained linear regression model.

[0015] Furthermore, the specific prediction process of using the trained linear regression model to predict the ecological restoration effect of the riparian zone is as follows: input the ecological information feature data into the trained linear regression model, use the linear relationship learned during training to predict the ecological restoration effect, obtain the predicted value of the ecological information data, compare the predicted value of the ecological information data with the historical ecological information data obtained in the database, and obtain the corrected value of the ecological information data.

[0016] Furthermore, the specific constraint formula of the ecological restoration effect evaluation coefficient is:

[0017]

[0018] In the formula, Represents the ecological restoration effect evaluation coefficient, which is used to evaluate the ecological restoration effect of the riparian zone. represents the urban waste treatment assessment coefficient, represents the evaluation coefficient of the change trend of algae coverage, α represents the correction value of ecological information data, and π represents the natural constant.

[0019] The embodiment of the present application provides a riparian zone ecological restoration effect prediction system based on machine learning, including: a data collection and preprocessing module, a feature recognition and extraction module, a model training and verification module, and a model prediction module;

[0020] Data collection and preprocessing module: used to collect ecological information data of the riparian zone and divide it into ecological information data sets of the riparian zone, in order to preprocess the ecological information data of the riparian zone and obtain the preprocessed ecological information data;

[0021] Feature recognition and extraction module: used to identify the features that have potential impact on the ecological restoration of the riparian zone, and use the principal component analysis method to extract features from the preprocessed ecological information data;

[0022] Model training and verification module: used to select a linear regression model and train the linear regression model based on the historical ecological information data obtained in the database, verify the linear regression model through the cross-validation method, and adjust the parameters of the linear regression model based on the verification results;

[0023] Model prediction module: used to use the trained linear regression model to predict the ecological restoration effect of the riparian zone, obtain the predicted results of the ecological restoration effect, and conduct a comprehensive analysis of the predicted results of the ecological restoration effect to obtain the ecological restoration effect evaluation coefficient.

[0024] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0025] 1. By dividing the ecological information dataset of the riparian zone into a validation set and a test set, the linear regression model is verified using the k-fold cross-validation technique in the cross-validation method, thereby dividing the ecological information dataset of the riparian zone into k subsets of equal size, using k-1 subsets to train the model each time, and the remaining subset is used to verify the performance of the model, thereby achieving the effect of improving the accuracy of the machine learning model prediction, and effectively solving the problem of insufficient accuracy of the machine learning model prediction in the existing technology.

[0026] 2. By conducting keyword searches on relevant academic literature and project reports, we obtained the ecological restoration project data of different riparian zones, and then used the NLTK library in Python to process the text data of the ecological restoration project data of different riparian zones, thereby improving the comprehensiveness of data acquisition and effectively solving the problem of insufficient data acquisition in the existing technology.

[0027] 3. By inputting ecological information feature data into the trained linear regression model, the linear relationship learned during training is used to predict the ecological restoration effect, thereby realizing real-time monitoring of the ecological restoration effect, effectively solving the problem of insufficient timely monitoring of ecological restoration effects in the existing technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A flow chart of a method for predicting the ecological restoration effect of a riparian zone based on machine learning provided in an embodiment of the present application;

[0029] Figure 2 A method for predicting the ecological restoration effect of a riparian zone based on machine learning and an image of an evaluation coefficient of the change trend of algae coverage in the system provided in an embodiment of the present application;

[0030] Figure 3 A schematic diagram of the structure of a riparian ecological restoration effect prediction system based on machine learning provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] The embodiments of the present application solve the problem of insufficient accuracy of machine learning model predictions in the prior art by providing a method and system for predicting the ecological restoration effects of riparian zones based on machine learning. The ecological information data set of the riparian zone is divided into a validation set and a test set, and the linear regression model is verified using the k-fold cross-validation technique in the cross-validation method, thereby dividing the ecological information data set of the riparian zone into k subsets of equal size. Each time, k-1 subsets are used to train the model, and the remaining subset is used to verify the performance of the model, thereby achieving the effect of improving the accuracy of the machine learning model predictions.

[0032] The technical solution in the embodiment of the present application is to solve the above-mentioned problem of insufficient accuracy of machine learning model prediction. The overall idea is as follows:

[0033] By selecting a linear regression model and training the linear regression model based on the historical ecological information data obtained from the database, verifying the linear regression model through the cross-validation method, and adjusting the parameters of the linear regression model based on the verification results, a trained linear regression model is obtained, thereby achieving the effect of improving the accuracy of machine learning model predictions.

[0034] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0035] like Figure 1 As shown, a flow chart of a method for predicting the ecological restoration effect of a riparian zone based on machine learning provided in an embodiment of the present application, the method comprising the following steps: collecting ecological information data of the riparian zone and dividing it into an ecological information data set of the riparian zone, preprocessing the ecological information data of the riparian zone to obtain preprocessed ecological information data; identifying features that have potential impact on the ecological restoration effect of the riparian zone, and using the principal component analysis method to extract features from the preprocessed ecological information data; selecting a linear regression model and training the linear regression model based on historical ecological information data obtained in a database, verifying the linear regression model through a cross-validation method, adjusting the parameters of the linear regression model through the verification result, and obtaining a trained linear regression model; using the trained linear regression model to predict the ecological restoration effect of the riparian zone to obtain a prediction result of the ecological restoration effect, and comprehensively analyzing the prediction result of the ecological restoration effect to obtain an ecological restoration effect evaluation coefficient.

[0036] Furthermore, the specific preprocessing process of the ecological information data of the riparian zone is as follows: removing the noise and outliers of the ecological information data of the riparian zone, integrating the ecological information data of the riparian zone in different formats, unifying the data format of the ecological information data of the riparian zone, regularizing the ecological information data of the riparian zone, and obtaining the preprocessed ecological information data.

[0037] In this embodiment, the ecological information data of the riverside zone in the city includes urban garbage disposal data and algae coverage data. The urban garbage disposal data includes urban population density, garbage disposal efficiency and urban garbage generation. The algae coverage data includes water temperature, pH value and dissolved oxygen content.

[0038] In a specific embodiment, the DBSCAN algorithm can be used to identify and remove noise and outliers, and the obtained urban waste treatment data and algae coverage data can be converted into a unified numerical type and expressed in the same unit. The specific method for regularizing the riparian ecological information data is: using the minimum-maximum normalization method to scale or expand the data to the [0,1] interval. Data regularization helps prevent model overfitting, improves the generalization ability of the model, and makes the model more robust and reliable.

[0039] Furthermore, the specific identification process of the characteristics that have potential impact on the ecological restoration of the riparian zone is as follows: the relevant academic literature and project reports on riparian ecological restoration are analyzed, and by comparing the ecological restoration project data of different riparian zones, the characteristic data that have potential impact on the ecological restoration of the riparian zone are identified and extracted.

[0040] In this embodiment, relevant literature and project reports are obtained through a database and a search engine, key information is extracted from the relevant literature and project reports, the impact of urban waste treatment data and algae coverage data on the ecological restoration effect is analyzed, and by analyzing a large number of literature and project reports, it helps to more accurately predict the ecological restoration effect of the riparian zone.

[0041] Furthermore, the specific identification and extraction method for identifying and extracting feature data that potentially affects the ecological restoration effect of the riparian zone: Conduct keyword retrieval on relevant academic literature and project reports to obtain ecological restoration project data for different riparian zones, and in Python, the NLTK library is cited to process the text data of the ecological restoration project data for different riparian zones to obtain ecological information feature data.

[0042] In this embodiment, use academic databases (such as CNKI, Web of Science, Scopus, etc.) for advanced search, input keywords such as "riparian zone", "ecological restoration", "effect evaluation", etc. for keyword extraction. The specific steps for using the NLTK library in Python to process the text data of the ecological restoration project data for different riparian zones are: Decompose the text into words or phrases, identify the part of speech of each word, remove common words that do not contain useful information (such as "of", "and", "is", etc.), extract the root words, reduce the lexical diversity, extract the key features of the text according to the word frequency. Automated keyword retrieval and data processing can greatly improve work efficiency compared to manual operations.

[0043] Furthermore, the specific training process for training the linear regression model based on the historical ecological information data obtained from the database is: Determine the selection of the linear regression model according to the data type, data volume, and computing resources of the computer. The linear regression model is used as a machine learning algorithm to predict the ecological restoration effect of the riparian zone, and the historical ecological information data is used as the training set to train the linear regression model.

[0044] In this embodiment, if the data is mainly continuous numerical data, and the urban waste treatment data includes urban population density, waste treatment efficiency, and urban waste generation, and the algae coverage data includes water temperature, pH value, dissolved oxygen content, and light intensity, and there are no categorical variables in both the urban waste treatment data and the algae coverage data, then the linear regression model is selected. For the case of a small data volume, the linear regression model is relatively fast to calculate and can obtain relatively accurate results. The linear regression model has a simple structure, is easy to understand and implement, and is convenient for researchers to get started quickly.

[0045] Furthermore, the specific verification process of the linear regression model by cross-validation method is as follows: the ecological information dataset of the riparian zone is divided into a validation set and a test set, and the linear regression model is verified by using the k-fold cross-validation technique in the cross-validation method. The ecological information dataset of the riparian zone is divided into k subsets of equal size, and k-1 subsets are used to train the model each time, and the remaining subset is used to verify the performance of the model. In the process of k-fold cross-validation, the linear regression model will make predictions on the validation set of each iterative cycle, and the performance of the linear regression model is evaluated by the mean square error to obtain the mean square error evaluation result of the linear regression model.

[0046] In this embodiment, the ecological information data set of the riparian zone is randomly divided into k parts of equal size, each part is called a "fold", for each fold of data, k-1 parts are used to train the linear regression model, and then the remaining 1 part is used as the validation set to evaluate the model performance, this process is repeated k times, each time using a different fold as the validation set, on the validation set of each iterative cycle, the linear regression model will make a prediction, and then the performance of the model is evaluated by calculating the mean square error between the predicted value and the true value, the mean square error values ​​obtained from k iterations are summarized, and the average of these k MSE values ​​is usually taken as the mean square error evaluation result of the linear regression model, the k-fold cross-validation method can effectively reduce the risk of model overfitting and provide a more stable and reliable model performance evaluation.

[0047] Furthermore, the specific parameter adjustment process of the linear regression model is carried out through the verification results: according to the mean square error evaluation result of the linear regression model, the intercept and slope of the linear regression model are adjusted, and the linear regression model is automatically adjusted using the grid search method. When the mean square error evaluation result of the linear regression model is inaccurate, the parameters of the linear regression model can also be manually adjusted. The above two methods can obtain a trained linear regression model.

[0048] In the present embodiment, in the linear regression model, the intercept and slope of the model are two key parameters, which jointly determine the form of the model. The mean square error of the model is an important indicator for evaluating the prediction accuracy of the model. It reflects the average value of the square of the gap between the model prediction value and the actual value. Grid search is a method of automatic parameter adjustment. It traverses the preset parameter combinations, calculates the model performance under each combination, and selects a set of parameters with the best performance. This method can greatly reduce the workload of manual parameter adjustment and find the optimal model parameters. When the performance of the automatically adjusted model is not ideal, researchers can adopt the method of manual parameter adjustment. This is usually based on expert knowledge and experience, by trying different parameter combinations one by one, observing the change of mean square error, in order to achieve the purpose of improving the prediction accuracy of the model, by adjusting the model parameters, the model can be better adapted to the data distribution and improve the accuracy of the prediction.

[0049] Furthermore, the specific prediction process of using the trained linear regression model to predict the ecological restoration effect of the riparian zone is as follows: input the ecological information feature data into the trained linear regression model, use the linear relationship learned during training to predict the ecological restoration effect, obtain the predicted value of the ecological information data, compare the predicted value of the ecological information data with the historical ecological information data obtained in the database, and obtain the corrected value of the ecological information data.

[0050] In this embodiment, the ecological information feature data obtained by feature extraction is input into the trained linear regression model to obtain the predicted value of the ecological information data. The difference between the predicted result and the historical ecological information data constitutes the corrected value of the ecological information data. This step provides real-time prediction of ecological restoration effects, which facilitates the formulation of more effective ecological restoration strategies.

[0051] Furthermore, the specific constraint formula of the ecological restoration effect evaluation coefficient is:

[0052]

[0053] In the formula, Represents the ecological restoration effect evaluation coefficient, which is used to evaluate the ecological restoration effect of the riparian zone. represents the urban waste treatment assessment coefficient, It represents the assessment coefficient of the changing trend of algae coverage rate, α represents the correction value of ecological information data, π represents the natural constant, the higher the urban garbage treatment assessment coefficient is, the higher the ecological restoration effect assessment coefficient is, when the assessment coefficient of the changing trend of algae coverage rate is negative, the ecological restoration effect assessment coefficient is also negative, indicating that the ecological restoration has a negative effect, and when the assessment coefficient of the changing trend of algae coverage rate is positive, the ecological restoration effect assessment coefficient is also positive, indicating that the ecological restoration has a positive effect.

[0054] In this embodiment, the specific constraint formula of the urban garbage treatment evaluation coefficient is:

[0055]

[0056] In the formula, It represents the urban garbage treatment evaluation coefficient, which is used to evaluate the impact of urban garbage treatment on ecological restoration. Several spatial monitoring points are set, Z = 1, 2, 3, ..., a, a represents the total number of spatial monitoring points, AZ represents the urban population density at the Zth spatial monitoring point, BZ represents the garbage treatment efficiency at the Zth spatial monitoring point, CZ represents the amount of urban garbage generated at the Zth spatial monitoring point, It is expressed as the average urban population density of a spatial monitoring points, It is expressed as the average value of the garbage disposal efficiency of a spatial monitoring points, It is expressed as the average amount of urban garbage generated at a spatial monitoring points, and e represents a natural constant.

[0057] In a specific embodiment, examples of urban waste treatment assessment coefficient data are shown in the following table.

[0058] Table 1 Example of urban waste treatment evaluation coefficient data

[0059]

[0060] From the data in Table 1, it can be seen that when the average value of the urban population density at a spatial monitoring point and the average value of the garbage disposal efficiency at a spatial monitoring point remain unchanged, the greater the average value of the urban garbage generation at a spatial monitoring point, the higher the urban garbage disposal assessment coefficient, and the average value of the urban garbage generation at a spatial monitoring point is positively correlated with the urban garbage disposal assessment coefficient.

[0061] Urban population density refers to the number of people living per unit area in a city. Urban population density can be obtained through census data, household registration data or other official statistics. The range of urban population density is 0.8-1.2 million people / square kilometer.

[0062] Garbage disposal efficiency refers to the ability and efficiency of a city in handling garbage. The garbage disposal efficiency can be evaluated through data such as the processing capacity of the garbage disposal plant, garbage recycling rate, and classification processing rate. The value range of garbage disposal efficiency is 75%-85%.

[0063] The amount of urban garbage generated refers to the total amount of garbage generated each time the city handles garbage. The amount of urban garbage generated can be obtained by statistically analyzing the garbage collection data of various garbage generating sources in the city. The value range of urban garbage generated is 10,000-15,000 tons.

[0064] In a specific embodiment, the specific constraint formula of the algae coverage rate change trend assessment coefficient is:

[0065]

[0066] In the formula, It represents the evaluation coefficient of the change trend of algae coverage, which is used to evaluate the impact of the change trend of algae coverage on the ecological restoration effect. Several time monitoring points are set, Y = 1, 2, 3, ..., b, b represents the total number of time monitoring points, DZ represents the water temperature at the Zth time monitoring point, EZ represents the pH value at the Zth time monitoring point, and FZ represents the dissolved oxygen content at the Zth time monitoring point. It is expressed as the average water temperature of b monitoring points at a time. It is expressed as the average water temperature of b-1 time monitoring points, It is expressed as the average pH value of b time monitoring points, It is expressed as the average pH value of b-1 time monitoring points, It is expressed as the average value of dissolved oxygen content at b time monitoring points, It is expressed as the average value of dissolved oxygen content at b-1 time monitoring points, It is expressed as the rate of change of the average water temperature between b time monitoring points and b-1 time monitoring points, It is expressed as the rate of change of the average pH value between b time monitoring points and b-1 time monitoring points, It is expressed as the rate of change of the average dissolved oxygen content between b time monitoring points and b-1 time monitoring points, and e represents a natural constant.

[0067] Figure 2 The present invention provides a method for predicting the ecological restoration effect of riverbanks based on machine learning and an image of the evaluation coefficient of the change trend of algae coverage in the system, wherein the change rate of the average dissolved oxygen content between b time monitoring points and b-1 time monitoring points is is the abscissa independent variable of the function, function a is the curve of the change trend assessment coefficient of algae coverage rate as the change rate of the average dissolved oxygen content between b time monitoring point and b-1 time monitoring point when the change rate of the average pH value between b time monitoring point and b-1 time monitoring point is 1.05 and the change rate of the average water temperature between b time monitoring point and b-1 time monitoring point is 1.05. The change trend assessment coefficient of algae coverage rate increases with the increase of the change rate of the average dissolved oxygen content between b time monitoring point and b-1 time monitoring point. It is calculated by the formula The coefficient of the abscissa independent variable of function a is 1.1025, and function b is the curve of the change rate of the evaluation coefficient of the trend of algae coverage rate as the change rate of the average dissolved oxygen content between b time monitoring points and b-1 time monitoring points when the change rate of the average pH value between b time monitoring points and b-1 time monitoring points is 0.95 and the change rate of the average water temperature between b time monitoring points and b-1 time monitoring points is 0.95. The increase of the evaluation coefficient of the trend of algae coverage rate as the change rate of the average dissolved oxygen content between b time monitoring points and b-1 time monitoring points is The fixed value of 0.9025 is calculated by the formula as the coefficient of the independent variable of the horizontal coordinate of function b. Function c is the curve of the change trend evaluation coefficient of algae coverage rate changing with the change rate of the average dissolved oxygen content between b time monitoring points and b-1 time monitoring points when the change rate of the average pH value between b time monitoring points and b-1 time monitoring points and the change rate of the average water temperature between b time monitoring points and b-1 time monitoring points is 1. The curve of the change trend evaluation coefficient of algae coverage rate changing with the average dissolved oxygen content between b time monitoring points and b-1 time monitoring points The fixed value 1 is calculated by the formula as the coefficient of the function c's horizontal axis independent variable. Curve a, curve b and curve c represent the function images at different horizontal axis independent variable coefficients. When the rate of change of the average dissolved oxygen content at b time monitoring points and b-1 time monitoring points take the same value, the algae coverage rate change trend assessment coefficient of curve a is the largest, followed by curve b, and curve c is the smallest. By observing the changes in the algae coverage rate change trend assessment coefficient under different function images, the problem that the algae coverage rate change trend cannot be accurately assessed in the prior art is solved.

[0068] Water temperature is an important factor affecting the growth of aquatic organisms. Water temperature can usually be measured by a thermometer, with a value range of 20-30℃.

[0069] pH refers to the acidity and alkalinity of water, which has an important impact on the survival of aquatic organisms and the chemical processes of river ecosystems. It can be measured using a pH meter, and the pH value range is usually between 6.5 and 8.5.

[0070] Dissolved oxygen content is a necessary condition for the survival of aquatic organisms. It is usually measured by a dissolved oxygen analyzer. The level of dissolved oxygen content can reflect the self-purification capacity of the water body and the health of the ecosystem. The dissolved oxygen content should usually be maintained above 4-6 mg / L.

[0071] like Figure 2 As shown, it is a structural schematic diagram of a riparian zone ecological restoration effect prediction system based on machine learning provided in an embodiment of the present application. A riparian zone ecological restoration effect prediction system based on machine learning provided in an embodiment of the present application includes: a data collection and preprocessing module, a feature recognition and extraction module, a model training and verification module, and a model prediction module;

[0072] Data collection and preprocessing module: used to collect ecological information data of the riparian zone and divide it into ecological information data sets of the riparian zone, in order to preprocess the ecological information data of the riparian zone and obtain the preprocessed ecological information data;

[0073] Feature recognition and extraction module: used to identify the features that have potential impact on the ecological restoration of the riparian zone, and use the principal component analysis method to extract features from the preprocessed ecological information data;

[0074] Model training and verification module: used to select a linear regression model and train the linear regression model based on the historical ecological information data obtained in the database, verify the linear regression model through the cross-validation method, and adjust the parameters of the linear regression model based on the verification results;

[0075] Model prediction module: used to use the trained linear regression model to predict the ecological restoration effect of the riparian zone, obtain the predicted results of the ecological restoration effect, and conduct a comprehensive analysis of the predicted results of the ecological restoration effect to obtain the ecological restoration effect evaluation coefficient.

[0076] The technical scheme in the above-mentioned embodiment of the present application has at least the following technical effects or advantages: relative to a green space carbon sink estimation method for ecological restoration planning disclosed in the patent application with publication number: CN118014797A, the embodiment of the present application obtains the ecological restoration project data of different riverbank zones by keyword retrieval of relevant academic literature and project reports, and then references the NLTK library in Python to perform text data processing on the ecological restoration project data of different riverbank zones, thereby achieving the improvement of the comprehensiveness of data acquisition; relative to a mine restoration effect prediction method and related equipment based on soil reconstruction announced by the invention patent with announcement number: CN117575110B, the embodiment of the present application inputs ecological information feature data into a trained linear regression model, thereby using the linear relationship learned during training to predict the ecological restoration effect, thereby achieving real-time monitoring of the ecological restoration effect.

[0077] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0078] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0079] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0080] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0081] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0082] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for predicting the ecological restoration effect of riparian zone based on machine learning, characterized in that: The following steps are involved: Collecting ecological information data of the riparian zone and dividing it into an ecological information data set of the riparian zone, in order to pre-process the ecological information data of the riparian zone and obtain pre-processed ecological information data; Identify the features that have potential impact on the ecological restoration effect of the riparian zone, and use the principal component analysis method to extract features from the preprocessed ecological information data; Select a linear regression model and train the linear regression model based on the historical ecological information data obtained in the database, verify the linear regression model through the cross-validation method, adjust the parameters of the linear regression model based on the verification results, and obtain a trained linear regression model; The trained linear regression model is used to predict the ecological restoration effect of the riparian zone to obtain the predicted results of the ecological restoration effect, and the predicted results of the ecological restoration effect are comprehensively analyzed to obtain the ecological restoration effect evaluation coefficient.

2. A method for predicting the ecological restoration effect of a riparian zone based on machine learning as claimed in claim 1, characterized in that: The specific preprocessing process of preprocessing the ecological information data of the riparian zone is as follows: The noise and outliers of the ecological information data of the riparian zone are removed, the ecological information data of the riparian zone in different formats are integrated, the data format of the ecological information data of the riparian zone is unified, and the ecological information data of the riparian zone is regularized to obtain the preprocessed ecological information data.

3. A method for predicting the ecological restoration effect of a riparian zone based on machine learning as claimed in claim 1, characterized in that: The specific identification process of the characteristics that have potential impact on the ecological restoration of riparian zones is as follows: Analyze the relevant academic literature and project reports on riparian ecological restoration, and identify and extract characteristic data that have potential impact on the ecological restoration effect of riparian zones by comparing the ecological restoration project data of different riparian zones.

4. A method for predicting the ecological restoration effect of a riparian zone based on machine learning as claimed in claim 3, characterized in that: The specific identification and extraction method of the feature data that has a potential impact on the ecological restoration effect of the riparian zone is as follows: Keywords were searched for in the relevant academic literature and project reports to obtain the ecological restoration project data of different riparian zones. The NLTK library was used in Python to process the text data of the ecological restoration project data of different riparian zones to obtain the ecological information feature data.

5. A method for predicting the ecological restoration effect of a riparian zone based on machine learning as claimed in claim 1, characterized in that: The specific training process of training the linear regression model based on the historical ecological information data obtained in the database is as follows: The linear regression model is selected based on the data type, data volume and computer computing resources. The linear regression model is used as a machine learning algorithm to predict the effect of riparian ecological restoration. The historical ecological information data is used as the training set to train the linear regression model.

6. A method for predicting the ecological restoration effect of riparian zone based on machine learning as claimed in claim 1, characterized in that: The specific verification process of verifying the linear regression model by cross-validation method is as follows: The ecological information dataset of the riparian zone is divided into a validation set and a test set. The linear regression model is verified using the k-fold cross-validation technique in the cross-validation method. The ecological information dataset of the riparian zone is divided into k subsets of equal size. The model is trained using k-1 subsets each time, and the remaining subset is used to verify the performance of the model. During the k-fold cross-validation process, the linear regression model will make predictions on the validation set in each iterative cycle. The performance of the linear regression model is evaluated by the mean square error, and the mean square error evaluation result of the linear regression model is obtained.

7. A method for predicting the ecological restoration effect of riparian zone based on machine learning as claimed in claim 1, characterized in that: The specific parameter adjustment process of adjusting the linear regression model through verification results is as follows: According to the mean square error evaluation result of the linear regression model, adjust the intercept and slope of the linear regression model, and use the grid search method to automatically adjust the parameters of the linear regression model. When the mean square error evaluation result of the linear regression model is inaccurate, you can also manually adjust the parameters of the linear regression model. Both of the above methods can obtain a trained linear regression model.

8. A method for predicting the ecological restoration effect of a riparian zone based on machine learning as claimed in claim 1, characterized in that: The specific prediction process of using the trained linear regression model to predict the ecological restoration effect of the riparian zone is as follows: Input the ecological information feature data into the trained linear regression model, use the linear relationship learned during training to predict the ecological restoration effect, obtain the predicted value of the ecological information data, compare the predicted value of the ecological information data with the historical ecological information data obtained in the database, and obtain the corrected value of the ecological information data.

9. A method for predicting the ecological restoration effect of riparian zone based on machine learning as claimed in claim 1, characterized in that: The specific constraint formula of the ecological restoration effect evaluation coefficient is: In the formula, Represents the ecological restoration effect evaluation coefficient, which is used to evaluate the ecological restoration effect of the riparian zone. represents the urban waste treatment assessment coefficient, represents the evaluation coefficient of the change trend of algae coverage, α represents the correction value of ecological information data, and π represents the natural constant.

10. A riparian ecological restoration effect prediction system based on machine learning, characterized in that: The riparian zone ecological restoration effect prediction system based on machine learning includes: a data collection and preprocessing module, a feature recognition and extraction module, a model training and verification module and a model prediction module; Data collection and preprocessing module: used to collect ecological information data of the riparian zone and divide it into ecological information data sets of the riparian zone, in order to preprocess the ecological information data of the riparian zone and obtain the preprocessed ecological information data; Feature recognition and extraction module: used to identify the features that have potential impact on the ecological restoration of the riparian zone, and use the principal component analysis method to extract features from the preprocessed ecological information data; Model training and verification module: used to select a linear regression model and train the linear regression model based on the historical ecological information data obtained in the database, verify the linear regression model through the cross-validation method, and adjust the parameters of the linear regression model based on the verification results; Model prediction module: used to use the trained linear regression model to predict the ecological restoration effect of the riparian zone, obtain the predicted results of the ecological restoration effect, and conduct a comprehensive analysis of the predicted results of the ecological restoration effect to obtain the ecological restoration effect evaluation coefficient.