Water purifier control method, device and equipment, storage medium and program product

The water purifier automatically adjusts TDS and temperature based on visual recognition and CDI parameters to optimize brewing effects, addressing the lack of intelligence in household purifiers.

CN119179345APending Publication Date: 2024-12-24FOSHAN SHUNDE MIDEA WATER DISPENSER MFG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411276295.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

Household water purifiers lack intelligence to automatically adjust total dissolved solids (TDS) value and temperature according to different drinking needs, requiring manual settings that are cumbersome and lead to inconsistent brewing effects.

Method used

A control method for a water purifier that identifies the substance to be brewed using visual recognition, adjusts CDI working parameters for TDS value and temperature settings based on a prediction model, and uses a temperature control system to achieve optimal TDS and temperature without manual intervention.

Benefits of technology

Provides an intelligent, automated process that optimizes brewing effects by ensuring the best TDS value and temperature for different substances, improving user experience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119179345A_ABST
    Figure CN119179345A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of equipment control, and provides a control method and device of a water purifier, equipment, a storage medium and a program product.The method comprises the steps that according to an image of a to-be-brewed substance, the type of the to-be-brewed substance is recognized; determining a target total dissolved solid value and a target temperature according to the type of the to-be-brewed substance; and according to the target total dissolved solid value, capacitive deionization CDI working parameters of the water purifier are adjusted, and according to the target temperature, the water outlet temperature of the water purifier is adjusted, so that purified water reaching the target total dissolved solid value and the target temperature flows out of the water purifier. The optimal TDS value and the optimal temperature are provided for different substances, it is ensured that each substance is brewed under the optimal condition, and therefore the brewing effect is optimized; meanwhile, by adjusting CDI working parameters and the outlet water temperature, dual adjustment of the TDS value and the temperature is achieved, and all-around intelligent water use experience is provided for a user; the whole process is automatically completed, manual setting of a user is not needed, and operation efficiency and operation accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of equipment control technology, and in particular to a control method, device, equipment, storage medium and program product for a water purifier. Background Art

[0002] At present, water purifiers are widely used to purify tap water to improve water quality and make it meet drinking standards. Water purifiers can not only effectively remove impurities and pollutants in water, but also have an instant heating function, which can heat the purified water when it comes out, making it convenient for users to use hot water to brew drinks.

[0003] However, most household water purifiers can only provide purified water with a fixed total dissolved solids (TDS) value and a single temperature, or require users to manually adjust the water temperature and water quality. They are less intelligent, and manual adjustment is not only cumbersome to operate, but also easily leads to inconsistent brewing effects. Summary of the invention

[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a control method for a water purifier, which provides the best TDS value and the best temperature for different substances, ensures that each substance is brewed under the best conditions, thereby optimizing the brewing effect; at the same time, by adjusting the CDI working parameters and the water outlet temperature, the dual adjustment of the TDS value and the temperature is achieved, providing users with a full range of intelligent water use experience; the whole process is completed automatically without the need for manual settings by the user, thereby improving the operating efficiency and accuracy.

[0005] The present application also proposes a control device, an electronic device, a storage medium and a program product for a water purifier.

[0006] A method for controlling a water purifier according to the first embodiment of the present application includes: Identifying the type of the substance to be brewed according to the image of the substance to be brewed; Determining a target total dissolved solids value and a target temperature according to the type of the substance to be brewed; The capacitive deionization (CDI) operating parameters of the water purifier are adjusted according to the target total dissolved solids value, and the water outlet temperature of the water purifier is adjusted according to the target temperature, so that the water purifier can discharge purified water reaching the target total dissolved solids value and the target temperature.

[0007] According to the control method of the water purifier proposed in the present application, the water purifier includes a CDI water purification module, and the CDI working parameters include the voltage of the CDI electrode in the CDI water purification module and the working time of the CDI electrode; the capacitive deionization CDI working parameters of the water purifier are adjusted according to the target total dissolved solids value, including: The target total dissolved solids value is input into a parameter prediction model to obtain the voltage and the working time corresponding to the target total dissolved solids value output by the parameter prediction model; the parameter prediction model is trained based on historical total dissolved solids values ​​and their CDI working parameters; The voltage and the operating time of the CDI electrode are adjusted.

[0008] According to the control method of the water purifier proposed in the present application, the water purifier includes a temperature control system, and the temperature control system includes a heating element and a cooling system; the water outlet temperature of the water purifier is adjusted according to the target temperature, including: monitoring the water inlet temperature of the water purifier; When the water inlet temperature is lower than the target temperature, adjusting the heating power of the heating element so that the water outlet temperature reaches the target temperature; When the water inlet temperature is greater than the target temperature, the cooling power of the cooling system is adjusted so that the water outlet temperature reaches the target temperature.

[0009] According to the control method of the water purifier proposed in this application, the target temperature is determined based on the following method: In the case where the type of the substance to be brewed is a target substance, the brewing times of the substance to be brewed are determined according to the image of the substance to be brewed; the target substance is a substance that supports multi-stage temperature controlled brewing; The target temperature is determined according to the brewing times and the type of the substance to be brewed.

[0010] According to the control method of the water purifier proposed in the present application, after adjusting the capacitor deionization (CDI) working parameters of the water purifier according to the target total dissolved solids value, and adjusting the water outlet temperature of the water purifier according to the target temperature, so that the water purifier flows out purified water reaching the target total dissolved solids value and the target temperature, the method further includes: Monitoring the total dissolved solids value and outlet water temperature of the water purifier; In the case where the effluent total dissolved solids value does not match the target total dissolved solids value, adjusting the CDI operating parameters according to the difference between the effluent total dissolved solids value and the target total dissolved solids value; In the case where the outlet water temperature does not match the target temperature, the heating power or the cooling power of the water purifier is adjusted according to the temperature difference between the outlet water temperature and the target temperature.

[0011] According to the control method of the water purifier proposed in this application, the target total dissolved solids value and the target temperature are determined based on the following method: Determining user information associated with the water purifier; The target total dissolved solids value and the target temperature are determined according to the user information and the type of the substance to be brewed.

[0012] According to the control method of the water purifier proposed in the present application, the water purifier includes a visual recognition module, and the visual recognition module includes an image acquisition unit, an image processing unit and a deep learning model; The image acquisition unit is used to acquire an image of the substance to be brewed below the water outlet of the water purifier; The image processing unit is used to pre-process the image of the substance to be brewed; The deep learning model is used to identify the preprocessed image of the substance to be brewed to obtain the type of the substance to be brewed.

[0013] A control device for a water purifier according to an embodiment of the second aspect of the present application includes: An identification module, used for identifying the type of the substance to be brewed according to the image of the substance to be brewed; A determination module, used for determining a target total dissolved solids value and a target temperature according to the type of the substance to be brewed; The adjustment module is used to adjust the capacitive deionization (CDI) working parameters of the water purifier according to the target total dissolved solids value, and to adjust the water outlet temperature of the water purifier according to the target temperature, so that the water purifier can flow out purified water reaching the target total dissolved solids value and the target temperature.

[0014] According to an electronic device of an embodiment of the third aspect of the present application, the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, a control method for a water purifier as described above is implemented.

[0015] According to the non-transitory computer-readable storage medium of the fourth aspect of the present application, a computer program is stored thereon, and when the computer program is executed by a processor, a control method for a water purifier as described in any one of the above is implemented.

[0016] According to the computer program product of the fifth aspect of the present application, the computer program includes a computer program, which, when executed by a processor, implements a control method for a water purifier as described in any one of the above.

[0017] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects: Automatic identification of water demand is achieved, improving user experience.

[0018] The drinking effect is optimized according to the optimal temperature that provides the best TDS value for different substances.

[0019] The entire process is completed automatically, without the need for manual settings by the user, and the operation is convenient.

[0020] The intelligence level and application scope of the CDI system have been improved.

[0021] Providing the most suitable water temperature for specific substances further optimizes the brewing effect and taste.

[0022] It integrates dual adjustment of TDS value and temperature to provide a full range of intelligent water use experience.

[0023] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 It is a flow chart of the control method of the water purifier provided in the embodiment of the present application.

[0026] Figure 2 It is a structural schematic diagram of the intelligent water quality and temperature adjustment CDI water purification system based on visual recognition provided in an embodiment of the present application.

[0027] Figure 3 It is a schematic diagram of the process from visual recognition to dual adjustment of TDS and temperature provided in an embodiment of the present application.

[0028] Figure 4 It is a schematic diagram of the substance identification accuracy provided in the embodiments of the present application.

[0029] Figure 5 Schematic diagram of the TDS removal efficiency of the CDI system provided in the embodiment of the present application.

[0030] Figure 6 It is a schematic diagram of the temperature control accuracy provided in the embodiment of the present application.

[0031] Figure 7 It is a schematic diagram of the structure of the control device of the water purifier provided in the embodiment of the present application.

[0032] Figure 8 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following is a further detailed description of the implementation of the present application in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application but cannot be used to limit the scope of the present application.

[0034] In the description of the embodiments of the present application, it should be noted that the terms "first", "second" and "third" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.

[0035] In the embodiments of the present application, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0036] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiments of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0037] In the relevant technology, most household water purifiers can only provide purified water with a fixed TDS value and a single temperature, and cannot automatically adjust the water quality and temperature according to different drinking needs. For example, the water quality and temperature required for different purposes such as brewing different types of tea, mixing milk powder, and brewing coffee are different. Although the traditional capacitive deionization (CDI) system can effectively remove ions in water, it lacks the ability to intelligently adjust for specific purposes. At present, household water purifiers have the following problems: 1) Unable to identify the specific water needs of users; 2) Water quality regulation is not precise and personalized enough; 3) Users need to manually set or select water quality mode, which is cumbersome to operate; 4) Unable to automatically adjust the appropriate water temperature according to the identified substances; 5) Users need to use additional heating equipment or manually set the temperature, which is cumbersome and inaccurate.

[0038] Based on the above problems, the present application proposes a control method for a water purifier.

[0039] Figure 1 Schematic diagram of the control method of the water purifier provided in the embodiment of the present application. Figure 1 , the present application embodiment provides a control method for a water purifier, comprising: Step 101 : identifying the type of the substance to be brewed according to the image of the substance to be brewed.

[0040] When a user container is detected below the water outlet of the water purifier, it indicates that the user has a demand for water. At this time, the camera collects an image of the substance to be brewed in the user container, where the substance to be brewed may be tea, coffee, milk powder, etc. The user container refers to a container used by the user to place the substance to be brewed, which may be a cup, a pot, or any other container used for brewing.

[0041] After collecting the image of the substance to be brewed, image recognition is performed on the image of the substance to be brewed to determine the type of the substance to be brewed. For example, the type of the substance to be brewed, such as tea, coffee, milk powder, herbal medicine, chocolate powder, etc., is identified through a degree learning model.

[0042] Step 102: determining a target total dissolved solids value and a target temperature according to the type of the substance to be brewed.

[0043] It can be understood that the target total dissolved solids value (i.e., target TDS value) is the water quality TDS value (in ppm) required for the substance to be brewed under optimal brewing conditions; the target temperature is the water temperature (in degrees Celsius) required for the substance to be brewed under optimal brewing conditions.

[0044] After identifying the type of the substance to be brewed, the corresponding optimal TDS value and optimal temperature are extracted from the experimental database according to the type of the substance to be brewed. For example, the type of the substance to be brewed is matched with a mapping table pre-stored in the experimental database, wherein the mapping table stores a mapping relationship between the substance type, the optimal TDS value and the optimal temperature, as shown in the following table:

[0045] Through the matching results, the optimal TDS value (ie, the target TDS value) and the optimal temperature (ie, the target temperature) can be obtained.

[0046] Optionally, to ensure the accuracy and validity of the mapping table, the table needs to be updated regularly. These updates can be based on new experimental data, user feedback or research results.

[0047] Through the pre-stored mapping table, the optimal TDS value and optimal temperature can be quickly and accurately provided for each substance to be brewed, ensuring that each substance is brewed under the best conditions, thereby optimizing the brewing effect and taste, and improving the user experience.

[0048] Step 103, adjusting the capacitive deionization (CDI) operating parameters of the water purifier according to the target total dissolved solids value, and adjusting the water outlet temperature of the water purifier according to the target temperature, so that the water purifier can discharge purified water reaching the target total dissolved solids value and the target temperature.

[0049] It should be noted that traditional water purification usually includes multiple processing steps, such as sedimentation, filtration, disinfection, etc., which can remove various pollutants, including suspended matter, organic matter, bacteria, etc., but may not be able to completely remove certain soluble substances, and may require the use of chemical agents for treatment. In the embodiment of the present application, the water purifier realizes the water purification function through CDI technology, wherein CDI technology can remove ions and other charged particles in water, has low energy consumption, and can selectively remove specific ions without the use of chemicals.

[0050] After determining the target TDS value and target temperature, the capacitive deionization (CDI) working parameters of the water purifier are adjusted according to the target TDS value, wherein the CDI working parameters include the voltage of the CDI electrode in the CDI water purification module and the working time of the CDI electrode. At the same time, the outlet water temperature of the water purifier is adjusted according to the target temperature, so that the water purifier can flow out purified water with the target total dissolved solids value and target temperature.

[0051] The control method of the water purifier provided in the embodiment of the present application identifies the type of the substance to be brewed according to the image of the substance to be brewed; determines the target total dissolved solids value and the target temperature according to the type of the substance to be brewed; adjusts the capacitor deionization CDI working parameters of the water purifier according to the target total dissolved solids value, and adjusts the water outlet temperature of the water purifier according to the target temperature, so that the water purifier can flow out purified water with the target total dissolved solids value and the target temperature. The present application can provide the best TDS value and the best temperature for different substances, ensuring that each substance is brewed under the best conditions, thereby optimizing the brewing effect; at the same time, by adjusting the CDI working parameters and the water outlet temperature, the dual adjustment of the TDS value and the temperature is achieved, providing users with a full range of intelligent water use experience; the whole process is completed automatically without the need for manual settings by the user, thereby improving the operating efficiency and accuracy.

[0052] Based on the above embodiment, the method of adjusting the capacitive deionization (CDI) working parameters of the water purifier according to the target total dissolved solids value includes: Step 1030, inputting the target total dissolved solids value into a parameter prediction model to obtain the voltage and the working time corresponding to the target total dissolved solids value output by the parameter prediction model; the parameter prediction model is trained based on historical total dissolved solids values ​​and their CDI working parameters; Step 1031, adjusting the voltage and the working time of the CDI electrode.

[0053] In an embodiment of the present application, the water purifier includes a CDI water purification module, wherein the CDI water purification module includes a CDI electrode and a TDS sensor. The CDI electrode is made of carbon-based materials (such as activated carbon), which have good electrical conductivity and large surface area. In the CDI water purification module, when a voltage is applied to the CDI electrode, the ions in the water are adsorbed to the surface of the electrode. Specifically, the positive electrode adsorbs negative ions (such as chloride ions), and the negative electrode adsorbs positive ions (such as sodium ions). This process achieves ion removal by applying an alternating voltage (periodically reversing the polarity of the electrode). The function of the CDI electrode is: by adjusting the voltage and polarity of the electrode, the CDI electrode can effectively remove dissolved salts and other ions in the water, thereby reducing the TDS (total dissolved solids) value of the water. The TDS sensor is used to monitor the total dissolved solids content in the water in real time, help the water purifier understand the real-time changes in water quality, and provide data for the water purifier to adjust. The working principle of the TDS sensor is: the TDS value is calculated by measuring the conductivity in the water, wherein the conductivity is directly related to the concentration of ions in the water.

[0054] The working process of the CDI water purification module mainly includes: when water flows through the CDI electrode, the voltage applied to the electrode will cause the migration and adsorption of ions, thereby removing ions from the water. This process can reduce the TDS value of the water and make the water purer. By adjusting the voltage of the electrode, the ion removal efficiency can be controlled; by adjusting the working time of the electrode, the contact time between water and the electrode can be increased, and the ion removal effect will be better. Ion removal is carried out by periodically reversing the polarity of the electrode, which can prevent the electrode surface from being saturated and maintain a high deionization efficiency.

[0055] After determining the target TDS value, the target TDS value is input into the parameter prediction model to obtain the voltage and working time of the CDI electrode corresponding to the target TDS value output by the parameter prediction model; further, the voltage and working time of the CDI electrode are adjusted so that the outlet TDS value of the water purifier reaches the target TDS value.

[0056] It is understandable that the principle of adjusting the voltage and working time of the electrode to make the current TDS value reach the optimal TDS value is that the removal efficiency of the electrode to ions can be optimized by adjusting these parameters. Specifically, when the voltage is increased, the electric field strength of the electrode is enhanced, so that more ions are adsorbed, thereby reducing the TDS value. Prolonging the time that water flows through the electrode can increase the contact time between water and the electrode, thereby improving the removal rate of ions.

[0057] Optionally, the TDS value may be brought close to or reach an optimal level by adjusting electrode parameters such as electrode material, electrode area, electrode spacing, and electrode shape and arrangement.

[0058] The parameter prediction model in the embodiment of the present application is obtained by training based on historical TDS values ​​and their CDI working parameters. For example, a mathematical model is first established, and then machine learning and control algorithms are used to achieve real-time adjustment. The specific process is as follows: (1) Establish a mathematical model of TDS value and CDI working parameters: Data collection: Collect TDS value data under different voltages, working hours and other working parameters; Modeling: Use statistical or mathematical methods (such as regression analysis) to establish a mathematical model that describes the relationship between TDS values ​​and CDI operating parameters. The mathematical model can be linear or nonlinear. The mathematical model can serve as the theoretical basis for training the model, provide a preliminary understanding and guidance on the relationship between CDI operating parameters and TDS values, and help feature selection and data preprocessing, thereby optimizing the training process of the machine learning model.

[0059] (2) Use machine learning algorithms to predict the optimal parameter combination: Feature engineering: Convert TDS values ​​and CDI operating parameters into features suitable for machine learning algorithms. For example, voltage, operating time, temperature, etc. are used as feature inputs; Training model: Use historical data (such as data on known CDI operating parameters and corresponding TDS values) to train the machine learning model to obtain a parameter prediction model. The machine learning algorithm used can be random forest or XGBoost (eXtremeGradient Boosting), and the algorithm will find the complex relationship between CDI operating parameters and TDS values ​​based on these data; Prediction: Use the trained model (i.e., parameter prediction model) to predict the TDS value under different parameter settings, so as to find the parameter combination that can make the TDS value close to or reach the optimal level.

[0060] (3) Use PID (Proportional Integral Derivative) control algorithm to achieve real-time fine-tuning: The PID controller is integrated into the water purifier to monitor the TDS value in real time and calculate the required adjustment amount (such as the change in voltage and operating time) based on the PID algorithm. The controller continuously adjusts these parameters to keep the TDS value within the target range.

[0061] The embodiment of the present application can optimize the ion removal effect in actual operation by precisely adjusting the voltage and working time of the electrode, so that the TDS value approaches or reaches the optimal level, ensuring that the water quality meets the expected standards.

[0062] Based on the above embodiment, adjusting the water outlet temperature of the water purifier according to the target temperature includes: Step 1032, monitoring the water inlet temperature of the water purifier; Step 1033, when the water inlet temperature is lower than the target temperature, adjusting the heating power of the heating element so that the water outlet temperature reaches the target temperature; Step 1034, when the water inlet temperature is greater than the target temperature, adjust the cooling power of the cooling system so that the water outlet temperature reaches the target temperature.

[0063] In an embodiment of the present application, the water purifier includes a temperature control system, which includes a heating element, a cooling system and a temperature sensor. Among them, the heating element is used to increase the water temperature to ensure that the water reaches a predetermined temperature range, for example, heating the water according to the instructions of the intelligent control unit. The temperature sensor is used to monitor the water temperature in real time and feed back the monitored temperature data to the intelligent control unit to ensure the accuracy of the heating process. The cooling system (optional) is used when the water temperature needs to be lowered to help quickly adjust to the required low temperature level.

[0064] Optionally, the temperature control system achieves precise regulation of the water temperature through a PID control algorithm, for example, using proportional, integral and differential control strategies to adjust the heating and cooling processes to ensure that the water temperature reaches a set value and remains stable.

[0065] During the water temperature adjustment process, the inlet water temperature is monitored in real time through the temperature sensor, and the monitored temperature data is sent to the intelligent control unit, which further determines whether the inlet water temperature meets the target temperature. When the inlet water temperature is lower than the target temperature, the heating power of the heating element is adjusted. For example, the intelligent control unit will instruct the heating element to increase the heating power so that the outlet water temperature reaches the target temperature. When the inlet water temperature is higher than the target temperature, the cooling power of the cooling system is adjusted. For example, the intelligent control unit will instruct the cooling system to increase the cooling power so that the outlet water temperature reaches the target temperature. During the power adjustment process, the power of the heating element or the cooling system will be dynamically adjusted according to the PID control algorithm, and the water purifier will continue to adjust the power until the water temperature reaches the optimal temperature and remains at the optimal temperature.

[0066] The intelligent adjustment mechanism provided in the embodiment of the present application ensures that the water temperature can be quickly and accurately adjusted to the optimal state through real-time monitoring and precise control to meet the needs of processing different substances.

[0067] Based on the above embodiment, the target temperature is determined based on the following method: Step 1020, when the type of the substance to be brewed is a target substance, determining the brewing times of the substance to be brewed according to the image of the substance to be brewed; the target substance is a substance that supports multi-stage temperature control brewing; Step 1021, determining the target temperature according to the brewing times and the type of the substance to be brewed.

[0068] In the embodiment of the present application, the target substance may be tea leaves, such as green tea, black tea, etc. For tea leaves, multiple brewing is required, and the brewing temperature may be different each time. In the case of multiple brewing, the temperature is adjusted according to the needs of each brewing, wherein the temperature parameter can be determined by the substance type and the number of brewing times.

[0069] In the case where the type of the substance to be brewed is the target substance, the number of brewing times of the substance to be brewed is determined according to the image of the substance to be brewed, wherein the number of brewing times can be understood as how many times the substance to be brewed has been brewed, that is, the number of brewings; then, the optimal temperature is determined according to the number of brewing times and the type of the substance to be brewed. For example, assuming that the target substance is tea leaves, images of tea leaves after different brewing times are taken, and the color and shape of the tea leaves will change after each brewing. Then, the key features of the tea leaves, such as the depth of color, the degree of leaf expansion, etc., are extracted using an image processing algorithm, which can reflect the state changes of the tea leaves. Further, a model is trained using machine learning technology to identify the characteristics of tea leaves at different brewing times, and the model learns the characteristics of tea leaves at different brewing stages through a large amount of labeled data. In practical applications, the state of tea leaves is analyzed in real time through image recognition, and compared with the results of the training model, so as to infer the number of brewing times of tea leaves. Finally, the target temperature is determined according to the number of brewing times and the type of the substance to be brewed. For example, a mapping relationship table of the number of brewing times, the type of the substance to be brewed, and the target temperature is matched from the mapping relationship table. Among them, the mapping relationship table of tea leaves is as follows:

[0070] In one embodiment, the brewing times can be determined by analyzing the changes in the appearance of the tea leaves: (1) Color change: First brewing: The tea leaves are brighter in color, usually greener (green tea) or redder (black tea); Second brew: The tea leaves will become darker or darker in color, for example, green tea will become slightly yellow-green or brown, and black tea will become darker; Third brewing: The color of the tea leaves deepens further, and may become dark brown or almost black.

[0071] (2) Changes in shape and texture: First brew: The tea leaves are usually quite firm; Second brewing: The tea leaves begin to unfold and become looser; The third brewing: The tea leaves are fully expanded and become very soft and loose; (3) Image processing and analysis: Feature extraction: Extract the color, shape and texture features of tea leaves.

[0072] Model training: Use these features to train a machine learning model so that it can distinguish the states of tea leaves with different brewing times.

[0073] Real-time detection: In actual applications, tea images are captured by a camera, and the extracted features are compared with the model to infer the number of times the tea has been brewed.

[0074] The embodiments of the present application combine the type of substance and the number of brewing times to ensure that the best effect can be achieved each time brewing, meet the user's complex brewing needs, and improve user experience and brewing effect.

[0075] Based on the above embodiment, after adjusting the capacitive deionization (CDI) working parameters of the water purifier according to the target total dissolved solids value, and adjusting the water outlet temperature of the water purifier according to the target temperature, so that the water purifier flows out purified water reaching the target total dissolved solids value and the target temperature, the method further includes: Step 1035, monitoring the total dissolved solids value and the outlet water temperature of the water purifier; Step 1036, when the effluent total dissolved solids value does not match the target total dissolved solids value, adjusting the CDI operating parameters according to the difference between the effluent total dissolved solids value and the target total dissolved solids value; Step 1037, when the outlet water temperature does not match the target temperature, adjust the heating power or cooling power of the water purifier according to the temperature difference between the outlet water temperature and the target temperature.

[0076] After the water purifier discharges water, the outlet TDS value and outlet temperature of the water purifier are monitored. For example, the outlet TDS value is monitored in real time by a TDS sensor to ensure that the outlet water quality meets the target requirements, and the outlet temperature is monitored in real time by a temperature sensor to ensure that it reaches the target temperature.

[0077] In the case that the outlet TDS value does not match the target total dissolved solids value, the CDI operating parameters are adjusted according to the difference between the outlet TDS value and the target total dissolved solids value. For example, if the TDS sensor detects that the outlet TDS value deviates from the target TDS value, the intelligent control unit will calculate the difference between the actual TDS value and the target TDS value. At the same time, the intelligent control unit will adjust the voltage and working time of the CDI electrode accordingly to achieve precise regulation of the TDS value, thereby achieving the target water quality.

[0078] In the case where the outlet water temperature does not match the target temperature, the heating power or cooling power of the water purifier is adjusted according to the temperature difference between the outlet water temperature and the target temperature. For example, if the temperature sensor detects a gap between the outlet water temperature and the target temperature, the intelligent control unit calculates the difference between the actual temperature and the target temperature, and at the same time, the intelligent control unit adjusts the power of the heating element or the working state of the cooling system (if any) to quickly adjust the water temperature to the target value.

[0079] The embodiment of the present application can respond to changes in water quality and water temperature in real time through a feedback control mechanism, thereby ensuring that the outlet TDS value and outlet temperature of the water always meet expectations. This closed-loop control not only improves the intelligence level of the water purifier, but also effectively improves the user experience and the overall performance of the water purifier.

[0080] Based on the above embodiment, the target total dissolved solids value and the target temperature are determined based on the following method: Step 1022, determining user information associated with the water purifier; Step 1023: Determine the target total dissolved solids value and the target temperature according to the user information and the type of the substance to be brewed.

[0081] In an embodiment of the present application, the user can input personal preference information through the water purifier interface, such as beverage type, taste preference, brewing TDS value and brewing temperature corresponding to each beverage, etc. These user information will be associated with the user account to provide personalized services.

[0082] During the water use process, the image of the user's container is collected from below the water outlet of the water purifier, and then the user who currently needs water is determined based on the image of the user's container. For example, the shape, color, design and other features of the water cup are analyzed through image recognition technology, and the water cup is matched with the user's personal settings based on these features to determine the user who currently needs water.

[0083] The water purifier pre-associates each water cup shape or user feature with a specific TDS value and temperature preference, such as pre-setting user profiles for different water cups. At the same time, the water purifier can record the historical usage data of each water cup or user to optimize future water quality and temperature settings. Based on this, after identifying the user who currently has a water demand, the target TDS value and target temperature are determined based on the user information of the user and the type of substance to be brewed. For example, the water purifier pre-stores a mapping table between user information, type of substance to be brewed, target TDS value and target temperature, as shown in the following table:

[0084] By querying the above mapping table, the target TDS value and the target temperature, that is, the optimal TDS value and the optimal temperature, can be determined.

[0085] Optionally, the water purifier can learn user habits and automatically adjust recommended parameters, such as TDS value and temperature. For example, the water purifier records the user's operating data, such as the substance brewed each time, the selected TDS value and temperature, and the user's feedback (such as whether it is satisfied). By analyzing this data, the user's preference pattern can be identified. For example, the user may prefer a certain temperature and TDS value combination. The water purifier automatically adjusts the recommended TDS value and temperature based on the identified pattern. For example, if the water purifier finds that the user always chooses a slightly higher temperature than the recommended temperature when brewing green tea, the water purifier can automatically recommend this slightly higher temperature next time. At the same time, the user can provide feedback on the water purifier's adjustments, and the water purifier further optimizes the settings accordingly.

[0086] For example, suppose user A usually likes to brew green tea, and in multiple uses, the temperature set is between 75 degrees Celsius and 78 degrees Celsius, and the TDS value is between 28ppm and 32ppm. The water purifier can draw the following conclusions by learning this data: User Preference: User A prefers a temperature and TDS value slightly higher than the standard.

[0087] Automatic adjustment: The next time a water purifier recommends a temperature of 77 degrees Celsius and a TDS value of 30ppm, the default settings may be 75 degrees Celsius and 28ppm.

[0088] When user A accepts these recommendations and gives feedback that he is satisfied, the water purifier will remember these settings as default values, further improving the accuracy of personalized services. If user A has new preferences for recommended parameters, the water purifier will continue to adjust to accommodate these changes. In this way, user A does not need to manually set them every time, and the water purifier can automatically adjust to match the user's latest needs and preferences.

[0089] In the embodiment of the present application, the user can fine-tune the TDS value and temperature to suit personal preferences, so that each brewing can achieve the best taste and effect. At the same time, different users and different drinks have different needs, and the water purifier can be flexibly adjusted to meet various needs and preferences, thereby improving the user's water experience.

[0090] Based on the above embodiment, the water purifier includes a visual recognition module, which includes an image acquisition unit, an image processing unit and a deep learning model; The image acquisition unit is used to acquire the image of the substance to be brewed below the water outlet of the water purifier; for example, a high-definition camera is used to capture the image of the substance to be brewed.

[0091] The image processing unit is used to pre-process the image of the substance to be brewed; for example, the collected image is preliminarily processed, such as denoising, contrast enhancement, etc., to improve recognition accuracy.

[0092] The deep learning model is used to identify the preprocessed image of the substance to be brewed to obtain the type of the substance to be brewed; for example, the processed image is classified using a trained model to identify the type of the substance to be brewed.

[0093] The embodiment of the present application can accurately identify different types of substances through a high-definition camera and a deep learning model, ensuring that the water purifier adjusts the water quality and temperature according to actual needs. At the same time, the image processing unit optimizes the image quality, removes noise and improves contrast, making the recognition of the deep learning model more accurate.

[0094] In order to further analyze and explain the control method of the water purifier proposed in this application, refer to the following embodiments.

[0095] The present application embodiment specifically proposes an intelligent water quality temperature adjustment CDI water purification system based on visual recognition, referring to Figure 2 ,The main modules of the system include: (1) Visual recognition module: including a high-definition camera (e.g., resolution ≥ 1080p) for capturing images of substances in the user's container; an image processing unit (e.g., an embedded AI chip) for preprocessing the captured images; and a deep learning model (e.g., a pre-trained convolutional neural network) for identifying the type of substances in the image.

[0096] (2) CDI water purification module: includes a CDI electrode with adjustable voltage (e.g., voltage range: 0-3V) for capacitive deionization treatment; and a high-precision TDS sensor (e.g., accuracy: ±1ppm) for monitoring the total dissolved solids content in water.

[0097] (3) Temperature control system: including heating elements (e.g. power: 1000W-1500W) for adjusting water temperature; temperature sensors (e.g. accuracy: ±0.1 degrees Celsius) for monitoring water temperature; cooling system (optional) for cooling needs.

[0098] (4) An intelligent control unit, including a central processor (such as the ARM Cortex-M7 series), is used to coordinate the operation of the entire system. For example, it calculates the CDI operating parameters required to achieve the target TDS value and adjusts the voltage and operating time of the CDI electrode. To achieve 150ppm, the voltage may need to be set to 1.8V and the operating time to 45 seconds.

[0099] (5) User interface: includes an LCD display and a touch panel, which are used to display information and user interaction. The LCD screen displays the recognition results, current water quality information and temperature, and the user can confirm or manually adjust through the touch panel.

[0100] The main working process of CDI water purification system is: 1. The water flows through the CDI electrode for preliminary purification.

[0101] 2. The purified water is passed through a heating element to adjust the temperature.

[0102] 3. The camera captures the image, which is processed and the deep learning model identifies the material type.

[0103] 4.TDS sensor and temperature sensor continuously monitor water quality and temperature.

[0104] 5. The intelligent control unit controls the CDI electrodes, heating elements and cooling system (if any) based on the recognition results and sensor data.

[0105] 6. The user interface displays relevant information and allows users to perform operations.

[0106] Further, refer to Figure 3 , the detailed workflow of the CDI water purification system is as follows: after the system is started, the system is initialized, such as self-test and parameter loading, and then waits for user requests. After receiving the user request, the container image is captured by the camera, and then the container image is processed and analyzed to identify the type of substance. After successful identification, the optimal TDS value and optimal temperature are queried from the database according to the substance type, and then the CDI parameters are adjusted according to the optimal TDS value, and the water temperature of the water purifier is adjusted according to the optimal temperature. When the TDS value reaches the optimal TDS value and the water temperature reaches the optimal temperature, water discharge begins, and the outlet TDS value and water temperature are monitored at the same time. If the outlet TDS value does not meet the standard, the CDI parameters are readjusted; if the temperature does not meet the standard, the water temperature is readjusted; if the outlet TDS value and water temperature meet the standard, the current outlet TDS value and water temperature are maintained. After stopping the water discharge, the optimal TDS value and optimal temperature stored in the database can be updated.

[0107] Furthermore, the workflow of the CDI water purification system is explained by taking brewing green tea, mixing milk powder, and brewing coffee as examples: (1) The workflow for brewing green tea is as follows: 1.1. The user places a cup of green tea under the water outlet; 1.2. The system identifies green tea and queries the database to find out that the optimal TDS value is 150ppm and the optimal water temperature is 80 degrees Celsius.

[0108] 1.3. CDI system adjustment parameters: voltage is set to 1.8V, estimated working time is 45 seconds.

[0109] 1.4. The temperature control system starts heating the water to 80 degrees Celsius.

[0110] 1.5. Start discharging water and monitor the TDS value and water temperature in real time.

[0111] 1.6. When TDS reaches 150ppm and the water temperature stabilizes at 80 degrees Celsius, the system maintains the outlet TDS value and water temperature.

[0112] 1.7. The LCD screen displays: "Green tea has been identified, providing 150ppm, 80 degrees Celsius purified water."

[0113] (2) The workflow for preparing milk powder is as follows: 2.1. The user places the bottle containing milk powder under the water outlet; 2.2. The system identifies the milk powder and queries the database to find out that the optimal TDS value is 50ppm and the optimal water temperature is 40 degrees Celsius.

[0114] 2.3. CDI system adjustment parameters: voltage is set to 2.5V, estimated working time is 90 seconds; 2.4. The temperature control system adjusts the water temperature to 40 degrees Celsius; 2.5. Start discharging water and monitor TDS value and water temperature in real time; 2.6. When TDS reaches 50ppm and the water temperature is stable at 40 degrees Celsius, the system maintains the outlet TDS value and water temperature; 2.7. The LCD screen displays: "Milk powder has been identified, providing 50ppm, 40 degrees Celsius purified water."

[0115] (3) The workflow for brewing coffee is as follows: 3.1. The user places the filter cup filled with coffee powder under the water outlet.

[0116] 3.2. The system identifies the coffee powder and queries the database to find out that the optimal TDS value is 120ppm and the optimal water temperature is 92 degrees Celsius.

[0117] 3.3. Adjust the parameters of the CDI system to achieve 120ppm TDS.

[0118] 3.4. At the same time, the temperature control system starts heating the water to 92 degrees Celsius.

[0119] 3.5. The system monitors the TDS value and water temperature, and starts to discharge water when both meet the standards.

[0120] 3.6. Continuously monitor and fine-tune the water discharge process to ensure stable TDS and temperature.

[0121] 3.7. The LCD screen displays: "Coffee powder has been identified, providing 120ppm, 92 degrees Celsius purified water."

[0122] Furthermore, the CDI water purification system also includes the following: Visual recognition algorithm: Use ResNet50 or convolutional neural network architecture, use transfer learning technology, fine-tune based on pre-trained models, and achieve recognition accuracy ≥ 95%. Figure 4 For example, ResNet50 is selected as the basic model. The residual network structure of ResNet50 can effectively handle the training problem of deep networks. Then, a large-scale image dataset is used to train the ResNet50 model so that the model can learn to recognize the features of common objects. The model is further fine-tuned using specific tea images to focus on identifying different types of tea, such as green tea, black tea, and oolong tea. The model is further trained using a dataset containing different tea images so that it can accurately distinguish these types of tea.

[0123] CDI parameter optimization: Establish a mathematical model of TDS value and CDI working parameters, use machine learning algorithms (such as random forest or XGBoost) to predict the optimal parameter combination, and use PID control algorithm to achieve real-time fine-tuning, such as Figure 5 By using the PID controller to adjust the working parameters of the CDI system in real time, it is ensured that the TDS value is always kept within the target range, thereby improving the efficiency and effect of water treatment.

[0124] Temperature control algorithm: PID (P proportional-I integral-D differential) control algorithm is used to achieve rapid temperature rise and precise temperature control, with a temperature control accuracy of ≤±1 degrees Celsius. The thermal inertia of different water volumes is considered to dynamically adjust the control parameters, such as Figure 6 The PID control algorithm is used to adjust the heating or cooling intensity in real time to achieve rapid temperature rise and precise control, while adapting to the thermal inertia of different water volumes to achieve stable temperature control.

[0125] Database design: Establish an experimental database containing the best TDS values ​​and temperatures of various substances, supporting user customization and system self-learning functions. The experimental database can effectively store and manage the best TDS values ​​and temperature data of various substances, and provide user customization and system self-learning functions to support experimental optimization and intelligent data analysis.

[0126] Energy efficiency optimization: Dynamically adjust the heating power, balance speed and energy consumption, and use waste heat and heat recovery technology to improve energy efficiency. It can be understood that the heating power is adjusted according to real-time needs to avoid overheating, thereby saving energy; optimize the speed and energy efficiency of the heating process to ensure that the required temperature is reached while minimizing energy waste; use the waste heat or waste heat generated by the equipment for reuse to further improve the overall energy efficiency.

[0127] Safety assurance: Set the TDS value safety range (such as 20-300ppm) and the temperature upper limit (such as 100 degrees Celsius) to implement abnormal detection, overheating protection and automatic power-off mechanisms. For example, when the TDS value exceeds the set safety range, the system issues an alarm to notify the operator and take corresponding measures, such as adjusting the water quality or shutting down the machine. When the temperature reaches or exceeds the set upper limit, the system automatically starts the cooling program or reduces the heating power to prevent the equipment from overheating. The system automatically adjusts the equipment status according to the preset abnormal processing logic, such as reducing the heating power, increasing cooling, etc. When the equipment temperature exceeds the safety upper limit, the system automatically powers off to prevent further heating and potential damage. Design an automatic power-off circuit to quickly cut off the power supply when the equipment detects a dangerous state (such as excessively high temperature or TDS value).

[0128] Furthermore, the CDI water purification system also includes the following functions: Personalized settings: Allows users to fine-tune and save TDS values ​​and temperature preferences for specific substances. The system learns user habits and automatically adjusts recommended parameters.

[0129] Multi-stage temperature control: supports complex brewing schemes, such as multiple brewing of tea, each time using a different temperature.

[0130] Remote control: preset and control through the mobile phone App to prepare the required water quality and temperature in advance.

[0131] Energy-saving mode: Analyze user usage habits, preheat the system during high-frequency usage periods, and reduce waiting time.

[0132] The embodiment of the present application provides the best TDS value and the best temperature for different substances, ensuring that each substance is brewed under the best conditions, thereby optimizing the brewing effect; at the same time, by adjusting the CDI working parameters and the water outlet temperature, dual regulation of the TDS value and the temperature is achieved, providing users with a full range of intelligent water use experience; the entire process is completed automatically without the need for manual settings by the user, thereby improving operational efficiency and accuracy.

[0133] The control device of the water purifier provided in the present application is described below. The control device of the water purifier described below and the control method of the water purifier described above can refer to each other.

[0134] refer to Figure 7 The control device of the water purifier provided in the present application includes an identification module 701, a determination module 702 and an adjustment module 703.

[0135] An identification module 701 is used to identify the type of the substance to be brewed according to the image of the substance to be brewed; A determination module 702 is used to determine a target total dissolved solids value and a target temperature according to the type of the substance to be brewed; The adjustment module 703 is used to adjust the capacitive deionization (CDI) working parameters of the water purifier according to the target total dissolved solids value, and to adjust the water outlet temperature of the water purifier according to the target temperature, so that the water purifier can output purified water reaching the target total dissolved solids value and the target temperature.

[0136] The control device of the water purifier provided in the embodiment of the present application identifies the type of the substance to be brewed according to the image of the substance to be brewed; determines the target total dissolved solids value and target temperature according to the type of the substance to be brewed; adjusts the capacitor deionization CDI working parameters of the water purifier according to the target total dissolved solids value, and adjusts the water outlet temperature of the water purifier according to the target temperature, so that the water purifier can flow out purified water with the target total dissolved solids value and target temperature. The present application can provide the best TDS value and the best temperature for different substances, ensuring that each substance is brewed under the best conditions, thereby optimizing the brewing effect; at the same time, by adjusting the CDI working parameters and the water outlet temperature, the dual adjustment of the TDS value and temperature is achieved, providing users with a full range of intelligent water use experience; the whole process is completed automatically without the need for manual settings by the user, thereby improving operational efficiency and accuracy.

[0137] In one embodiment, the water purifier includes a CDI water purification module, and the CDI working parameters include the voltage of the CDI electrode in the CDI water purification module and the working time of the CDI electrode; the adjustment module 703 is specifically used to: input the target total dissolved solids value into a parameter prediction model to obtain the voltage and the working time corresponding to the target total dissolved solids value output by the parameter prediction model; the parameter prediction model is trained based on historical total dissolved solids values ​​and their CDI working parameters; and adjust the voltage and the working time of the CDI electrode.

[0138] In one embodiment, the water purifier includes a temperature control system, which includes a heating element and a cooling system; the adjustment module 703 is specifically used to: monitor the inlet water temperature of the water purifier; when the inlet water temperature is lower than the target temperature, adjust the heating power of the heating element so that the outlet water temperature reaches the target temperature; when the inlet water temperature is higher than the target temperature, adjust the cooling power of the cooling system so that the outlet water temperature reaches the target temperature.

[0139] In one embodiment, the target temperature is determined based on the following method: when the type of the substance to be brewed is the target substance, the brewing times of the substance to be brewed are determined according to the image of the substance to be brewed; the target substance is a substance that supports multi-stage temperature controlled brewing; the target temperature is determined according to the brewing times and the type of the substance to be brewed.

[0140] In one embodiment, the adjustment module 703 is also used to: monitor the total dissolved solids value and the outlet water temperature of the water purifier; when the outlet water total dissolved solids value does not match the target total dissolved solids value, adjust the CDI working parameters according to the difference between the outlet water total dissolved solids value and the target total dissolved solids value; when the outlet water temperature does not match the target temperature, adjust the heating power or cooling power of the water purifier according to the temperature difference between the outlet water temperature and the target temperature.

[0141] In one embodiment, the determination module 702 is further used to: determine user information associated with the water purifier; and determine the target total dissolved solids value and the target temperature according to the user information and the type of the substance to be brewed.

[0142] In one embodiment, the water purifier includes a visual recognition module, which includes an image acquisition unit, an image processing unit and a deep learning model; the image acquisition unit is used to acquire an image of the substance to be brewed below the water outlet of the water purifier; the image processing unit is used to preprocess the image of the substance to be brewed; the deep learning model is used to identify the preprocessed image of the substance to be brewed to obtain the type of the substance to be brewed.

[0143] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the following method: identifying the type of the substance to be brewed according to the image of the substance to be brewed; determining the target total dissolved solid value and the target temperature according to the type of the substance to be brewed; adjusting the capacitor deionization (CDI) working parameters of the water purifier according to the target total dissolved solid value, and adjusting the water outlet temperature of the water purifier according to the target temperature, so that the water purifier can flow out purified water reaching the target total dissolved solid value and the target temperature.

[0144] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0145] On the other hand, an embodiment of the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the control method of the water purifier provided in the above-mentioned embodiments, for example, including: identifying the type of the substance to be brewed according to the image of the substance to be brewed; determining the target total dissolved solids value and the target temperature according to the type of the substance to be brewed; adjusting the capacitive deionization (CDI) working parameters of the water purifier according to the target total dissolved solids value, and adjusting the water outlet temperature of the water purifier according to the target temperature, so that the water purifier can flow out purified water that reaches the target total dissolved solids value and the target temperature.

[0146] On the other hand, the embodiments of the present application also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the control method of the water purifier provided by the above-mentioned method embodiments, for example, including: identifying the type of the substance to be brewed according to the image of the substance to be brewed; determining the target total dissolved solids value and the target temperature according to the type of the substance to be brewed; adjusting the capacitive deionization (CDI) working parameters of the water purifier according to the target total dissolved solids value, and adjusting the water outlet temperature of the water purifier according to the target temperature, so that the water purifier can flow out purified water that reaches the target total dissolved solids value and the target temperature.

[0147] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

[0150] The above implementation modes are only used to illustrate the present application, but not to limit the present application. Although the present application is described in detail with reference to the embodiments, a person skilled in the art should understand that various combinations, modifications or equivalent replacements of the technical solutions of the present application do not depart from the spirit and scope of the technical solutions of the present application, and should be included in the scope of the claims of the present application.

Claims

1. A method for controlling a water purifier, characterized in that: include: Identifying the type of the substance to be brewed according to the image of the substance to be brewed; Determining a target total dissolved solids value and a target temperature according to the type of the substance to be brewed; The capacitive deionization (CDI) operating parameters of the water purifier are adjusted according to the target total dissolved solids value, and the water outlet temperature of the water purifier is adjusted according to the target temperature, so that the water purifier can discharge purified water reaching the target total dissolved solids value and the target temperature.

2. The control method of the water purifier according to claim 1, characterized in that: The water purifier includes a CDI water purification module, and the CDI working parameters include a voltage of a CDI electrode in the CDI water purification module and a working time of the CDI electrode; The step of adjusting the capacitive deionization (CDI) operating parameters of the water purifier according to the target total dissolved solids value includes: The target total dissolved solids value is input into a parameter prediction model to obtain the voltage and the working time corresponding to the target total dissolved solids value output by the parameter prediction model; the parameter prediction model is trained based on historical total dissolved solids values ​​and their CDI working parameters; The voltage and the operating time of the CDI electrode are adjusted.

3. The control method of the water purifier according to claim 1, characterized in that: The water purifier includes a temperature control system, and the temperature control system includes a heating element and a cooling system; and adjusting the outlet water temperature of the water purifier according to the target temperature includes: monitoring the water inlet temperature of the water purifier; When the water inlet temperature is lower than the target temperature, adjusting the heating power of the heating element so that the water outlet temperature reaches the target temperature; When the water inlet temperature is greater than the target temperature, the cooling power of the cooling system is adjusted so that the water outlet temperature reaches the target temperature.

4. The control method of the water purifier according to claim 1, characterized in that: The target temperature is determined based on: In the case where the type of the substance to be brewed is a target substance, the brewing times of the substance to be brewed are determined according to the image of the substance to be brewed; the target substance is a substance that supports multi-stage temperature controlled brewing; The target temperature is determined according to the brewing times and the type of the substance to be brewed.

5. The control method of the water purifier according to claim 1, characterized in that: After adjusting the capacitive deionization (CDI) operating parameters of the water purifier according to the target total dissolved solids value, and adjusting the water outlet temperature of the water purifier according to the target temperature, so that the water purifier flows out purified water reaching the target total dissolved solids value and the target temperature, the method further includes: Monitoring the total dissolved solids value and outlet water temperature of the water purifier; In the case where the effluent total dissolved solids value does not match the target total dissolved solids value, adjusting the CDI operating parameters according to the difference between the effluent total dissolved solids value and the target total dissolved solids value; In the case where the outlet water temperature does not match the target temperature, the heating power or the cooling power of the water purifier is adjusted according to the temperature difference between the outlet water temperature and the target temperature.

6. The control method of the water purifier according to claim 1, characterized in that: The target total dissolved solids value and the target temperature are determined based on the following: Determining user information associated with the water purifier; The target total dissolved solids value and the target temperature are determined according to the user information and the type of the substance to be brewed.

7. The control method of the water purifier according to claim 1, characterized in that: The water purifier includes a visual recognition module, which includes an image acquisition unit, an image processing unit and a deep learning model; The image acquisition unit is used to acquire an image of the substance to be brewed below the water outlet of the water purifier; The image processing unit is used to pre-process the image of the substance to be brewed; The deep learning model is used to identify the preprocessed image of the substance to be brewed to obtain the type of the substance to be brewed.

8. A control device for a water purifier, characterized in that: include: An identification module, used for identifying the type of the substance to be brewed according to the image of the substance to be brewed; A determination module, used for determining a target total dissolved solids value and a target temperature according to the type of the substance to be brewed; The adjustment module is used to adjust the capacitive deionization (CDI) working parameters of the water purifier according to the target total dissolved solids value, and to adjust the water outlet temperature of the water purifier according to the target temperature, so that the water purifier can flow out purified water reaching the target total dissolved solids value and the target temperature.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the control method of the water purifier according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the control method of the water purifier according to any one of claims 1 to 7 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the control method of the water purifier according to any one of claims 1 to 7 is implemented.