Multi-index water quality detection system and method based on automation

Through the automated multi-index water quality detection system, the multi-wavelength light source combination and self-inspection module are used to achieve rapid and accurate detection of multi-index water quality, solving the inaccurate data and cumbersome work problems of traditional water quality detection, and providing drinking water and air detection Integrated and portable technical support.

CN119064289APending Publication Date: 2024-12-03CHINESE PEOPLES LIBERATION ARMY KET FORCE COMMAND ACAD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411073099.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the prior art, water quality testing requires subjective judgment of the human eye, resulting in inaccurate measurement data, and different testing items require different instruments for measurement and recording, which is cumbersome.

Method used

Design an automation-based multi-index water quality detection system, including measurement module, interaction module and data management module, through the combination of multiple light sources of the same or different wavelengths, realize the synchronous measurement of multiple detection items of water samples, using colorimetric Method and spectrophotometry to determine the chromaticity and absorbance of water quality, combined with the self-test module to ensure the feasibility of the equipment.

Benefits of technology

It realizes rapid and accurate detection of multiple indicators of water quality, breaks through the technical difficulties that traditional instruments and equipment cannot detect multiple indicators, provides integrated and portable technical support for rapid detection of drinking water and air, and solves inaccurate measurement data and A problem of tedious work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119064289A_ABST
    Figure CN119064289A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-index water quality detection system and method based on automation. The system comprises a measurement module, an interaction module, a data management module and a self-inspection module used for detecting the work feasibility of the measurement module, the interaction module and the data management module. The measurement module, the data management module and the self-checking module are respectively in communication connection with the interaction module; the interaction module is in communication connection with the upper computer; the measuring module comprises a plurality of measuring units; the measuring unit comprises an absorption cell, a light source assembly, a photoelectric detector and a display; according to the invention, through combined use of a plurality of light sources with different wavelengths, synchronous measurement of a plurality of detection items of the same detected sample is realized; through the combined use of a plurality of light sources with the same wavelength, the measurement of the same detection item of different detected samples is realized; the technical problems that a traditional instrument cannot achieve multi-index detection, and multiple devices are needed for synchronous measurement are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of water quality detection, and more specifically, relates to an automated multi-index water quality detection system and method. Background Art

[0002] Water is the source of life. Human beings cannot live without water in their daily life and production activities. The quality of drinking water is closely related to human health. With the development of social economy, scientific progress and the improvement of people's living standards, people's requirements for the quality of drinking water are constantly increasing, and the drinking water quality standards are also constantly developing and improving accordingly. Since the formulation of drinking water quality standards is related to many factors such as people's living habits, culture, economic conditions, scientific and technological development level, water resources and the current status of water quality, there are differences in the requirements for drinking water quality not only between countries, but also between different regions in the same country.

[0003] In the prior art, for factory water and pipe network water with low turbidity, visual colorimetry is used to measure water quality turbidity and other test items, but it requires subjective judgment by the human eye. Different people have different reaction abilities to colors, and different environments and different angles will also cause certain judgment errors. As a result, there is a problem of inaccurate measurement data. In addition, different test items require different instruments to measure and record them separately, which leads to repeated and cumbersome work.

[0004] In summary, there is an urgent need for a rapid water quality detection device and method that is simple to operate, can perform multi-index detection through the same device, and has accurate measurement data. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a multi-index water quality detection system and method based on automation, the system includes a measurement module, an interaction module, a data management module, and a self-test module for detecting the working feasibility of the measurement module, the interaction module and the data management module; the measurement module, the data management module and the self-test module are respectively connected to the interaction module for communication; the interaction module is connected to the host computer for communication; the measurement module includes a plurality of measurement units; the measurement unit includes an absorption cell, a light source component, a photoelectric detector and a display; the colorimetric method is used to determine the chromaticity of water quality in the absorption cell; for the detection sample with high turbidity, the spectrophotometric method is used to determine the chromaticity of the absorption cell The absorbance of water quality samples in the test area is measured; by combining multiple light sources with the same wavelength, the same test items of different test samples can be measured. Multiple test items of a single test sample can be measured, and the same test item of multiple test samples can be measured. This can solve the problem that when the existing technology uses visual colorimetry to measure test items such as turbidity of water quality, the human eye needs to make subjective judgments, different people have different reaction abilities to colors, and different environments and different angles will also cause certain judgment errors, resulting in inaccurate measurement data, and different test items require different instruments to measure and record them separately, resulting in repeated and cumbersome work.

[0006] In order to achieve the above-mentioned purpose, one aspect of the present invention provides a multi-index water quality detection system based on automation, including a measurement module for measuring multiple detection items of a detection sample, an interaction module for obtaining measurement data from the measurement module and sending it to a host computer, a data management module for analyzing whether the measurement values ​​of multiple detection items of the detection sample are within a preset quality safety range, and setting different water quality levels according to the difference interval between the measurement value and the quality safety range, and a self-test module for detecting the working feasibility of the measurement module, the interaction module and the data management module when the machine is turned on; wherein,

[0007] The measurement module, the data management module and the self-checking module are respectively connected to the interaction module for communication; the interaction module is connected to the host computer for communication;

[0008] The measuring module comprises a plurality of measuring units; the measuring units comprise an absorption cell for containing a sample to be detected, a light source assembly for emitting a single wavelength light beam to the absorption cell, a photoelectric detector for measuring detection items of the sample to be detected in the absorption cell, and a display for displaying the measurement results; the photoelectric detector measures the detection items of the sample to be detected by detecting the absorbance of the sample to be detected in the absorption cell; by using a combination of a plurality of light sources with different wavelengths, synchronous measurement of a plurality of detection items of the same sample to be detected is achieved; by using a combination of a plurality of light sources with the same wavelength, measurement of the same detection item of different samples to be detected is achieved.

[0009] Furthermore, the self-check module includes a power-on self-check unit and a status monitoring unit;

[0010] The power-on self-check unit is used to detect the working feasibility of the measurement module, the interaction module and the data management module each time the machine is powered on, and to complete the initialization of the interface hardware device; when there is a problem with the feasibility of the detection, the abnormal state information is output;

[0011] The state monitoring unit is used to detect the working state of the measurement module during the measurement of the detection items of the measurement module; when the working state of the measurement module is abnormal, output state abnormality information.

[0012] Furthermore, the light source assembly includes a light source 101 and a monochromator; the light source 101 and the monochromator are light emitting diodes; and the spectral range is 380nm to 780nm.

[0013] Furthermore, the measuring module uses spectral analysis, titration analysis or spectrophotometry to determine the target substance in the water sample to be tested;

[0014] When the target substance in the water sample is determined by spectrophotometry, the absorbance A of the sample is expressed by formula (3):

[0015]

[0016] Wherein, T is the transmittance; K is the molar absorption coefficient; b is the liquid layer thickness of the test sample; and c is the concentration of the test sample.

[0017] The second aspect of the present invention provides a multi-index water quality detection method based on automation, which is implemented by using the multi-index water quality detection system based on automation, and includes the following steps:

[0018] S1: At each startup, the self-test unit of the self-test module detects the working feasibility of the measurement module, the interaction module and the data management module, and completes the initialization of the interface hardware device; when there is a problem with the feasibility of the detection, the abnormal state information is output; the abnormal state information is sent to the host computer through the interaction module; otherwise, the next step is executed;

[0019] S2: The measuring module measures multiple test items of the test sample to obtain measurement data; during the measurement of the test items of the measuring module, the state monitoring unit of the self-checking module detects the working state of the measuring module, and when the working state is abnormal, the abnormal state information is output; the abnormal state information is sent to the host computer through the interactive module; otherwise, the next step is executed;

[0020] S3: The interactive module receives the measurement data and sends the measurement data to the host computer; the data management module analyzes whether the measurement values ​​of multiple test items of a single test sample or the same test item of multiple test samples are within a preset quality safety range based on the measurement data, sets different water quality levels based on the difference interval between the measurement value and the quality safety range, and counts the number of water quality levels of multiple test samples in the same area.

[0021] Furthermore, the step S1 detects the working feasibility of the measurement module, the interaction module and the data management module through the power-on self-test unit of the self-test module, and completes the initialization of the interface hardware device; it includes the following steps:

[0022] Determine whether the serial port is initialized normally;

[0023] Check the interface equipment and determine whether the multi-position valve and injection pump are in normal working condition;

[0024] When the multi-position valve and injection pump are working normally, the water in the test sample reaction pool is replaced;

[0025] Check whether the measurement module has established communication with the mainboard of the interactive module, whether the light intensity of the light source is within the normal range, and whether the stability of the light source meets the requirements;

[0026] When all the above self-test items are passed, conduct quality control tests for each test item to check whether the test results of each test item are within the normal value range, and output the self-test results;

[0027] When the test results of all the test items are within the normal value range, the output self-test results include the judgment that the water quality parameter test can be started;

[0028] When the test result of one of the detection items exceeds the normal value range, the output self-test result includes the abnormal detection item;

[0029] Stores the self-test results.

[0030] Furthermore, the measuring module in step S2 measures multiple test items of the test sample, including using spectral analysis or titration analysis to determine the target substance in the water sample to be tested;

[0031] In step S2, when the target substance in the water sample to be tested is determined by spectral analysis, the embodiment of the present invention uses colorimetry to determine the chromaticity of the water quality in the absorption cell;

[0032] For test samples with high turbidity, the absorbance of the water sample in the absorption cell is measured by spectrophotometry;

[0033] The absorbance A of the sample to be tested is expressed by formula (3):

[0034]

[0035] Wherein, T is the transmittance; K is the molar absorption coefficient; b is the liquid layer thickness of the test sample; and c is the concentration of the test sample.

[0036] Furthermore, in step S2, during the measurement of the detection items of the measurement module, the working state of the measurement module is detected by the state monitoring unit of the self-test module. When there is an abnormality in the working state, the abnormal state information is output, including real-time monitoring of the working states of the light source intensity, temperature, cleanliness of the absorption pool and liquid leakage in the absorption pool; when the light source intensity exceeds the set intensity range, the temperature exceeds the set temperature range, the cleanliness of the absorption pool is lower than the set cleanliness value or there is liquid leakage in the absorption pool, the abnormal state information is output.

[0037] Furthermore, the measuring module in step S2 measures multiple test items of the test sample to obtain measurement data; and also includes establishing an ARMA model to predict water quality anomalies based on spectral features, specifically including the following steps:

[0038] S21: Determine the ADF stationarity of the spectral feature time series. When the ADF is not stationary, perform differential processing until the spectral feature time series is stationary. When the ADF is stationary, determine the order of the ARMA model.

[0039] S22: Establish an ARMA model, and predict the characteristic value of the next time point through the ARMA model to obtain a model prediction value;

[0040] S23: Calculate the residuals based on the actual observed values ​​and model predicted values ​​of the ARMA model;

[0041] S24: Select the 99% confidence interval of the normal distribution to determine whether the residual exceeds the ±3σ threshold; when the residual exceeds the ±3σ threshold, use the predicted value to participate in the next prediction; when the residual is within the ±3σ threshold, use the measured value of the measurement module as the actual value to participate in the next prediction; σ is the standard deviation.

[0042] Furthermore, the order of the ARMA model in step S21 is determined using the Bayesian Information Criterion.

[0043] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0044] The present invention provides an automated multi-index water quality detection system and method, which comprises a measuring module for measuring multiple detection items of a detection sample, an interaction module for acquiring measurement data from the measuring module and sending the measurement data to a host computer, a data management module for analyzing whether the measurement values ​​of multiple detection items of the detection sample are within a preset quality safety range and setting different water quality levels according to the difference interval between the measurement value and the quality safety range, and a self-test module for detecting the working feasibility of the measuring module, the interaction module and the data management module when the machine is turned on; the measuring module comprises a plurality of measuring units; the measuring unit comprises an absorption cell for containing the detected sample, a light source assembly for emitting a single wavelength light beam to the absorption cell, a photoelectric detector for measuring the detection items of the detected sample in the absorption cell and a display module for displaying the measurement results. The display of the result; the photoelectric detector measures the detection item of the detected sample by detecting the absorbance of the detected sample in the absorption pool; the present invention uses a combination of multiple light sources with the same light source wavelength to measure the same detection item of different detection samples; thereby, multiple detection items of a single detection sample can be measured, and the same detection item of multiple detection samples can be measured, breaking through the technical difficulty that traditional instruments and equipment cannot detect multiple indicators and require multiple devices to measure synchronously, and providing technical support for the integration and portability of drinking water and air rapid detection instruments; it can solve the problem that when the existing technology uses visual colorimetry to measure detection items such as turbidity of water quality, the human eye needs to make subjective judgments, resulting in inaccurate measurement data, and different detection items require different instruments to measure and record separately, resulting in repeated and cumbersome work. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 This is a schematic diagram of the structure of an automated multi-index water quality detection system according to an embodiment of the present invention;

[0046] Figure 2 This is a schematic diagram of the structure of a measurement module of an automated multi-index water quality detection system according to an embodiment of the present invention;

[0047] Figure 3 A schematic diagram of a process of a multi-index water quality detection method based on automation according to an embodiment of the present invention;

[0048] Figure 4 A schematic diagram of a process of establishing an ARMA model to predict water quality anomalies based on spectral features in an automated multi-index water quality detection method according to an embodiment of the present invention;

[0049] Figure 5 This is a schematic diagram of a time series of a spectral time series before differentiation in an automated multi-index water quality detection method according to an embodiment of the present invention;

[0050] Figure 6 This is a schematic diagram of a time series of a spectral time series after differentiation in an automated multi-index water quality detection method according to an embodiment of the present invention;

[0051] Figure 7 This is a schematic diagram of the comparison results of the BIC method and the AIC method for determining the ARMA model order based on an automated multi-index water quality detection method according to an embodiment of the present invention;

[0052] Figure 8 A schematic diagram of a QQ' graph of a normal distribution of an automated multi-index water quality detection method according to an embodiment of the present invention;

[0053] Fig. 9 This is a schematic diagram of a prediction result based on a 99% confidence interval established by using the spectral centroid of an automated multi-index water quality detection method according to an embodiment of the present invention;

[0054] Fig.10 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0056] In the prior art, for factory water and pipe network water with low turbidity, visual colorimetry is used to measure water quality turbidity and other test items, but it requires subjective judgment by the human eye. Different people have different reaction abilities to colors, and different environments and different angles will also cause certain judgment errors. As a result, there is a problem of inaccurate measurement data. In addition, different test items require different instruments to measure and record them separately, which leads to repeated and cumbersome work.

[0057] Based on the above reasons, if Figure 1As shown, one aspect of the present invention provides a multi-index water quality detection system based on automation, including a measurement module 1, an interaction module 2, a data management module 3 and a self-test module 4; the measurement module 1, the data management module 3 and the self-test module 4 are respectively connected to the interaction module 2 for communication; the interaction module 2, the data management module 3 and the host computer are connected for communication; the measurement module 1 is used to measure multiple detection items of the detection sample and output measurement data; the measurement data includes the measurement values ​​of multiple detection items of the detection sample and the area where the detection sample is located; the interaction module 2 is used to obtain the measurement data from the measurement module 1, and send the measurement data to the host computer by wireless communication; the data management module The processing module 3 is used to analyze whether the measured values ​​of multiple test items of the test sample are within the preset quality safety range, set different water quality levels according to the difference interval between the measured value and the quality safety range, and count the number of water quality levels of multiple test samples in the same area; the self-test module 4 is used to detect the working feasibility of the measurement module 1, the interaction module 2 and the data management module 3 when starting up, and complete the initialization of the interface hardware device at the same time; the self-test module 4 is also used to detect the working status of the measurement module 1 during the measurement of the test items of the measurement module 1; when an abnormality is detected, the abnormal status information is output; the interaction module 2 sends the abnormal status information output by the self-test module 4 to the host computer. If the self-test module 4 of the present invention finds a fault, it will immediately interrupt the main program by prompting an alarm message to ensure the safe and stable operation of the instrument.

[0058] Furthermore, the self-check module 4 includes a power-on self-check unit and a status monitoring unit; the power-on self-check unit is used to detect the working feasibility of the measurement module 1, the interaction module 2 and the data management module 3 each time the machine is turned on, and at the same time complete the initialization of the interface hardware device; when there is a problem with the detection feasibility, the status abnormality information is output to ensure the normal and stable operation of each component of the instrument; the output status abnormality information includes specific abnormal detection items; the status monitoring unit is used to detect the working status of the measurement module 1 during the measurement of the detection items of the measurement module 1; when there is an abnormality in the working status of the measurement module 1, the status abnormality information is output; the output status abnormality information includes the existence of an abnormal working status; in other words, the status monitoring unit mainly refers to the monitoring of the working status of each main equipment of the measurement module 1 during the test of the detection items of the measurement module 1 (mainly during the water quality parameter standardization and testing process), and once a device failure is found, an alarm will be immediately issued to the host computer, the running main program will be interrupted, and the user will be prompted to troubleshoot in time, which can avoid parameter test failures or system safety problems caused by equipment failures.

[0059] Furthermore, during the test of the parameters of the detection project, the measurement module 1 will send a self-test request signal to the self-test module 4 before each data processing, requesting the self-test module 4 to first determine whether the measurement module 1 is in a normal working state. If a normal return value is obtained, the data processing system 3 will perform data processing.

[0060] Furthermore, if Figure 2 As shown, the measuring module 1 includes a plurality of measuring units; the measuring unit includes an absorption cell 11 for containing a sample to be detected, a light source assembly for emitting a single wavelength light beam to the absorption cell 11, a photoelectric detector 12 for measuring the detection items of the sample to be detected in the absorption cell 11, and a display 13 for displaying the measurement result; the light source assembly includes a light source 101 and a monochromator; the photoelectric detector 12 measures the detection items of the sample to be detected by detecting the absorbance of the sample to be detected in the absorption cell 11; the detection items include the turbidity of the water sample; by combining a plurality of light sources with different wavelengths, the same The method measures multiple test items of a tested sample; measures the same test items of different tested samples by combining multiple light sources of the same wavelength; breaks through the technical difficulty that traditional instruments and equipment cannot detect multiple indicators and require multiple devices to measure simultaneously, and provides technical support for the integration and portability of drinking water and air rapid detection instruments; can solve the problem that when the existing technology uses visual colorimetry to measure test items such as turbidity of water quality, the human eye needs to make subjective judgments, resulting in inaccurate measurement data, and different test items require different instruments to measure and record separately, resulting in repeated and cumbersome work.

[0061] Furthermore, the heating temperature of the different absorption cells 11 can be set arbitrarily, which is highly practical; the absorption cell 11 serves as both a colorimetric cell and a heater, which is easy to use; the absorption cell 11 is a one-piece type, which can reduce the disadvantages caused by intermittent heating and can better play the role of a dedicated instrument; the absorption cell 11 is a multi-parameter integrated type, which has a long life, good stability and high precision.

[0062] Further, the light source 101 and the monochromator are light emitting diodes; the light source and monochromator of the traditional spectrophotometer are replaced by a small LED light emitting diode, which solves the problems of moisture resistance, shock resistance and anti-interference, and provides support for the instrument to realize on-site rapid detection; the present invention adopts LED light emitting diodes as light sources, which can be integrated by pure monochromatic light sources, and the spectral range is between 380nm-780nm; the angle positioning plate of the LED light emitting diode is a positioning plate with a certain thickness of plastic or other materials, and a plurality of circular holes of different angles are opened on the positioning plate, the number of circular holes is consistent with the number of LED light emitting diodes, the extension lines of the circular holes converge at one point, the diameter of the circular holes and the diameter gap of the LED light emitting diode are matched, and the LED light emitting diode is inserted into the positioning hole on the LED light emitting diode angle positioning plate at different angles, and the pins are welded on the circuit board, so that the welding angle satisfies the emission light of multiple LED light emitting diodes to converge at one point. Among them, the length of the focal length matches the optical path of the absorption cell, and the focus is on the incident slit of the monochromator. As a light source, the LED light emitting diode is small in size, and multiple LED light emitting diodes can be combined arbitrarily. The power supply method is different from the tungsten lamp light source lighting method. It can be powered by pulse mode, without preheating. Just light up the LED light-emitting diode during measurement. In addition, the LED light-emitting diode consumes little power, generates little heat, and has no heat radiation. As a light source, the LED light-emitting diode has a long life (100,000 hours), fast response speed during operation, and is environmentally friendly and pollution-free. As a light source, the LED light source has a stable light source intensity and can be lit individually, scanned sequentially, or lit simultaneously.

[0063] Further, the measuring module 1 of the present invention can use spectral analysis or titration analysis to determine the target substance in the water sample to be tested; spectral analysis is a method for identifying substances and determining their chemical composition and relative content based on the spectrum of the substance, and is an analysis method based on molecular and atomic spectroscopy; it uses the characteristic spectrum of the substance in different spectrometers to perform qualitative analysis on it, and performs quantitative analysis based on the spectral intensity; titration analysis is also called volumetric analysis, and a standard solution of known accurate concentration is added dropwise to the solution to be tested (or the solution to be tested is added dropwise to the standard solution) until the added standard solution and the substance to be tested react quantitatively according to the stoichiometric relationship, and then the volume consumed by the standard solution is measured, and the content of the substance to be tested is calculated according to the concentration of the standard solution and the volume consumed. This quantitative analysis method is called titration analysis, which is a simple, fast and widely used quantitative analysis method, and has a high accuracy in constant analysis.

[0064] For example, when measuring nitrite nitrogen for the test item, the wavelength of the light source is 538nm, 10.0mL of the test sample is added to the colorimetric bottle of the sample absorption cell, and then the nitrite nitrogen reagent is added and mixed, and the mixture is allowed to stand for 10 minutes to develop color; in order to perform a blank control, 10mL of distilled water is added to the colorimetric bottle of the blank control absorption cell; when the color of the solution in the colorimetric bottle of the sample absorption cell is pink, it indicates that the test sample may contain nitrite, and the darker the color, the higher the nitrite content.

[0065] The existing technology uses visual colorimetry to determine the color of the solution in the colorimetric bottle, which requires subjective judgment by the human eye. Different people have different reaction abilities to colors, and different environments and different angles will also cause certain judgment errors. Therefore, this embodiment uses an automated colorimetric method to measure the chromaticity of water quality to eliminate the artificial visual errors and the influence of light from different directions in the visual colorimetry method. The detection result is more accurate and has certain practical significance.

[0066] Furthermore, for the test samples with high turbidity, the results of spectrophotometry are higher than those of visual colorimetry, and the greater the turbidity, the more obviously the results of spectrophotometry are higher than those of visual colorimetry, indicating that the turbidity of the test samples has a positive interference with the spectrophotometric determination of color. In view of the interference of turbidity with the spectrophotometric determination of color, the influence of pretreatment of absorbance at different wavelengths and microporous membrane filters with different pore sizes will be investigated to accumulate new test data.

[0067] The theoretical basis of the spectrophotometry is the Lambert-Beer law; the Lambert-Beer law can be briefly described as follows: Figure 2 As shown, when a beam of parallel monochromatic light passes through with an incident light intensity of I0, an absorbed light intensity of Ia, a transmitted light intensity of It, and a reflected light intensity of Ir, the relationship between them should be:

[0068] I0=Ia+It+Ir(1);

[0069] If the mass and thickness of the absorption cell are the same, the reflected light intensity Ir remains basically unchanged, and the influence of the reflected light intensity Ir can offset each other during the specific measurement operation; formula (1) can be simplified to formula (2):

[0070] I0=Ia+It(2)

[0071] It has been proved through experiments that when a monochromatic light beam with intensity I0 passes through a test sample with concentration c and liquid layer thickness b, a part of the light is absorbed by the absorbing substance in the test sample and the intensity of the transmitted light is It. Then the absorbance A of the test sample is expressed by formula (3):

[0072]

[0073] Wherein, T is the transmittance; the transmittance is the ratio of the transmitted light intensity It to the incident light intensity I0 of the light source; K is the molar absorption coefficient, which is related to the properties of the test sample and the wavelength of the incident light of the light source. The molar absorption coefficient is the absorbance of the test sample at unit concentration and unit liquid layer thickness; b is the liquid layer thickness of the test sample; and c is the concentration of the test sample.

[0074] The present invention can measure multiple test items of a single test sample, and can also measure the same test item of multiple test samples. It can overcome the technical difficulty that traditional instruments and equipment cannot detect multiple indicators and require multiple devices to measure synchronously, and provides technical support for the integration and portability of drinking water and air rapid detection instruments.

[0075] It should be noted that the automation-based multi-indicator water quality detection system provided in this embodiment can be a computer program (including program code) running in a computer device, for example, the automation-based multi-indicator water quality detection system is an application software; the automation-based multi-indicator water quality detection system can be used to execute the corresponding steps in the above method provided in the embodiment of the present application.

[0076] In some feasible implementations, the multi-indicator water quality detection system based on automation provided in this embodiment can be implemented by a combination of software and hardware. As an example, the multi-indicator water quality detection system based on automation provided in the embodiment of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the multi-indicator water quality detection method based on automation provided in the embodiment of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.

[0077] In some feasible implementations, the automation-based multi-indicator water quality detection system provided in this embodiment can be implemented in software form, which can be software in the form of programs and plug-ins, and include a series of modules, such as measurement modules, interaction modules, data management modules, and self-test modules, to implement the automation-based multi-indicator water quality detection method provided in the embodiment of the present invention.

[0078] The multi-index water quality detection system based on automation provided in the present embodiment is provided with a measurement module for measuring multiple detection items of the detection sample, an interaction module for obtaining measurement data from the measurement module and sending it to the host computer, a data management module for analyzing whether the measurement values ​​of the multiple detection items of the detection sample are within a preset quality safety range, and setting different water quality levels according to the difference interval between the measurement value and the quality safety range, and a self-test module for detecting the working feasibility of the measurement module, the interaction module and the data management module when the machine is turned on; the measurement module includes multiple measurement units; the measurement unit includes an absorption cell for containing the detected sample, a light source component for emitting a single wavelength light beam to the absorption cell, and a detection item for measuring the detected sample in the absorption cell. A photoelectric detector and a display for displaying measurement results; the photoelectric detector measures the detection items of the detected sample by detecting the absorbance of the detected sample in the absorption cell; the present invention uses a combination of multiple light sources with the same light source wavelength to measure the same detection items of different detection samples; thereby, multiple detection items of a single detection sample can be measured, and the same detection item of multiple detection samples can be measured, breaking through the technical difficulty that traditional instruments and equipment cannot detect multiple indicators and require multiple devices to measure synchronously, and can solve the problem that when the existing technology uses visual colorimetry to measure detection items such as turbidity of water quality, the human eye needs to make subjective judgments, resulting in inaccurate measurement data, and different detection items require different instruments to measure and record them separately, resulting in repeated and cumbersome work.

[0079] like Figure 3 As shown, the second aspect of the present invention provides a multi-index water quality detection method based on automation, which is implemented by applying the aforementioned multi-index water quality detection system based on automation, and includes the following steps:

[0080] S1: At each startup, the self-check unit of the self-check module 4 detects the working feasibility of the measurement module 1, the interaction module 2 and the data management module 3, and completes the initialization of the interface hardware device; when there is a problem with the feasibility of the detection, the abnormal state information is output; the abnormal state information is sent to the host computer through the interaction module 2; otherwise, the next step is executed;

[0081] S2: the measuring module 1 measures multiple test items of a single test sample or the same test item of multiple test samples to obtain measurement data; during the test item measurement process of the measuring module 1, the working state of the measuring module 1 is detected by the state monitoring unit of the self-test module 4, and when the working state is abnormal, the abnormal state information is output; the abnormal state information is sent to the host computer through the interactive module 2; otherwise, the next step is executed;

[0082] S3: The interactive module 2 receives the measurement data and sends the measurement data to the host computer; the data management module 3 analyzes whether the measurement values ​​of multiple test items of a single test sample or the same test item of multiple test samples are within a preset quality safety range based on the measurement data, sets different water quality levels according to the difference interval between the measurement value and the quality safety range, and counts the number of water quality levels of multiple test samples in the same area.

[0083] Furthermore, the step S1 detects the working feasibility of the measurement module 1, the interaction module 2 and the data management module 3 through the power-on self-test unit of the self-test module 4, and completes the initialization of the interface hardware device; including the following steps:

[0084] Determine whether the serial port is initialized normally;

[0085] Check the interface equipment and determine whether the multi-position valve and injection pump are in normal working condition;

[0086] When the multi-position valve and injection pump are working normally, the water in the test sample reaction pool is replaced;

[0087] Check whether the measurement module 1 has established communication with the mainboard of the interaction module 2, whether the light intensity value of the light source is within the normal range, and whether the stability of the light source meets the requirements;

[0088] When all the above self-test items are passed, conduct quality control tests for each test item to check whether the test results of each test item are within the normal value range, and output the self-test results;

[0089] When the test results of all the test items are within the normal value range, the output self-test results include the judgment that the water quality parameter test can be started;

[0090] When the test result of one of the detection items exceeds the normal value range, the output self-test result includes the abnormal detection item;

[0091] Stores the self-test results.

[0092] Furthermore, when the measurement of the test items of each test sample is completed, the measurement module 1 is self-checked to prepare for starting the measurement of the test items of the next test sample.

[0093] Furthermore, in step S2, during the measurement of the detection items of the measurement module 1, the working state of the measurement module 1 is detected by the state monitoring unit of the self-test module 4, including real-time monitoring of the working states of the light source intensity, temperature, cleanliness of the absorption pool and liquid leakage of the absorption pool; when the light source intensity exceeds the set intensity range, the temperature exceeds the set temperature range, the cleanliness of the absorption pool is lower than the set cleanliness value or there is leakage of the liquid in the absorption pool, the output state abnormal information includes the existence of an abnormal working state.

[0094] Further, the measurement module 1 in step S2 measures multiple test items of a single test sample or the same test item of multiple test samples, including using spectral analysis or titration analysis to determine the target substance in the water sample to be tested; wherein, spectral analysis is a method for identifying a substance and determining its chemical composition and relative content based on the spectrum of the substance, and is an analysis method established based on the spectroscopy of molecules and atoms. Spectroscopic analysis uses the characteristic spectra of substances in different spectrometers to perform qualitative analysis on them, and performs quantitative analysis based on the spectral intensity; titration analysis is also called volumetric analysis, which is a quantitative analysis method, in which a standard solution of known accurate concentration is added dropwise to the solution to be tested (or the solution to be tested is added dropwise to the standard solution), until the added standard solution and the substance to be tested react quantitatively according to the stoichiometric relationship, and then the volume consumed by the standard solution is measured, and the content of the substance to be tested is calculated according to the concentration of the standard solution and the volume consumed. This is a simple, fast and widely used quantitative analysis method, which has a high accuracy in constant analysis.

[0095] Furthermore, in step S2, when the spectral analysis method is used to determine the target substance in the water sample to be tested, the embodiment of the present invention uses the colorimetric method to determine the chromaticity of the water quality in the absorption cell to eliminate the artificial visual errors in the visual colorimetric method and the influence of light from different directions, so that the detection result is more accurate; for the detection sample with higher turbidity, the embodiment of the present invention uses the spectrophotometric method to determine the absorbance of the water quality sample in the absorption cell (the calculation method is consistent with the previous one and will not be repeated here), and then determines the target substance in the water sample to be tested; the greater the turbidity, the more obviously the measurement result of the spectrophotometric method is higher than that of the visual colorimetric method, indicating that the turbidity of the detection sample has produced positive interference with the spectrophotometric method for measuring chromaticity. In view of the interference of turbidity on the spectrophotometric method for measuring chromaticity, the influence of pretreatment of absorbance of different wavelengths and microporous membrane filters of different pore sizes will be investigated to accumulate new experimental data;

[0096] Furthermore, the water quality spectrum can be roughly divided into two types due to factors such as rainfall and seasonal changes. One is a stable water quality sequence in the short term, and the other may undergo sudden changes under the influence of factors such as rainfall. Water quality often changes with seasonal temperature, etc. Based on the above reasons, if Figure 4As shown, step S2 also includes establishing an ARMA model to predict water quality anomalies based on spectral features; specifically including the following steps:

[0097] S21: Determine the ADF stationarity of the spectral feature time series. When the ADF is not stationary, perform differential processing until the spectral feature time series is stationary. When the ADF is stationary, determine the order of the ARMA model.

[0098] S22: Establish an ARMA model, and predict the characteristic value of the next time point through the ARMA model to obtain a model prediction value;

[0099] S23: Calculate the residuals based on the actual observed values ​​and model predicted values ​​of the ARMA model;

[0100] S24: Determine whether the residual exceeds the ±3σ threshold; when the residual exceeds the ±3σ threshold, use the predicted value to participate in the next prediction; when the residual is within the ±3σ threshold, use the measured value of the measurement module as the actual value to participate in the next prediction.

[0101] Further, in step S21, the ADF test refers to the Augmented Dickey-Fuller test, which is a statistical test method used to determine whether a time series is stable, that is, whether it follows a unit root process. The unit root process means that the mean of the time series will change over time instead of remaining constant; the ADF test can detect the bilateral trend of the time series, that is, the time series may tilt upward or downward; the basic idea of ​​the ADF test is to build a regression model, take the lagged value of the time series as an explanatory variable, and test whether the coefficient of the explanatory variable in the regression is zero. If the regression coefficient is significantly not zero, it indicates that the time series is not stable, otherwise it is stable. When performing an ADF test, it is usually necessary to determine the lag order, which depends on the characteristics of the time series. By performing an ADF test, researchers can determine whether the time series needs to be differentiated to achieve stability, which is crucial for subsequent economic and financial analysis. If the time series is non-stable, it is usually necessary to differentiate it to obtain a stable series before further analysis.

[0102] Furthermore, in step S21, the general form of the ADF test equation is expressed by equation (4):

[0103]

[0104] in, is the drift term, γt is the time trend term, ε represents the coefficient of the influence of the value of the previous step on the current change, εS t-1 is the time series of the previous step, Z t is the forecast residual of the ARMA model; is the difference term; i is the lag order, indicating the number of difference terms considered; p represents the total lag order.

[0105] Furthermore, in step S21, determining the ADF stationarity of the spectral feature time series includes the following steps:

[0106] Step 1: Estimate the ADF test equation and use the statistic to test the null hypothesis H0:ρ=1, where H0 is the hypothesis condition and ρ is the correlation coefficient of the hypothesis test. The goal of the hypothesis test is to determine whether the overall correlation coefficient ρ is equal to 1. If the hypothesis is not true, the spectral feature sequence is stable, otherwise proceed to step 2;

[0107] Step 2: If the time trend term is significant, the unit root is tested using normal distribution. If the assumption is not true, it proves that the spectral feature sequence does not contain a unit root, otherwise a unit root exists. Next, a t-test is performed on the drift term. If the time trend term is not significant, proceed to step 3;

[0108] Step 3: Estimate the ADF test equation and use statistics to test the existence of unit roots. If the assumption is not true, then the spectral feature sequence does not contain a unit root, otherwise the drift term must be tested; if the drift term is significant, the unit root is tested using a normal distribution. If the assumption is not true, the spectral feature sequence does not contain a unit root, otherwise a unit root exists. If the drift term is not significant, proceed to step 4;

[0109] Step 4: Estimate the ADF test equation and use the τz statistic to test the unit root. If the assumption is not true, there is no unit root, otherwise there is a unit root.

[0110] In this way, the stationarity test of the spectral feature time series is completed, and the non-stationary time series is differentiated until the series is stationary. Then the differentiated data is used for modeling to form an ARMA model.

[0111] like Figure 5 and Figure 6 As shown in the figure, by comparing the time series before and after the difference of 254nm absorbance, it is found that the time series without difference processing can clearly show the trend change, and such a time series cannot pass the ADF test. After the difference processing, although some increased sharp data can still be seen, it is relatively stable and can pass the ADF test, proving that the difference can indeed make the time series stable, and the spectral feature time series after the difference can establish the ARMA model.

[0112] Furthermore, the order of the ARMA model in step S21 affects the predictive ability of the ARMA model. When the order of the ARMA model is determined using the Akaike Information Criterion (AIC), the Bayesian Information Criterion (BIC), or the like, the formulas are as follows:

[0113]

[0114]

[0115] Where m is the model order, is the prediction variance of the model at different orders, and M is the number of samples in the training set.

[0116] Although the AIC criterion can provide an effective method for determining the model, it also has some disadvantages. That is, when the number of training sample sets is large, the fitting error of AIC will be amplified by the sample capacity, while the coefficient of the parameter order is always 2, which will cause the model to not converge, making the determined model order inaccurate.

[0117] like Figure 7 The results shown are the results of using Akaike information criterion AIC and Bayesian information criterion BIC to determine the order of the ARMA model based on the absorbance at 254 nm; Figure 7 The lower middle curve is the AIC curve, and the upper curve is the BIC curve. It can be seen that with the increase of the order, it is difficult for AIC to converge, but the result of BIC is more obvious and the minimum BIC value is determined quickly; therefore, as a preference, all ARMA model order determination methods in the embodiments of the present invention are determined by the BIC method.

[0118] Further, in step S22, after the ARMA model is established, it is necessary to evaluate the ARMA model; after the ARMA model is established, the prediction residual sequence of the model will be obtained. If the prediction effect of the model is relatively good, the residual sequence will not contain useful information in the original data, and the residual sequence should be in accordance with the normal distribution. Therefore, the evaluation model needs to perform a normal distribution test on the residual sequence of the prediction model; the embodiment of the present invention uses an intuitive and graphical QQ' graph (QuantileQuantilePlot) and a quantitative Durbin-Watson test (Durbin-WatsonStatistics, referred to as DW test) to evaluate the ARMA model; wherein, the QQ' graph is an intuitive scatter plot, such as Figure 8 As shown, for the QQ′ graph of the normal distribution, the horizontal axis is the quantile of the standard normal distribution, and the vertical axis is the sample value.

[0119] Suppose there is a sequence X=(X1,X2...Xi...Xn), where n>0 and is a positive integer, and its average value is If the standard deviation is σ, then the quantile of the sample is The quantile Q′ of the standard normal distribution can be obtained by The value is obtained by looking up the table, and then the graph is drawn through QQ'. To use the QQ' graph to evaluate whether the sample belongs to the normal distribution, it is only necessary to observe whether the scattered points in the QQ' graph are around a straight line. If the scatter plot is a straight line, it means that it is a normal distribution, and the slope of the line is the standard deviation, and the intercept is the mean. When the line is at a 45-degree angle and passes through the origin, it means that the distribution of the sample is exactly the same as the standard normal distribution.

[0120] Further, in the embodiment of the present invention, for each prediction point, the residual is calculated, that is, the difference between the actual observation value and the prediction value; in step S23, the residual = actual observation value - model prediction value; the DW test is an autocorrelation test method, and for the prediction residual of the ARMA model, the less autocorrelation there is, the better the prediction model is, and the closer it is to the normal distribution; assuming that the prediction residual of the ARMA model is Z t , then its test formula is expressed by formula (7):

[0121]

[0122] D is the calculated value of the DW test, 0<D<4, and its statistical significance is: when the spectral feature residuals and the independent variables are independent of each other, the calculated value D of the DW test is equal to 2 or the closer it is to 2, the higher the credibility of judging that there is no autocorrelation; when the spectral feature residuals are positively correlated, the calculated value D of the DW test is less than 2, and the closer it is to 0, the higher the credibility of positive autocorrelation; when the spectral feature residuals are negatively correlated, the calculated value D of the DW test is greater than 2, and the closer it is to 4, the higher the credibility of negative autocorrelation. Therefore, when the DW test is performed on the residuals of the ARMA model, the closer the calculated value D of the DW test is to 2, the better the prediction ability of the ARMA model is, and the stronger its ability to explain water quality parameters is.

[0123] Furthermore, the residual sequence of the ARMA model must conform to the normal distribution. If the common determination method based on the residual threshold is used, the determination of the threshold is a difficult problem to solve, and it often requires a large amount of experimental analysis to determine a good threshold. For the monitoring data of the water quality spectrum, once the monitored water body is changed, a threshold may need to be re-determined, which will bring a great burden to the monitoring work. In order to reduce the complexity of determining the threshold, the embodiment of the present invention relies on the confidence interval of the normal distribution to determine whether the detection result is abnormal, that is, the upper and lower limits of the confidence interval of the prediction result are calculated while calculating the prediction result. Once the actual monitoring result is not within the confidence interval, it is determined that the water quality monitoring result is abnormal, and the numerical value of the abnormal point is replaced by the predicted value of the model in the next prediction. If it does not exceed the confidence interval, the actual detection value is used for the next prediction, thereby ensuring the accuracy of the model.

[0124] Furthermore, the confidence interval of the embodiment of the present invention is a 99% confidence interval of a normal distribution, that is, a confidence interval of ±3σ, where σ is the standard deviation; Fig. 9 As shown in the figure, the prediction results based on the 99% confidence interval established using the spectral center of gravity are obvious. The long-term prediction of the ARMA model is a trend prediction, and only when a single point is predicted can an accurate value be obtained. Therefore, the ARMA model is more suitable for short-term prediction. Since the water quality of surface water fluctuates greatly, a smaller confidence interval will increase the false alarm rate of the model judgment, so a higher confidence interval of 99% is selected.

[0125] A third aspect of the present invention further provides an electronic device, Fig.10 Schematic diagram of the structure of the electronic device of this embodiment. Fig.10 As shown, the electronic device 1000 in this embodiment may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned electronic device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1004 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Fig.10As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0126] like Fig.10 In the electronic device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0127] The working feasibility of the measuring module 1, the interaction module 2 and the data management module 3 is detected by the power-on self-check unit of the self-check module 4, and the initialization of the interface hardware device is completed at the same time; when there is a problem with the detection feasibility, the abnormal state information is output; the abnormal state information is sent to the host computer through the interaction module 2; otherwise, the next step is executed;

[0128] The measuring module 1 measures multiple test items of a single test sample or the same test item of multiple test samples to obtain measurement data; during the test item measurement process of the measuring module 1, the working state of the measuring module 1 is detected by the state monitoring unit of the self-test module 4, and when the working state is abnormal, the abnormal state information is output; the abnormal state information is sent to the host computer through the interactive module 2; otherwise, the next step is executed;

[0129] The interactive module 2 receives the measurement data and sends the measurement data to the host computer; the data management module 3 analyzes whether the measurement values ​​of multiple test items of a single test sample or the same test item of multiple test samples are within a preset quality safety range based on the measurement data, sets different water quality levels according to the difference interval between the measurement value and the quality safety range, and counts the number of water quality levels of multiple test samples in the same area.

[0130] It should be understood that in some feasible implementations, the processor 1001 may be a central processing unit (CPU), or other general-purpose processors, DSPs, ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0131] In a specific implementation, the electronic device 1000 can execute the above-mentioned functions through its built-in functional modules. Figure 3 For the implementation methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0132] The electronic device provided in this embodiment detects the working feasibility of the measurement module 1, the interaction module 2 and the data management module 3 through the power-on self-test unit of the self-test module 4, and completes the initialization of the interface hardware device at the same time; when there is a problem with the detection feasibility, the state abnormality information is output; the state abnormality information is sent to the host computer through the interaction module 2; otherwise, the next step is executed; the measurement module 1 measures multiple detection items of a single detection sample or the same detection item of multiple detection samples to obtain measurement data; during the measurement of the detection items of the measurement module 1, the working state of the measurement module 1 is detected by the state monitoring unit of the self-test module 4, and when the working state is abnormal, the state abnormality information is output; the state abnormality information is sent to the host computer through the interaction module 2 Normal information is sent to the host computer; otherwise, execute the next step; the interactive module 2 receives the measurement data and sends the measurement data to the host computer; the data management module 3 analyzes whether the measurement values ​​of multiple test items of a single test sample or the same test item of multiple test samples are within the preset quality safety range according to the measurement data, sets different water quality levels according to the difference interval between the measurement value and the quality safety range, and counts the number of water quality levels of multiple test samples in the same area; it can solve the problem that when the existing technology uses visual colorimetry to measure test items such as turbidity of water quality, the human eye needs to make subjective judgments, resulting in inaccurate measurement data, and different test items require different instruments to measure and record them separately, resulting in repeated and cumbersome work.

[0133] The present application also provides a computer-readable storage medium, which stores a computer program and is executed by a processor to implement Figure 3 For the methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0134] The computer-readable storage medium provided in this embodiment detects the working feasibility of the measurement module 1, the interaction module 2 and the data management module 3 through the power-on self-test unit of the self-test module 4, and completes the initialization of the interface hardware device at the same time; when there is a problem with the detection feasibility, the state abnormality information is output; the state abnormality information is sent to the host computer through the interaction module 2; otherwise, the next step is executed; the measurement module 1 measures multiple detection items of a single detection sample or the same detection item of multiple detection samples to obtain measurement data; during the measurement of the detection items of the measurement module 1, the working state of the measurement module 1 is detected by the state monitoring unit of the self-test module 4, and when the working state is abnormal, the state abnormality information is output; the state abnormality information is sent to the host computer through the interaction module 2 The abnormal status information is sent to the host computer; otherwise, execute the next step; the interactive module 2 receives the measurement data and sends the measurement data to the host computer; the data management module 3 analyzes whether the measurement values ​​of multiple test items of a single test sample or the same test item of multiple test samples are within the preset quality safety range according to the measurement data, sets different water quality levels according to the difference interval between the measurement value and the quality safety range, and counts the number of water quality levels of multiple test samples in the same area; it can solve the problem that when the existing technology uses visual colorimetry to measure test items such as turbidity of water quality, the human eye needs to make subjective judgments, resulting in inaccurate measurement data, and different test items require different instruments to measure and record them separately, resulting in repeated and cumbersome work.

[0135] Any reference to memory, storage, database or other medium used in the embodiments provided in the present application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0136] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An automated multi-index water quality detection system, characterized in that: The invention comprises a measuring module (1) for measuring a test item of a test sample, an interaction module (2) for acquiring measurement data from the measuring module (1) and sending the measurement data to a host computer, a data management module (3) for analyzing whether the measurement value of the test item of the test sample is within a preset quality safety range and setting different water quality levels according to the difference interval between the measurement value and the quality safety range, and a self-test module (4) for testing the working feasibility of the measuring module (1), the interaction module (2) and the data management module (3); wherein: The measuring module (1), the data management module (3) and the self-checking module (4) are respectively connected to the interaction module (2) for communication; the interaction module (2) is connected to the host computer for communication; The measuring module (1) comprises a plurality of measuring units; the measuring units comprise an absorption cell (11) for containing a sample to be detected, a light source assembly for emitting a single wavelength light beam to the absorption cell (11), a photoelectric detector (12) for measuring a detection item of the sample to be detected in the absorption cell (11), and a display (13) for displaying a measurement result; the photoelectric detector (12) measures the detection item of the sample to be detected by detecting the absorbance of the sample to be detected in the absorption cell (11); by using a plurality of light sources of different wavelengths in combination, synchronous measurement of a plurality of detection items of the same sample to be detected is achieved; by using a plurality of light sources of the same wavelength in combination, measurement of the same detection item of different samples to be detected is achieved.

2. The automated multi-index water quality detection system according to claim 1, characterized in that: The self-check module (4) comprises a power-on self-check unit and a status monitoring unit; The power-on self-check unit is used to detect the working feasibility of the measurement module (1), the interaction module (2) and the data management module (3) each time the machine is powered on, and to complete the initialization of the interface hardware device; when there is a problem with the detection feasibility, the abnormal state information is output; The state monitoring unit is used to detect the working state of the measurement module (1) during the measurement of the detection items of the measurement module (1); when the working state of the measurement module (1) is abnormal, output state abnormality information.

3. The automated multi-index water quality detection system according to claim 1, characterized in that: The light source assembly comprises a light source (101) and a monochromator; the light source (101) and the monochromator are light emitting diodes; and the spectrum range is 380nm to 780nm.

4. An automated multi-index water quality detection system according to any one of claims 1 to 3, characterized in that: The measuring module (1) uses spectral analysis, titration analysis or spectrophotometry to measure the target substance in the water sample to be tested; When the target substance in the water sample is determined by spectrophotometry, the absorbance A of the sample is expressed by formula (3): Wherein, T is the transmittance; K is the molar absorption coefficient; b is the liquid layer thickness of the test sample; and c is the concentration of the test sample.

5. A multi-index water quality detection method based on automation, characterized in that: The method is implemented by using the automated multi-index water quality detection system as described in any one of claims 1 to 4, comprising the following steps: S1: Each time the machine is turned on and operated, the working feasibility of the measuring module (1), the interaction module (2) and the data management module (3) is detected by the self-test unit of the self-test module (4), and the initialization of the interface hardware device is completed at the same time; when there is a problem with the detection feasibility, the abnormal state information is output; the abnormal state information is sent to the host computer through the interaction module (2); otherwise, the next step is executed; S2: the measuring module (1) measures multiple test items of a single test sample or the same test item of multiple test samples to obtain measurement data; during the test item measurement process of the measuring module (1), the working state of the measuring module (1) is detected by the state monitoring unit of the self-checking module (4), and when the working state is abnormal, the abnormal state information is output; the abnormal state information is sent to the host computer through the interactive module (2); otherwise, the next step is executed; S3: The interaction module (2) receives the measurement data and sends the measurement data to a host computer; the data management module (3) analyzes the measurement data to determine whether the measurement values ​​of multiple test items of a single test sample or the same test item of multiple test samples are within a preset quality safety range, sets different water quality levels according to the difference between the measurement value and the quality safety range, and counts the number of water quality levels of multiple test samples in the same area.

6. The automated multi-index water quality detection method according to claim 5, characterized in that: The step S1 includes testing the working feasibility of the measurement module (1), the interaction module (2) and the data management module (3) through the power-on self-test unit of the self-test module (4), and completing the initialization of the interface hardware device; the steps include: Determine whether the serial port is initialized normally; Check the interface equipment and determine whether the multi-position valve and injection pump are in normal working condition; When the multi-position valve and injection pump are working normally, the water in the test sample reaction pool is replaced; Detecting whether the measuring module (1) has established communication with the mainboard of the interactive module (2), whether the light intensity value of the light source is within a normal range, and whether the stability of the light source meets the requirements; When all the above self-test items are passed, conduct quality control tests for each test item to check whether the test results of each test item are within the normal value range, and output the self-test results; When the test results of all the test items are within the normal value range, the output self-test results include the judgment that the water quality parameter test can be started; When the test result of one of the detection items exceeds the normal value range, the output self-test result includes the abnormal detection item; Stores the self-test results.

7. The automated multi-index water quality detection method according to claim 5, characterized in that: In step S2, the measuring module (1) measures multiple test items of a single test sample or the same test item of multiple test samples, including using spectral analysis or titration analysis to determine the target substance in the water sample to be tested; In step S2, when the target substance in the water sample to be tested is determined by spectral analysis, the embodiment of the present invention uses colorimetry to determine the chromaticity of the water quality in the absorption cell; For test samples with high turbidity, the absorbance of the water sample in the absorption cell is measured by spectrophotometry; The absorbance A of the sample to be tested is expressed by formula (3): Wherein, T is the transmittance; K is the molar absorption coefficient; b is the liquid layer thickness of the test sample; and c is the concentration of the test sample.

8. The automated multi-index water quality detection method according to claim 5, characterized in that: In step S2, during the measurement of the detection items of the measurement module (1), the working state of the measurement module (1) is detected by the state monitoring unit of the self-test module (4). When the working state is abnormal, the abnormal state information is output, including real-time monitoring of the working state of the light source intensity, temperature, cleanliness of the absorption pool and liquid leakage of the absorption pool; when the light source intensity exceeds the set intensity range, the temperature exceeds the set temperature range, the cleanliness of the absorption pool is lower than the set cleanliness value or there is liquid leakage in the absorption pool, the abnormal state information is output.

9. The automated multi-index water quality detection method according to claim 5, characterized in that: The measuring module (1) in step S2 measures multiple test items of a single test sample or the same test item of multiple test samples to obtain measurement data; and also includes establishing an ARMA model to predict water quality anomalies based on spectral features, specifically including the following steps: S21: Determine the ADF stationarity of the spectral feature time series. When the ADF is not stationary, perform differential processing until the spectral feature time series is stationary. When the ADF is stationary, determine the order of the ARMA model. S22: Establish an ARMA model, and predict the characteristic value of the next time point through the ARMA model to obtain a model prediction value; S23: Calculate the residuals based on the actual observed values ​​and model predicted values ​​of the ARMA model; S24: Select the 99% confidence interval of the normal distribution to determine whether the residual exceeds the ±3σ threshold; when the residual exceeds the ±3σ threshold, use the predicted value to participate in the next prediction; when the residual is within the ±3σ threshold, use the measured value of the measurement module as the actual value to participate in the next prediction; σ is the standard deviation.

10. The automated multi-index water quality detection method according to claim 9, characterized in that: The order of the ARMA model in step S21 is determined using the Bayesian Information Criterion.

Citation Information

Patent Citations

  • Running abnormality self-checking and data transmission system for autonomous navigation type underwater robot

    CN102999047A

  • Online monitoring system of water quality

    CN106530140A

  • Multidimensional integrated spectrum detection cell device

    CN110487723A

  • Method for predicting COD concentration of effluent of biological pool

    CN110991484A

  • Integrated multi-index water quality online monitor and monitoring method thereof

    CN112240872A