Self-cleaning optical oil-in-water sensor, self-cleaning method and medium

Through the parameter adjustment of the self-cleaning optical water oil sensor and the form decontamination solution, the problem of manual parameter adjustment and low pollution removal efficiency in the existing technology is solved, and the full range test is achieved and the practical application effect is improved.

CN119643512APending Publication Date: 2025-03-18HUBEI WANAN ENVIRONMENTAL PROTECTION PETROCHEMICAL EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411787316.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The existing optical water oil sensors require a lot of manual parameters and decontamination treatment during the test, resulting in low testing efficiency and inability to achieve full-scale testing, which affects the actual application effect.

Method used

Self-cleaning optical water oil sensor is used to generate the clean level of the translucent form, and combine the test scenario with a preset parameter adjustment scheme or a form decontamination scheme to automatically record and analyze data to reduce manual intervention.

Benefits of technology

The test efficiency of the oil sensor in water is improved, the full range test results are achieved, and the actual application effect of the sensor is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119643512A_ABST
    Figure CN119643512A_ABST
Patent Text Reader

Abstract

The invention discloses a self-cleaning optical oil-in-water sensor, a self-cleaning method and a medium. The method comprises the following steps: generating a clean grade of a light-transmitting window of the oil-in-water sensor in a current medium environment; and acquiring a current test scene of the oil sensor in water, and adjusting use parameters of the oil sensor in water in combination with the cleanliness level of the light-transmitting window body or performing decontamination on the light-transmitting window body by adopting at least one preset decontamination method. In the test process of the self-cleaning optical oil-in-water sensor, a corresponding parameter adjustment scheme or a window body decontamination scheme can be adopted according to different test scenes and the cleanliness degree of a light-transmitting window body, decontamination data, test data and the like are automatically recorded and analyzed at the same time, the requirement for manual intervention is reduced, the test efficiency is improved, and the test cost is reduced. And the oil sensor in water can work in a full-scale range by adjusting parameters of the oil sensor in water, so that a full-scale test result is obtained, and the actual application effect of the oil sensor in water is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of oil-in-water sensors, and in particular to a self-cleaning optical oil-in-water sensor and a self-cleaning method and medium. Background Art

[0002] When crude oil and natural gas are pumped to the ground, they contain a lot of impurities, such as water, sand, etc. These impurities will be separated, and the separated water is called produced water. Produced water contains a lot of hydrocarbons and cannot be discharged or used directly, and must be further separated. In order to meet strict environmental protection requirements and improve the management level of produced water, it is necessary to monitor water quality, such as oil content in water, at different points in the separation process. The oil in water sensor is a sensor based on optical principles. By measuring the refraction, reflection and scattering characteristics of light in oil-water mixtures, it can achieve real-time monitoring of oil pollution concentration in water bodies. The sensor has the characteristics of high precision, high sensitivity and fast response. It can accurately measure the concentration and distribution of oil pollution in water bodies in a short time. It is widely used in environmental monitoring, industrial wastewater treatment, marine pollution monitoring and other fields.

[0003] The conventional optical oil-in-water sensor usually has a range of 0-8000ppm. Our company has developed an oil-in-water sensor with a range of 0-50000ppm, which can accurately measure the concentration of light oil or heavy oil in water. This large-range oil-in-water sensor needs to be tested a lot for different test scenarios during the development process and before leaving the factory to obtain the deviation between the detection value and the actual value under different oil types, different oil concentrations and different usage parameters, so as to improve the detection accuracy of the oil-in-water sensor in actual use. The conventional technology usually adopts a test scheme of manually adjusting the concentration of the medium to be tested and the usage parameters, and during the test process, it mainly relies on the experience of technicians to judge the accuracy of the detection value and troubleshoot the cause of the fault, such as damage or contamination of the light-transmitting window of the oil-in-water sensor. At the same time, when it is determined that the light-transmitting window of the oil-in-water sensor is contaminated, regardless of whether the oil type of the medium to be tested is light oil or heavy oil, the light-transmitting window is directly decontaminated, which not only consumes a lot of manpower and affects the test efficiency, but also fails to achieve the full-scale test of the oil-in-water sensor at 0-50000ppm, reducing the application effect of the oil-in-water sensor in the actual environment. Summary of the invention

[0004] The present invention provides a self-cleaning optical oil-in-water sensor and a self-cleaning method and medium, which solve the above-mentioned technical problems.

[0005] A first aspect of an embodiment of the present invention provides a self-cleaning method for an oil-in-water sensor, wherein the oil-in-water sensor comprises a circulation pipe and a light source end and a detection end arranged on both sides of the circulation pipe, and a light-transmitting window is respectively arranged on the circulation pipe near the light source end and the detection end, and the method comprises the following steps:

[0006] Step 1, generating the cleanliness level of the light-transmitting window on the circulation pipeline in the current medium environment;

[0007] Step 2, obtaining the current test scene of the oil-in-water sensor, and adopting a preset parameter adjustment scheme or a preset window decontamination scheme in combination with the cleanliness level of the light-transmitting window;

[0008] The preset parameter adjustment scheme is: do not remove dirt temporarily, and adjust the use parameters of the oil-in-water sensor according to the cleanliness level;

[0009] The preset window decontamination scheme is: using at least one preset decontamination method to decontaminate the light-transmitting window and then continuing the testing process.

[0010] A second aspect of an embodiment of the present invention provides a self-cleaning optical oil-in-water sensor, the self-cleaning optical oil-in-water sensor comprising a circulation pipe and a light source end and a detection end arranged on both sides of the circulation pipe, and a light-transmitting window is respectively arranged on the circulation pipe near the light source end and the detection end;

[0011] The self-cleaning optical oil-in-water sensor includes at least a parameter adjustment module, a first data processing module and a decontamination module. The first data processing module is used to receive a control instruction generated according to the self-cleaning method. The control instruction is used to drive the parameter adjustment module to execute the preset parameter adjustment scheme or to drive the decontamination module to execute the preset window decontamination scheme.

[0012] A third aspect of the embodiments of the present invention provides a self-cleaning optical oil-in-water sensor, the self-cleaning optical oil-in-water sensor comprising a circulation pipeline and a light source end and a detection end arranged on both sides of the circulation pipeline, and a light-transmitting window is respectively arranged on the circulation pipeline near the light source end and the detection end;

[0013] The self-cleaning optical oil-in-water sensor includes at least a parameter adjustment module, a second data processing module and a decontamination module, wherein the second data processing module is used to execute the self-cleaning method and generate control instructions, and the control instructions are used to drive the parameter adjustment module to execute the preset parameter adjustment scheme or to drive the decontamination module to execute the preset window decontamination scheme.

[0014] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the self-cleaning method of the oil-in-water sensor described above.

[0015] The beneficial effects of the present invention are as follows: the present invention provides a self-cleaning optical oil-in-water sensor and a self-cleaning method and medium. During the testing of the oil-in-water sensor, especially the automatic testing process, corresponding parameter adjustment schemes or window decontamination schemes can be adopted according to different test scenarios and the cleanliness of the light-transmitting window, and decontamination data and test data can be automatically recorded and analyzed. This not only reduces the need for manual intervention and improves the testing efficiency, but also enables the oil-in-water sensor to operate within the full range by adjusting its parameters, obtains full-range test results, and improves the actual application effect of the oil-in-water sensor.

[0016] In order to make the above-mentioned objects, features and advantages of the invention more obvious and easy to understand, the preferred embodiments of the present invention are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 is a schematic flow chart of a self-cleaning method for an oil-in-water sensor provided in Example 1;

[0019] Figure 2 is a cross-sectional view of a self-cleaning optical oil-in-water sensor provided in Example 2;

[0020] Figure 3 This is a schematic diagram of the structural connection of the self-cleaning optical oil-in-water sensor provided in Example 3. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical scheme 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. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0022] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, all within the scope of protection of the present invention. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in the present invention do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0023] Figure 1 It is a flow chart of a self-cleaning method for an oil-in-water sensor provided in Example 1. Figure 2 is a cross-sectional view of the self-cleaning optical oil-in-water sensor provided in Example 2, as shown Figure 1 and Figure 2 As shown, the self-cleaning optical oil-in-water sensor (hereinafter referred to as the oil-in-water sensor) of this embodiment includes a circulation pipeline 100 and a light source end 200 and a detection end 300 arranged on both sides of the circulation pipeline 100. The circulation pipeline 100 is provided with light-transmitting windows near the light source end 200 and the detection end 300, respectively. The light-transmitting windows include a first window 401 near the light source end 200 and a second window 402 near the detection end 300. When the medium to be measured (water-oil mixed medium) flows through the circulation pipeline 100, the light source end 200 generates a beam of precisely focused light with a constant light intensity to pass through the medium to be measured, and the medium to be measured absorbs part of the light intensity, causing the light intensity to attenuate. The photosensitive diode 500 completely enclosed at the detection end 300 transmits the residual light intensity detected and filtered by the filter 600 to the data processing module in the form of photocurrent. According to the Lambert-Beer law, the logarithm of the light transmittance loss is proportional to the concentration of the medium that produces the transmission loss. The data processing module calculates the concentration of the oil content in the water according to the change in the size of the photocurrent.

[0024] It is understandable that according to the Lambert-Beer law, the transmittance of the filter, the concentration component of the medium to be measured, the optical path of the circulation pipe (i.e., the distance between the first window and the second window), and the wavelength and light intensity of the infrared light emitted by the light source end will all have an impact on the logarithm of the transmittance loss. Therefore, when using the oil-in-water sensor for detection, especially in the scenario of heavy oil and easy contamination of the window of the circulation pipe, it is necessary to select the appropriate wavelength, light intensity, filter transmittance and optical path of the circulation pipe to improve the detection accuracy of the oil-in-water sensor.

[0025] like Figure 1 As shown, a self-cleaning method for an oil-in-water sensor according to an embodiment includes the following steps:

[0026] Step 1, generating the cleanliness level of the light-transmitting window on the circulation pipeline in the current medium environment;

[0027] Step 2, obtaining the current test scene of the oil-in-water sensor, and adopting a preset parameter adjustment scheme or a preset window decontamination scheme in combination with the cleanliness level of the light-transmitting window;

[0028] The preset parameter adjustment scheme is: do not remove dirt temporarily, and adjust the use parameters of the oil-in-water sensor according to the cleanliness level;

[0029] The preset window decontamination scheme is: using at least one preset decontamination method to decontaminate the light-transmitting window and then continuing the testing process.

[0030] The above embodiments provide a self-cleaning method for an oil-in-water sensor. During the testing of the oil-in-water sensor, especially the automatic testing process, corresponding parameter adjustment schemes or window decontamination schemes can be adopted according to different test scenarios and the cleanliness of the light-transmitting window. At the same time, decontamination data and test data can be automatically recorded and analyzed. This not only reduces the need for manual intervention and improves test efficiency, but also enables the oil-in-water sensor to operate within the full range by adjusting its parameters, obtains full-range test results, and improves the actual application effect of the oil-in-water sensor.

[0031] The above steps are described in detail below through a number of specific embodiments.

[0032] In a specific embodiment, step 1 generates the cleanliness level of the light-transmitting window on the circulation pipeline in the current medium environment, specifically:

[0033] S101, collecting the current concentration detection value of the oil-in-water sensor.

[0034] S102, collecting the oil type corresponding to the current medium environment, and obtaining the concentration measurement deviation of the oil type based on the usage parameters under a completely clean light-transmitting window. The concentration measurement deviation is the inherent error of the oil-in-water sensor, which can be obtained by querying the error table or numerical compensation table of the oil-in-water sensor.

[0035] S103, using the concentration measurement deviation to correct the current concentration detection value to generate a concentration optimization value, thereby obtaining a more accurate detection value.

[0036] S104, obtaining the actual concentration value of the medium to be tested on the circulation pipeline, which can be obtained according to the test plan or test data, and then calculating the difference between the concentration optimization value and the actual concentration value, and generating the cleanliness level of the light-transmitting window on the circulation pipeline in the current medium environment according to the range of the difference.

[0037] In another specific embodiment, the cleanliness of the light-transmitting window can also be obtained according to the image recognition method. In this embodiment, the light-transmitting window includes a first window near the light source end and a second window near the detection end, and the specific steps include:

[0038] Collecting a pollution image of the first window and / or the second window;

[0039] A pre-trained neural network model, such as a CNN neural network model, is used to obtain the contaminated area of ​​the contaminated image. At the same time, the contaminated image is converted into a grayscale histogram to obtain the maximum grayscale value of the pixel points corresponding to the contaminated area. The maximum grayscale value can represent the concentration of oil stains on the translucent window. The larger the grayscale value, the darker the color of the oil stains and the greater the concentration of oil in the water.

[0040] Finally, the cleanliness level of the first window and / or the second window is generated according to the area of ​​the polluted region and the maximum grayscale value of the pixel points corresponding to the area of ​​the polluted region. Specifically, a pre-established cleanliness level table can be queried. The steps of establishing and querying the cleanliness level table are described in the prior art solution and will not be described in detail here.

[0041] It can be understood that in one embodiment, the current test scenario of the oil-in-water sensor is obtained, and a preset parameter adjustment scheme or a preset window decontamination scheme is adopted in combination with the cleanliness level of the light-transmitting window, specifically:

[0042] S201, obtaining a current test scenario of the oil-in-water sensor;

[0043] S202, if the current test scenario is that the oil type changes from light oil to heavy oil, adopting the preset parameter adjustment scheme;

[0044] If the current test scenario is that the oil type changes from heavy oil to light oil, the preset window decontamination solution is adopted;

[0045] If the current test scenario is that the oil type remains unchanged and the oil concentration gradually decreases, then when the cleanliness level of the light-transmitting window is lower than the corresponding first preset value, the preset window decontamination solution is adopted;

[0046] If the current test scenario is that the oil type remains unchanged and the oil concentration gradually increases, then when the cleanliness level of the light-transmitting window is lower than the corresponding second preset value, the preset window decontamination solution is adopted.

[0047] It is understandable that in some application scenarios, such as heavy oil scenarios, a large amount of oil remains on the window during the test process, which seriously affects the light transmittance. At this time, even if the use parameters are adjusted, it may still cause the oil in water sensor to fail, that is, no detection results can be obtained, or the value of the detection result is abnormal. At this time, different cleaning solutions are needed to clean the window. In some other application scenarios, although the detection value cannot be obtained under the current use parameters, by adjusting parameters, such as the intensity, voltage and optical path of the incident light, the detection value can be obtained within the range of the oil in water sensor. Although the detection accuracy is reduced at this time, it can still be applied to a large number of scenarios where there are no precise requirements for detection accuracy. At this time, there is no need for cleaning, and it can continue to be used after adjusting the use parameters, thereby reducing the number of cleaning times and improving the detection efficiency and the service life of the oil in water sensor.

[0048] In a specific embodiment, the use parameters of the oil-in-water sensor are adjusted according to the cleanliness level, specifically:

[0049] Query the preset mapping table to obtain the first parameter range corresponding to the heavy oil type;

[0050] Obtaining a target parameter range from the first parameter range according to the cleanliness level of the light-transmitting window;

[0051] The current use parameters of the oil-in-water sensor are adjusted to the target parameter range, so as to obtain a detection result within the oil-in-water range and with an accuracy that meets the scene requirements.

[0052] In a specific embodiment, the oil-in-water sensor may also be connected to a heating device, which is used to heat the medium to be tested in the circulation pipeline, thereby accelerating the fluidity of the medium to be tested and improving the accuracy of the oil-in-water detection concentration. In this case, the use parameters include any one or more of the heating temperature of the heating device, the optical path of the circulation pipeline, the transmittance of the filter in the detection end, and the wavelength and light intensity of the incident light emitted by the light source end.

[0053] In a preferred embodiment, at least one preset decontamination method is used to decontaminate the light-transmitting window, specifically:

[0054] Get the temperature of the medium to be measured in the current medium environment;

[0055] When the temperature of the medium to be tested is lower than the preset temperature corresponding to the target oil type, the steam decontamination solution is adopted, otherwise the wiping decontamination solution or the pneumatic flushing solution is adopted;

[0056] The steam decontamination scheme is: the oil-in-water sensor is connected to a steam cleaning device to clean the first window and / or the second window by external steam;

[0057] The wiping and decontamination scheme is as follows: a reciprocating wiping mechanism is provided in the circulation pipe of the oil-in-water sensor, and the first window and / or the second window are cleaned by the reciprocating wiping mechanism;

[0058] The pneumatic flushing solution is: the oil-in-water sensor is connected to a pneumatic flushing device, and the pneumatic flushing device converts the water in the external water storage mechanism into a flushing water flow to flush the first window and / or the second window.

[0059] In a more preferred embodiment, the step of removing dirt from the light-transmitting window by using at least one preset decontamination method further comprises:

[0060] After the first window and / or the second window are cleaned using the wiping and decontamination scheme, the concentration detection value of the medium to be tested is generated again using the current usage parameters. If the change amplitude of the concentration detection value is less than the preset value, the pneumatic flushing scheme is used to clean the first window and / or the second window for a second time.

[0061] It is understandable that the above-mentioned different decontamination schemes have different decontamination effects and can be used separately or in combination in different scenarios. When steam cleaning is used, an external medium is required, and there is a flow of medium during the cleaning process to wash away impurities. The wiping decontamination scheme requires regular maintenance. The reciprocating motion of the cleaning brush can drive the water flow to automatically clean the window, reduce manual maintenance, and eliminate the impact of dirt on measurement. The third scheme is the best for use during the test, and the cost is relatively high.

[0062] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0063] Figure 2 It is a cross-sectional view of the self-cleaning optical oil-in-water sensor provided in Example 2, wherein the self-cleaning optical oil-in-water sensor comprises at least a parameter adjustment module, a first data processing module and a decontamination module, wherein the first data processing module is used to receive a control instruction generated according to the above self-cleaning method, and it is understandable that the control instruction can be generated by an external data processing module, such as a controller, to execute the self-cleaning method described in the above embodiment or to execute other similar schemes, so that the external data processing module and the self-cleaning optical oil-in-water sensor of this embodiment can constitute a complete self-cleaning device. Then the first data processing module drives the parameter adjustment module to execute the preset parameter adjustment scheme or drives the decontamination module to execute the preset window decontamination scheme through the control instruction.

[0064] In another embodiment, if Figure 3 The self-cleaning optical oil-in-water sensor includes at least a parameter adjustment module 10, a second data processing module 20 and a decontamination module 30. The second data processing module 20 is used to execute the above self-cleaning method and generate control instructions. The control instructions are used to drive the parameter adjustment module 10 to execute the preset parameter adjustment scheme or to drive the decontamination module 30 to execute the preset window decontamination scheme.

[0065] It can be understood that the second data processing module 20 includes a detection module 21 and a control module 22.

[0066] The detection module 21 is used to generate the cleanliness level of the light-transmitting window on the circulation pipeline in the current medium environment;

[0067] The control module 22 is used to obtain the current test scene of the oil-in-water sensor, and drive the parameter adjustment module 10 or the decontamination module 30 in combination with the cleanliness level of the light-transmitting window;

[0068] The parameter adjustment module 10 is used to adjust the use parameters of the oil-in-water sensor according to the cleanliness level;

[0069] The decontamination module 30 is used to decontaminate the light-transmitting window by using at least one preset decontamination method.

[0070] The above embodiment provides a self-cleaning optical oil-in-water sensor. During testing, especially automatic testing, corresponding parameter adjustment schemes or window decontamination schemes can be adopted according to different test scenarios and the cleanliness of the light-transmitting window. At the same time, decontamination data and test data are automatically recorded and analyzed. This not only reduces the need for manual intervention and improves test efficiency, but also enables the oil-in-water sensor to operate within the full range by adjusting its parameters, obtains full-range test results, and improves the actual application effect of the oil-in-water sensor.

[0071] In a preferred embodiment, the detection module 21 specifically includes:

[0072] A collection unit, used to collect the current concentration detection value of the self-cleaning optical oil-in-water sensor;

[0073] A calculation unit, used for collecting the oil type corresponding to the current medium environment, and obtaining the concentration measurement deviation of the oil type based on the use parameter under a completely clean light-transmitting window;

[0074] A correction unit, used to correct the current concentration detection value by using the concentration measurement deviation to generate a concentration optimization value;

[0075] The grade generating unit is used to obtain the actual concentration value of the medium to be measured on the circulation pipeline, calculate the difference between the concentration optimization value and the actual concentration value, and generate the cleanliness grade of the light-transmitting window on the circulation pipeline in the current medium environment according to the range of the difference.

[0076] In a preferred embodiment, the control module 22 specifically includes:

[0077] an acquisition unit, configured to acquire a current test scenario of the self-cleaning optical oil-in-water sensor;

[0078] A control unit, for driving the parameter adjustment module 10 to execute the preset parameter adjustment scheme if the current test scenario is that the oil type changes from light oil to heavy oil; for driving the decontamination module 30 to execute the preset window decontamination scheme if the current test scenario is that the oil type changes from heavy oil to light oil; for driving the decontamination module 30 to execute the preset window decontamination scheme if the current test scenario is that the oil type remains unchanged and the oil concentration gradually decreases, then when the cleanliness level of the light-transmitting window is lower than the corresponding first preset value, the decontamination module 30 is driven to execute the preset window decontamination scheme; and for driving the decontamination module 30 to execute the preset window decontamination scheme if the current test scenario is that the oil type remains unchanged and the oil concentration gradually increases, then when the cleanliness level of the light-transmitting window is lower than the corresponding second preset value.

[0079] In a preferred embodiment, the parameter adjustment module 10 is also used to query a preset mapping table to obtain a first parameter range corresponding to the oil type being heavy oil, and obtain a target parameter range from the first parameter range according to the cleanliness level of the light-transmitting window; and adjust the use parameters of the oil-in-water sensor to the target parameter range.

[0080] In a preferred embodiment, the decontamination module 30 is specifically used to obtain the temperature of the medium to be measured in the current medium environment; when the temperature of the medium to be measured is lower than the preset temperature corresponding to the target oil type, a steam decontamination solution is adopted, otherwise a wiping decontamination solution or a pneumatic flushing solution is adopted.

[0081] In a preferred embodiment, the decontamination module 30 is also used to regenerate the concentration detection value of the medium to be tested using the current usage parameters after the first window and / or the second window are cleaned using the wiping decontamination scheme. If the change amplitude of the concentration detection value is less than a preset value, the pneumatic flushing scheme is used to perform a secondary cleaning on the first window and / or the second window.

[0082] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the self-cleaning method of the oil-in-water sensor described above is implemented.

[0083] It is understandable that the so-called data processing module may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) 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 also be any conventional processor, etc.

[0084] The computer-readable storage medium (hereinafter referred to as the readable storage medium) can be the internal storage unit of the self-cleaning optical oil-in-water sensor, such as the hard disk or memory of the oil-in-water sensor. The readable storage medium can also be an external storage device of the oil-in-water sensor, such as a plug-in hard disk equipped on the oil-in-water sensor, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. Further, the readable storage medium can also include both the internal storage unit of the oil-in-water sensor and an external storage device. The readable storage medium is used to store the computer program and other programs and data required by the oil-in-water sensor. The readable storage medium can also be used to temporarily store data that has been output or is to be output.

[0085] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0086] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0087] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0088] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0089] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0090] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0091] The present invention is not limited to what is described in the specification and implementation modes, and therefore additional advantages and modifications can be easily realized by those skilled in the art. Therefore, without departing from the spirit and scope of the general concept defined by the claims and their equivalents, the present invention is not limited to the specific details, representative devices, and illustrative examples shown and described herein.

Claims

1. A self-cleaning method for an oil-in-water sensor, characterized in that: The oil-in-water sensor comprises a circulation pipeline and a light source end and a detection end arranged on both sides of the circulation pipeline, and light-transmitting windows are respectively arranged on the circulation pipeline near the light source end and the detection end. The method comprises the following steps: Step 1, generating the cleanliness level of the light-transmitting window on the circulation pipeline in the current medium environment; Step 2, obtaining the current test scene of the oil-in-water sensor, and adopting a preset parameter adjustment scheme or a preset window decontamination scheme in combination with the cleanliness level of the light-transmitting window; The preset parameter adjustment scheme is: do not remove dirt temporarily, and adjust the use parameters of the oil-in-water sensor according to the cleanliness level; The preset window decontamination scheme is: using at least one preset decontamination method to decontaminate the light-transmitting window and then continuing the testing process.

2. The self-cleaning method of the oil-in-water sensor according to claim 1, characterized in that: Generate the cleanliness level of the light-transmitting window on the circulation pipeline in the current medium environment, specifically: Collecting the current concentration detection value of the oil-in-water sensor; Collecting the oil type corresponding to the current medium environment, and obtaining the concentration measurement deviation of the oil type based on the use parameters under a completely clean light-transmitting window; The concentration measurement deviation is used to correct the current concentration detection value to generate a concentration optimization value; The actual concentration value of the medium to be measured on the circulation pipeline is obtained, the difference between the concentration optimization value and the actual concentration value is calculated, and the cleanliness level of the light-transmitting window on the circulation pipeline in the current medium environment is generated according to the range of the difference.

3. The self-cleaning method of the oil-in-water sensor according to claim 1, characterized in that: The current test scenario of the oil-in-water sensor is obtained, and a preset parameter adjustment scheme or a preset window decontamination scheme is adopted in combination with the cleanliness level of the light-transmitting window, specifically: Obtaining a current test scenario of the oil-in-water sensor; If the current test scenario is that the oil type changes from light oil to heavy oil, the preset parameter adjustment scheme is adopted; If the current test scenario is that the oil type changes from heavy oil to light oil, the preset window decontamination solution is adopted; If the current test scenario is that the oil type remains unchanged and the oil concentration gradually decreases, then when the cleanliness level of the light-transmitting window is lower than the corresponding first preset value, the preset window decontamination solution is adopted; If the current test scenario is that the oil type remains unchanged and the oil concentration gradually increases, then when the cleanliness level of the light-transmitting window is lower than the corresponding second preset value, the preset window decontamination solution is adopted.

4. The self-cleaning method of the oil-in-water sensor according to any one of claims 1 to 3, characterized in that: The use parameters of the oil-in-water sensor are adjusted according to the cleanliness level, specifically: Query the preset mapping table to obtain the first parameter range corresponding to the heavy oil type; Obtaining a target parameter range from the first parameter range according to the cleanliness level of the light-transmitting window; The operating parameters of the oil-in-water sensor are adjusted to the target parameter range.

5. The self-cleaning method of the oil-in-water sensor according to claim 4, characterized in that: The oil-in-water sensor is connected to a heating device, which is used to heat the medium to be measured in the circulation pipeline. The usage parameters include any one or more of the heating temperature of the heating device, the optical path of the circulation pipeline, the transmittance of the filter in the detection end, and the wavelength and light intensity of the incident light emitted by the light source end.

6. The self-cleaning method of oil-in-water sensor according to claim 5, characterized in that: The light-transmitting window includes a first window near the light source end and a second window near the detection end, and the light-transmitting window is decontaminated by at least one preset decontamination method, specifically: Get the temperature of the medium to be measured in the current medium environment; When the temperature of the medium to be tested is lower than the preset temperature corresponding to the target oil type, the steam decontamination solution is adopted, otherwise the wiping decontamination solution or the pneumatic flushing solution is adopted; The steam decontamination scheme is: the oil-in-water sensor is connected to a steam cleaning device to clean the first window and / or the second window by external steam; The wiping and decontamination scheme is as follows: a reciprocating wiping mechanism is provided in the circulation pipe of the oil-in-water sensor, and the first window and / or the second window are cleaned by the reciprocating wiping mechanism; The pneumatic flushing solution is: the oil-in-water sensor is connected to a pneumatic flushing device, and the pneumatic flushing device converts the water in the external water storage mechanism into a flushing water flow to flush the first window and / or the second window.

7. The self-cleaning method of oil-in-water sensor according to claim 6, characterized in that: The step of using at least one preset decontamination method to decontaminate the light-transmitting window further includes: After the first window and / or the second window are cleaned using the wiping and decontamination scheme, the concentration detection value of the medium to be tested is generated again using the current usage parameters. If the change amplitude of the concentration detection value is less than the preset value, the pneumatic flushing scheme is used to clean the first window and / or the second window for a second time.

8. A self-cleaning optical oil-in-water sensor, characterized in that: The self-cleaning optical oil-in-water sensor comprises a circulation pipeline and a light source end and a detection end arranged on both sides of the circulation pipeline, and a light-transmitting window is respectively arranged on the circulation pipeline near the light source end and the detection end; The self-cleaning optical oil-in-water sensor includes at least a parameter adjustment module, a first data processing module and a decontamination module, wherein the first data processing module is used to receive a control instruction generated by any of the self-cleaning methods according to claims 1-7, and the control instruction is used to drive the parameter adjustment module to execute the preset parameter adjustment scheme or to drive the decontamination module to execute the preset window decontamination scheme.

9. A self-cleaning optical oil-in-water sensor, characterized in that: The self-cleaning optical oil-in-water sensor comprises a circulation pipeline and a light source end and a detection end arranged on both sides of the circulation pipeline, and light-transmitting windows are respectively arranged on the circulation pipeline near the light source end and the detection end; The self-cleaning optical oil-in-water sensor includes at least a parameter adjustment module, a second data processing module and a decontamination module, wherein the second data processing module is used to execute the self-cleaning method described in any one of claims 1 to 7 and generate control instructions, and the control instructions are used to drive the parameter adjustment module to execute the preset parameter adjustment scheme or to drive the decontamination module to execute the preset window decontamination scheme.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the self-cleaning method of the oil-in-water sensor according to any one of claims 1 to 7 is implemented.