River water quality monitoring method and system based on spectral analysis
Through spectral analysis and gas chromatography-mass spectrometry technology, combined with multi-dimensional spectral mapping and aggregation analysis, the problem of low accuracy of traditional river water quality monitoring methods has been solved, and efficient and comprehensive water quality monitoring and pollution source identification of river water resources have been achieved.
Patent Information
- Application Number
- CN202410696201.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-03
AI Technical Summary
Traditional river water quality monitoring methods have low accuracy and cannot effectively assess multiple pollutants in river water resources. Moreover, relying on a single indicator cannot comprehensively assess water quality conditions, resulting in poor water quality monitoring results.
Using a method based on spectral analysis, we obtain river water spectral data through multispectral equipment, perform multi-dimensional spectral mapping and aggregation analysis, and combine gas chromatography-mass spectrometry technology to analyze pollution data and depth impurity data to perform water quality fitting and abnormal judgment.
It improves the accuracy and coverage of water quality monitoring, enables comprehensive assessment of river water quality, identifies pollutants in complex water bodies, detects pollution problems in a timely manner, provides scientific basis for tracing and controlling pollution sources, and builds an early warning system.
Smart Images

Figure CN118583792A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of river water quality monitoring, and in particular to a river water quality monitoring method and system based on spectral analysis. Background Art
[0002] River water quality monitoring is an important means of evaluating the ecological health of rivers and the quality of water resources. It can provide data on water quality changes, help identify pollution sources, and assess the degree of pollution, so as to formulate scientific and effective strategies for water resource management, pollution control and environmental protection. By regularly testing chemical substances, heavy metals, organic pollutants and biological indicators in river water, potential environmental problems can be discovered and prevented in a timely manner. In addition, water quality monitoring can also guide water environment management and ecological restoration work to ensure the sustainable use of water resources. However, traditional river water quality monitoring methods often rely on chemical reagents and biological specimens for water quality analysis, which cannot effectively evaluate the various pollutants in river water resources, resulting in low water quality monitoring accuracy of river water resources; and rely on a single indicator for water quality analysis, which cannot more comprehensively evaluate the water quality status, resulting in poor water quality monitoring of river water resources. Summary of the invention
[0003] Based on this, the present invention provides a river water quality monitoring method and system based on spectral analysis to solve at least one of the above technical problems.
[0004] To achieve the above purpose, a river water quality monitoring method based on spectral analysis includes the following steps:
[0005] Step S1: Acquire river water monitoring area data; use multispectral equipment to perform river water spectral monitoring processing on the river water monitoring area data to generate river water spectral monitoring data;
[0006] Step S2: performing river water multi-dimensional spectrum mapping processing on the river water spectrum monitoring data to generate river water multi-dimensional spectrum data;
[0007] Step S3: performing river water spectrum aggregation analysis on the river water multi-dimensional spectrum data to generate river water spectrum aggregation data;
[0008] Step S4: performing river water pollution data analysis on the river water aggregated spectral data to generate river water pollution data;
[0009] Step S5: Obtain river water gas chromatography-mass spectrometry data corresponding to the river water monitoring area data; perform river water depth impurity data analysis and processing based on the river water gas chromatography-mass spectrometry data to generate river water depth impurity data;
[0010] Step S6: Perform river water quality fitting analysis based on the river water pollution data and the river water depth impurity data to generate river water quality fitting data; perform river water quality abnormality data abnormality judgment processing on the river water quality fitting data to obtain river water quality abnormality data; and feed back the river water quality abnormality data to the terminal to execute the river water quality abnormality feedback operation.
[0011] The present invention uses multi-spectral equipment to cover a wide range of monitoring areas in a short time, improves the efficiency and scope of data collection, makes monitoring more comprehensive, obtains water quality information in a non-invasive manner, avoids interference with the water body, and ensures the authenticity of the data. Multidimensional spectral mapping can display water quality information from different angles and dimensions, provides a rich data basis for subsequent analysis, and better identifies various substances in complex water bodies, including trace pollutants and complex organic matter. Through aggregation analysis, key information in multidimensional spectral data is effectively integrated, the efficiency and accuracy of data processing are improved, it is helpful to identify the correlation between data, and reveal pollution characteristics and trends that are not easy to observe. Through pollution data analysis, the types and concentrations of pollutants are accurately analyzed, providing a basis for tracing and controlling pollution sources, intuitively evaluating the overall status of river water quality, and timely discovering pollution problems. Gas chromatography-mass spectrometry analysis technology can identify and quantify deep impurities in water, especially those trace organic pollutants that are difficult to detect by traditional methods. It is not limited to basic water quality parameters, but can comprehensively and deeply analyze complex pollution situations in water bodies. Combining pollution data and deep impurity data to perform water quality fitting analysis can more accurately assess water quality conditions and predict future trends. By judging abnormal data, it is convenient to build an early warning system to detect water quality problems in a timely manner and prevent pollution incidents.
[0012] Preferably, step S1 comprises the following steps:
[0013] Step S11: Acquire river water monitoring area data;
[0014] Step S12: Analyze and process the river terrain characteristics of the river water monitoring area data using GIS technology to generate river terrain characteristic data;
[0015] Step S13: performing river terrain feature point selection processing based on the river terrain feature data to obtain river terrain feature point data;
[0016] Step S14: Based on the river terrain feature point data, the multispectral equipment is configured at the monitoring position, and the river water monitoring area data is processed by the configured multispectral equipment to generate river water spectral monitoring data.
[0017] The present invention analyzes and processes the topographic features of the river channel through GIS technology, and can accurately identify and record important information such as the topographic changes, flow direction, slope, etc. of the river channel, so as to better understand the dynamics of water flow and its possible impact on water quality, and provide a scientific basis for the selection of monitoring points. Point selection based on the topographic feature data of the river channel can ensure the representativeness and effectiveness of the monitoring points. By scientifically selecting the monitoring points, the configuration of monitoring resources is optimized, and it is ensured that the monitoring data can fully reflect the water quality status of the monitoring area, especially in areas with complex terrain or large water quality changes. Multispectral equipment is configured based on accurate topographic feature point data, which greatly improves the coverage and data quality of spectral monitoring. The carefully selected monitoring position enables the multispectral equipment to capture more detailed and comprehensive spectral information, thereby improving the accuracy and reliability of water quality monitoring. The combination of GIS technology and multispectral monitoring not only improves the spatial resolution of the data, that is, it can more accurately locate and analyze the water quality of a specific area, but also optimizes the temporal resolution, that is, it can dynamically adjust the monitoring frequency and points according to the changes in topographic features and hydrological conditions, and realize more timely monitoring. Through the integration of GIS technology and multi-spectral monitoring data, spatial analysis and trend prediction of water quality data can be carried out more effectively, providing more accurate decision-making support for water quality management and protection.
[0018] Preferably, step S2 comprises the following steps:
[0019] Step S21: performing spectral normalization processing on the river water spectrum monitoring data to generate normalized river water spectrum data;
[0020] Step S22: performing spectral noise analysis on the normalized river water spectrum data according to the preset river water spectrum benchmark data to generate spectral noise data;
[0021] Step S23: performing spectral calibration processing on the normalized river water spectral data based on the spectral noise data to generate calibrated river water spectral data;
[0022] Step S24: extracting the spectral wavelength characteristics of the calibration river water spectrum data to generate characteristic spectral wavelength data;
[0023] Step S25: performing spectrum wavelength expansion processing according to the characteristic spectrum wavelength data to generate expanded spectrum wavelength data;
[0024] Step S26: performing multidimensional spectrum space design processing according to the expanded spectrum wavelength data to generate a multidimensional spectrum space;
[0025] Step S27: Transmit the calibrated river water spectrum data to the multi-dimensional spectrum space for river water multi-dimensional spectrum mapping processing to generate river water multi-dimensional spectrum data.
[0026] The present invention normalizes the spectral data, effectively eliminates the errors introduced by external factors such as equipment differences and changes in observation conditions, ensures the consistency and comparability of the data, and helps to improve the accuracy of the analysis. Through noise analysis and calibration technology, the noise components in the spectral data are effectively identified and eliminated, the signal-to-noise ratio of the data is improved, and the subsequent feature extraction and analysis are more accurate, reducing the risk of false positives or false negatives. Accurate characteristic wavelength extraction is crucial for identifying specific pollutants in water bodies. By identifying and extracting key wavelength features in spectral data, an important basis is provided for accurately determining water pollutants and water quality status. By expanding the characteristic spectral wavelength, a variety of pollutants that may exist in the water body are more comprehensively covered, and the monitoring system's ability to identify complex water quality conditions is enhanced, which helps to enhance the generalization ability of subsequent models and improve the efficiency of identifying unknown or rare pollutants. Designing a multidimensional spectral space provides a highly complex and information-rich analysis framework for river water spectral data, revealing the interactions between different pollutants and their complex relationship with the overall water quality. Mapping the calibrated spectral data into the designed multidimensional spectral space can not only more intuitively represent the multidimensional information of water quality, but also reveal deeper water quality characteristics and pollution patterns through high-dimensional data analysis, providing strong data support for subsequent water quality assessment and pollution control.
[0027] Preferably, step S3 comprises the following steps:
[0028] Step S31: Performing spectral aggregation distribution probability analysis on the multi-dimensional spectral data of river water based on a Gaussian mixture model to generate spectral aggregation distribution probability data;
[0029] Step S32: performing iterative updating processing on the spectral aggregation distribution probability data based on the expectation maximization algorithm to generate iterative spectral aggregation distribution probability data;
[0030] Step S33: Perform river water spectrum aggregation analysis on the river water multi-dimensional spectrum data according to the iterative spectrum aggregation distribution probability data to generate river water spectrum aggregation data.
[0031] The present invention uses a Gaussian mixture model to perform probability distribution analysis on multidimensional spectral data, which can effectively capture and describe the spectral characteristics of different pollutants in river water and the complexity of their distribution, reflecting the inherent diversity and variability of river water quality spectral data, and providing a rich information basis for accurate water quality analysis. The application of GMM enables the monitoring system to classify water quality into different categories or identify abnormal spectral patterns based on spectral characteristics, which is of great significance for early detection of pollution events or distinguishing different types of pollution sources. The expectation maximization algorithm optimizes the parameters of the Gaussian mixture model through an iterative update process, improves the model's fitting accuracy and generalization ability for river water spectral data, ensures that the final model can accurately reflect the actual water quality state, thereby improving the accuracy of water quality assessment and pollution identification. The application of the EM algorithm can effectively handle the uncertainty and complexity in spectral data, and optimize the entire spectral aggregation distribution probability model by finding the most likely parameter set. This process improves the efficiency of data processing and also ensures the reliability and accuracy of the analysis results. Aggregate analysis of river water based on iteratively updated spectral aggregate distribution probability data can provide a deeper understanding of pollutants and their spectral characteristics in river water, revealing not only the spectral characteristics of a single pollutant, but also the spectral interactions when multiple pollutants coexist. Through aggregate analysis of multi-dimensional spectral data, the monitoring system can more comprehensively assess the overall status of river water quality and dynamically track water quality change trends, which not only improves the accuracy of water quality assessment, but also provides more flexible and effective data support for water quality management and pollution control.
[0032] Preferably, step S4 comprises the following steps:
[0033] Step S41: establishing a mapping relationship between pollution indicators and river water spectrum information based on a preset support vector machine algorithm to generate an initial water pollution prediction model;
[0034] Step S42: Acquire historical river spectrum data;
[0035] Step S43: performing pollution index identification processing on the historical river channel spectrum data to generate historical pollution index-spectrum data;
[0036] Step S44: transmitting the historical pollution index-spectral data to the initial water pollution prediction model for model training and hyperparameter adjustment processing to generate a water pollution prediction model;
[0037] Step S45: transmitting the aggregated spectral data of the river water to the water pollution prediction model for river water pollution prediction processing to generate river water pollution data.
[0038] The mapping relationship between the pollution index and the river water spectrum information established by the present invention using the support vector machine algorithm can accurately capture the complex association between the pollutants and their spectral characteristics, ensuring the initial reliability and effectiveness of the prediction model. The SVM algorithm is particularly suitable for processing nonlinear problems, effectively processing the nonlinear relationship in the spectral data, and enhancing the model's ability to identify and predict complex water quality conditions. By acquiring and marking the historical river spectral data, enriching the training data set, the model can more comprehensively learn the relationship between the spectral characteristics and pollution indicators under different water quality conditions. This training process based on actual observation data improves the generalization ability and practical application value of the model. Combining historical river spectral data with pollution indicators can not only improve the training efficiency of the model, but also discover and utilize potential patterns and trends in historical data, providing a richer and more accurate training basis for the model. By further training and adjusting the hyperparameters of the initial water pollution prediction model, the prediction accuracy and stability of the model are significantly improved. This process finds the model configuration that best suits the current data set through iterative optimization, ensuring the efficiency and accuracy of the model in practical applications. The hyperparameter adjustment process enables the model to better adapt to different data characteristics and changes, improves the model's ability to predict new or unknown pollution events, and makes the model more adaptable and flexible. The aggregated spectral data of river water is transmitted to the trained and optimized water pollution prediction model for pollution prediction, realizing real-time prediction of river water pollution conditions, providing technical support for rapid response to abnormal water quality events, and helping to take corresponding pollution control and governance measures in a timely manner.
[0039] Preferably, step S44 includes the following steps:
[0040] The historical pollution index-spectral data is divided into training sample data to generate training set, validation set and test set respectively;
[0041] The radial basis function is used as the kernel function of the initial water pollution prediction model, and the training set is transferred to the kernel function of the initial water pollution prediction model for model training processing to generate a training water pollution prediction model;
[0042] Use the validation set to perform model validation and evaluation processing on the trained water pollution prediction model to generate model validation and evaluation data;
[0043] Based on grid search and model validation evaluation data, the model optimization hyperparameter adjustment processing is performed on the training water pollution prediction model to generate an adjusted water pollution prediction model;
[0044] The test set is used to perform model testing on the adjusted water pollution prediction model to generate a water pollution prediction model.
[0045] The present invention effectively prevents the overfitting or underfitting of the model by dividing the historical pollution index-spectral data into a training set, a validation set and a test set, and ensures that the model has good generalization ability. This division allows the model to only contact a part of the data during the training process, and the model performance is evaluated by the validation and testing of the unseen data. The radial basis function (RBF) as the kernel function of the SVM can effectively handle nonlinear problems, so that the model can better capture the relationship between complex pollution indicators and spectral characteristics, which plays an important role in improving the accuracy of the water pollution prediction model. By evaluating the trained model using the validation set, the prediction ability of the model for unknown data is detected without involving the test set, and the model parameters or structure are adjusted in time to improve the performance, thereby ensuring the reliability and effectiveness of the model. Based on the grid search technology and the model validation evaluation data, the hyperparameters are adjusted, and the optimal combination of hyperparameters can be systematically explored, which significantly improves the prediction accuracy and stability of the model. As a widely used hyperparameter optimization method, the grid search finds the optimal parameter setting by traversing the preset parameter grid. The optimized model is finally tested using the test set to evaluate the performance of the model on completely unknown data, so that the model is applied to the actual water pollution prediction task.
[0046] Preferably, step S5 comprises the following steps:
[0047] Step S51: Acquire river water gas chromatography-mass spectrometry data corresponding to river terrain feature point data in river water monitoring area data;
[0048] Step S52: performing gas chromatography and mass spectrometry data analysis on the gas chromatography-mass spectrometry data of the river water to generate gas chromatography data of the river water and mass spectrometry data of the river water respectively;
[0049] Step S53: Performing qualitative analysis of river water impurities according to the river water gas chromatography data to generate river water impurity qualitative data;
[0050] Step S54: performing quantitative ion identification processing on the river water mass spectrum data to generate quantitative ion data, and performing quantitative analysis processing on the river water impurities based on the quantitative ion data to generate quantitative data on the river water impurities;
[0051] Step S55: Analyze and process the river water depth impurity data based on the river water impurity qualitative data and the river water impurity quantitative data to generate river water depth impurity data.
[0052] The present invention obtains gas chromatography-mass spectrometry data corresponding to the characteristic points of river terrain to ensure that the analyzed data accurately corresponds to the actual pollution status of the monitoring area, thereby improving the relevance and reliability of the analyzed data. The analytical processing of gas chromatography and mass spectrometry data can be carried out respectively, and various impurity components in river water, including organic pollutants and heavy metals, can be fully identified and distinguished, providing a solid foundation for subsequent qualitative and quantitative analysis. According to the qualitative analysis of impurities by gas chromatography data, the types of pollutants present in river water can be clearly identified, and the necessary information is provided for assessing the source and degree of water pollution. Quantitative ion identification and quantitative analysis of impurities are carried out by mass spectrometry data, and the content of various pollutants is accurately determined, which is crucial for assessing the severity of pollution and formulating corresponding governance measures. Based on the deep impurity data analysis of impurity qualitative and quantitative data, the pollution characteristics of river water can be deeply understood, including the composition and concentration distribution of pollutants, which provides a scientific basis and target orientation for water quality improvement and pollution prevention and control.
[0053] Preferably, step S6 comprises the following steps:
[0054] Step S61: Perform water pollution correlation analysis based on water pollution data and river water depth impurity data to generate water pollution correlation data;
[0055] Step S62: Design water pollution weights based on water pollution correlation data to generate water pollution weight data;
[0056] Step S63: performing river water quality fitting analysis on the water pollution data and the river water depth impurity data according to the water quality pollution weight data to generate river water quality fitting data;
[0057] Step S64: Calculate the river water quality pollution index according to the river water quality fitting data to generate the river water quality pollution index;
[0058] Step S65: Perform river water quality abnormality judgment processing on the river water quality fitting data according to the river water quality pollution index to obtain river water quality abnormality data or river water quality regular data:
[0059] Step S66: When abnormal river water quality data is monitored, the abnormal river water quality data is fed back to the terminal to perform the abnormal river water quality feedback operation.
[0060] The present invention reveals the correlation and interaction between different pollutants by performing correlation analysis on water pollution data and river water depth impurity data, helps identify major pollution sources and pollutants, and thus provides a targeted basis for water quality improvement. The water pollution weight designed based on pollution correlation data can better reflect the degree and importance of the impact of different pollutants on water quality, so that the water quality assessment model is more in line with the actual water pollution situation, and improves the accuracy and practicality of the assessment results. The river water quality fitting analysis using water pollution weight data can carefully reflect the comprehensive impact of various pollutants in river water, and provide a more accurate and comprehensive assessment of water quality. By calculating the river water pollution index, the water quality status is quantified into specific values, which is convenient for water quality classification, trend analysis, and comparison with standards or other time periods, providing an intuitive basis for water quality management and decision-making. According to the water pollution index, the abnormal water quality judgment can timely discover abnormal changes in water quality, which provides the possibility for early warning and pollution prevention, and helps to take timely and effective measures to prevent the occurrence or deterioration of pollution incidents. When abnormal river water quality data is monitored, the data is immediately fed back to the terminal to achieve real-time response and intervention to water quality issues. This not only helps to quickly respond to environmental emergencies, but also provides water quality management departments with real-time monitoring and timely intervention capabilities.
[0061] Preferably, step S65 includes the following steps:
[0062] When the river water quality pollution index is greater than the preset river water quality pollution threshold, the river water quality fitting data corresponding to the river water quality pollution index is marked as abnormal river water quality data; or, when the river water quality pollution index is not greater than the preset river water quality pollution threshold, the river water quality fitting data corresponding to the river water quality pollution index is marked as regular river water quality data.
[0063] The present invention provides a clear judgment standard for the water quality status by setting a preset pollution threshold, making the water quality assessment process more objective and standardized. When the water quality pollution index exceeds this threshold, the relevant data is clearly marked as abnormal, accurately identifying water quality problems and pollution incidents. The river water quality data marked as abnormal can trigger timely response and treatment measures, such as further investigation, monitoring encryption or taking specific pollution control measures. This timely response is of great significance for preventing the spread of pollution and protecting the water environment. When the river water quality pollution index does not exceed the threshold, the data is marked as normal, reflecting that the river water body is in a normal water quality state, distinguishing normal monitoring data from data that requires urgent attention, optimizing resource allocation, and ensuring the efficiency and effectiveness of monitoring work.
[0064] This specification provides a river water quality monitoring system based on spectral analysis, which is used to execute the river water quality monitoring method based on spectral analysis as described above. The river water quality monitoring system based on spectral analysis includes:
[0065] The river water spectrum monitoring module is used to obtain river water monitoring area data; multi-spectral equipment is used to perform river water spectrum monitoring processing on the river water monitoring area data to generate river water spectrum monitoring data;
[0066] The river water multi-dimensional spectrum mapping module is used to perform river water multi-dimensional spectrum mapping processing on the river water spectrum monitoring data to generate river water multi-dimensional spectrum data;
[0067] The river water spectrum aggregation analysis module is used to perform river water spectrum aggregation analysis on the river water multi-dimensional spectrum data to generate river water spectrum aggregation data;
[0068] The river water pollution analysis module is used to analyze the river water aggregation spectrum data and generate river water pollution data;
[0069] The river water depth impurity analysis module is used to obtain the river water gas chromatography-mass spectrometry data corresponding to the river water monitoring area data; analyze and process the river water depth impurity data based on the river water gas chromatography-mass spectrometry data to generate the river water depth impurity data;
[0070] The river water quality abnormality feedback module is used to perform river water quality fitting analysis based on river water pollution data and river water depth impurity data to generate river water quality fitting data; perform river water quality abnormality data analysis and processing on the river water quality fitting data to generate river water quality abnormality data; and feed back the river water quality abnormality data to the terminal to execute the river water quality abnormality feedback operation.
[0071] The beneficial effects of the present application are that the river water quality monitoring method based on spectral analysis of the present invention can quickly obtain water quality information in a wide range through spectral analysis, including but not limited to specific pollutants, making the monitoring more comprehensive and timely, and will not interfere with the actual condition of the river water, effectively evaluate the various pollutants in the river water resources, and make the water quality monitoring of the river water resources more accurate; and combine the multi-indicator technical characteristics of spectral analysis and chromatography-mass spectrometry analysis to perform water quality analysis, which can more comprehensively evaluate the water quality condition, thereby improving the water quality monitoring effect of the river water resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 A schematic diagram of the steps of a river water quality monitoring method based on spectral analysis according to the present invention;
[0073] Figure 2 for Figure 1Detailed implementation steps of step S2 in the flowchart;
[0074] Figure 3 for Figure 1 Detailed implementation steps of step S5;
[0075] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0076] The technical method of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.
[0077] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0078] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0079] To achieve this, please refer to Figures 1 to 3 The present invention provides a river water quality monitoring method based on spectral analysis, comprising the following steps:
[0080] Step S1: Acquire river water monitoring area data; use multispectral equipment to perform river water spectral monitoring processing on the river water monitoring area data to generate river water spectral monitoring data;
[0081] Step S2: performing river water multi-dimensional spectrum mapping processing on the river water spectrum monitoring data to generate river water multi-dimensional spectrum data;
[0082] Step S3: performing river water spectrum aggregation analysis on the river water multi-dimensional spectrum data to generate river water spectrum aggregation data;
[0083] Step S4: performing river water pollution data analysis on the river water aggregated spectral data to generate river water pollution data;
[0084] Step S5: Obtain river water gas chromatography-mass spectrometry data corresponding to the river water monitoring area data; perform river water depth impurity data analysis and processing based on the river water gas chromatography-mass spectrometry data to generate river water depth impurity data;
[0085] Step S6: Perform river water quality fitting analysis based on the river water pollution data and the river water depth impurity data to generate river water quality fitting data; perform river water quality abnormality data abnormality judgment processing on the river water quality fitting data to obtain river water quality abnormality data; and feed back the river water quality abnormality data to the terminal to execute the river water quality abnormality feedback operation.
[0086] The present invention uses multi-spectral equipment to cover a wide range of monitoring areas in a short time, improves the efficiency and scope of data collection, makes monitoring more comprehensive, obtains water quality information in a non-invasive manner, avoids interference with the water body, and ensures the authenticity of the data. Multidimensional spectral mapping can display water quality information from different angles and dimensions, provides a rich data basis for subsequent analysis, and better identifies various substances in complex water bodies, including trace pollutants and complex organic matter. Through aggregation analysis, key information in multidimensional spectral data is effectively integrated, the efficiency and accuracy of data processing are improved, it is helpful to identify the correlation between data, and reveal pollution characteristics and trends that are not easy to observe. Through pollution data analysis, the types and concentrations of pollutants are accurately analyzed, providing a basis for tracing and controlling pollution sources, intuitively evaluating the overall status of river water quality, and timely discovering pollution problems. Gas chromatography-mass spectrometry analysis technology can identify and quantify deep impurities in water, especially those trace organic pollutants that are difficult to detect by traditional methods. It is not limited to basic water quality parameters, but can comprehensively and deeply analyze complex pollution situations in water bodies. Combining pollution data and deep impurity data to perform water quality fitting analysis can more accurately assess water quality conditions and predict future trends. By judging abnormal data, it is convenient to build an early warning system to detect water quality problems in a timely manner and prevent pollution incidents.
[0087] In the embodiment of the present invention, reference Figure 1 The above is a schematic diagram of the steps of a river water quality monitoring method based on spectral analysis of the present invention. In this embodiment, the river water quality monitoring method based on spectral analysis includes the following steps:
[0088] Step S1: Acquire river water monitoring area data; use multispectral equipment to perform river water spectral monitoring processing on the river water monitoring area data to generate river water spectral monitoring data;
[0089] In an embodiment of the present invention, the river water monitoring area data set in advance is obtained, the specific location and boundary of the river water monitoring area are determined by map and geographic information system (GIS) technology, and the monitoring points are accurately divided considering factors such as river flow direction, topography, and human activity intensity. According to the monitoring needs, a suitable multi-spectral device is selected, and technical parameters such as wavelength range, resolution, and sensitivity are considered to configure the equipment parameters, such as adjusting the wavelength range, setting the sampling interval and time, etc., to adapt to different monitoring needs. Within a predetermined time period, the selected monitoring area is spectrally scanned to collect the spectral data of the river water, ensuring the comprehensiveness and continuity of the spectral data collection to obtain representative water quality spectral information. The collected spectral data is recorded and preliminarily processed, such as time stamping, location recording, etc., and the data is stored in a database or data storage system to generate river water spectral monitoring data.
[0090] Step S2: performing river water multi-dimensional spectrum mapping processing on the river water spectrum monitoring data to generate river water multi-dimensional spectrum data;
[0091] In the embodiment of the present invention, the spectral monitoring data is preprocessed, including denoising, normalization, and possible background subtraction, to improve the quality and usability of the data, and to select the appropriate spectral range and characteristic wavelength for attention for specific pollutants or water quality parameters. Using data processing and analysis software, a multidimensional spectral mapping matrix is designed, which can map the processed spectral data into a high-dimensional space, and determine the mapping dimensions and algorithms, such as principal component analysis (PCA), linear discriminant analysis (LDA), etc., to best represent the information in the spectral data. The preprocessed spectral data is input into the multidimensional spectral mapping matrix, data conversion and mapping processing are performed, the mapping results are analyzed, and useful spectral features and patterns are identified and extracted. These features and patterns can reflect the state and changes of river water quality, and multidimensional spectral data of river water is generated according to the results of the mapping analysis.
[0092] Step S3: performing river water spectrum aggregation analysis on the river water multi-dimensional spectrum data to generate river water spectrum aggregation data;
[0093] In an embodiment of the present invention, cluster analysis is performed on multidimensional spectral data, such as using a Gaussian mixture model to divide the data into several clusters, each cluster representing a class of data points with similar spectral characteristics, and these clusters correspond to different types of water quality states or pollutants. The clustering results are analyzed to determine the characteristics of each cluster and the corresponding spectral characteristics to identify possible water quality characteristics or pollution sources. Based on the results of the cluster analysis, river water spectral aggregation data is generated, including the assignment of cluster labels, the calculation of cluster centers, and spectral characteristics.
[0094] Step S4: performing river water pollution data analysis on the river water aggregated spectral data to generate river water pollution data;
[0095] In an embodiment of the present invention, the aggregated data of river water spectra are combined with a spectral database of known pollutants to identify the types of pollutants in river water by matching spectral features, which involves using pattern recognition or machine learning algorithms to improve the accuracy of matching. For identified pollutants, their spectral features, possible sources, and correlations with other pollutants are recorded. Based on the specific spectral markers and intensities in the aggregated spectral data, the concentration or abundance of each pollutant is estimated, and the pollution level of river water is assessed. Quantitative analysis methods, such as the standard curve method, are required to convert spectral intensity into specific concentration values of pollutants. Based on the results of pollutant identification and pollution level analysis, a detailed river water pollution data report is generated, including the types, concentrations, and distribution of pollutants.
[0096] Step S5: Obtain river water gas chromatography-mass spectrometry data corresponding to the river water monitoring area data; perform river water depth impurity data analysis and processing based on the river water gas chromatography-mass spectrometry data to generate river water depth impurity data;
[0097] In an embodiment of the present invention, river water samples are collected at predetermined monitoring points to ensure that the samples can represent the water quality of the entire monitoring area. The collected water samples are analyzed using gas chromatography-mass spectrometry (GC-MS) to collect detailed chemical composition data. The chromatographic data is parsed to identify the chromatographic peaks of various organic compounds present in the water sample, and the mass spectrometry data is parsed to identify specific compounds and impurities by matching the mass spectrometry database. Qualitative analysis is performed based on the chromatographic data to determine the presence of various compounds in the water sample, and quantitative analysis is performed using the mass spectrometry data to calculate the concentration or content of various compounds. Based on the results of the qualitative and quantitative analysis, a deep impurity data report of the river water is generated, including information such as the type, concentration, and source of impurities.
[0098] Step S6: Perform river water quality fitting analysis based on the river water pollution data and the river water depth impurity data to generate river water quality fitting data; perform river water quality abnormality data abnormality judgment processing on the river water quality fitting data to obtain river water quality abnormality data; and feed back the river water quality abnormality data to the terminal to execute the river water quality abnormality feedback operation.
[0099] In an embodiment of the present invention, river water pollution data and deep impurity data are integrated to prepare for water quality fitting analysis, and a suitable statistical model or machine learning algorithm is selected as a fitting tool, such as linear regression, neural network, etc. The integrated data is input into the fitting model, and the fitting analysis process is performed to identify the main driving factors and patterns of water quality changes, and generate river water quality fitting data, which describes the relationship between water quality conditions and various pollution factors. A threshold value of the water quality pollution index is set, and the fitted water quality data is compared with the threshold value. If the water quality pollution index exceeds the threshold value, the corresponding data is marked as abnormal river water quality data; if it does not exceed the threshold value, it is regarded as normal data. The river water quality data marked as abnormal is fed back to the relevant departments or terminal devices through the information system so that corresponding countermeasures or further analysis can be taken.
[0100] Preferably, step S1 comprises the following steps:
[0101] Step S11: Acquire river water monitoring area data;
[0102] Step S12: Analyze and process the river terrain characteristics of the river water monitoring area data using GIS technology to generate river terrain characteristic data;
[0103] Step S13: performing river terrain feature point selection processing based on the river terrain feature data to obtain river terrain feature point data;
[0104] Step S14: Based on the river terrain feature point data, the multispectral equipment is configured at the monitoring position, and the river water monitoring area data is processed by the configured multispectral equipment to generate river water spectral monitoring data.
[0105] The present invention analyzes and processes the topographic features of the river channel through GIS technology, and can accurately identify and record important information such as the topographic changes, flow direction, slope, etc. of the river channel, so as to better understand the dynamics of water flow and its possible impact on water quality, and provide a scientific basis for the selection of monitoring points. Point selection based on the topographic feature data of the river channel can ensure the representativeness and effectiveness of the monitoring points. By scientifically selecting the monitoring points, the configuration of monitoring resources is optimized, and it is ensured that the monitoring data can fully reflect the water quality status of the monitoring area, especially in areas with complex terrain or large water quality changes. Multispectral equipment is configured based on accurate topographic feature point data, which greatly improves the coverage and data quality of spectral monitoring. The carefully selected monitoring position enables the multispectral equipment to capture more detailed and comprehensive spectral information, thereby improving the accuracy and reliability of water quality monitoring. The combination of GIS technology and multispectral monitoring not only improves the spatial resolution of the data, that is, it can more accurately locate and analyze the water quality of a specific area, but also optimizes the temporal resolution, that is, it can dynamically adjust the monitoring frequency and points according to the changes in topographic features and hydrological conditions, and realize more timely monitoring. Through the integration of GIS technology and multi-spectral monitoring data, spatial analysis and trend prediction of water quality data can be carried out more effectively, providing more accurate decision-making support for water quality management and protection.
[0106] In the embodiment of the present invention, the specific area for river water monitoring is determined by artificial presetting to obtain river water monitoring area data, including one or several specific areas of the river, and collect basic geographical, hydrological and environmental data of the monitoring area, including satellite images, topographic maps, historical monitoring data, etc. Use geographic information system (GIS) software to import the geographical and hydrological data of the monitoring area, and use GIS tools to analyze the river terrain, such as river width, flow rate, slope, etc., as well as surrounding terrain features, such as river bank type, vegetation coverage, etc. According to the results of terrain feature analysis, key terrain feature points that have an important impact on water quality monitoring, such as river confluence, river estuary, rapids, etc., are identified. Based on the key feature point data, specific monitoring points are determined to ensure that these points can representatively reflect the water quality of the entire monitoring area. According to the determined monitoring points, multi-spectral equipment is configured and set, and the spectral range, resolution and measurement parameters of the equipment are adjusted to adapt to different terrain features and water quality monitoring requirements, ensuring that the equipment can cover the required spectral bands, so as to accurately measure the spectral reflection or absorption characteristics of different substances in river water. Within the scheduled time, according to the set monitoring plan, use the configured multi-spectral equipment to perform spectral scanning and data collection on the selected monitoring points. The collected spectral data should include information such as spectral reflectance and absorption characteristics, which can be used to analyze the physical and chemical state of the water body. The collected spectral monitoring data will be preliminarily processed and recorded, such as time and location marking and preliminary data cleaning.
[0107] Preferably, step S2 comprises the following steps:
[0108] Step S21: performing spectral normalization processing on the river water spectrum monitoring data to generate normalized river water spectrum data;
[0109] Step S22: performing spectral noise analysis on the normalized river water spectrum data according to the preset river water spectrum benchmark data to generate spectral noise data;
[0110] Step S23: performing spectral calibration processing on the normalized river water spectral data based on the spectral noise data to generate calibrated river water spectral data;
[0111] Step S24: extracting the spectral wavelength characteristics of the calibration river water spectrum data to generate characteristic spectral wavelength data;
[0112] Step S25: performing spectrum wavelength expansion processing according to the characteristic spectrum wavelength data to generate expanded spectrum wavelength data;
[0113] Step S26: performing multidimensional spectrum space design processing according to the expanded spectrum wavelength data to generate a multidimensional spectrum space;
[0114] Step S27: Transmit the calibrated river water spectrum data to the multi-dimensional spectrum space for river water multi-dimensional spectrum mapping processing to generate river water multi-dimensional spectrum data.
[0115] The present invention normalizes the spectral data, effectively eliminates the errors introduced by external factors such as equipment differences and changes in observation conditions, ensures the consistency and comparability of the data, and helps to improve the accuracy of the analysis. Through noise analysis and calibration technology, the noise components in the spectral data are effectively identified and eliminated, the signal-to-noise ratio of the data is improved, and the subsequent feature extraction and analysis are more accurate, reducing the risk of false positives or false negatives. Accurate characteristic wavelength extraction is crucial for identifying specific pollutants in water bodies. By identifying and extracting key wavelength features in spectral data, an important basis is provided for accurately determining water pollutants and water quality status. By expanding the characteristic spectral wavelength, a variety of pollutants that may exist in the water body are more comprehensively covered, and the monitoring system's ability to identify complex water quality conditions is enhanced, which helps to enhance the generalization ability of subsequent models and improve the efficiency of identifying unknown or rare pollutants. Designing a multidimensional spectral space provides a highly complex and information-rich analysis framework for river water spectral data, revealing the interactions between different pollutants and their complex relationship with the overall water quality. Mapping the calibrated spectral data into the designed multidimensional spectral space can not only more intuitively represent the multidimensional information of water quality, but also reveal deeper water quality characteristics and pollution patterns through high-dimensional data analysis, providing strong data support for subsequent water quality assessment and pollution control.
[0116] As an example of the present invention, refer to Figure 2 As shown, Figure 1 Detailed implementation steps of step S2 in the embodiment are shown in the flowchart. In this embodiment, step S2 includes:
[0117] Step S21: performing spectral normalization processing on the river water spectrum monitoring data to generate normalized river water spectrum data;
[0118] In an embodiment of the present invention, maximum and minimum value normalization, Z-score standardization, or other normalization methods suitable for spectral data are used, and the selected normalization method is applied to the water spectrum monitoring data of each river channel, and the data range is adjusted to be on a uniform scale to reduce the differences between the data and generate normalized river water spectrum data.
[0119] Step S22: performing spectral noise analysis on the normalized river water spectrum data according to the preset river water spectrum benchmark data to generate spectral noise data;
[0120] In an embodiment of the present invention, based on preset river water spectral benchmark data, the acceptable noise level in the spectral data and the standard for identifying noise are defined, and a statistical analysis method is used to identify noise characteristics in the normalized spectral data, such as random noise, baseline drift, etc. The noise level of each data point is recorded, spectral noise data is generated, and high noise areas or data points are marked.
[0121] Step S23: performing spectral calibration processing on the normalized river water spectral data based on the spectral noise data to generate calibrated river water spectral data;
[0122] In an embodiment of the present invention, a calibration method suitable for spectral noise reduction is determined, such as baseline correction, noise filtering, etc., and according to the noise analysis results, the normalized river water spectral data is calibrated to reduce or eliminate the influence of noise. By comparing the data before and after calibration, the effect of noise reduction is verified, and calibrated river water spectral data is generated to ensure that the calibration process achieves the expected goal.
[0123] Step S24: extracting the spectral wavelength characteristics of the calibration river water spectrum data to generate characteristic spectral wavelength data;
[0124] In an embodiment of the present invention, the calibrated spectral data is analyzed to identify representative characteristic wavelengths, which may correspond to absorption peaks or reflection peaks of specific pollutants. The identified characteristic wavelengths and their related parameters, such as wavelength position, peak intensity, etc., are recorded to form characteristic spectral wavelength data.
[0125] Step S25: performing spectrum wavelength expansion processing according to the characteristic spectrum wavelength data to generate expanded spectrum wavelength data;
[0126] In an embodiment of the present invention, based on the characteristic spectral wavelength, the spectral range of the study is expanded to include more spectral information that may be related to water quality, which involves considering the spectral band near the characteristic wavelength, or expanding to a new wavelength region based on known spectral characteristics of pollutants, and organizing and recording the expanded spectral wavelength data to ensure that the expanded wavelength range covers both key features and can provide additional water quality information.
[0127] Step S26: performing multidimensional spectrum space design processing according to the expanded spectrum wavelength data to generate a multidimensional spectrum space;
[0128] In an embodiment of the present invention, the parameters of the multidimensional spectral space are designed according to the characteristics of the extended spectral wavelength data, including which spectral wavelengths are selected as independent dimensions and how to process these dimensions to best reflect the water quality characteristics. The multidimensional spectral space is constructed using appropriate mathematical models and algorithms to ensure that the space can effectively integrate and display the information obtained from the extended spectral wavelength data. By testing a small amount of spectral data of known water quality conditions, it is verified whether the design of the multidimensional spectral space can accurately map and distinguish different water quality states, and the multidimensional spectral space is adjusted based on the verification results.
[0129] Step S27: Transmit the calibrated river water spectrum data to the multi-dimensional spectrum space for river water multi-dimensional spectrum mapping processing to generate river water multi-dimensional spectrum data.
[0130] In an embodiment of the present invention, spectral data is input into a multidimensional spectral space, and mapping processing is performed to map each data point to a specific position in the multidimensional space. Through the mapping processing, multidimensional spectral data representing the water quality of the river is generated, reflecting the differences in spectral characteristics under different water quality conditions, and the mapping results are analyzed to identify and mark significant spectral features and patterns.
[0131] Preferably, step S3 comprises the following steps:
[0132] Step S31: Performing spectral aggregation distribution probability analysis on the multi-dimensional spectral data of river water based on a Gaussian mixture model to generate spectral aggregation distribution probability data;
[0133] Step S32: performing iterative updating processing on the spectral aggregation distribution probability data based on the expectation maximization algorithm to generate iterative spectral aggregation distribution probability data;
[0134] Step S33: Perform river water spectrum aggregation analysis on the river water multi-dimensional spectrum data according to the iterative spectrum aggregation distribution probability data to generate river water spectrum aggregation data.
[0135] The present invention uses a Gaussian mixture model to perform probability distribution analysis on multidimensional spectral data, which can effectively capture and describe the spectral characteristics of different pollutants in river water and the complexity of their distribution, reflecting the inherent diversity and variability of river water quality spectral data, and providing a rich information basis for accurate water quality analysis. The application of GMM enables the monitoring system to classify water quality into different categories or identify abnormal spectral patterns based on spectral characteristics, which is of great significance for early detection of pollution events or distinguishing different types of pollution sources. The expectation maximization algorithm optimizes the parameters of the Gaussian mixture model through an iterative update process, improves the model's fitting accuracy and generalization ability for river water spectral data, ensures that the final model can accurately reflect the actual water quality state, thereby improving the accuracy of water quality assessment and pollution identification. The application of the EM algorithm can effectively handle the uncertainty and complexity in spectral data, and optimize the entire spectral aggregation distribution probability model by finding the most likely parameter set. This process improves the efficiency of data processing and also ensures the reliability and accuracy of the analysis results. Aggregate analysis of river water based on iteratively updated spectral aggregate distribution probability data can provide a deeper understanding of pollutants and their spectral characteristics in river water, revealing not only the spectral characteristics of a single pollutant, but also the spectral interactions when multiple pollutants coexist. Through aggregate analysis of multi-dimensional spectral data, the monitoring system can more comprehensively assess the overall status of river water quality and dynamically track water quality change trends, which not only improves the accuracy of water quality assessment, but also provides more flexible and effective data support for water quality management and pollution control.
[0136] In the embodiment of the present invention, a Gaussian mixture model is selected as an analysis tool. The model can handle the complex distribution characteristics of spectral data and is suitable for describing the aggregate distribution in multidimensional spectral data. The GMM parameters are initialized, including the estimated number of clusters (i.e., the number of Gaussian distributions), and the initial mean, covariance, and mixing coefficient of each distribution. The river water spectral data preprocessed and mapped to the multidimensional spectral space are input into the GMM, and the GMM is used to perform probability analysis on the input multidimensional spectral data, and the probability of each data point belonging to each Gaussian distribution is estimated to generate spectral aggregate distribution probability data. The expectation maximization algorithm is used to iteratively update the parameters of the GMM to optimize the model's fit to the multidimensional spectral data. Based on the current model parameters, the probability of each data point belonging to each Gaussian distribution is calculated, and the model parameters (mean, covariance, and mixing coefficient of the Gaussian distribution) are updated to maximize the likelihood function of the data. Steps E and M are repeated until the convergence condition is reached or the predetermined number of iterations is completed to generate the final iterative spectral aggregate distribution probability data. According to the iteratively updated spectral aggregation distribution probability data, the final aggregation analysis of the multi-dimensional spectral data of river water is carried out, which involves classifying the data points according to the Gaussian distribution to which they belong with the highest probability. The results of the aggregation analysis are organized into a structured data format. In addition to its spectral characteristics, each data point also contains information about the cluster (Gaussian distribution) to which it belongs, thereby generating river water spectral aggregation data, including the characteristics of each cluster (such as the central wavelength, the distribution characteristics of the data points within the cluster, etc.) and the relative position relationship between clusters.
[0137] Preferably, step S4 comprises the following steps:
[0138] Step S41: establishing a mapping relationship between pollution indicators and river water spectrum information based on a preset support vector machine algorithm to generate an initial water pollution prediction model;
[0139] Step S42: Acquire historical river spectrum data;
[0140] Step S43: performing pollution index identification processing on the historical river channel spectrum data to generate historical pollution index-spectrum data;
[0141] Step S44: transmitting the historical pollution index-spectral data to the initial water pollution prediction model for model training and hyperparameter adjustment processing to generate a water pollution prediction model;
[0142] Step S45: transmitting the aggregated spectral data of the river water to the water pollution prediction model for river water pollution prediction processing to generate river water pollution data.
[0143] The mapping relationship between the pollution index and the river water spectrum information established by the present invention using the support vector machine algorithm can accurately capture the complex association between the pollutants and their spectral characteristics, ensuring the initial reliability and effectiveness of the prediction model. The SVM algorithm is particularly suitable for processing nonlinear problems, effectively processing the nonlinear relationship in the spectral data, and enhancing the model's ability to identify and predict complex water quality conditions. By acquiring and marking the historical river spectral data, enriching the training data set, the model can more comprehensively learn the relationship between the spectral characteristics and pollution indicators under different water quality conditions. This training process based on actual observation data improves the generalization ability and practical application value of the model. Combining historical river spectral data with pollution indicators can not only improve the training efficiency of the model, but also discover and utilize potential patterns and trends in historical data, providing a richer and more accurate training basis for the model. By further training and adjusting the hyperparameters of the initial water pollution prediction model, the prediction accuracy and stability of the model are significantly improved. This process finds the model configuration that best suits the current data set through iterative optimization, ensuring the efficiency and accuracy of the model in practical applications. The hyperparameter adjustment process enables the model to better adapt to different data characteristics and changes, improves the model's ability to predict new or unknown pollution events, and makes the model more adaptable and flexible. The aggregated spectral data of river water is transmitted to the trained and optimized water pollution prediction model for pollution prediction, realizing real-time prediction of river water pollution conditions, providing technical support for rapid response to abnormal water quality events, and helping to take corresponding pollution control and governance measures in a timely manner.
[0144] In the embodiment of the present invention, the support vector machine algorithm is selected as the basis for constructing the water pollution prediction model, considering its powerful performance in classification and regression problems, and the parameter information of the support vector machine algorithm is pre-designed to determine the mapping relationship between the river water spectral information and the pollution index, including which spectral features are selected as input features, and how to represent the pollution index (such as pollutant concentration, etc.) as output. The SVM model is initialized, including the selection of kernel functions (such as radial basis function (RBF) kernel, etc.), and the initial setting of other hyperparameters. The river water spectral data that have been collected and analyzed in the past are collected. These data should contain spectral information under various water quality conditions, and ensure that the format and quality of the historical spectral data meet the analysis requirements, such as data cleaning and preprocessing when necessary. Each historical river spectral data is labeled with corresponding pollution index information, such as the pollutant concentration value obtained by chemical analysis, etc., and the spectral data and the corresponding pollution index are integrated to form a complete historical pollution index-spectral data set for model training. The historical pollution index-spectral data set is divided into a training set, a validation set, and a test set for model training and evaluation. The training set is used to train the initial water pollution prediction model to learn the mapping relationship between spectral information and pollution indicators. The model is evaluated through the validation set, and hyperparameters (such as C value, kernel function parameters, etc.) are adjusted. Methods such as grid search are used to find the optimal parameter configuration. The adjusted model is finally evaluated using the test set to confirm the model's prediction ability and generalization performance, and generate the final water pollution prediction model. The newly collected river water aggregate spectral data is used as input and transmitted to the trained and adjusted water pollution prediction model. The model predicts the corresponding pollution indicators, such as pollutant concentration, based on the input spectral data, to evaluate the water quality status. According to the model prediction results, river water pollution data is generated, including information such as the predicted pollutant types and concentrations, for water quality management and decision support.
[0145] Preferably, step S44 includes the following steps:
[0146] The historical pollution index-spectral data is divided into training sample data to generate training set, validation set and test set respectively;
[0147] The radial basis function is used as the kernel function of the initial water pollution prediction model, and the training set is transferred to the kernel function of the initial water pollution prediction model for model training processing to generate a training water pollution prediction model;
[0148] Use the validation set to perform model validation and evaluation processing on the trained water pollution prediction model to generate model validation and evaluation data;
[0149] Based on grid search and model validation evaluation data, the model optimization hyperparameter adjustment processing is performed on the training water pollution prediction model to generate an adjusted water pollution prediction model;
[0150] The test set is used to perform model testing on the adjusted water pollution prediction model to generate a water pollution prediction model.
[0151] The present invention effectively prevents the overfitting or underfitting of the model by dividing the historical pollution index-spectral data into a training set, a validation set and a test set, and ensures that the model has good generalization ability. This division allows the model to only contact a part of the data during the training process, and the model performance is evaluated by the validation and testing of the unseen data. The radial basis function (RBF) as the kernel function of the SVM can effectively handle nonlinear problems, so that the model can better capture the relationship between complex pollution indicators and spectral characteristics, which plays an important role in improving the accuracy of the water pollution prediction model. By evaluating the trained model using the validation set, the prediction ability of the model for unknown data is detected without involving the test set, and the model parameters or structure are adjusted in time to improve the performance, thereby ensuring the reliability and effectiveness of the model. Based on the grid search technology and the model validation evaluation data, the hyperparameters are adjusted, and the optimal combination of hyperparameters can be systematically explored, which significantly improves the prediction accuracy and stability of the model. As a widely used hyperparameter optimization method, the grid search finds the optimal parameter setting by traversing the preset parameter grid. The optimized model is finally tested using the test set to evaluate the performance of the model on completely unknown data, so that the model is applied to the actual water pollution prediction task.
[0152] In the embodiment of the present invention, the collected historical pollution index-spectral data set is sorted to ensure that the data quality meets the model training requirements, and the sorted data set is randomly divided into a training set, a validation set and a test set, with a ratio of 70% training set, 15% validation set and 15% test set to ensure that the model can learn on a sufficiently large data set, while retaining independent data for evaluating and testing model performance. The radial basis function (RBF) is selected as the kernel function of the support vector machine (SVM). Because of its high performance in dealing with nonlinear problems, the training set data is transferred to the SVM model configured with the RBF kernel function for training. Adjust the model parameters, such as the regularization parameter C and the γ parameter of the kernel function, and start the training process. The validation set data is used to perform performance verification on the trained water pollution prediction model, evaluate the key indicators such as the accuracy and recall rate of the model, ensure that the model has good predictive ability for unseen data, generate model verification evaluation data, and record the performance of the model on the validation set and various evaluation indicators in detail. Through the grid search method, a series of preset C and γ parameter combinations are traversed and tested to find the parameter settings that optimize the model performance. According to the evaluation results on the validation set, the parameter combination that can maximize the model performance is selected, the model hyperparameters are adjusted, and the selected optimal parameter settings are applied to retrain the model to generate the adjusted water pollution prediction model. The adjusted water pollution prediction model is finally tested using an independent test set to evaluate the generalization ability of the model on unseen data, record the prediction results and performance indicators of the model on the test set, such as accuracy, recall rate, etc., analyze the stability and accuracy of the model, ensure that the optimized water pollution prediction model meets the predetermined performance requirements, and confirm that the model is ready to be deployed for actual water pollution prediction tasks to generate a water pollution prediction model.
[0153] Preferably, step S5 comprises the following steps:
[0154] Step S51: Acquire river water gas chromatography-mass spectrometry data corresponding to river terrain feature point data in river water monitoring area data;
[0155] Step S52: performing gas chromatography and mass spectrometry data analysis on the gas chromatography-mass spectrometry data of the river water to generate gas chromatography data of the river water and mass spectrometry data of the river water respectively;
[0156] Step S53: Performing qualitative analysis of river water impurities according to the river water gas chromatography data to generate river water impurity qualitative data;
[0157] Step S54: performing quantitative ion identification processing on the river water mass spectrum data to generate quantitative ion data, and performing quantitative analysis processing on the river water impurities based on the quantitative ion data to generate quantitative data on the river water impurities;
[0158] Step S55: Analyze and process the river water depth impurity data based on the river water impurity qualitative data and the river water impurity quantitative data to generate river water depth impurity data.
[0159] The present invention obtains gas chromatography-mass spectrometry data corresponding to the characteristic points of river terrain to ensure that the analyzed data accurately corresponds to the actual pollution status of the monitoring area, thereby improving the relevance and reliability of the analyzed data. The analytical processing of gas chromatography and mass spectrometry data can be carried out respectively, and various impurity components in river water, including organic pollutants and heavy metals, can be fully identified and distinguished, providing a solid foundation for subsequent qualitative and quantitative analysis. According to the qualitative analysis of impurities by gas chromatography data, the types of pollutants present in river water can be clearly identified, and the necessary information is provided for assessing the source and degree of water pollution. Quantitative ion identification and quantitative analysis of impurities are carried out by mass spectrometry data, and the content of various pollutants is accurately determined, which is crucial for assessing the severity of pollution and formulating corresponding governance measures. Based on the deep impurity data analysis of impurity qualitative and quantitative data, the pollution characteristics of river water can be deeply understood, including the composition and concentration distribution of pollutants, which provides a scientific basis and target orientation for water quality improvement and pollution prevention and control.
[0160] As an example of the present invention, refer to Figure 3 As shown, Figure 1 Detailed implementation steps of step S5 in the flowchart, in this example, step S5 includes:
[0161] Step S51: Acquire river water gas chromatography-mass spectrometry data corresponding to river terrain feature point data in river water monitoring area data;
[0162] In an embodiment of the present invention, sampling points are determined based on the data of characteristic points of river terrain, with priority given to locations where terrain changes are significant or near potential pollution sources, and river water samples are collected at predetermined monitoring points to ensure that the sampling process complies with standard operating procedures to avoid contamination and sample deterioration. The collected water samples are analyzed using a gas chromatography-mass spectrometer (GC-MS) to obtain detailed river water gas chromatography-mass spectrometry data.
[0163] Step S52: performing gas chromatography and mass spectrometry data analysis on the gas chromatography-mass spectrometry data of the river water to generate gas chromatography data of the river water and mass spectrometry data of the river water respectively;
[0164] In an embodiment of the present invention, the raw gas chromatography data generated by GC-MS is processed, including noise removal, baseline correction, etc., to clearly display the chromatographic peaks of each compound, and the mass spectrum data is analyzed through the chromatographic peaks, and the corresponding mass spectrum is identified based on each peak identified in the gas chromatography, thereby generating river water gas chromatography data and river water mass spectrum data, respectively, which are used to match the gas chromatography and mass spectrum with a known compound mass spectrum library to identify the compounds present in the sample.
[0165] Step S53: Performing qualitative analysis of river water impurities according to the river water gas chromatography data to generate river water impurity qualitative data;
[0166] In an embodiment of the present invention, a qualitative analysis of impurities is performed based on the chromatographic peaks in the gas chromatography data, the main compounds and potential pollutants in the water sample are identified, all identified compounds and their sources are recorded, qualitative data of river water impurities are generated, and the names and characteristics of various impurities are listed.
[0167] Step S54: performing quantitative ion identification processing on the river water mass spectrum data to generate quantitative ion data, and performing quantitative analysis processing on the river water impurities based on the quantitative ion data to generate quantitative data on the river water impurities;
[0168] In the embodiment of the present invention, the quantitative ion peaks in the mass spectrometry data are used in combination with quantitative analysis techniques such as the external standard method or the internal standard method to determine the precise concentration of each compound. Based on the quantitative analysis results, the specific concentration values of various impurities are calculated and recorded to generate quantitative data of river water impurities.
[0169] Step S55: Analyze and process the river water depth impurity data based on the river water impurity qualitative data and the river water impurity quantitative data to generate river water depth impurity data.
[0170] In an embodiment of the present invention, the qualitative and quantitative analysis results are comprehensively analyzed to evaluate the existence status and pollution degree of various impurities in river water. Based on the comprehensive analysis results, river water depth impurity data is generated, which describes in detail the types, concentrations and other information of various impurities in the water body.
[0171] Preferably, step S6 comprises the following steps:
[0172] Step S61: Perform water pollution correlation analysis based on water pollution data and river water depth impurity data to generate water pollution correlation data;
[0173] Step S62: Design water pollution weights based on water pollution correlation data to generate water pollution weight data;
[0174] Step S63: performing river water quality fitting analysis on the water pollution data and the river water depth impurity data according to the water quality pollution weight data to generate river water quality fitting data;
[0175] Step S64: Calculate the river water quality pollution index according to the river water quality fitting data to generate the river water quality pollution index;
[0176] Step S65: Perform river water quality abnormality judgment processing on the river water quality fitting data according to the river water quality pollution index to obtain river water quality abnormality data or river water quality regular data:
[0177] Step S66: When abnormal river water quality data is monitored, the abnormal river water quality data is fed back to the terminal to perform the abnormal river water quality feedback operation.
[0178] The present invention reveals the correlation and interaction between different pollutants by performing correlation analysis on water pollution data and river water depth impurity data, helps identify major pollution sources and pollutants, and thus provides a targeted basis for water quality improvement. The water pollution weight designed based on pollution correlation data can better reflect the degree and importance of the impact of different pollutants on water quality, so that the water quality assessment model is more in line with the actual water pollution situation, and improves the accuracy and practicality of the assessment results. The river water quality fitting analysis using water pollution weight data can carefully reflect the comprehensive impact of various pollutants in river water, and provide a more accurate and comprehensive assessment of water quality. By calculating the river water pollution index, the water quality status is quantified into specific values, which is convenient for water quality classification, trend analysis, and comparison with standards or other time periods, providing an intuitive basis for water quality management and decision-making. According to the water pollution index, the abnormal water quality judgment can timely discover abnormal changes in water quality, which provides the possibility for early warning and pollution prevention, and helps to take timely and effective measures to prevent the occurrence or deterioration of pollution incidents. When abnormal river water quality data is monitored, the data is immediately fed back to the terminal to achieve real-time response and intervention to water quality issues. This not only helps to quickly respond to environmental emergencies, but also provides water quality management departments with real-time monitoring and timely intervention capabilities.
[0179] In the embodiment of the present invention, the collected water pollution data and river water depth impurity data are integrated and prepared for correlation analysis. Statistical software or custom scripts, such as the Pandas library in Python, are used to perform correlation analysis, identify the correlation between different pollutants and between pollutants and impurities, and generate a water quality pollution correlation data report based on the analysis results, and record the correlation coefficients between each pollutant and impurity in detail. According to the water quality pollution correlation data, the pollutants and impurities that have the greatest impact on water quality are identified, and weights are assigned to each pollutant and impurity based on the strength of the correlation. Pollutants with high importance obtain higher weights, and a data table containing all pollutants and their weights is sorted and generated as the basis for subsequent analysis. According to the set pollution weight, the pollution data and impurity data are weighted and prepared for water quality fitting analysis. Statistical or machine learning models, such as linear regression, random forest, etc., are used to perform water quality fitting analysis based on weighted data, and the obtained river water quality fitting data shows the overall impact of different pollutants and impurities on water quality. According to the water quality fitting data, a comprehensive river water quality pollution index is calculated, which reflects the overall pollution degree of water quality. The specific river water quality pollution index data is generated by calculating the pollution weight and the concentration of the pollutant. The threshold of the river water quality pollution index is set in advance to distinguish abnormal water quality from normal water quality. The calculated pollution index is compared with the threshold. If it exceeds the threshold, it is considered abnormal water quality, and if it does not exceed the threshold, it is considered normal water quality. According to the judgment result, the data is marked as abnormal river water quality data or normal data. Collect all river water quality data marked as abnormal, and feed the abnormal data back to the relevant terminals or management systems, such as environmental monitoring stations, water quality management department's information systems, etc., for subsequent analysis and response measures.
[0180] Preferably, step S65 includes the following steps:
[0181] When the river water quality pollution index is greater than the preset river water quality pollution threshold, the river water quality fitting data corresponding to the river water quality pollution index is marked as abnormal river water quality data; or, when the river water quality pollution index is not greater than the preset river water quality pollution threshold, the river water quality fitting data corresponding to the river water quality pollution index is marked as regular river water quality data.
[0182] The present invention provides a clear judgment standard for the water quality status by setting a preset pollution threshold, making the water quality assessment process more objective and standardized. When the water quality pollution index exceeds this threshold, the relevant data is clearly marked as abnormal, accurately identifying water quality problems and pollution incidents. The river water quality data marked as abnormal can trigger timely response and treatment measures, such as further investigation, monitoring encryption or taking specific pollution control measures. This timely response is of great significance for preventing the spread of pollution and protecting the water environment. When the river water quality pollution index does not exceed the threshold, the data is marked as normal, reflecting that the river water body is in a normal water quality state, distinguishing normal monitoring data from data that requires urgent attention, optimizing resource allocation, and ensuring the efficiency and effectiveness of monitoring work.
[0183] In an embodiment of the present invention, one or more river water pollution thresholds are determined based on historical data analysis, environmental standards and expert advice to distinguish whether the water quality status is normal or abnormal, and the preset river water pollution threshold is recorded in the system or analysis document to ensure that the threshold can be referenced in subsequent analysis. The pollution index is calculated for the river water quality fitting data of each monitoring point or monitoring batch, and the calculated river water pollution index is compared with the preset pollution threshold. If the water pollution index of a river exceeds the threshold, the data is marked as "abnormal" and an abnormal mark is added to this batch of data in the system to facilitate subsequent screening, analysis and report generation. If the water pollution index of the river does not exceed the threshold, the data is marked as "normal" and a normal mark is also added to this batch of data in the system for distinction and management.
[0184] This specification provides a river water quality monitoring system based on spectral analysis, which is used to execute the river water quality monitoring method based on spectral analysis as described above. The river water quality monitoring system based on spectral analysis includes:
[0185] The river water spectrum monitoring module is used to obtain river water monitoring area data; multi-spectral equipment is used to perform river water spectrum monitoring processing on the river water monitoring area data to generate river water spectrum monitoring data;
[0186] The river water multi-dimensional spectrum mapping module is used to perform river water multi-dimensional spectrum mapping processing on the river water spectrum monitoring data to generate river water multi-dimensional spectrum data;
[0187] The river water spectrum aggregation analysis module is used to perform river water spectrum aggregation analysis on the river water multi-dimensional spectrum data to generate river water spectrum aggregation data;
[0188] The river water pollution analysis module is used to analyze the river water aggregation spectrum data and generate river water pollution data;
[0189] The river water depth impurity analysis module is used to obtain the river water gas chromatography-mass spectrometry data corresponding to the river water monitoring area data; analyze and process the river water depth impurity data based on the river water gas chromatography-mass spectrometry data to generate the river water depth impurity data;
[0190] The river water quality abnormality feedback module is used to perform river water quality fitting analysis based on river water pollution data and river water depth impurity data to generate river water quality fitting data; perform river water quality abnormality data analysis and processing on the river water quality fitting data to generate river water quality abnormality data; and feed back the river water quality abnormality data to the terminal to execute the river water quality abnormality feedback operation.
[0191] The beneficial effects of the present application are that the river water quality monitoring method based on spectral analysis of the present invention can quickly obtain water quality information in a wide range through spectral analysis, including but not limited to specific pollutants, making the monitoring more comprehensive and timely, and will not interfere with the actual condition of the river water, effectively evaluate the various pollutants in the river water resources, and make the water quality monitoring of the river water resources more accurate; and combine the multi-indicator technical characteristics of spectral analysis and chromatography-mass spectrometry analysis to perform water quality analysis, which can more comprehensively evaluate the water quality condition, thereby improving the water quality monitoring effect of the river water resources.
[0192] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.
[0193] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A river water quality monitoring method based on spectral analysis, characterized in that: The following steps are involved: Step S1: Acquire river water monitoring area data; use multispectral equipment to perform river water spectral monitoring processing on the river water monitoring area data to generate river water spectral monitoring data; Step S2: performing river water multi-dimensional spectrum mapping processing on the river water spectrum monitoring data to generate river water multi-dimensional spectrum data; Step S3: performing river water spectrum aggregation analysis on the river water multi-dimensional spectrum data to generate river water spectrum aggregation data; Step S4: performing river water pollution data analysis on the river water aggregated spectral data to generate river water pollution data; Step S5: Obtain river water gas chromatography-mass spectrometry data corresponding to the river water monitoring area data; perform river water depth impurity data analysis and processing based on the river water gas chromatography-mass spectrometry data to generate river water depth impurity data; Step S6: performing river water quality fitting analysis based on the river water pollution data and the river water depth impurity data to generate river water quality fitting data; performing river water quality abnormal data abnormality judgment processing on the river water quality fitting data to obtain river water quality abnormal data; The abnormal river water quality data is fed back to the terminal to execute the abnormal river water quality feedback operation.
2. The method for monitoring river water quality based on spectral analysis according to claim 1, characterized in that: Step S1 includes the following steps: Step S11: Acquire river water monitoring area data; Step S12: Analyze and process the river terrain characteristics of the river water monitoring area data using GIS technology to generate river terrain characteristic data; Step S13: performing river terrain feature point selection processing based on the river terrain feature data to obtain river terrain feature point data; Step S14: Based on the river terrain feature point data, the multispectral equipment is configured at the monitoring position, and the river water monitoring area data is processed by the configured multispectral equipment to generate river water spectral monitoring data.
3. The method for monitoring river water quality based on spectral analysis according to claim 1, characterized in that: Step S2 includes the following steps: Step S21: performing spectral normalization processing on the river water spectrum monitoring data to generate normalized river water spectrum data; Step S22: performing spectral noise analysis on the normalized river water spectrum data according to the preset river water spectrum benchmark data to generate spectral noise data; Step S23: performing spectral calibration processing on the normalized river water spectral data based on the spectral noise data to generate calibrated river water spectral data; Step S24: extracting the spectral wavelength characteristics of the calibration river water spectrum data to generate characteristic spectral wavelength data; Step S25: performing spectrum wavelength expansion processing according to the characteristic spectrum wavelength data to generate expanded spectrum wavelength data; Step S26: performing multidimensional spectrum space design processing according to the expanded spectrum wavelength data to generate a multidimensional spectrum space; Step S27: Transmit the calibrated river water spectrum data to the multi-dimensional spectrum space for river water multi-dimensional spectrum mapping processing to generate river water multi-dimensional spectrum data.
4. The method for monitoring river water quality based on spectral analysis according to claim 1, characterized in that: Step S3 includes the following steps: Step S31: Performing spectral aggregation distribution probability analysis on the multi-dimensional spectral data of river water based on a Gaussian mixture model to generate spectral aggregation distribution probability data; Step S32: performing iterative updating processing on the spectral aggregation distribution probability data based on the expectation maximization algorithm to generate iterative spectral aggregation distribution probability data; Step S33: Perform river water spectrum aggregation analysis on the river water multi-dimensional spectrum data according to the iterative spectrum aggregation distribution probability data to generate river water spectrum aggregation data.
5. The method for monitoring river water quality based on spectral analysis according to claim 1, characterized in that: Step S4 includes the following steps: Step S41: establishing a mapping relationship between pollution indicators and river water spectrum information based on a preset support vector machine algorithm to generate an initial water pollution prediction model; Step S42: Acquire historical river spectrum data; Step S43: performing pollution index identification processing on the historical river channel spectrum data to generate historical pollution index-spectrum data; Step S44: transmitting the historical pollution index-spectral data to the initial water pollution prediction model for model training and hyperparameter adjustment processing to generate a water pollution prediction model; Step S45: transmitting the aggregated spectral data of the river water to the water pollution prediction model for river water pollution prediction processing to generate river water pollution data.
6. The method for monitoring river water quality based on spectral analysis according to claim 5, characterized in that: Step S44 includes the following steps: The historical pollution index-spectral data is divided into training sample data to generate training set, validation set and test set respectively; The radial basis function is used as the kernel function of the initial water pollution prediction model, and the training set is transferred to the kernel function of the initial water pollution prediction model for model training processing to generate a training water pollution prediction model; Use the validation set to perform model validation and evaluation processing on the trained water pollution prediction model to generate model validation and evaluation data; Based on grid search and model validation evaluation data, the model optimization hyperparameter adjustment processing is performed on the training water pollution prediction model to generate an adjusted water pollution prediction model; The test set is used to perform model testing on the adjusted water pollution prediction model to generate a water pollution prediction model.
7. The method for monitoring river water quality based on spectral analysis according to claim 2, characterized in that: Step S5 includes the following steps: Step S51: Acquire river water gas chromatography-mass spectrometry data corresponding to river terrain feature point data in river water monitoring area data; Step S52: performing gas chromatography and mass spectrometry data analysis on the gas chromatography-mass spectrometry data of the river water to generate gas chromatography data of the river water and mass spectrometry data of the river water respectively; Step S53: Performing qualitative analysis of river water impurities according to the river water gas chromatography data to generate river water impurity qualitative data; Step S54: performing quantitative ion identification processing on the river water mass spectrum data to generate quantitative ion data, and performing quantitative analysis processing on the river water impurities based on the quantitative ion data to generate quantitative data on the river water impurities; Step S55: Analyze and process the river water depth impurity data based on the river water impurity qualitative data and the river water impurity quantitative data to generate river water depth impurity data.
8. The method for monitoring river water quality based on spectral analysis according to claim 1, characterized in that: Step S6 includes the following steps: Step S61: Perform water pollution correlation analysis based on water pollution data and river water depth impurity data to generate water pollution correlation data; Step S62: Design water pollution weights based on water pollution correlation data to generate water pollution weight data; Step S63: performing river water quality fitting analysis on the water pollution data and the river water depth impurity data according to the water quality pollution weight data to generate river water quality fitting data; Step S64: Calculate the river water quality pollution index according to the river water quality fitting data to generate the river water quality pollution index; Step S65: Perform river water quality abnormality judgment processing on the river water quality fitting data according to the river water quality pollution index to obtain river water quality abnormality data or river water quality regular data: Step S66: When abnormal river water quality data is monitored, the abnormal river water quality data is fed back to the terminal to perform the abnormal river water quality feedback operation.
9. The method for monitoring river water quality based on spectral analysis according to claim 8, characterized in that: Step S65 includes the following steps: When the river water quality pollution index is greater than the preset river water quality pollution threshold, the river water quality fitting data corresponding to the river water quality pollution index is marked as abnormal river water quality data; or, when the river water quality pollution index is not greater than the preset river water quality pollution threshold, the river water quality fitting data corresponding to the river water quality pollution index is marked as regular river water quality data.
10. A river water quality monitoring system based on spectral analysis, characterized in that: Used to perform the river water quality monitoring method based on spectral analysis as described in any one of claims 1 to 9, the river water quality monitoring system based on spectral analysis comprises: The river water spectrum monitoring module is used to obtain river water monitoring area data; multi-spectral equipment is used to perform river water spectrum monitoring processing on the river water monitoring area data to generate river water spectrum monitoring data; The river water multi-dimensional spectrum mapping module is used to perform river water multi-dimensional spectrum mapping processing on the river water spectrum monitoring data to generate river water multi-dimensional spectrum data; The river water spectrum aggregation analysis module is used to perform river water spectrum aggregation analysis on the river water multi-dimensional spectrum data to generate river water spectrum aggregation data; The river water pollution analysis module is used to analyze the river water aggregation spectrum data and generate river water pollution data; The river water depth impurity analysis module is used to obtain the river water gas chromatography-mass spectrometry data corresponding to the river water monitoring area data; analyze and process the river water depth impurity data based on the river water gas chromatography-mass spectrometry data to generate the river water depth impurity data; The river water quality abnormality feedback module is used to perform river water quality fitting analysis based on river water pollution data and river water depth impurity data to generate river water quality fitting data; perform river water quality abnormality data analysis and processing on the river water quality fitting data to generate river water quality abnormality data; and feed back the river water quality abnormality data to the terminal to execute the river water quality abnormality feedback operation.
Citation Information
Cited By
Surface water pollution feature extraction method and related equipment
CN118866180A
Full-spectrum multi-parameter water quality on-line analysis method, system and instrument
CN120142197A
