Method for rapidly detecting wastewater pollutants by atomic fluorescence spectrometry

By constructing a multidimensional matrix and hierarchical attention network model, the problem of multiple interference factors coupling in the detection of wastewater pollutants by atomic fluorescence spectrometry was solved, and intelligent correction of spectral interference, background interference and signal drift was achieved, thereby improving the accuracy and stability of detection.

CN120778697AActive Publication Date: 2025-10-14ANHUI TOPWAY TESTING SERVICES CO LTD

Patent Information

Application Number
CN202511285474.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-10
Publication Date
2025-10-14
Estimated Expiration
2045-09-10

AI Technical Summary

Technical Problem

Traditional atomic fluorescence spectrometry faces the problem of unstable detection accuracy caused by the coupling of multiple interference factors when detecting wastewater pollutants, including spectral line overlap, background interference and signal drift.

Method used

By constructing the spectral interference matrix, spectral outlier matrix, background fluorescence interference matrix and signal drift matrix, and combining the spectral line recognition model of the hierarchical attention network, quantitative characterization and intelligent correction of multiple interference factors can be achieved.

Benefits of technology

It significantly improves the detection accuracy and stability in complex wastewater matrices, realizes synchronous compensation and dynamic correction of multiple interference factors, and ensures the accuracy and reliability of the detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120778697A_ABST
    Figure CN120778697A_ABST
Patent Text Reader

Abstract

The invention provides a method for rapidly detecting wastewater pollutants by atomic fluorescence spectrometry, and belongs to the technical field of wastewater treatment.The method comprises the steps that atomic fluorescence spectrum data of a wastewater sample are collected to establish a spectrum interference matrix to characterize the spectral line overlapping condition between elements; abnormal values are recognized through statistical analysis, a spectrum outlier matrix is built, abnormal fluorescence intensity distribution is recorded, sample matrix non-characteristic fluorescence signals are measured, a background fluorescence interference matrix is built, background interference intensity is quantized, system signal change rules are continuously monitored and detected, and a signal drift tendency matrix is built to predict the signal drift tendency. A spectrum interference matrix and a background fluorescence interference matrix are processed through a spectrum analytic function, compensation factors are calculated, spectrum overlapping and background interference influences are corrected, system drift is corrected in real time, and a final wastewater pollutant concentration detection result is output, so that the technical problem of unstable detection precision caused by coupling of multiple interference factors is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of wastewater treatment, and particularly relates to a method for rapidly detecting wastewater pollutants by atomic fluorescence spectrometry. BACKGROUND

[0002] As a highly sensitive elemental analysis technique, atomic fluorescence spectrometry is widely used in the quantitative detection of heavy metal pollutants in wastewater. Traditional atomic fluorescence detection methods generate characteristic fluorescence signals by exciting target elements, and realize quantitative analysis according to the linear relationship between fluorescence intensity and element concentration. This technology is widely used in environmental monitoring, food safety, geological exploration and other fields, and plays an important role in pollutant monitoring in wastewater treatment plants, industrial wastewater discharge detection and groundwater pollution assessment. However, traditional atomic fluorescence detection technology faces many challenges in practical application. First, the complex wastewater matrix coexists with multiple elements, resulting in serious spectral line overlap interference, which affects the accurate identification of target elements. Second, the background fluorescence signal generated by the sample matrix is superimposed with the target element signal, reducing the selectivity of the detection. In addition, the detection system has signal drift phenomenon during long-time operation, and the instrument stability is difficult to guarantee. Existing single correction methods can only solve a certain type of interference, and lack of systematic processing ability for multiple interference factors. Traditional technology is difficult to effectively handle the coupling effects of spectral interference, background interference, signal drift and other multiple factors at the same time, resulting in insufficient precision and stability of the detection results in complex wastewater matrix, which cannot meet the technical requirements of modern environmental monitoring for high precision and high stability detection. That is, there is a technical problem of unstable detection precision caused by coupling of multiple interference factors when atomic fluorescence spectrometry is used to detect wastewater pollutants in the existing technology. SUMMARY

[0003] Therefore, the application provides a method for rapidly detecting wastewater pollutants by atomic fluorescence spectrometry, which can solve the technical problem of unstable detection precision caused by coupling of multiple interference factors when atomic fluorescence spectrometry is used to detect wastewater pollutants in the existing technology.

[0004] The present invention is implemented as follows: The present invention provides a method for rapidly detecting wastewater pollutants by atomic fluorescence spectroscopy, comprising: collecting atomic fluorescence spectral data of wastewater samples to establish a spectral interference matrix for characterizing the spectral line overlap between multiple elements, identifying outliers in the spectral data through statistical analysis to construct a spectral outlier matrix to record the abnormal fluorescence intensity distribution at each wavelength position, measuring the non-characteristic fluorescence signal generated by the sample matrix to establish a background fluorescence interference matrix to quantify the background interference intensity at different wavelengths, continuously monitoring the signal change law of the detection system during long-term operation to construct a signal drift tendency matrix to predict the signal offset trend, establishing a signal drift deterministic matrix based on historical detection data and current measurement conditions to accurately describe the amplitude and direction of the signal drift, processing the spectral interference matrix and the background fluorescence interference matrix through a spectral analysis function to calculate a compensation factor for correcting the influence of spectral overlap and background interference on the measurement results, using a spectral line identification model to perform intelligent analysis on the spectral outlier matrix and using the signal drift deterministic matrix to calculate the jump factor to correct the system drift in real time and output the final wastewater pollutant concentration detection result.

[0005] The spectral interference matrix is ​​formed by measuring the fluorescence spectra of each target element in the standard mixed solution, calculating the degree of mutual influence of the fluorescence intensity of different elements at the same wavelength position, and forming a mathematical matrix that describes the overlapping interference relationship of the spectral lines between the elements.

[0006] The spectral outlier matrix is ​​a two-dimensional data matrix constructed by performing statistical analysis on spectral data measured multiple times continuously to identify abnormal data points that deviate from the normal fluorescence intensity range and based on wavelength position and occurrence frequency.

[0007] The background fluorescence interference matrix is ​​formed by measuring the intensity of non-characteristic fluorescence signals generated by the sample matrix at various detection wavelengths without adding target analytical elements, thereby forming a data matrix describing the distribution law of background interference.

[0008] The signal drift tendency matrix is ​​specifically established by long-term monitoring of the signal stability of the detection system, statistically analyzing the trends and laws of signal changes over time, and predicting the direction and amplitude of future signal drift.

[0009] The signal drift deterministic matrix is ​​specifically a matrix that accurately calculates the specific numerical value and correction parameters of the system signal drift under the current detection conditions based on the deviation between the measurement results of the real-time calibration standard sample and the theoretical value.

[0010] The compensation factor is specifically a correction coefficient calculated based on the spectral interference intensity and the background fluorescence level, and is used to eliminate the influence of multi-element coexistence and matrix effect on the fluorescence intensity measurement of the target element.

[0011] The jump factor is specifically a real-time correction parameter calculated based on a signal drift certainty matrix, and is used to compensate for signal drift caused by temperature changes or device aging during continuous operation of the detection system.

[0012] The spectral analysis function is used to process a multi-dimensional spectral data matrix and calculate corresponding compensation parameters, and the input includes element correlation coefficients extracted from a spectral interference matrix, intensity distribution data obtained from a background fluorescence interference matrix, target detection element theoretical fluorescence wavelength positions queried from a standard spectral library, matrix concentration parameters determined during wastewater sample pretreatment, and instrument response coefficients obtained during instrument calibration. The output is a compensation factor value and a corresponding correction weight coefficient for each target element.

[0013] The specific structure of the spectral line recognition model is a multi-level feature extraction and fusion system based on a hierarchical attention network architecture, including an input layer that receives a spectral data matrix and performs preprocessing and normalization, multiple parallel convolutional feature extraction branches that capture spectral features at different scales, a hierarchical attention mechanism module that dynamically allocates the importance of different abstract level features through hierarchical fusion weights, a feature fusion layer that combines multi-scale features by weighting, and a fully connected classification layer that outputs class labels and confidence scores for spectral outliers.

[0014] Further, before the spectral line recognition model training step, there is also a spectral line recognition model training data set establishment step, specifically including collecting atomic fluorescence spectral data of different types of wastewater samples under various detection conditions as a basic data source, manually labeling each spectral data to distinguish normal fluorescence peaks and abnormal outliers, constructing synthetic spectral data containing known spectral overlap by adding different concentrations of interference elements and changing matrix components, and adding noise and drift changes consistent with the actual detection environment to the original spectral data using data enhancement techniques.

[0015] Further, the spectral line recognition model training step specifically includes initializing the model with preprocessed training data sets, adjusting network weights step by step using a gradient descent optimization algorithm to minimize prediction errors, monitoring model performance and preventing overfitting during training using validation set data, and optimizing training efficiency and convergence stability by adjusting learning rate and batch size.

[0016] The weight adjustment function is used for adjusting the hierarchical fusion weight parameter of the spectral line recognition model, the weight adjustment function is based on the comprehensive evaluation value calculation of the spectral complexity evaluation value extracted from the spectral interference matrix, the interference intensity measurement value obtained from the background fluorescence interference matrix and the system stability index calculated from the signal drift tendency matrix, and when the comprehensive evaluation value is less than 0.414, a conservative weight distribution strategy is adopted to enhance the low-level feature weight to improve the basic spectral recognition accuracy.

[0017] The two threshold values of the comprehensive evaluation value are obtained, specifically including collecting a large amount of atomic fluorescence spectrum detection data covering wastewater samples of different complexity as a basic data set for threshold determination, calculating the spectral complexity evaluation value for each detection sample to reflect the spectral line overlap degree, measuring the interference intensity measurement value to quantify the influence degree of background fluorescence on detection, evaluating the system stability index to represent the stability level of the instrument in the detection process, and calculating the comprehensive evaluation value corresponding to each sample according to the above three indexes according to the equal weight method.

[0018] The complexity index is specifically a comprehensive index for quantifying the complexity of the spectrum by calculating the proportion of the number of non-zero elements in the spectral interference matrix to the total number of elements, and combining the number of spectral line overlapping peaks and the peak intensity variance.

[0019] The background fluorescence interference intensity is specifically a weighted average value of the background signal intensity at each wavelength position extracted from the background fluorescence interference matrix, and the weight is determined according to the correlation between the fluorescence wavelength position of the target detection element and the background signal wavelength position.

[0020] The present application realizes comprehensive quantitative characterization of various interference factors in the detection process by constructing five core data matrices, namely spectral interference matrix, spectral outlier matrix, background fluorescence interference matrix, signal drift tendency matrix and signal drift certainty matrix. The spectral interference matrix and the background fluorescence interference matrix are processed by the spectral analysis function to calculate the compensation factor, which effectively eliminates the influence of multi-element coexistence and matrix effect on the detection result. At the same time, the spectral line recognition model based on hierarchical attention network is used to intelligently identify the spectral outliers, and the jump factor calculated by the signal drift certainty matrix is used to realize real-time correction of system drift. This method overcomes the limitations of single correction method in traditional technology, and realizes comprehensive response to complex interference environment through multi-dimensional collaborative processing. The weight adjustment function adaptively adjusts the model parameters according to the comprehensive evaluation value, ensuring optimal detection performance under different complexity conditions, solving the technical problem of coupled influence of multiple interference factors on detection accuracy, realizing synchronous compensation and dynamic correction of spectral interference, background interference, signal drift and other interference factors, and significantly improving the accuracy, stability and reliability of atomic fluorescence spectrum detection in complex wastewater matrix, providing technical support for accurate quantitative analysis of wastewater pollutants. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a flow chart of the method of the present invention.

[0022] Figure 2 Schematic diagram of the spectral line identification model structure.

[0023] Figure 3 Schematic diagram of the typical characteristics of normal fluorescence peaks, including four sub-graphs: (a) is a schematic diagram of a symmetrical Gaussian peak; (b) is a schematic diagram of a multi-element normal peak; (c) is a schematic diagram of a concentration series peak; and (d) is a schematic diagram of a stable baseline characteristic.

[0024] Figure 4 Schematic diagram of typical features of abnormal outliers, including six sub-graphs: (a) is a schematic diagram of peak position shift; (b) is a schematic diagram of asymmetric peaks; (c) is a schematic diagram of double peak phenomenon; (d) is a schematic diagram of baseline drift interference; (e) is a schematic diagram of spectral interference overlap; (f) is a schematic diagram of noise spikes. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0026] like Figure 1 FIG. 1 is a flow chart of a method for rapidly detecting wastewater pollutants using atomic fluorescence spectrometry provided by the present invention. The method comprises the following steps: S01. Collect atomic fluorescence spectroscopy data of wastewater samples and establish a spectral interference matrix to characterize the spectral line overlap between multiple elements; S02. Identify outliers in the spectral data through statistical analysis, and construct a spectral outlier matrix to record the abnormal fluorescence intensity distribution at each wavelength position; S03, measuring the non-characteristic fluorescence signal generated by the sample matrix, and establishing a background fluorescence interference matrix to quantify the background interference intensity at different wavelengths; S04. Continuously monitor the signal variation patterns of the detection system during long-term operation and construct a signal drift tendency matrix to predict signal deviation trends; S05. Based on historical detection data and current measurement conditions, a signal drift deterministic matrix is ​​established to accurately describe the amplitude and direction of signal drift; S06. Processing the spectral interference matrix and the background fluorescence interference matrix by a spectral analysis function to calculate a compensation factor for correcting the influence of spectral overlap and background interference on the measurement result; S07, intelligently analyzing the spectral outlier matrix by using a spectral line recognition model and calculating a jump factor by using the signal drift determinacy matrix, correcting system drift in real time and outputting a final wastewater pollutant concentration detection result.

[0027] The spectral interference matrix is specifically formed by measuring the fluorescence spectra of each target element in a standard mixed solution, calculating the mutual influence degree of the fluorescence intensities of different elements at the same wavelength position, and forming a mathematical matrix describing the spectral line overlap interference relationship between elements.

[0028] The spectral outlier matrix is specifically a two-dimensional data matrix constructed by statistically analyzing the spectral data measured continuously multiple times, identifying abnormal data points deviating from the normal fluorescence intensity range, and arranging the wavelength positions and occurrence frequencies.

[0029] The background fluorescence interference matrix is specifically a data matrix describing the background interference distribution law, which is formed by measuring the non-characteristic fluorescence signal intensity generated by the sample matrix at each detection wavelength without adding the target analysis element.

[0030] The signal drift tendency matrix is specifically a prediction matrix for predicting the future signal drift direction and possible amplitude, which is formed by long-term monitoring of the signal stability of the detection system, and statistically analyzing the trends and laws of the signal changes over time.

[0031] The signal drift determinacy matrix is specifically a matrix for accurately calculating the specific value of the system signal drift and the correction parameter under the current detection condition, based on the deviation between the measurement result of the real-time calibration standard sample and the theoretical value.

[0032] The compensation factor is specifically a correction coefficient calculated according to the spectral interference intensity and the background fluorescence level, which is used to eliminate the influence of multi-element coexistence and matrix effect on the measurement of the fluorescence intensity of the target element.

[0033] The jump factor is specifically a real-time correction parameter calculated based on the signal drift determinacy matrix, which is used to compensate for the signal offset caused by temperature changes or device aging during continuous operation of the detection system.

[0034] The spectral analysis function is used to process the multi-dimensional spectral data matrix and calculate the corresponding compensation parameters, the input includes the element correlation coefficient extracted from the spectral interference matrix, the intensity distribution data obtained from the background fluorescence interference matrix, the target detection element theoretical fluorescence wavelength position queried from the standard spectral library, the matrix concentration parameter determined from the wastewater sample pretreatment process, and the instrument response coefficient obtained from the instrument calibration process, and the output is the compensation factor value and the corresponding correction weight coefficient for each target element.

[0035] The specific structure of the spectral line recognition model is a multi-level feature extraction and fusion system based on a hierarchical attention network architecture, including an input layer that receives a spectral data matrix and performs preprocessing and normalization, multiple parallel convolutional feature extraction branches for capturing spectral features at different scales, a hierarchical attention mechanism module that dynamically allocates the importance of different abstract level features through hierarchical fusion weights, a feature fusion layer that combines multiple scale features by weighting, and a fully connected classification layer that outputs the class label and confidence score of the spectral outlier, wherein the hierarchical fusion weights are adaptively adjusted according to the complexity index calculated from the spectral interference matrix, the background fluorescence interference intensity extracted from the background fluorescence interference matrix, and the variance value obtained from the signal drift tendency matrix.

[0036] The steps of establishing the training data set of the spectral line recognition model include collecting atomic fluorescence spectrum data of different types of wastewater samples under various detection conditions as the basic data source, manually labeling each spectrum data to distinguish normal fluorescence peaks and abnormal outliers, constructing synthetic spectrum data containing known spectral overlap by adding different concentrations of interference elements and changing matrix components, adding noise and drift changes consistent with the actual detection environment based on the original spectrum data using data enhancement techniques, classifying and organizing all labeled data according to spectral feature complexity and interference type, constructing a complete training sample set containing spectrum data matrix and corresponding labels, and cross-validation segmentation of the training data set to ensure model generalization performance.

[0037] The steps of training the spectral line recognition model include initializing the model parameters using the preprocessed training data set, adjusting the network weights step by step to minimize the prediction error using the gradient descent optimization algorithm, monitoring the model performance and preventing overfitting during the training process using the validation set data, optimizing the training efficiency and convergence stability by adjusting the learning rate and batch size, periodically saving the model parameter state with the best performance during the training process, evaluating the accuracy and robustness of the final trained model in the actual application scenario using the test set data, and quantizing and compressing the trained model to adapt to the computational resource limitations of the real-time detection system.

[0038] The weight adjustment function is used to adjust the hierarchical fusion weight parameters of the spectral line recognition model, and the weight adjustment function is based on comprehensive evaluation value calculation of spectral complexity evaluation values extracted from the spectral interference matrix, interference intensity measurement values obtained from the background fluorescence interference matrix, and system stability indicators calculated from the signal drift tendency matrix. When the comprehensive evaluation value is less than 0.414, a conservative weight distribution strategy is adopted to enhance the low-level feature weight to improve the basic spectral recognition accuracy, when the comprehensive evaluation value is in the range of 0.414 to 0.732, a balanced weight distribution strategy is adopted to evenly distribute the feature weight of each level to balance the recognition accuracy and calculation efficiency, and when the comprehensive evaluation value is greater than 0.732, an aggressive weight distribution strategy is adopted to enhance the high-level abstract feature weight to improve the spectral line recognition ability under complex interference conditions.

[0039] The two threshold values of the comprehensive evaluation value are obtained by collecting a large amount of atomic fluorescence spectrum detection data covering wastewater samples of different complexity as a basic data set for threshold determination, calculating the spectral complexity evaluation value for each detection sample to reflect the spectral line overlap degree, measuring the interference intensity measurement value to quantify the influence degree of background fluorescence on detection, evaluating the system stability index to represent the stability level of the instrument in the detection process, calculating the comprehensive evaluation value corresponding to each sample according to the equal weight method according to the above three indexes, sorting all samples according to the comprehensive evaluation value and dividing them into three complexity levels of low, medium and high, determining the comprehensive evaluation value of 0.414 as the dividing point between low and medium complexity samples through statistical analysis, determining the comprehensive evaluation value of 0.732 as the dividing point between medium and high complexity samples through statistical analysis, and verifying the effectiveness and stability of the two threshold values using an independent test sample set to ensure the rationality of the threshold setting.

[0040] The complexity index is specifically a comprehensive index of quantifying the complexity of the spectrum by calculating the proportion of the number of non-zero elements in the spectral interference matrix to the total number of elements, and combining the number of spectral line overlapping peaks and the peak intensity variance.

[0041] The background fluorescence interference intensity is specifically a weighted average of the background signal intensity at each wavelength position extracted from the background fluorescence interference matrix, and the weight is determined according to the correlation between the fluorescence wavelength position of the target detection element and the background signal wavelength position.

[0042] The variance value is specifically a statistical quantity of signal change amplitude calculated from the diagonal elements of the signal drift tendency matrix, which is used to quantify the change degree of signal stability of the detection system in continuous operation.

[0043] The spectral complexity evaluation value is specifically a comprehensive complexity quantification index calculated based on the weighted combination of the complexity index and the spectral peak number and peak width parameters.

[0044] The interference intensity measurement value is specifically a ratio of the background fluorescence interference intensity to the theoretical fluorescence intensity of the target element, and is used to quantify the relative influence degree of background interference on the detection of the target element.

[0045] The system stability index is specifically a comprehensive calculation result based on the variance value and the instrument temperature fluctuation coefficient and the light source intensity variation coefficient, and is used to evaluate the overall stability level of the detection system under long-time running conditions.

[0046] The specific implementation of the above steps is described in detail below.

[0047] The specific implementation of step S01 is to use an atomic fluorescence spectrometer to perform scanning detection on the wastewater sample to obtain complete spectral data covering a wavelength range of 200-800 nm. First, the wastewater sample is pretreated, including filtration, dilution, and acidification treatment, to ensure that the target elements in the sample can be fully atomized. Then, a standard mixed solution containing various target elements is prepared, with a concentration range of 0.1-100 μg / L, and the standard solution is repeatedly measured multiple times under the same detection conditions by the atomic fluorescence spectrometer. Based on the spectral superposition principle, when multiple elements coexist, the fluorescence spectral lines of some elements will overlap at the same or similar wavelength positions, causing mutual interference of spectral signals. A matrix analysis method is used to calculate the fluorescence intensity correlation coefficients between different elements at each wavelength position, and numerical analysis is used to determine the mutual influence degree between elements. When the correlation coefficient is greater than 0.85, it is considered that there is significant spectral interference, which needs to be corrected in the subsequent processing. The established spectral interference matrix takes the target elements as the row and column indexes, and the matrix element value represents the spectral interference intensity between the corresponding element pairs. The matrix is a symmetric matrix, with diagonal element values of 1 and non-diagonal element values between 0 and 1.

[0048] The specific implementation of step S02 is to use statistical methods to detect and identify outliers in the spectral data obtained by continuous multiple measurements. Based on the normal distribution assumption, the interquartile range method is used to determine the normal distribution range of the spectral data, and the first quartile and the third quartile of the spectral intensity at each wavelength position are calculated, with the interquartile range defined as When the spectral intensity value at a certain wavelength position exceeds or When the data point is outside the range, it is marked as an outlier. At the same time, a density-based clustering algorithm is used to analyze the spectral data and identify outliers that deviate from the main data distribution. This algorithm calculates the local density around each data point, and when the density is lower than the set threshold of 0.15, the point is considered an outlier. The constructed spectral outlier matrix is indexed by wavelength as row and measurement number as column, with matrix element values being binary labels of 0 or 1, with 1 indicating the presence of an outlier at that position and 0 indicating a normal value. The role of this matrix is to provide basic information for anomaly detection for subsequent intelligent spectral line recognition.

[0049] The specific implementation of step S03 is to measure the background fluorescence without adding any target analysis elements using the same matrix solution as the sample. The matrix solution contains all components in the wastewater sample except the target elements, such as inorganic salts, organic matter, and other coexisting elements. Based on the principles of Rayleigh scattering and Raman scattering, the matrix components will produce non-characteristic fluorescence signals under the action of excitation light, which are superimposed with the characteristic fluorescence signals of the target elements to form background interference. The matrix solution is measured in the full wavelength range using spectral scanning, and the fluorescence intensity values at each wavelength position are recorded. The average value and standard deviation of the background fluorescence intensity are obtained through multiple repeated measurements, and when the ratio of the standard deviation to the average value is less than 5%, the background measurement is considered stable and reliable. The established background fluorescence interference matrix is indexed by wavelength as row and matrix type as column, with matrix element values being the background fluorescence intensity under the corresponding conditions. This matrix is used to quantify the background interference level under different matrix conditions and provides accurate reference data for subsequent background subtraction.

[0050] The specific implementation of step S04 is to establish a signal drift prediction model using time series analysis method through long-term continuous monitoring of the signal stability of the detection system. A standard reference sample is detected every 2 hours, and the continuous monitoring time is not less than 48 hours, obtaining the data sequence of signal change over time. Based on the principle of autoregressive moving average model, the trend and periodicity characteristics of signal change are analyzed. The least squares method is used to fit the linear trend of signal change, and the trend slope and correlation coefficient are calculated. When the correlation coefficient is greater than 0.8, it is considered that there is a significant signal drift trend. At the same time, the sliding window technique is used to analyze the short-term fluctuation characteristics of the signal, with a window size of 10 data points. The variance and skewness of the signal in each window are calculated. The constructed signal drift tendency matrix is indexed by time as row and detection parameter as column, with matrix element values representing the signal drift tendency index under the corresponding time and parameter. The diagonal elements of this matrix reflect the variance characteristics of signal change, and the non-diagonal elements reflect the correlation between different parameters.

[0051] The specific implementation of step S05 is to establish an accurate signal drift correction model based on real-time calibration data. A standard reference material with a known concentration is used as a calibration sample, and a measurement is taken every 30 minutes. The measurement result is compared with the theoretical value, and the relative deviation is calculated. The weighted least squares method is used to fit the deviation data, and the weight coefficient is determined according to the inverse of the measurement time, so that the recent data has a higher weight. Based on the principle of Kalman filter algorithm, a state space model of signal drift is established to estimate the drift state of the system in real time. Through the iterative process of the prediction step and the update step, the algorithm can accurately estimate the amplitude and direction of signal drift in a noisy environment. When the covariance matrix of the prediction error converges, it is considered that the drift estimation has reached a stable state. The constructed signal drift certainty matrix takes the detection elements as the row index and the drift parameters as the column index, and the matrix element value is the drift correction coefficient of the corresponding element and parameter. This matrix provides accurate numerical correction parameters for real-time correction of the influence of system drift on the detection results.

[0052] The specific implementation of step S06 is to use a multiple linear regression algorithm to process spectral interference and background interference data to calculate corresponding compensation factors. The spectral analysis function takes the spectral interference matrix and the background fluorescence interference matrix as input parameters, while considering the element correlation coefficient, the background intensity distribution, the theoretical fluorescence wavelength, the matrix concentration and the instrument response coefficient. Based on the extended form of Lambert-Beer's law, a spectral response model under the condition of multiple element coexistence is established. The principal component analysis method is used to reduce the dimension of the input parameters, extract the main influencing factors, and reduce the calculation complexity. The singular value decomposition algorithm is used to solve the multiple linear equations to obtain the compensation factors of each element. When the spectral interference coefficient is greater than 0.5, the compensation factor takes a value in the range of 0.8-1.2, which is used to enhance or weaken the signal strength of the corresponding element. When the ratio of background interference intensity to target signal strength is greater than 0.3, the background subtraction algorithm is used for correction. The calculated compensation factor array contains the correction coefficient and the corresponding weight parameter of each target element, which is used to eliminate the influence of multiple element coexistence and matrix effect on the detection results.

[0053] The specific implementation of step S07 is to intelligently analyze the spectral outliers using a deep learning-based spectral line recognition model, and to calculate the jump factor in combination with the signal drift certainty matrix. The spectral line recognition model receives the spectral outlier matrix as input, extracts spectral features through a multi-layer neural network structure, and performs classification and recognition. The model uses a convolutional neural network architecture that can automatically learn local features and global patterns of spectral data. Based on the attention mechanism principle, the model can adaptively focus on important spectral regions, improving the accuracy of anomaly detection. The calculation of the jump factor is based on real-time data of the signal drift certainty matrix, and a moving average filtering algorithm is used to smooth the signal fluctuations. When a signal jump is detected, the jump factor takes a value in the range of 0.9-1.1, which is used to quickly correct sudden signal shifts. The final output of the wastewater pollutant concentration is obtained by multiplying the original detection result by the compensation factor and the jump factor, and the calculation formula is: the corrected concentration equals the original concentration multiplied by the compensation factor and then multiplied by the jump factor. This step realizes the comprehensive correction of various interference factors, ensuring the accuracy and reliability of the detection results.

[0054] The spectral line recognition model uses a deep learning architecture based on a hierarchical attention network, and the specific structure includes an input layer, a feature extraction layer, an attention layer, a fusion layer, and an output layer. The input layer receives a spectral data matrix with dimensions of wavelength number x measurement times, and first performs data normalization to scale the spectral intensity values to the range of 0-1. The feature extraction layer uses multiple parallel one-dimensional convolution branches with convolution kernel sizes of 3, 5, and 7, a step size of 1, and a same-size padding method. Each convolution branch is followed by a batch normalization layer and a rectified linear unit activation function to extract spectral features of different scales. The attention layer uses a self-attention mechanism to calculate attention weights through query, key, and value linear transformation matrices, with the weight calculation based on the similarity between feature vectors. The hierarchical attention mechanism includes local attention and global attention at two levels, with local attention focusing on the feature correlation of adjacent wavelength regions and global attention capturing long-distance dependencies in the entire spectral range. The fusion layer combines multi-scale features with weights that are dynamically adjusted according to spectral complexity, background interference intensity, and system stability indicators. The output layer includes two fully connected sub-layers, with the first sub-layer outputting class probabilities of outliers and the second sub-layer outputting confidence scores.

[0055] The training data set establishment includes four stages of data collection, labeling, enhancement and verification. The data collection stage collects samples from different types of industrial wastewater, domestic sewage and agricultural wastewater, covering various types of pollutants such as heavy metals, organic matter and inorganic salts. Each sample is measured under different detection conditions, including different excitation power, integration time and detector gain settings. The labeling stage is manually labeled by experienced spectral analysis experts for each spectral data, identifying normal fluorescence peaks and abnormal outliers, with an accuracy requirement of more than 95%. The data enhancement stage expands the training samples by adding Gaussian noise, baseline drift and peak shift, with noise intensity set to 5%-15% of signal intensity, and baseline drift amplitude set to 10%-30% of average signal intensity. At the same time, synthetic data containing known spectral overlap conditions are constructed, and composite spectra are generated by linearly superimposing standard spectra of different elements. In the verification stage, the data set is divided into training set, verification set and test set according to the ratio of 7:2:1, and the stratified sampling method is used to ensure the balanced proportion of different types of samples in each sub-set. The finally established training data set contains more than 10,000 labeled samples, covering 50 common wastewater pollution elements and 100 different matrix combinations.

[0056] As shown in Figure 3 , the characteristics of normal fluorescence peaks include: symmetrical Gaussian distribution peak shape; peak position consistent with theoretical fluorescence wavelength; peak intensity linearly related to element concentration; stable baseline and good signal-to-noise ratio; good reproducibility of multiple measurements.

[0057] As shown in Figure 4 , the characteristics of abnormal outliers include: irregular peak shape (asymmetric, double peak, tailing); peak position deviates from the theoretical value; abnormal peak intensity (too high or too low); unstable baseline with drift; severely affected by spectral interference and noise.

[0058] It should be noted that first, the present application proposes a multi-dimensional modeling method of spectral interference matrix, background fluorescence interference matrix and signal drift matrix, which has significant technical advantages over traditional single interference factor correction methods. Traditional methods usually only consider one type of interference in spectral overlap or background subtraction, while the present application can simultaneously quantify multiple interference factors such as spectral line overlap between elements, background fluorescence caused by matrix effect and signal drift caused by long-term operation of the instrument by establishing a three-dimensional interference model. This multi-dimensional matrix modeling method is based on linear algebra theory, which converts complex spectral interference relationships into calculable mathematical matrix form, so that interference correction is transformed from empirical qualitative analysis to precise quantitative calculation, thereby significantly improving the accuracy and stability of multi-element simultaneous detection under complex matrix conditions.

[0059] Secondly, the spectral line recognition model of the present application adopts a hierarchical attention network architecture, which has a revolutionary technological breakthrough compared with the traditional abnormality detection based on threshold judgment or simple statistical method. The traditional method relies on manually set fixed thresholds or simple statistical distribution assumptions to identify spectral anomalies, which is easily affected by the complexity of the matrix and environmental changes, resulting in misjudgment. However, the deep learning model of the present application can automatically learn the complex feature patterns of spectral data, and through multi-scale convolution feature extraction and hierarchical attention mechanism, it can intelligently identify normal fluorescence peaks and abnormal outliers. Based on the deep learning principle of large-scale training data, the model has strong feature representation ability and generalization performance, and can adapt to the spectral feature changes of different types of wastewater samples, achieving more accurate and robust spectral line recognition effect.

[0060] Thirdly, the present application innovatively proposes a dynamic weight adjustment mechanism based on comprehensive evaluation value, which adaptively adjusts the model parameters according to the real-time changes of spectral complexity, interference intensity and system stability, which has a significant adaptive advantage compared with the traditional fixed parameter setting method. The traditional method usually uses pre-set fixed weight parameters for spectral analysis, which cannot be dynamically adjusted according to the changes of actual detection conditions, resulting in large performance differences in the detection of samples with different complexity. The present application can intelligently select the optimal parameter configuration according to the complexity of the current detection condition by establishing three weight distribution strategies: conservative, balanced and aggressive, ensuring high precision in simple matrix conditions and high robustness in complex interference environment.

[0061] The above three key technical ideas form an organic synergistic system, producing a comprehensive technical effect beyond single technical improvement. Multi-dimensional matrix modeling provides accurate interference feature input for intelligent spectral line recognition, enabling the deep learning model to train and reason based on more comprehensive and accurate data. The dynamic weight adjustment mechanism optimizes the model parameters in real time according to the complexity index obtained by matrix modeling, ensuring the accuracy of spectral line recognition under different detection conditions. The results of intelligent spectral line recognition in turn verify and optimize the effectiveness of matrix modeling, forming a closed-loop self-improvement mechanism. This synergistic effect enables the entire detection system to have intelligent, adaptive and high-precision characteristics that traditional methods cannot achieve, maintaining stable and reliable performance in complex and variable actual wastewater detection environments, realizing a technical transformation from traditional passive correction to active prediction and intelligent optimization.

[0062] Specifically, the principle of the present application is that the technical solution of the present application can solve the fundamental problem of multiple interference coupling by establishing a complete interference factor quantification characterization system and intelligent correction mechanism. By constructing five core matrices, mathematical modeling and accurate description of various interference sources in the detection process are realized.

[0063] The spectral interference matrix establishes mathematical relationships between elemental interactions by measuring standard mixed solutions, transforming the complex problem of spectral line overlap into a computable matrix operation. The background fluorescence interference matrix quantifies the distribution of non-characteristic signals from the sample matrix at various wavelengths, providing a precise reference for background subtraction. The synergistic effect of these two matrices allows the calculation of compensation factors using spectral analysis functions, mathematically eliminating the influence of spectral overlap and matrix effects.

[0064] Solving the signal drift problem relies on a dual mechanism: a propensity matrix and a deterministic matrix. The propensity matrix uses long-term monitoring to establish a statistical model of signal changes, predicting future drift trends. The deterministic matrix calculates the current drift state based on real-time calibration data and provides precise correction parameters. This combination of prediction and real-time correction ensures system stability over long periods of operation.

[0065] The intelligent spectral line identification model utilizes a hierarchical attention network architecture, automatically extracting spectral features at different levels of abstraction and dynamically assigning weights. The model captures both local and global features of spectral data through multi-scale feature extraction. The hierarchical attention mechanism adaptively adjusts feature weights based on the complexity of interference, enabling accurate identification of abnormal outliers. The weight adjustment function employs different weight allocation strategies based on the comprehensive evaluation value, ensuring optimal performance under various complexity conditions.

[0066] The calculation of the jump factor integrates outlier identification results and signal drift information, achieving unified processing of sudden interference and gradual drift. This mechanism ensures the continuity and consistency of detection results through real-time monitoring and dynamic correction.

[0067] The technical logic of this invention conforms to the scientific principles of interference source identification, quantitative modeling, and coordinated correction. By transforming complex physical and chemical interference processes into mathematical models and intelligent algorithms, it achieves a technological leap from qualitative analysis to quantitative correction, providing a systematic solution for atomic fluorescence spectroscopy detection.

[0068] A specific embodiment 1 of the present invention is provided below. The specific implementation of each step in this embodiment 1 is described in detail as follows.

[0069] In step S01, the construction of the spectral interference matrix is ​​specifically expressed as follows: ; Where, is the spectral interference matrix; For the The element Spectral interference coefficient of the elements; is the total number of target detection elements. The calculation formula for the spectral interference coefficient between elements is: ; Where, For the The element in The fluorescence intensity at each wavelength position; For the The element in The fluorescence intensity at each wavelength position; is the number of wavelength points in the spectral scan. This formula is based on the Pearson correlation coefficient principle and quantifies the degree of spectral interference by calculating the correlation of spectral signals of different elements.

[0070] In step S02, the construction of the spectral outlier matrix is ​​specifically expressed as follows: ; Where, is the spectral outlier matrix; For the The wavelength is The outlier mark in the measurement is 0 or 1; is the number of wavelength points; is the number of measurements. The calculation formula for outlier judgment is: ; Where, For the The wavelength is The fluorescence intensity of the measurement; is the first quartile; is the third quartile; is the interquartile range. The quartiles are calculated by sorting the data of multiple measurements at the same wavelength and then calculating them by position.

[0071] In step S03, the background fluorescence interference matrix is ​​constructed as follows: ; Where, is the background fluorescence interference matrix; For the The wavelength is Background fluorescence intensity under different matrix types; is the number of wavelength points; is the number of matrix types. The background fluorescence intensity is obtained by spectrally measuring the matrix solution without the target element.

[0072] In step S04, the construction of the signal drift tendency matrix is ​​specifically expressed as follows: ; Where, is the signal drift tendency matrix; For the Time node Signal drift indicators for each detection parameter; is the number of monitoring time nodes; is the number of detection parameters. The calculation formula of signal drift index is: ; Where, For the Time node Signal value of a parameter; is the signal change rate, which is obtained by the slope of the least squares linear fit of the signal value sequence; is the signal variance, which is obtained by calculating the variance of the signal value in the sliding window; is the signal skewness, which represents the asymmetry of the signal distribution; The signal change rate is obtained by least squares fitting, and the variance and skewness are obtained by statistical calculation.

[0073] In step S05, the construction of the signal drift deterministic matrix is ​​specifically expressed as: ; Where, is the signal drift deterministic matrix; For the Element No. Correction coefficients for drift parameters; is the number of detected elements; is the number of drift parameters. The calculation of the correction coefficient is based on the Kalman filter algorithm, and the state equation is: ; The observation equation is: ; Where, For the The system state vector at time t includes the signal drift amount and drift rate; is the state transfer matrix, which describes the time evolution of the system state; is process noise, which obeys Gaussian distribution; For the The observed value at the moment, that is, the actual measured standard sample signal; For the observation matrix, establish a linear relationship between the state vector and the observation value; The observation noise follows a Gaussian distribution. The state vector contains the signal drift amount and drift rate, and the optimal estimate is obtained through recursive calculation.

[0074] In step S06, the calculation of the compensation factor is specifically expressed as: ; Where, For the Compensation factors for the elements; is the spectral interference coefficient; For the The element The relative concentration ratio of the elements; is the background interference weight coefficient; For the The background interference intensity of the element detection wavelength. The calculation formula of the background interference intensity is: ; Where, For the The wavelength position is The weight of the element ranges from 0 to 1; For the The background fluorescence intensity at each wavelength is obtained by measuring a matrix solution without the target element. The weight is determined by the correlation between the target element fluorescence wavelength and the background signal wavelength; the higher the correlation, the greater the weight.

[0075] In step S07, the calculation of the jump factor is specifically expressed as: ; Where, For the The transition factor of the element; is the correction coefficient in the signal drift deterministic matrix; For the Time interval in minutes; is the number of drift parameters. The calculation formula for the final wastewater pollutant concentration is: ; Where, is the corrected pollutant concentration; is the original detection concentration.

[0076] The calculation of the comprehensive evaluation value in the weight adjustment function is specifically expressed as: ; Where, is the comprehensive evaluation value; is the spectral complexity evaluation value; is the interference intensity measurement value; is the system stability index. The calculation formula of the spectral complexity evaluation value is: ; wherein, is the complexity index, calculated by the proportion of the number of non-zero elements in the spectral interference matrix to the total number of elements; is the number of spectral peaks, identified by a peak detection algorithm; is the peak width parameter, representing the average half-peak width of spectral peaks; is the weight coefficient, respectively taking the values of 0.5, 0.3, 0.2. The complexity index is calculated by the proportion of the number of non-zero elements in the spectral interference matrix to the total number of elements. The calculation formula of the interference intensity measure is: ; wherein, is the theoretical fluorescence intensity of the target element, obtained by querying the standard spectral library. The calculation formula of the system stability index is: ; wherein, is the variance value of the diagonal elements of the signal drift tendency matrix, reflecting the signal change amplitude; is the temperature fluctuation coefficient, calculated by monitoring the environmental temperature change during the detection process; is the light source intensity change coefficient, calculated by monitoring the excitation light source intensity fluctuation, all obtained by experimental measurement.

[0077] It should be noted that the threshold values 0.414 and 0.732 are obtained based on statistical analysis of large-scale sample data. First, atomic fluorescence spectrum detection data covering wastewater samples of different complexity are collected as the basic data set, including industrial wastewater, domestic sewage, agricultural wastewater and other types, with a total number of not less than 5000 samples. For each detection sample, the spectral complexity evaluation value , the interference intensity measure and the system stability index are calculated according to the above formula, and then the comprehensive evaluation value is calculated. The spectral complexity evaluation value is calculated by analyzing the sparsity of the spectral interference matrix, the number of spectral peaks and the peak width parameter, the interference intensity measure is obtained by comparing the ratio of the background fluorescence intensity to the theoretical fluorescence intensity of the target element, and the system stability index is calculated by considering factors such as signal variance, temperature fluctuation and light source intensity change. Arrange all samples in order from small to large to form a complete numerical sequence , wherein is the total number of samples.

[0078] The calculation process of threshold determination adopts a statistical segmentation method based on sample complexity distribution characteristics, and the dividing points of the low, medium and high complexity levels are determined by trisection processing of the comprehensive evaluation value sequence. The specific calculation formula is: the first threshold , the second threshold , wherein represents the floor function. In order to verify the rationality of the threshold setting, the clustering effectiveness index is used for evaluation, and the calculation formula is the silhouette coefficient , wherein is the average distance between the sample and other samples of the same category, is the average distance between the sample and the nearest sample of a different category. Through multiple iteration optimization and cross-validation, the thresholds that can make the clustering effectiveness index optimal are finally determined as 0.414 and 0.732. The two thresholds can effectively distinguish the three cases of simple matrix, medium complex matrix and high complex matrix, provide accurate judgment basis for subsequent weight adjustment strategy selection, and ensure that the spectral line recognition model can maintain the optimal recognition performance under different complexity conditions.

[0079] In order to better understand and implement the present application, the following provides an embodiment 2 of a specific application scenario of the present application: researchers use the atomic fluorescence spectrometry of the present application to detect pollutants in the comprehensive wastewater of an industrial park, which contains various heavy metal ions including , , , , and the like, and the matrix composition is complex and the interference is serious. First, the wastewater sample is pretreated, filtered through a 0.45 μm membrane, diluted 10 times with a 5% nitric acid solution, and then scanned in the full spectrum range of 200-800 nm using an atomic fluorescence spectrometer, with an integration time of 5 s, an excitation power of 80 W, and a detector gain of 1.2 x . The spectral interference matrix is constructed by measuring a standard mixed solution containing 5 target elements, and the concentration of each element is set to 10 μg / L, and 20 repeated measurements are performed under the same detection conditions.

[0080] The spectral interference matrix calculated based on the measurement data is shown in Table 1: Table 1 Spectral interference matrix data table

[0081] As can be seen from Table 1, and there is strong spectral interference between them, and the correlation coefficient reaches 0.256, and The interference coefficient between them is 0.187, and these interferences need to be corrected in subsequent analysis. Through statistical analysis of the spectral data of 100 consecutive measurements, the abnormal value distribution of each wavelength position is identified, and the spectral outlier matrix is constructed. The interquartile range method is used to determine the abnormal value judgment standard, and when the spectral intensity deviates from the normal range by 1.5 times the interquartile range, it is marked as an outlier. The statistical results show that obvious outlier signals are detected at key wavelength positions such as 253.7 nm, 283.3 nm, and 368.3 nm, and the outlier frequency is 8%, 12%, and 6%, respectively.

[0082] In order to quantify the influence of background interference, the researchers prepared a blank solution with the same matrix composition as the wastewater sample but without the target heavy metal elements. The measured background fluorescence interference data are shown in Table 2: Table 2 Background fluorescence interference intensity data table

[0083] Table 2 shows The detection of elements is most severely interfered by background interference, with an interference intensity ratio of 0.42, while The background interference of elements is relatively small. Based on the 48-hour continuous monitoring data, a signal drift tendency matrix is established, and a standard reference sample is detected every 2 hours to record the signal change trend. Statistical analysis results show that there is a significant linear drift trend in the system, with a drift rate of -0.03% / h, and periodic signal fluctuations are detected, with a fluctuation amplitude of about ±2.1%.

[0084] By comparing the measured results of the real-time calibration standard sample with the theoretical value, a signal drift certainty matrix is established. The Kalman filter algorithm is used to estimate the drift parameters in real time, and the state vector contains two components of drift and drift rate. The process noise covariance is set to 0.001, and the observation noise covariance is set to 0.01. The drift correction parameters obtained after the filter converges are shown in Table 3: Table 3 Signal drift correction parameter table

[0085] Based on the spectral interference matrix and the background fluorescence interference matrix, a multivariate linear regression algorithm is used to calculate the compensation factor of each element. The compensation factor of element is 0.934, which is mainly used to correct the spectral interference from and . Element is strongly interfered by , and the compensation factor is 0.847. The element was most affected by background interference, with a compensation factor of 0.756. The intelligent analysis of the spectral outlier matrix was performed using the trained spectral line recognition model. The model used a hierarchical attention network architecture, including 3 parallel convolution branches and 2 layers of attention mechanism. The abnormal spectral features identified by the model were mainly concentrated in the high interference intensity area, with a confidence score of more than 0.85.

[0086] According to the calculated spectral complexity evaluation value 0.567, interference intensity measurement value 0.324, and system stability index 0.289, the comprehensive evaluation value is 0.393, which is less than the first threshold value 0.414. Therefore, the conservative weight allocation strategy is adopted, and the low-level feature weight is enhanced to 0.6, the middle-level feature weight is 0.3, and the high-level feature weight is 0.1. After comprehensive correction, the final detection results show that the concentration of the element is 15.7 μg / L, the concentration of the element is 28.3 μg / L, the concentration of the element is 45.9 μg / L, the concentration of the element is 12.4 μg / L, the concentration of the element is 67.2 μg / L.

[0087] To verify the accuracy of the detection results, the researchers used inductively coupled plasma mass spectrometry for comparison and verification, and the relative deviation was controlled within 8%. The reliability of the method was further verified by the standard addition recovery experiment, and the recoveries of the 5 elements were 97.3%, 95.8%, 98.1%, 96.7%, and 94.5%, respectively, all meeting the analysis requirements. The detection limit calculation results showed that after interference correction, the detection limits of each element were reduced by 12% to 18% compared with those before correction, among which the detection limit of the element improved the most, from 2.8 μg / L to 2.3 μg / L.

[0088] The traditional atomic fluorescence spectrum detection method mainly adopts matrix matching and standard addition method to process matrix interference problem, adjusts instrument parameters and selects appropriate detection conditions to reduce spectral overlap interference through manual adjustment, and relies on regular calibration and manual experience judgment to process signal drift problem. These traditional methods have the defects of complex operation, strong subjectivity and poor adaptability, especially in the face of complex matrix and multiple element coexistence, often cannot obtain ideal detection precision and stability. The present application realizes accurate quantification of various interference factors by establishing a multi-dimensional interference matrix model, which improves the detection precision by about 15% compared with the traditional method, and significantly reduces the influence of matrix effect and spectral overlap on the detection result. The intelligent spectral line recognition technology can automatically identify and process spectral anomalies, avoiding the subjective error of manual judgment in the traditional method, and the accuracy of abnormal detection is improved by about 18%. The dynamic weight adjustment mechanism optimizes the analysis parameters according to the actual detection conditions, and compared with the traditional method with fixed parameter setting, the stability in the detection of samples with different complexity is improved by about 12%, effectively solving the technical problem of poor adaptability of the traditional method.

[0089] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application.

Claims

1. A method for rapid detection of wastewater pollutants by atomic fluorescence spectroscopy, characterized in that: include: Atomic fluorescence spectroscopy data of wastewater samples are collected to establish a spectral interference matrix to characterize the spectral line overlap between multiple elements. Outliers in the spectral data are identified through statistical analysis to construct a spectral outlier matrix to record the abnormal fluorescence intensity distribution at each wavelength position. The non-characteristic fluorescence signal generated by the sample matrix is ​​measured to establish a background fluorescence interference matrix to quantify the background interference intensity at different wavelengths. The signal change law of the detection system during long-term operation is continuously monitored to construct a signal drift tendency matrix to predict the signal offset trend. Based on historical detection data and current measurement conditions, a signal drift deterministic matrix is ​​established to accurately describe the amplitude and direction of signal drift. The spectral interference matrix and background fluorescence interference matrix are processed by spectral analysis function to calculate the compensation factor to correct the influence of spectral overlap and background interference on the measurement results. The spectral line identification model is used to analyze the spectral outlier matrix and the signal drift deterministic matrix is ​​used to calculate the jump factor to correct the system drift in real time and output the final wastewater pollutant concentration detection results.

2. The method for rapid detection of wastewater pollutants by atomic fluorescence spectrometry according to claim 1, characterized in that: The spectral interference matrix is ​​formed by measuring the fluorescence spectrum of each target element in the standard mixed solution, calculating the degree of mutual influence of the fluorescence intensity of different elements at the same wavelength position, and forming a mathematical matrix describing the overlapping interference relationship of the spectral lines between the elements.

3. The method for rapid detection of wastewater pollutants by atomic fluorescence spectrometry according to claim 2, characterized in that: The spectral outlier matrix is ​​a two-dimensional data matrix constructed by performing statistical analysis on spectral data measured multiple times continuously to identify abnormal data points that deviate from the normal fluorescence intensity range and based on wavelength position and occurrence frequency.

4. The method for rapid detection of wastewater pollutants by atomic fluorescence spectrometry according to claim 3, characterized in that: The background fluorescence interference matrix is ​​formed by measuring the intensity of non-characteristic fluorescence signals generated by the sample matrix at various detection wavelengths without adding target analytical elements, thereby forming a data matrix describing the distribution law of background interference.

5. The method for rapid detection of wastewater pollutants by atomic fluorescence spectrometry according to claim 4, characterized in that: The signal drift tendency matrix is ​​specifically established by long-term monitoring of the signal stability of the detection system, statistically analyzing the trends and laws of signal changes over time, and predicting the direction and amplitude of future signal drift.

6. The method for rapid detection of wastewater pollutants by atomic fluorescence spectrometry according to claim 5, characterized in that: The signal drift deterministic matrix is ​​specifically a matrix that accurately calculates the specific numerical value and correction parameters of the system signal drift under current detection conditions based on the deviation between the measurement results of the real-time calibration standard sample and the theoretical value.

7. The method for rapid detection of wastewater pollutants by atomic fluorescence spectrometry according to claim 6, characterized in that: The compensation factor is specifically a correction coefficient calculated based on the spectral interference intensity and the background fluorescence level, and is used to eliminate the influence of multi-element coexistence and matrix effect on the fluorescence intensity measurement of the target element.

8. The method for rapid detection of wastewater pollutants by atomic fluorescence spectrometry according to claim 7, characterized in that: The jump factor is specifically a real-time correction parameter calculated based on the signal drift deterministic matrix, which is used to compensate for the signal offset caused by temperature change or device aging during the continuous operation of the detection system.

9. The method for rapid detection of wastewater pollutants by atomic fluorescence spectrometry according to claim 8, characterized in that: The spectral analysis function is used to process a multidimensional spectral data matrix and calculate corresponding compensation parameters. The input includes the element correlation coefficient extracted from the spectral interference matrix, the intensity distribution data obtained from the background fluorescence interference matrix, the theoretical fluorescence wavelength position of the target detection element queried from the standard spectral library, the matrix concentration parameter measured during the wastewater sample pretreatment process, and the instrument response coefficient obtained from the instrument calibration process. The output is the compensation factor value and the corresponding correction weight coefficient for each target element.

10. The method for rapid detection of wastewater pollutants by atomic fluorescence spectrometry according to claim 9, characterized in that: The specific structure of the spectral line identification model is a multi-level feature extraction and fusion system based on a hierarchical attention network architecture, which includes an input layer that receives the spectral data matrix and performs preprocessing and normalization, multiple parallel convolutional feature extraction branches for capturing spectral features of different scales, a hierarchical attention mechanism module that dynamically allocates the importance of features at different abstract levels through hierarchical fusion weights, a feature fusion layer that performs weighted combination of multi-scale features, and a fully connected classification layer that outputs category labels and confidence scores for spectral outliers.

Citation Information

Patent Citations

  • Atomic fluorescence spectrometer and background subtraction method thereof

    CN105842221A

  • Intelligent perchlorate wastewater concentration detection method based on artificial intelligence

    CN117368141A

  • Intelligent intestinal tract monitoring method and system based on multispectral sensing technology

    CN120600356A

  • Raman spectroscopy system, apparatus, and method for analyzing, characterizing, and / or diagnosing a type or nature of a sample or a tissue such as an abnormal growth

    US20170138860A1

Cited By

  • Method, device and equipment for detecting original oil content of core drilled by oil-based drilling fluid

    CN121409891A

  • Data processing method and system for component detection of mixed metal core-spun yarn

    CN121678969A

  • Industrial flue gas multi-pollutant detection method and system

    CN121955299A