Method and device for detecting oil stain content of oil collecting cup
Through the integrated stove oil pollution detection method, image acquisition, ultrasonic and capacitive sensors combined with environmental data, real-time, non-contact detection and automatic cleaning of oil pollution in the oil collection cup is achieved, solving the problems of detection errors and user manual cleaning in the existing technology, and improving detection accuracy and user experience.
Patent Information
- Application Number
- CN202510232468.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-07-18
AI Technical Summary
The existing integrated stove oil pollution detection methods rely on the working mode and usage time, which are prone to errors due to inaccurate data, lack of redundancy mechanisms, and only remind users to clean up manually when there is too much oil pollution, which affects the user experience.
The image acquisition device, ultrasonic sensor and capacitive sensor are used to combine environmental parameter sensors to accurately calculate the oil and pollution content through the fusion and correction of multiple sensor data, and introduce self-cleaning and oil-water separation functions.
It improves the accuracy and reliability of oil pollution detection, reduces errors, realizes automatic cleaning of oil-collecting cups, reduces user maintenance workload, and improves user experience.
Smart Images

Figure CN120339165A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent household appliances, and in particular, to a method and device for detecting the oil stain content of an oil collecting cup. Background Art
[0002] Currently, the methods for detecting the oil volume in the oil collecting cup of integrated stoves on the market mainly rely on the working mode and usage duration of the integrated stove to estimate the amount of oil stains. When these systems are working, they obtain the working mode and usage duration of the integrated stove, estimate the amount of oil stains generated by the current work based on these data, and combine the previously stored oil stain amount in the oil collecting cup to calculate the real-time oil stain amount in the oil collecting cup. When the amount of oil stains is too much, the user is reminded to clean it.
[0003] However, this method highly depends on the accurate acquisition of the working mode and usage duration of the integrated stove. If these data are inaccurate, there will be errors in the detection results of the amount of oil stains. Moreover, this method only relies on indirect calculation of the amount of oil stains, and it is easy to cause inaccurate detection due to unexpected situations (such as improper user operation, integrated stove failure, etc.), lacking a redundancy mechanism for multiple detection means. At the same time, the current system can only remind the user to manually clean when the amount of oil stains is too much, increasing the user's maintenance workload and affecting the user experience. Summary of the Invention
[0004] The present application provides a method and device for detecting the oil stain content of an oil collecting cup, which can improve the accuracy of oil stain content detection and ensure the precision of oil stain amount detection.
[0005] On the one hand, the present application provides a method for detecting the oil stain content of an oil collecting cup, and the method includes:
[0006] Determine the first oil stain volume data according to the image acquisition device arranged outside the oil collecting cup;
[0007] Determine the second oil stain volume data according to the ultrasonic sensor arranged at the top of the oil collecting cup;
[0008] Determine the third oil stain volume data according to the capacitance sensor arranged on the outer wall of the oil collecting cup;
[0009] Determine the oil stain volume data according to the first oil stain volume data, the second oil stain volume data and the third oil stain volume data;
[0010] Obtain the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor;
[0011] Correct the oil stain volume data according to the environmental data to obtain the target oil stain content value of the oil collecting cup.
[0012] In an exemplary embodiment, determining the first oil stain volume data based on an image acquisition device disposed outside the oil collecting cup includes:
[0013] Obtaining an oil stain image inside the oil collecting cup acquired by the image acquisition device;
[0014] Performing oil stain edge extraction processing on the oil stain image to obtain an oil stain edge image recognition result;
[0015] Determining a target oil stain area of the oil stain image according to the oil stain edge image recognition result;
[0016] Determining initial oil stain volume data corresponding to the oil collecting cup according to the target oil stain area;
[0017] Performing data processing on the initial oil stain volume data by using a first preset algorithm to obtain the first oil stain volume data.
[0018] In an exemplary embodiment, determining the second oil stain volume data based on an ultrasonic sensor disposed on the top of the oil collecting cup includes:
[0019] Obtaining an oil stain height value of the oil stain in the oil collecting cup measured by the ultrasonic sensor;
[0020] Performing data processing on the oil stain height value by using a second preset algorithm to obtain a target oil stain height value;
[0021] Determining the second oil stain volume data according to the target oil stain height value.
[0022] In an exemplary embodiment, determining the third oil stain volume data based on a capacitance sensor disposed on the outer wall of the oil collecting cup includes:
[0023] Obtaining an oil stain capacitance change value of the oil stain in the oil collecting cup measured by the capacitance sensor;
[0024] Determining the third oil stain volume data according to the oil stain capacitance change value.
[0025] In an exemplary embodiment, correcting the oil stain volume data according to the environmental data to obtain a target oil stain content value of the oil collecting cup includes:
[0026] Determining a current temperature value of the environment where the oil collecting cup is located and a current humidity value of the environment where the oil collecting cup is located according to the environmental data;
[0027] Determining current oil stain data according to the oil stain volume data, the current temperature value, and the current humidity value;
[0028] Input the current oil pollution data into the oil pollution content correction model for data processing to obtain the target oil pollution content value;
[0029] The training method of the oil pollution content correction model includes:
[0030] Obtain sample oil pollution data; the sample oil pollution data is labeled with sample oil pollution content labels;
[0031] Based on a preset model, perform data processing on the sample oil pollution data to obtain the sample oil pollution content result of the sample oil pollution data;
[0032] Train the preset model according to the difference between the sample oil pollution content result and the sample oil pollution content label to obtain the oil pollution content correction model.
[0033] In an exemplary embodiment, after obtaining the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor, the method further includes:
[0034] Determine the current liquid level value of the oil collecting cup according to the environmental data;
[0035] If the current liquid level value is greater than or equal to the first preset liquid level threshold, control the electric pump to start to drain the oil pollution, and obtain the current working duration of the electric pump;
[0036] If the current working duration is greater than or equal to the preset working duration threshold, control the electric pump to stop working.
[0037] In an exemplary embodiment, after obtaining the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor, the method further includes:
[0038] Determine the current pollution value of the pollutants in the oil collecting cup according to the environmental data;
[0039] If the current pollution value is greater than or equal to the first preset pollution threshold, control the electric pump to start to allow the cleaning liquid to enter the spraying device;
[0040] Control the spraying device to start and spray the cleaning liquid onto the oil collecting cup;
[0041] Control the heating device to start to heat the cleaning liquid, and obtain the current temperature value of the oil collecting cup;
[0042] If the current temperature value is greater than or equal to the preset temperature threshold, control the heating device to stop working.
[0043] In an exemplary embodiment, after determining the current liquid level value of the oil collecting cup according to the environmental data, the method further includes:
[0044] If the current liquid level value is greater than or equal to a second preset liquid level threshold, generate a liquid level warning message; the second preset liquid level threshold is greater than or equal to the first preset liquid level threshold;
[0045] Send the liquid level warning message to a target terminal so that the target terminal displays the liquid level warning message; the target terminal is the terminal corresponding to the user of the oil collecting cup.
[0046] In an exemplary embodiment, after determining the current pollution value of the pollutants in the oil collecting cup according to the environmental data, the method further includes:
[0047] If the current pollution value is greater than or equal to a second preset pollution threshold, generate a pollution warning message; the second preset pollution threshold is greater than or equal to the first preset pollution threshold;
[0048] Send the pollution warning message to the target terminal so that the target terminal displays the pollution warning message.
[0049] On the other hand, there is provided an oil content detection device for an oil collecting cup, the device including:
[0050] A first oil volume data module, configured to determine first oil volume data according to an image acquisition device arranged outside the oil collecting cup;
[0051] A second oil volume data module, configured to determine second oil volume data according to an ultrasonic sensor arranged at the top of the oil collecting cup;
[0052] A third oil volume data module, configured to determine third oil volume data according to a capacitance sensor arranged on the outer wall of the oil collecting cup;
[0053] An oil volume data module, configured to determine oil volume data according to the first oil volume data, the second oil volume data, and the third oil volume data;
[0054] An environmental data module, configured to obtain environmental data of the environment where the oil collecting cup is located collected by an environmental parameter sensor;
[0055] A target oil content value module, configured to correct the oil volume data according to the environmental data to obtain the target oil content value of the oil collecting cup.
[0056] On the other hand, there is provided an electronic device, the device including a processor and a memory, and at least one instruction or at least one program segment is stored in the memory, and the at least one instruction or the at least one program segment is loaded and executed by the processor to perform the oil content detection method of the oil collecting cup as described above.
[0057] On the other hand, a computer-readable storage medium is provided, in which at least one instruction or at least one program segment is stored, and the at least one instruction or at least one program segment is loaded and executed by a processor to implement the method for detecting the oil stain content of the oil collecting cup as described above.
[0058] On the other hand, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the method for detecting the oil stain content of the oil collecting cup as described above.
[0059] The method and device for detecting the oil stain content of the oil collecting cup provided by this application have the following technical effects:
[0060] This application determines the first oil stain volume data according to the image acquisition device arranged outside the oil collecting cup; determines the second oil stain volume data according to the ultrasonic sensor arranged at the top of the oil collecting cup; determines the third oil stain volume data according to the capacitance sensor arranged on the outer wall of the oil collecting cup; determines the oil stain volume data according to the first oil stain volume data, the second oil stain volume data and the third oil stain volume data; obtains the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor; corrects the oil stain volume data according to the environmental data to obtain the target oil stain content value of the oil collecting cup. This application respectively collects the oil stain volume data of the oil collecting cup through the image acquisition device, the ultrasonic sensor and the capacitance sensor, and collects the environmental data through the environmental parameter sensor; finally, corrects the oil stain volume data according to the environmental data to obtain the corrected target oil stain content value, improves the accuracy of the oil stain content detection, reduces the error caused by relying on indirect data calculation, introduces a variety of oil stain content detection means, and ensures the accuracy of the oil stain amount detection. Description of the Drawings
[0061] In order to more clearly illustrate the technical solutions and advantages in the embodiments of this specification or the prior art, the following will briefly introduce the drawings required to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to these drawings.
[0062] Figure 1 It is a schematic flowchart of a method for detecting the oil stain content of an oil collecting cup provided by an embodiment of this specification;
[0063] Figure 2It is a schematic flow chart of a method for detecting the oil stain content of an oil collecting cup provided by an embodiment of this specification;
[0064] Figure 3 It is a schematic flow chart of a method for detecting the oil stain content of an oil collecting cup provided by an embodiment of this specification;
[0065] Figure 4 It is a schematic flow chart of a method for detecting the oil stain content of an oil collecting cup provided by an embodiment of this specification;
[0066] Figure 5 It is a schematic flow chart of a method for detecting the oil stain content of an oil collecting cup provided by an embodiment of this specification;
[0067] Figure 6 It is a schematic flow chart of a method for detecting the oil stain content of an oil collecting cup provided by an embodiment of this specification;
[0068] Figure 7 It is a schematic flow chart of a method for detecting the oil stain content of an oil collecting cup provided by an embodiment of this specification;
[0069] Figure 8 It is a schematic structural diagram of an oil stain content detection system for an oil collecting cup provided by an embodiment of this specification;
[0070] Figure 9 It is a schematic structural diagram of an oil stain content detection device for an oil collecting cup provided by an embodiment of this specification;
[0071] Figure 10 It is a schematic structural diagram of a server for an oil stain content detection method of an oil collecting cup provided by an embodiment of this specification; Specific embodiments
[0072] Next, the technical solutions in the embodiments of this specification will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts shall fall within the scope of protection of this application.
[0073] It should be noted that the terms "first", "second", etc. in the specification, claims and above-mentioned drawings of this application are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or server that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0074] The following introduces a method for detecting the oil stain content of an oil collecting cup in this application. Figure 1 It is a schematic flowchart of a method for detecting the oil stain content of an oil collecting cup provided by an embodiment of this specification. This specification provides the method operation steps as described in the embodiment or flowchart, but based on routine or non-creative labor, it may include more or fewer operation steps. The order of steps listed in the embodiment is only one way among the execution orders of numerous steps, and does not represent the only execution order. When the actual system or server product executes, it can be executed in the order of the method shown in the embodiment or the drawing, or executed in parallel (for example, in an environment of parallel processors or multi-threaded processing). Specifically, as Figure 1 shown, the method can be applied to the control unit in the oil collecting cup, and the method includes:
[0075] S101: Determine the first oil stain volume data according to the image acquisition device arranged outside the oil collecting cup.
[0076] In the embodiment of this specification, the determining the first oil stain volume data according to the image acquisition device arranged outside the oil collecting cup, as Figure 2 shown, Figure 2 is a schematic flowchart of a method for detecting the oil stain content of an oil collecting cup provided by an embodiment of this specification, including:
[0077] S201: Obtain the oil stain image inside the oil collecting cup collected by the image acquisition device;
[0078] In the embodiments of this specification, the image acquisition device may be a high-resolution industrial camera equipped with a high-performance embedded processor. The model of the high-performance embedded processor may be NVIDIA Jetson Xavier NX, and the model of the high-resolution industrial camera may be HRC-5000. The camera can be installed on the top or side of the oil collecting cup to ensure that the entire interior of the oil collecting cup is covered. Moreover, the camera works in coordination with the light source to avoid the influence of light and shadow and reflection on the image quality. The light source may be an LED ring light of model LG-100R, which is used to provide uniform illumination. The camera acquires the oil stain images inside the oil collecting cup at fixed time intervals, and the time interval can be set according to the actual situation. Exemplarily, it can be set to 1 minute, and the camera acquires the images inside the oil collecting cup every 1 minute.
[0079] S202: Perform oil stain edge extraction processing on the oil stain images to obtain the oil stain edge image recognition result;
[0080] In the embodiments of this specification, first, preprocess the oil stain images, convert the oil stain images into grayscale images, and perform noise filtering and edge enhancement processing. Exemplarily, the formula for preprocessing can be
[0081] I gray = 0.299·R + 0.587·G + 0.114·B
[0082] where, I gray is the grayscale image; R, G, and B are the red, green, and blue channels of the original image respectively.
[0083] Secondly, extract the oil stain edges through an edge detection algorithm. Exemplarily, the Canny edge detection algorithm can be used. In the first step, remove the image noise through Gaussian filtering. The filter kernel size is 5×5, and the Gaussian filtering formula is
[0084]
[0085] where, G(x, y) is the Gaussian filter; σ is the standard deviation; x and y are pixel coordinates.
[0086] In the second step, use the Sobel operator to calculate the image gradient. The formula for calculating the gradient is
[0087]
[0088] where, G x and G y are the horizontal and vertical gradients respectively; * represents the convolution operation; I is the image.
[0089] The third step is to refine the edges. For each pixel, check whether it is a local maximum along the gradient direction, and if not, suppress it to 0. The non-maximum suppression formula is
[0090]
[0091] where i represents the horizontal direction; j represents the vertical direction; G(i,j) represents the gradient value along the i horizontal direction and j vertical direction.
[0092] The fourth step is to detect and connect the edges. Set two thresholds T low and T high . If the gradient magnitude of a pixel is greater than T high , it is marked as a strong edge. If the gradient magnitude is between T low and T high and it is connected to a strong edge, it is marked as a weak edge. The double-threshold detection formula is
[0093]
[0094] where E(i,j) represents the edge detection result.
[0095] According to the detected edge detection result, obtain the recognition result of the oil spill edge image.
[0096] S203: According to the recognition result of the oil spill edge image, determine the target oil spill area of the oil spill image.
[0097] In the embodiments of this specification, according to the obtained recognition result of the oil spill edge image, identify the oil spill area. Exemplarily, the oil spill area can be segmented first using the threshold segmentation method. The threshold T can be adaptively calculated by the Otus algorithm. The calculation formula of the threshold T is
[0098]
[0099] where is the between-class variance; τ is the threshold.
[0100] Then, mark and count the segmented oil spill area, and thus determine the target oil spill area of the oil spill area.
[0101] S204: According to the target oil spill area, determine the initial oil spill volume data corresponding to the oil collecting cup.
[0102] In the embodiments of this specification, assuming that the oil spill forms a thin layer at the bottom of the oil collecting cup, the oil spill volume can be calculated using the area and thickness of the oil spill area. First, calculate the area of the oil spill area. The formula is
[0103]
[0104] Among them, A is the area of the oil pollution area; p i is the pixel area; N is the total number of oil pollution pixels.
[0105] Next, calculate the thickness of the oil pollution area; the thickness value of the oil pollution area can be obtained through experimental calibration. Assuming the thickness is uniform, the volume calculation formula is
[0106] V = A·h
[0107] Among them, V is the oil pollution volume, and h is the oil pollution thickness.
[0108] Thus, the initial oil pollution volume data is obtained.
[0109] S205: Process the initial oil pollution volume data by using a first preset algorithm to obtain the first oil pollution volume data.
[0110] In the embodiments of this specification, the first preset algorithm can be an oil pollution volume model; first, train a preset model through historical data to obtain an oil pollution volume model. The oil pollution volume model can be expressed by a formula. Exemplarily, it can be
[0111]
[0112] Among them, V(t) is the oil pollution volume; V0 is the initial oil pollution volume; r(t) is the oil pollution generation rate function.
[0113] Secondly, obtain real-time data acquired from a camera and sensors. The sensors can include, but are not limited to, a temperature sensor and a humidity sensor. Correct the oil pollution generation rate through the temperature value collected from the temperature sensor and the humidity value collected from the humidity sensor. The corrected oil pollution generation rate formula is
[0114] r′(t) = r(t)·α(T)·β(H)
[0115] Among them, r′(t) is the corrected oil pollution generation rate; α(T) is the temperature influence coefficient; β(H) is the humidity influence coefficient.
[0116] Finally, combine the initial oil pollution volume data and the corrected oil pollution generation rate for data fusion. The fused oil pollution volume is
[0117]
[0118] Among them, V fused (t) is the fused oil pollution volume; V vision (t) is the initial oil pollution volume data; λ is the fusion weight, and its value range is from 0 to 1.
[0119] Determine the first oil pollution volume data based on the fused oil pollution volume. And the weight λ can be dynamically adjusted according to the detection accuracy and actual situation. Exemplarily, when the initially detected oil pollution volume data is relatively reliable, increase the value of λ; when there is noise or occlusion in the initially detected oil pollution volume data, decrease the value of λ; during the detection process, the detected data can be transmitted to the cloud server in real time through Internet of Things technology for data storage and analysis. When the first oil pollution volume data detected exceeds the set threshold, remind the user to clean it through the APP or text message. By introducing machine vision technology and using a vision detection sensor, i.e., an image acquisition device, to collect the initially detected oil pollution volume data, real-time and non-contact detection of the oil pollution amount in the oil collecting cup is achieved, avoiding the problems of damage and failure caused by traditional sensors contacting the oil pollution; and using a deep learning algorithm to perform data correction and fusion on the initially detected oil pollution volume data to obtain the first oil pollution volume data, accurately identifying and calculating the oil pollution amount, improving the accuracy of the oil pollution amount detection in the oil collecting cup; through real-time monitoring of the first oil pollution volume data, real-time monitoring of the oil pollution amount and intelligent reminder are realized, reducing the user's maintenance workload and enhancing the user's experience and satisfaction.
[0120] S103: Determine the second oil pollution volume data according to the ultrasonic sensor arranged at the top of the oil collecting cup.
[0121] In the embodiment of this specification, the determining the second oil pollution volume data according to the ultrasonic sensor arranged at the top of the oil collecting cup is as Figure 3 shown Figure 3 is a schematic flowchart of a method for detecting the oil pollution content of an oil collecting cup provided by an embodiment of this specification, including:
[0122] S301: Obtain the oil pollution height value of the oil pollution in the oil collecting cup measured by the ultrasonic sensor.
[0123] In the embodiment of this specification, the ultrasonic sensor is installed at the top of the oil collecting cup and vertically measures the oil pollution height value of the oil pollution in the oil collecting cup. The model of the ultrasonic sensor can be set according to the actual situation. Exemplarily, it can be HC-SR04; first, the ultrasonic sensor emits an ultrasonic signal, the signal is reflected back when it encounters the oil pollution surface, the ultrasonic sensor receives the reflected signal, and calculates the oil pollution height value according to the time difference. The calculation formula of the oil pollution height value is
[0124]
[0125] where d is the oil pollution height; v is the ultrasonic propagation speed; t is the time difference between ultrasonic emission and reception.
[0126] S302: Perform data processing on the oil pollution height value by using a second preset algorithm to obtain a target oil pollution height value;
[0127] In the embodiments of the present specification, considering the influence of temperature on the ultrasonic propagation speed, it is necessary to correct the oil stain height value. The second preset algorithm can be a correction formula, and the correction formula is
[0128]
[0129] where d′ is the target oil stain height value; v(T) is the ultrasonic propagation speed at temperature T, and the formula is
[0130] v(T) = 331.4 + 0.6T
[0131] where T is the temperature, and the unit is degree Celsius.
[0132] Obtain the target oil stain height value according to the correction formula.
[0133] S303: Determine the second oil stain volume data according to the target oil stain height value.
[0134] In the embodiments of the present specification, assume that the bottom area of the oil collecting cup is A cup , and the second oil stain volume data can be obtained according to the target oil stain height value and the bottom area of the oil collecting cup. The oil stain volume calculation formula is
[0135] V ultrasound = A cup ·d′
[0136] where V ultrasound is the second oil stain volume data; A cup is the bottom area of the oil collecting cup.
[0137] Thus, the second oil stain volume data is determined. By introducing the ultrasonic sensor as a redundant detection means, the real-time and non-contact detection of the oil stain amount in the oil collecting cup is realized, and the reliability and accuracy of the detection are improved.
[0138] S105: Determine the third oil stain volume data according to the capacitance sensor arranged on the outer wall of the oil collecting cup.
[0139] In the embodiments of the present specification, the determining the third oil stain volume data according to the capacitance sensor arranged on the outer wall of the oil collecting cup includes:
[0140] Obtain the oil stain capacitance change value of the oil stain in the oil collecting cup measured by the capacitance sensor;
[0141] Determine the third oil stain volume data according to the oil stain capacitance change value.
[0142] In the embodiments of this specification, the capacitance sensor is installed on the outer wall of the oil collecting cup, so as to indirectly measure the capacitance change of the oil stain. The model of the capacitance sensor can be set according to the actual situation. Exemplarily, it can be CS1237. Since the change in the oil level in the oil collecting cup will cause the change in capacitance in the oil collecting cup, the height value of the oil stain is first estimated by measuring the capacitance value. The calculation formula for the capacitance change value of the oil stain is
[0143]
[0144] where C is the capacitance change value of the oil stain; ∈0 is the vacuum permittivity; ∈ r is the relative permittivity of the oil stain; A plates is the area of the capacitor plate; d is the distance between the capacitor plates.
[0145] Secondly, the calculation formula for the height of the oil stain is
[0146]
[0147] where d oil is the height value of the oil stain.
[0148] Finally, assuming that the bottom area of the oil collecting cup is A cup , the calculation formula for the volume of the oil stain is
[0149] V capacitive = A cup ·d oil
[0150] where V capacitive is the third oil stain volume data.
[0151] Thus, the third oil stain volume data is determined. By introducing the redundant detection means of the capacitance sensor, the real-time and non-contact detection of the oil stain amount in the oil collecting cup is realized, and the reliability and accuracy of the detection are improved.
[0152] S107: Determine the oil stain volume data according to the first oil stain volume data, the second oil stain volume data, and the third oil stain volume data.
[0153] In the embodiments of this specification, the oil stain volume data includes the first oil stain volume data V vision , the second oil stain volume data V ultrasound , and the third oil stain volume data V capacitive ; these three kinds of oil stain volume data can be fused to achieve weighted average. Among them, the weights are determined according to the reliability of the sensor and environmental factors. Assuming that the weights are w vision , w ultrasound , and w capacitive respectively, the weighted average formula is
[0154] V final = w vision ·V vision + w ultrasound ·V ultrasound + w capacitive ·V capacitive
[0155] Wherein, V final is the volume of oil stain after correction.
[0156] By smoothing the data through the weighted moving average method, noise and outliers are removed, data cleaning is achieved, the error of calculating depending on indirect data is reduced, and the accuracy and precision of the oil stain amount detection of the oil collecting cup are improved.
[0157] S109: Obtain the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor.
[0158] In the embodiments of the present specification, the environmental parameter sensor can be set according to the actual situation. Exemplarily, it can include but is not limited to a liquid level sensor, a temperature sensor, a pressure sensor, a humidity sensor, and a dirt detection sensor.
[0159] In the embodiments of the present specification, after obtaining the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor, as Figure 4 shown, Figure 4 is a schematic flowchart of a method for detecting the oil stain content of an oil collecting cup provided by the embodiments of the present specification. The method further includes:
[0160] S401: Determine the current liquid level value of the oil collecting cup according to the environmental data;
[0161] In the embodiments of the present specification, the main body of the oil collecting cup can be made of a highly heat-resistant and corrosion-resistant material, has a certain transparency for facilitating the observation of the internal situation, and the main body of the oil collecting cup is installed at the bottom of the integrated stove for facilitating the collection of oil stains; the environmental parameter sensor includes a liquid level sensor, and the environmental data includes the current liquid level value collected by the liquid level sensor; the model of the liquid level sensor can be set according to the actual situation. Exemplarily, it can be an ultrasonic liquid level sensor HC-SR04.
[0162] In the embodiments of the present specification, after determining the current liquid level value of the oil collecting cup according to the environmental data, the method further includes:
[0163] If the current liquid level value is greater than or equal to a second preset liquid level threshold, generate a liquid level warning message; the second preset liquid level threshold is greater than or equal to the first preset liquid level threshold;
[0164] Send the liquid level warning information to the target terminal so that the target terminal displays the liquid level warning information; the target terminal is the terminal corresponding to the user of the oil collecting cup.
[0165] In the embodiments of this specification, the second preset liquid level threshold can be set according to the actual situation. The second liquid level threshold is determined based on the excessively high liquid level value in the oil collecting cup, and the second preset liquid level threshold is greater than or equal to the first preset liquid level threshold; when the current liquid level value is greater than or equal to the second preset liquid level threshold, a liquid level warning information is generated, and the liquid level warning information is used to indicate that the liquid level of the oil stain in the current oil collecting cup is too high. The target terminal can indicate the integrated stove corresponding to the target terminal through the identifier of the target terminal; send a liquid level warning message to the target terminal, the target terminal displays the liquid level warning information, and determine the target integrated stove corresponding to the target terminal identifier through the target terminal identifier corresponding to the target terminal.
[0166] S402: If the current liquid level value is greater than or equal to the first preset liquid level threshold, control the electric pump to start to drain the oil stain, and obtain the current working duration of the electric pump;
[0167] In the embodiments of this specification, the first preset liquid level threshold can be set according to the actual situation. Assume that the first preset liquid level threshold is a, then when the current liquid level value is greater than or equal to a, control the electric pump to start to drain the oil stain; the electric pump is electrically connected to the embedded controller. Exemplarily, the controller model can be Arduino Uno, which is used to control the oil-water separation and self-cleaning process; the oil stain is first separated by the oil-water separation device. After the electric pump is started, the upper layer of oil stain is drained first, and then the lower layer of water is drained. The oil-water separation device is arranged inside the bottom of the oil collecting cup to ensure the effective separation of the oil stain and water in the oil collecting cup; the oil-water separation device includes a separation filter screen and a drain pipe; by utilizing the density difference between oil and water, the oil-water separation is realized through the separation filter screen. The oil stain floats on the upper layer and is drained through the drain pipe, and the water sinks to the lower layer and is drained through the drain pipe; among them, the separation filter screen is made of a hydrophilic and oleophobic material to ensure an efficient separation effect.
[0168] S403: If the current working duration is greater than or equal to the preset working duration threshold, control the electric pump to stop working.
[0169] In the embodiments of this specification, the preset working duration threshold is determined based on the liquid level value measured by the liquid level sensor. When the current working duration is greater than or equal to the preset working duration threshold, at this time the oil stain has been drained, and control the electric pump to stop working.
[0170] In the embodiments of this specification, after obtaining the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor, as Figure 5 shown, Figure 5It is a schematic flowchart of a method for detecting the oil stain content of an oil collecting cup provided by an embodiment of this specification. The method further includes:
[0171] S501: Determine the current pollution value of the pollutants in the oil collecting cup according to the environmental data.
[0172] In an embodiment of this specification, the environmental parameter sensor includes a dirt detection sensor, and the environmental data includes the current pollution value collected by the dirt detection sensor; the model of the dirt detection sensor can be set according to actual situations. Exemplarily, an optoelectronic sensor can be selected.
[0173] In an embodiment of this specification, after determining the current pollution value of the pollutants in the oil collecting cup according to the environmental data, the method further includes:
[0174] If the current pollution value is greater than or equal to a second preset pollution threshold, generate a pollution warning message; the second preset pollution threshold is greater than or equal to the first preset pollution threshold;
[0175] Send the pollution warning message to the target terminal so that the target terminal displays the pollution warning message.
[0176] In an embodiment of this specification, the second preset pollution threshold can be set according to actual situations. The second pollution threshold is determined based on excessive dirt in the oil collecting cup, and the second preset pollution threshold is greater than or equal to the first preset pollution threshold; when the current pollution value is greater than or equal to the second preset pollution threshold, generate a pollution warning message, and the pollution warning message is used to indicate that there is excessive dirt in the current oil collecting cup. The target terminal can indicate the integrated stove corresponding to the target terminal through the identifier of the target terminal; send a pollution warning message to the target terminal, the target terminal displays the pollution warning message, and determine the target integrated stove corresponding to the target terminal identifier through the target terminal identifier corresponding to the target terminal.
[0177] S502: If the current pollution value is greater than or equal to the first preset pollution threshold, control the electric pump to start so that the cleaning liquid enters the spraying device.
[0178] In an embodiment of this specification, the first preset pollution threshold can be set according to actual situations. Assume that the first preset pollution threshold is b. When the current pollution value is greater than b, control the electric pump to start and pump the cleaning liquid from the cleaning agent storage tank into the spraying device. The cleaning agent storage tank and the spraying device both belong to the self-cleaning device, and the self-cleaning device is distributed on the inner wall of the oil collecting cup to ensure that the entire inner surface of the oil collecting cup is covered.
[0179] S503: Control the spraying device to start and spray the cleaning liquid onto the oil collecting cup.
[0180] In the embodiments of this specification, the spraying device is turned on and the cleaning liquid is evenly sprayed so that the cleaning liquid covers the inner wall of the entire oil collecting cup.
[0181] S504: Control the heating device to turn on to heat the cleaning liquid, and obtain the current temperature value of the oil collecting cup.
[0182] In the embodiments of this specification, the cleaning liquid is heated by the heating device to improve the cleaning effect, and the temperature is monitored in real time by the temperature sensor to obtain the current temperature value collected by the temperature sensor.
[0183] S505: If the current temperature value is greater than or equal to the preset temperature threshold, control the heating device to stop working.
[0184] In the embodiments of this specification, the preset temperature threshold can be set according to the actual situation to ensure that the heating temperature is within a safe range. When the current temperature value is less than the preset temperature threshold, the cleaning liquid is heated, and the cleaning liquid carrying dirt gathers at the bottom and is discharged through the drain pipe, and the electric pump assists in the discharge. By setting an oil collecting cup with self-cleaning and oil-water separation functions, the oil collecting cup can automatically process oil stains, reducing the frequency of manual cleaning of oil stains by users and improving the user experience and satisfaction.
[0185] S111: Correct the oil stain volume data according to the environmental data to obtain the target oil stain content value of the oil collecting cup.
[0186] In the embodiments of this specification, the correcting the oil stain volume data according to the environmental data to obtain the target oil stain content value of the oil collecting cup is as Figure 6 shown, Figure 6 is a schematic flow chart of a method for detecting the oil stain content of an oil collecting cup provided by the embodiments of this specification, including:
[0187] S601: Determine the current temperature value of the environment where the oil collecting cup is located and the current humidity value of the environment where the oil collecting cup is located according to the environmental data.
[0188] In the embodiments of this specification, the environmental parameter sensor includes a temperature sensor and a humidity sensor, and the environmental data includes the current temperature value T collected by the temperature sensor and the current humidity value H collected by the humidity sensor; the models of the temperature sensor and the humidity sensor can be set according to the actual situation. Exemplarily, the model of the temperature sensor can be DS18B20, and the model of the humidity sensor can be DHT22.
[0189] S602: Determine the current oil stain data according to the oil stain volume data, the current temperature value, and the current humidity value.
[0190] S603: Input the current oil pollution data into the oil pollution content correction model for data processing to obtain the target oil pollution content value.
[0191] In the embodiments of this specification, feature extraction is performed on the oil pollution data to obtain a feature vector. Exemplarily, assume the feature vector is
[0192] X = [V vision , V ultrasound , V capacitive , T, H]
[0193] where X is the feature vector, V vision is the oil pollution volume data collected by the image acquisition device, V ultrasound is the oil pollution volume data collected by the ultrasonic sensor, V capacitive is the oil pollution volume data collected by the capacitance sensor, T is the temperature value collected by the temperature sensor, and H is the humidity value collected by the humidity sensor.
[0194] Therefore, according to the current oil pollution data, feature extraction is performed on the current oil pollution data to construct a current feature vector corresponding to the current oil pollution data. The current feature vector is
[0195] X current = [V vision , V ultrasound , V capacitive , T, H].
[0196] where X current is the current feature vector, V vision is the first oil pollution volume data, V ultrasound is the second oil pollution volume data, V capacitive is the third oil pollution volume data, T is the current temperature value, and H is the current humidity value.
[0197] Input the current feature vector into the oil pollution content correction model for data processing to obtain the target oil pollution content value.
[0198] The training method of the oil pollution content correction model is as Figure 7 shown, Figure 7 is a schematic flow chart of an oil pollution content detection method for an oil collecting cup provided by the embodiments of this specification, including:
[0199] S701: Obtain sample oil pollution data; the sample oil pollution data is labeled with a sample oil pollution content label;
[0200] S702: Based on a preset model, perform data processing on the sample oil pollution data to obtain the sample oil pollution content result of the sample oil pollution data;
[0201] S703: Train the preset model according to the difference between the sample oil pollution content result and the sample oil pollution content label to obtain the oil pollution content correction model.
[0202] In the embodiments of this specification, the training method of the oil pollution content correction model is exemplary and may include three steps: training dataset, model selection, and model training. First, by collecting a large amount of historical data, a training dataset is constructed. The training dataset can be
[0203] D = {(X i , y i )}
[0204] where D is the training dataset; X i is the feature vector; y i is the actual oil pollution amount, and the actual oil pollution amount is obtained by manual measurement or measurement by high-precision equipment.
[0205] Next, select a suitable data fusion model. Exemplarily, a weighted linear regression model or a multi-layer perceptron MLP model can be selected. The formula of the weighted linear regression model is
[0206] y = w0 + w1V vision + w2V ultrasound + w3V capacitive + w4T + w5H
[0207] where w0, w1, w2, w3, w4, w5 are model parameters.
[0208] Finally, use the least squares method or the gradient descent method to train the model, so as to optimize the parameter w to minimize the error between the predicted value and the actual value y i . The loss function is
[0209]
[0210] where L is the error value, n is the number of samples, y i is the actual value, is the model predicted value.
[0211] After the model is trained, the model is continuously updated. The real-time detection data and the manual calibration data are added to the training set, and the model is updated regularly. Using the incremental learning algorithm, exemplarily, stochastic gradient descent can be selected to fine-tune the model, so as to improve the adaptability and accuracy of the model. After the model is updated, the data is verified and evaluated, and the model performance is verified regularly. Through cross-validation and error analysis, the prediction accuracy and stability of the model are evaluated, so as to adjust the model structure and parameters to ensure that the model can maintain high precision under different environments and working conditions.
[0212] Therefore, initializing is required before inputting the current oil pollution data into the oil pollution content correction model for data processing. Load the trained model parameters w0, w1, w2, w3, w4, w5, and then use the oil pollution content correction model to correct and predict the oil pollution content value, so as to obtain the corrected oil pollution content value. Oil pollution content value The correction formula is
[0213]
[0214] Among them, w1 is the weight of the machine vision sensor data; w2 is the weight of the ultrasonic sensor data; w3 is the weight of the capacitance sensor data; w4 is the weight of the temperature sensor data; w4 is the weight of the humidity sensor data;
[0215] The weights of each sensor can be dynamically adjusted according to the implementation environment and historical data. Assume that the machine vision sensor is greatly affected by light in the current environment, then reduce its weight and increase the weights of other sensors.
[0216] Finally, output the corrected oil pollution volume Determine the target oil pollution content value. And during the prediction process of the oil pollution data by the model, the oil pollution growth trend and cleaning requirements are also calculated, and the prediction results and maintenance suggestions are generated and sent to the user interface. This reduces the user's maintenance workload and improves the user's usage experience and satisfaction.
[0217] In an exemplary embodiment, as Figure 8 shown, Figure 8 is a schematic structural diagram of an oil pollution content detection system for an oil collecting cup provided by an embodiment of this specification. The codes and corresponding names of each component in the system are as follows:
[0218] 801: Sensing layer. The sensing layer includes various sensors deployed inside and outside the oil collecting cup. The sensors include a liquid level sensor, a temperature sensor, a humidity sensor, a dirt detection sensor, etc., and are used to collect oil pollution-related data in real time. The sensing layer is configured with a liquid level sensor to monitor the liquid level height inside the oil collecting cup, a temperature sensor to monitor the temperature inside and outside the oil collecting cup, a humidity sensor to monitor the ambient humidity around the oil collecting cup, and a dirt detection sensor to monitor the oil pollution condition on the inner wall of the oil collecting cup; and each sensor is connected to the embedded controller through an analog or digital interface. Exemplarily, the embedded controller can be an Arduino Uno or an ESP32, and the controller collects and preliminarily processes data in real time.
[0219] 802: Network layer. It uses wireless communication technology to transmit sensor data to edge computing devices or cloud servers, and uses the MQTT protocol to ensure the reliability of data transmission. Exemplarily, the wireless communication technology can be Wi-Fi, ZigBee, LoRa, and other wireless communication technologies. An optional Wi-Fi module of model ESP8266 is used for high-bandwidth data transmission. An optional ZigBee module of model CC2530 is used for low-power sensor networks. An optional LoRa module of model SX1278 is used for long-distance low-power data transmission.
[0220] 803: Processing layer, including edge computing devices or cloud servers, responsible for data storage, processing, and analysis, and using AI algorithms for intelligent detection and predictive maintenance. Edge computing devices include hardware configurations. Exemplarily, an optional Raspberry Pi (Raspberry Pi 4) or other embedded computing devices can be used. Edge computing devices use data processing programs written in Python or Node.js to perform data cleaning, aggregation, and preliminary analysis; cloud servers include cloud platforms and databases; Exemplarily, the cloud platform can be AWS, Azure, or Google Cloud for large-scale data storage and processing; the database can be MongoDB or InfluxDB for storing time series data.
[0221] 804: Application layer, including user interfaces and management platforms, which display data through mobile applications or web pages, and provide alarm notifications and maintenance suggestions. User interfaces include mobile applications and web applications; Exemplarily, React Native or Flutter can be used to develop mobile applications to display real-time data and prediction results, and provide alarm notifications and maintenance suggestions. React or Angular can be used to develop web applications to achieve data visualization and management functions. The management platform includes functional modules for real-time monitoring, historical data analysis, and predictive maintenance. Specifically, real-time monitoring is used to display the real-time changes of each sensor data and provide intuitive charts and data analysis; historical data analysis is used to display the trends and changes of historical data and provide detailed reports and analysis results; predictive maintenance provides maintenance suggestions and alarm notifications based on the prediction results of AI algorithms to help users prevent problems in advance.
[0222] Through the overall architecture design of the oil content detection system of the oil collecting cup in this embodiment, data is collected from the perception layer, transmitted by the network layer, detected and predictively maintained by the processing layer, and data is displayed and alarm notifications and maintenance suggestions are provided by the application layer. It realizes the real-time collection and transmission of data from each sensor of the oil collecting cup through Internet of Things technology, uses artificial intelligence technology to intelligently detect and predict the oil content of the oil collecting cup, and combines predictive maintenance strategies to achieve integrated oil pollution management, improve the operation efficiency of the equipment, and enhance the user experience and satisfaction.
[0223] As can be seen from the technical solutions provided in the embodiments of this specification above, in the embodiments of this specification, based on the image acquisition device disposed outside the oil collecting cup, the first oil stain volume data is determined; based on the ultrasonic sensor disposed at the top of the oil collecting cup, the second oil stain volume data is determined; based on the capacitance sensor disposed on the outer wall of the oil collecting cup, the third oil stain volume data is determined; based on the first oil stain volume data, the second oil stain volume data, and the third oil stain volume data, the oil stain volume data is determined; the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor is obtained; and the oil stain volume data is corrected according to the environmental data to obtain the target oil stain content value of the oil collecting cup. In this application, the image acquisition device is used to collect the oil stain volume data of the oil collecting cup, introducing machine vision technology, realizing real-time and non-contact detection of the oil stain amount in the oil collecting cup, and avoiding the problems of damage and failure caused by traditional sensors contacting the oil stain; by using the ultrasonic sensor and the capacitance sensor to collect the oil stain volume data of the oil collecting cup respectively, introducing multiple redundant detection means such as the ultrasonic sensor and the capacitance sensor, realizing real-time and non-contact detection and data correction of the oil stain amount in the oil collecting cup, and improving the reliability and accuracy of detection; by collecting environmental data through the environmental parameter sensor to perform data fusion and adaptive correction on the three types of collected oil stain volume data, obtaining the corrected target oil stain content value, and improving the accuracy and reliability of the oil stain amount detection. By obtaining the data detected by the temperature sensor, the liquid level sensor, and the dirt detection sensor, the self-cleaning operation and the oil-water separation operation of the oil collecting cup are controlled, enabling the oil collecting cup to automatically process the oil stain, reducing the frequency of manual cleaning by the user; and when the liquid level value and the pollution value exceed the set thresholds, an alarm notification is sent to the target terminal to prompt the user to perform maintenance, extending the service life of the oil collecting cup and enhancing the user experience and satisfaction.
[0224] This specification also provides an oil stain content detection device for an oil collecting cup, as Figure 9 shown, the device includes:
[0225] A first oil stain volume data module 901, configured to determine first oil stain volume data according to an image acquisition device disposed outside the oil collecting cup;
[0226] A second oil stain volume data module 902, configured to determine second oil stain volume data according to an ultrasonic sensor disposed at the top of the oil collecting cup;
[0227] A third oil stain volume data module 903, configured to determine third oil stain volume data according to a capacitance sensor disposed on the outer wall of the oil collecting cup;
[0228] An oil pollution volume data module 904, configured to determine oil pollution volume data according to the first oil pollution volume data, the second oil pollution volume data, and the third oil pollution volume data;
[0229] An environmental data module 905, configured to obtain environmental data of the environment where the oil collecting cup is located collected by an environmental parameter sensor;
[0230] A target oil pollution content value module 906, configured to correct the oil pollution volume data according to the environmental data to obtain a target oil pollution content value of the oil collecting cup.
[0231] In some embodiments, the first oil pollution volume data module further includes:
[0232] An oil pollution image sub-module, configured to obtain an oil pollution image inside the oil collecting cup collected by the image acquisition device.
[0233] An oil pollution edge image recognition result sub-module, configured to perform oil pollution edge extraction processing on the oil pollution image to obtain an oil pollution edge image recognition result.
[0234] A target oil pollution area sub-module, configured to determine a target oil pollution area of the oil pollution image according to the oil pollution edge image recognition result.
[0235] An initial oil pollution volume data sub-module, configured to determine initial oil pollution volume data corresponding to the oil collecting cup according to the target oil pollution area.
[0236] A first oil pollution volume data acquisition sub-module, configured to perform data processing on the initial oil pollution volume data by using a first preset algorithm to obtain the first oil pollution volume data.
[0237] In some embodiments, the second oil pollution volume data module further includes:
[0238] An oil pollution height value sub-module, configured to obtain an oil pollution height value of the oil pollution in the oil collecting cup measured by the ultrasonic sensor.
[0239] A target oil pollution height value sub-module, configured to perform data processing on the oil pollution height value by using a second preset algorithm to obtain a target oil pollution height value.
[0240] A second oil pollution volume data acquisition sub-module, configured to determine the second oil pollution volume data according to the target oil pollution height value.
[0241] In some embodiments, the third oil pollution volume data module further includes:
[0242] An oil pollution capacitance change value sub-module, configured to obtain an oil pollution capacitance change value of the oil pollution in the oil collecting cup measured by the capacitance sensor.
[0243] The third oil pollution volume data acquisition sub-module is used to determine the third oil pollution volume data according to the oil pollution capacitance change value.
[0244] In some embodiments, the target oil pollution content value module further includes:
[0245] The temperature and humidity determination sub-module is used to determine the current temperature value of the environment where the oil collecting cup is located and the current humidity value of the environment where the oil collecting cup is located according to the environmental data.
[0246] The current oil pollution data sub-module is used to determine the current oil pollution data according to the oil pollution volume data, the current temperature value and the current humidity value.
[0247] The target oil pollution content value acquisition sub-module is used to input the current oil pollution data into the oil pollution content correction model for data processing to obtain the target oil pollution content value.
[0248] In some embodiments, the target oil pollution content value acquisition sub-module further includes:
[0249] The sample oil pollution data unit is used to acquire sample oil pollution data; the sample oil pollution data is labeled with a sample oil pollution content label.
[0250] The sample oil pollution content result unit is used to perform data processing on the sample oil pollution data based on a preset model to obtain the sample oil pollution content result of the sample oil pollution data.
[0251] The training unit is used to train the preset model according to the difference between the sample oil pollution content result and the sample oil pollution content label to obtain the oil pollution content correction model.
[0252] In some embodiments, the device further includes:
[0253] The current liquid level value module is used to determine the current liquid level value of the oil collecting cup according to the environmental data.
[0254] The current working duration module is used to control the electric pump to start to discharge the oil pollution if the current liquid level value is greater than or equal to the first preset liquid level threshold, and acquire the current working duration of the electric pump.
[0255] The overtime module is used to control the electric pump to stop working if the current working duration is greater than or equal to the preset working duration threshold.
[0256] In some embodiments, the device further includes:
[0257] The current pollution value module is used to determine the current pollution value of the pollutants in the oil collecting cup according to the environmental data.
[0258] A cleaning liquid spraying module, which is used to control the electric pump to start if the current pollution value is greater than or equal to a first preset pollution threshold, so that the cleaning liquid enters the spraying device.
[0259] A spraying module, which is used to control the spraying device to start and spray the cleaning liquid onto the oil collecting cup.
[0260] A current temperature value module, which is used to control the heating device to start to heat the cleaning liquid and obtain the current temperature value of the oil collecting cup.
[0261] An over-temperature module, which is used to control the heating device to stop working if the current temperature value is greater than or equal to a preset temperature threshold.
[0262] In some embodiments, the device further includes:
[0263] A liquid level warning information module, which is used to generate liquid level warning information if the current liquid level value is greater than or equal to a second preset liquid level threshold; the second preset liquid level threshold is greater than or equal to the first preset liquid level threshold.
[0264] A liquid level warning information display module, which is used to send the liquid level warning information to a target terminal so that the target terminal displays the liquid level warning information; the target terminal is the terminal corresponding to the user of the oil collecting cup.
[0265] In some embodiments, the device further includes:
[0266] A pollution warning information module, which is used to generate pollution warning information if the current pollution value is greater than or equal to a second preset pollution threshold; the second preset pollution threshold is greater than or equal to the first preset pollution threshold.
[0267] A pollution warning information display module, which is used to send the pollution warning information to the target terminal so that the target terminal displays the pollution warning information.
[0268] The device in the device embodiment and the method embodiment are based on the same inventive concept.
[0269] An embodiment of this specification provides an oil collecting cup electronic device, which includes a processor and a memory. At least one instruction or at least one program segment is stored in the memory, and the at least one instruction or at least one program segment is loaded and executed by the processor to implement the oil content detection method of the oil collecting cup provided in the above method embodiment.
[0270] Embodiments of the present application further provide a computer storage medium, which can be disposed in a terminal to store at least one instruction or at least one program related to a method for detecting the oil stain content of an oil collecting cup in a method embodiment. The at least one instruction or at least one program is loaded and executed by the processor to implement the method for detecting the oil stain content of the oil collecting cup provided in the above method embodiment.
[0271] Embodiments of the present application further provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to enable the computer device to execute to implement the method for detecting the oil stain content of the oil collecting cup provided in the above method embodiment.
[0272] The memory described in the embodiments of this specification can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device. In addition, the memory can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0273] The method embodiments for detecting the oil stain content of the oil collecting cup provided in the embodiments of this specification can be executed on a mobile terminal, a computer terminal, a server, or a similar computing device. Taking running on a server as an example, Figure 10 is a hardware structure block diagram of a server for a method for detecting the oil stain content of an oil collecting cup provided in the embodiments of this specification. As Figure 10As shown, the server 1000 can vary significantly depending on configuration or performance, and may include one or more central processing units (CPUs) 1010 (the central processing unit 1010 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1030 for storing data, and one or more storage media 1020 for storing application programs 1023 or data 1022 (such as one or more mass storage devices). Among them, the memory 1030 and the storage medium 1020 can be transient storage or persistent storage. The programs stored in the storage medium 1020 may include one or more modules, and each module may include a series of instruction operations on the server. Further, the central processing unit 1010 can be configured to communicate with the storage medium 1020 and execute a series of instruction operations in the storage medium 1020 on the server 1000. The server 1000 may also include one or more power supplies 1060, one or more wired or wireless network interfaces 1050, one or more input / output interfaces 1040, and / or one or more operating systems 1021, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so on.
[0274] The input / output interface 1040 can be used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by the communication provider of the server 1000. In one example, the input / output interface 1040 includes a network interface controller (NIC), which can be connected to other network devices through a base station and thus communicate with the Internet. In one example, the input / output interface 1040 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0275] Those of ordinary skill in the art can understand that Figure 10 the structure shown is only schematic and does not limit the structure of the above-mentioned electronic device. For example, the server 1000 may also include more or fewer components than Figure 10 shown, or have a different configuration from Figure 10 shown.
[0276] As can be seen from the embodiments of the oil content detection method and device for the oil collecting cup provided by the present application above, the present application determines the first oil volume data according to the image acquisition device arranged outside the oil collecting cup; determines the second oil volume data according to the ultrasonic sensor arranged at the top of the oil collecting cup; determines the third oil volume data according to the capacitance sensor arranged on the outer wall of the oil collecting cup; determines the oil volume data according to the first oil volume data, the second oil volume data and the third oil volume data; obtains the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor; corrects the oil volume data according to the environmental data to obtain the target oil content value of the oil collecting cup. The present application collects the oil volume data of the oil collecting cup through the image acquisition device, introduces machine vision technology and deep learning algorithms, realizes real-time and non-contact detection of the oil amount in the oil collecting cup, avoids the problems of damage and failure caused by traditional sensors contacting the oil stain, accurately identifies and calculates the oil amount, and improves the accuracy and reliability of the oil amount detection of the oil collecting cup; collects the oil volume data of the oil collecting cup through the ultrasonic sensor and the capacitance sensor respectively, introduces multiple redundant detection means such as the ultrasonic sensor and the capacitance sensor, realizes real-time and non-contact detection and data correction of the oil amount in the oil collecting cup, and improves the reliability and accuracy of the detection; collects environmental data through the environmental parameter sensor to perform data fusion and adaptive correction on the three types of oil volume data collected, and obtains the corrected target oil content value, improving the accuracy and reliability of the oil amount detection. By obtaining the data detected by the temperature sensor, the liquid level sensor and the dirt detection sensor, the oil collecting cup is controlled to perform self-cleaning operation and oil-water separation operation, so that the oil collecting cup can automatically process the oil stain, solves the hygiene and safety problems of oil stain accumulation, and reduces the frequency of manual cleaning by the user; and when the liquid level value and the pollution value exceed the set threshold, an alarm notification is sent to the target terminal to prompt the user to perform maintenance, so that the user can perform cleaning and inspection according to the maintenance suggestions provided by the system, ensure the normal operation of the equipment, extend the service life of the oil collecting cup, and improve the user experience and satisfaction.
[0277] It should be noted that: the above sequence of the embodiments of the present specification is only for description and does not represent the superiority or inferiority of the embodiments. And the above specific embodiments of the present specification have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired results. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0278] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of devices, equipment, and storage media, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, reference can be made to the partial description of the method embodiments.
[0279] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware or by a program instructing relevant hardware. The program can be stored in a computer storage medium. The storage media mentioned above can be a read-only memory, a magnetic disk, an optical disk, or the like.
[0280] The above are only the preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included within the protection scope of the present application.
Claims
1. A method for detecting the oil contamination content of an oil collecting cup, characterized in that, The method includes: Determining first oil stain volume data according to an image acquisition device arranged outside the oil collecting cup; Determining second oil stain volume data according to an ultrasonic sensor arranged at the top of the oil collecting cup; Determining third oil stain volume data according to a capacitance sensor arranged on the outer wall of the oil collecting cup; Determining oil stain volume data according to the first oil stain volume data, the second oil stain volume data and the third oil stain volume data; Obtaining environmental data of the environment where the oil collecting cup is located collected by an environmental parameter sensor; Correcting the oil stain volume data according to the environmental data to obtain the target oil stain content value of the oil collecting cup.
2. The detection method according to claim 1, characterized in that, The determining first oil stain volume data according to an image acquisition device arranged outside the oil collecting cup includes: Obtaining an oil stain image inside the oil collecting cup collected by the image acquisition device; Performing oil stain edge extraction processing on the oil stain image to obtain an oil stain edge image recognition result; Determining a target oil stain area of the oil stain image according to the oil stain edge image recognition result; Determining initial oil stain volume data corresponding to the oil collecting cup according to the target oil stain area; Performing data processing on the initial oil stain volume data by using a first preset algorithm to obtain the first oil stain volume data.
3. The detection method according to claim 2, wherein The determining second oil stain volume data according to an ultrasonic sensor arranged at the top of the oil collecting cup includes: Obtaining an oil stain height value of the oil stain in the oil collecting cup measured by the ultrasonic sensor; Performing data processing on the oil stain height value by using a second preset algorithm to obtain a target oil stain height value; Determining the second oil stain volume data according to the target oil stain height value.
4. The detection method according to claim 3, wherein The determining third oil stain volume data according to a capacitance sensor arranged on the outer wall of the oil collecting cup includes: Obtaining an oil stain capacitance change value of the oil stain in the oil collecting cup measured by the capacitance sensor; Determining the third oil stain volume data according to the oil stain capacitance change value.
5. The detection method according to claim 1, characterized in that The correcting the oil stain volume data according to the environmental data to obtain the target oil stain content value of the oil collecting cup includes: Determining a current temperature value of the environment where the oil collecting cup is located and a current humidity value of the environment where the oil collecting cup is located according to the environmental data; Determining current oil stain data according to the oil stain volume data, the current temperature value and the current humidity value; Inputting the current oil stain data into an oil stain content correction model for data processing to obtain the target oil stain content value; The training method of the oil stain content correction model includes: Obtaining sample oil stain data; the sample oil stain data is labeled with a sample oil stain content label; Performing data processing on the sample oil stain data based on a preset model to obtain a sample oil stain content result of the sample oil stain data; Training the preset model according to the difference between the sample oil stain content result and the sample oil stain content label to obtain the oil stain content correction model.
6. The detection method according to claim 1, wherein After obtaining the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor, the method further includes: Determining a current liquid level value of the oil collecting cup according to the environmental data. If the current liquid level value is greater than or equal to the first preset liquid level threshold, control the electric pump to start to drain the oil stain, and obtain the current working duration of the electric pump; If the current working duration is greater than or equal to the preset working duration threshold, control the electric pump to stop working.
7. The detection method according to claim 6, wherein After obtaining the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor, the method further includes: Determine the current pollution value of the pollutants in the oil collecting cup according to the environmental data; If the current pollution value is greater than or equal to the first preset pollution threshold, control the electric pump to start so that the cleaning liquid enters the spraying device; Control the spraying device to start and spray the cleaning liquid on the oil collecting cup; Control the heating device to start to heat the cleaning liquid, and obtain the current temperature value of the oil collecting cup; If the current temperature value is greater than or equal to the preset temperature threshold, control the heating device to stop working.
8. The detection method according to claim 7, characterized in that After determining the current liquid level value of the oil collecting cup according to the environmental data, the method further includes: If the current liquid level value is greater than or equal to the second preset liquid level threshold, generate a liquid level warning message; the second preset liquid level threshold is greater than or equal to the first preset liquid level threshold; Send the liquid level warning message to the target terminal so that the target terminal displays the liquid level warning message; the target terminal is the terminal corresponding to the user of the oil collecting cup.
9. The detection method according to claim 8, wherein After determining the current pollution value of the pollutants in the oil collecting cup according to the environmental data, the method further includes: If the current pollution value is greater than or equal to the second preset pollution threshold, generate a pollution warning message; the second preset pollution threshold is greater than or equal to the first preset pollution threshold; Send the pollution warning message to the target terminal so that the target terminal displays the pollution warning message.
10. An oil content detection device for an oil collecting cup, characterized in that, The device includes: The first oil stain volume data module is used to determine the first oil stain volume data according to the image acquisition device arranged outside the oil collecting cup; The second oil stain volume data module is used to determine the second oil stain volume data according to the ultrasonic sensor arranged on the top of the oil collecting cup; The third oil stain volume data module is used to determine the third oil stain volume data according to the capacitance sensor arranged on the outer wall of the oil collecting cup; The oil stain volume data module is used to determine the oil stain volume data according to the first oil stain volume data, the second oil stain volume data and the third oil stain volume data; The environmental data module is used to obtain the environmental data of the environment where the oil collecting cup is located collected by the environmental parameter sensor; The target oil stain content value module is used to correct the oil stain volume data according to the environmental data to obtain the target oil stain content value of the oil collecting cup.