Aroma spraying control method and intelligent aroma spraying machine

By obtaining and analyzing the environmental information and historical data of the fragrance sprayer, and intelligently generating and adjusting the fragrance spray control instructions, the problems of insufficient adaptability and lack of intelligence in the existing fragrance sprayer control methods are solved, and a more stable and efficient fragrance spraying effect is achieved.

CN119705007BActive Publication Date: 2025-05-16WENZHOU OUSTAR ELECTRICAL INDUSTRY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510233459.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-05-16
Estimated Expiration
2045-02-28

AI Technical Summary

Technical Problem

The existing control methods of fragrance sprayers are based on fixed time intervals or simple environmental conditions, and cannot intelligently adjust the fragrance effect, resulting in poor fragrance spraying and may cause excessive or light fragrance.

Method used

By obtaining the current environmental information, fragrance information and historical control instructions, the current control instructions and expected fragrance effects are generated, and the control instructions are adjusted according to the actual fragrance effects, the dynamic adaptation and self-optimization of the fragrance spraying machine can be achieved.

Benefits of technology

It improves the stability and user experience of the fragrance spray effect, realizes the refinement and intelligence of the fragrance spraying machine control, and avoids the problem of waste of fragrance liquid and insufficient fragrance spraying effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119705007B_ABST
    Figure CN119705007B_ABST
Patent Text Reader

Abstract

The present application is applicable to the technical field of aromatherapy machines, and in particular to an aromatherapy control method and an intelligent aromatherapy machine, the method comprising: obtaining current environmental information, aromatherapy information and a historical control instruction set; generating current control instructions and expected aromatherapy effects according to the current environmental information, the aromatherapy information and the historical control instruction set; wherein the expected aromatherapy effect is obtained by predicting the aromatherapy effect achieved after executing the current control instruction; controlling the aromatherapy machine to perform aromatherapy operations according to the current control instruction to obtain an actual aromatherapy effect; determining the aromatherapy result of the aromatherapy machine based on the expected aromatherapy effect and the actual aromatherapy effect, and adjusting the current control instruction based on the aromatherapy result. The method can improve the adaptability of the aromatherapy machine when controlling the aromatherapy machine to spray aromas and realize the refinement and intelligence of the aromatherapy machine control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of aromatherapy machines, and in particular to an aromatherapy control method and an intelligent aromatherapy machine. Background Art

[0002] A car diffuser is a device that releases fragrance in the car, aiming to improve the smell in the car and enhance the riding experience. A diffuser usually uses aromatics or essential oils to evenly diffuse the fragrance into the car through micro-spray, air circulation or temperature-controlled heating. The diffuser can be powered by the car power supply or USB port, and the fragrance intensity, fragrance type and usage time can be adjusted according to personal preference.

[0003] In the prior art, the control of the fragrance dispenser is mostly based on fixed time intervals or simple environmental conditions, while ignoring the impact of various factors on the fragrance spraying effect, resulting in poor fragrance spraying effect, which may cause the fragrance to be too strong or too weak, causing discomfort to passengers. Existing fragrance dispensers usually rely on fixed preset fragrance spraying parameters and cannot intelligently adjust the fragrance spraying effect according to various factors, which may result in waste of fragrance liquid or insufficient fragrance spraying effect.

[0004] In summary, in the process of controlling the fragrance spraying machine, there are problems of insufficient adaptability and lack of intelligence in the control strategy. Summary of the invention

[0005] The embodiments of the present application provide a method for controlling the spraying of fragrances and an intelligent sprayer, which can solve the problems of insufficient adaptability and lack of intelligence in the control strategy in the process of controlling the sprayer to spray fragrances in the related art.

[0006] In a first aspect, an embodiment of the present application provides a method for controlling a fragrance spray, comprising:

[0007] Acquire current environment information, fragrance information and a historical control instruction set; wherein the current environment information is used to represent the current environment information in the car, the fragrance information includes the current state information of the fragrance dispenser and the current state information of the fragrance liquid, and the historical control instruction set is used to represent the control instructions corresponding to the historical fragrance spraying operations of the fragrance dispenser used in the car;

[0008] Generate a current control instruction and an expected fragrance spraying effect according to the current environment information, the fragrance spraying information and the historical control instruction set; wherein the expected fragrance spraying effect is obtained by predicting the fragrance spraying effect achieved after executing the current control instruction;

[0009] Control the aroma sprayer to perform aroma spraying operation according to the current control instruction to obtain an actual aroma spraying effect;

[0010] Based on the expected fragrance spraying effect and the actual fragrance spraying effect, the fragrance spraying result of the fragrance spraying machine is determined, and based on the fragrance spraying result, the current control instruction is adjusted.

[0011] The above technical solutions in the embodiments of the present application have at least the following technical effects:

[0012] The fragrance control method provided by the present application first obtains the current environmental information, fragrance information and historical control instruction set, which is conducive to knowing the current environmental information in the car, the current state information of the fragrance machine and the current state information of the fragrance liquid, and then generates the current control instruction and the expected fragrance effect according to the current environmental information, fragrance information and historical control instruction set, and then controls the fragrance machine to perform the fragrance operation according to the current control instruction to obtain the actual fragrance effect, and finally determines the fragrance result of the fragrance machine based on the expected fragrance effect and the actual fragrance effect, and adjusts the current control instruction based on the fragrance result. The method uses the current environmental information to dynamically adjust the fragrance operation, so that the fragrance machine can be flexibly adapted according to different environmental conditions, and solves the problem of insufficient adaptability of the fragrance control machine. The method dynamically optimizes the control strategy by comparing the predicted fragrance effect with the actual fragrance effect, and gradually realizes the self-optimization of the fragrance process. The method effectively solves the problems of insufficient adaptability and lack of intelligence in the control strategy when controlling fragrance through environmental perception, intelligent prediction and feedback optimization, improves the stability of the fragrance effect and the user experience, and realizes the refinement and intelligence of the fragrance machine control.

[0013] In a second aspect, an embodiment of the present application provides a fragrance spraying control device, comprising:

[0014] an acquisition unit, used to acquire current environment information, fragrance information and a historical control instruction set; wherein the current environment information is used to represent the current environment information in the car, the fragrance information includes the current state information of the fragrance dispenser and the current state information of the fragrance liquid, and the historical control instruction set is used to represent the control instructions corresponding to the historical fragrance spraying operations of the fragrance dispenser used in the car;

[0015] A generating unit, configured to generate a current control instruction and an expected fragrance spraying effect according to the current environment information, the fragrance spraying information and the historical control instruction set; wherein the expected fragrance spraying effect is obtained by predicting the fragrance spraying effect achieved after executing the current control instruction;

[0016] A control unit, used for controlling the aroma sprayer to perform aroma spraying operation according to the current control instruction to obtain an actual aroma spraying effect;

[0017] An adjustment unit is used to determine the fragrance result of the fragrance machine based on the expected fragrance effect and the actual fragrance effect, and to adjust the current control instruction based on the fragrance result.

[0018] In a third aspect, an embodiment of the present application provides an intelligent aromatherapy machine, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any one of the embodiments of the first aspect when executing the computer program.

[0019] It can be understood that the beneficial effects of the second to third aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 It is a flow chart of a fragrance spraying control method provided in one embodiment of the present application;

[0022] Figure 2 It is a schematic diagram of the implementation flow of generating the current control instruction in the fragrance spraying control method provided in the embodiment of the present application;

[0023] Figure 3 It is a schematic diagram of the implementation process of generating the expected fragrance spraying effect in the fragrance spraying control method provided in the embodiment of the present application;

[0024] Figure 4 is a schematic diagram of the structure of the fragrance spraying control device provided in an embodiment of the present application;

[0025] Figure 5 It is a structural schematic diagram of the intelligent aromatherapy machine provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0027] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0028] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0029] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0030] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0031] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0032] In the related art, the control of the fragrance machine is mostly based on fixed time intervals or simple environmental conditions, while ignoring the influence of various factors on the fragrance spraying effect, resulting in poor fragrance spraying effect, which may cause the fragrance to be too strong or too weak, causing discomfort to passengers. Existing fragrance machines usually rely on fixed preset fragrance spraying parameters and cannot intelligently adjust the fragrance spraying effect according to various factors, which may result in waste of fragrance liquid or insufficient fragrance spraying effect.

[0033] To solve the above problems, the embodiment of the present application provides a method for controlling the spraying of fragrances and an intelligent sprayer. In the method, the current environment information, the spraying information and the historical control instruction set are first obtained to facilitate the knowledge of the current environment information in the car, the current state information of the sprayer and the current state information of the fragrance liquid. Then, according to the current environment information, the spraying information and the historical control instruction set, the current control instruction and the expected spraying effect are generated. Then, according to the current control instruction, the sprayer is controlled to perform the spraying operation to obtain the actual spraying effect. Finally, based on the expected spraying effect and the actual spraying effect, the spraying result of the sprayer is determined, and based on the spraying result, the current control instruction is adjusted. The method uses the current environment information to dynamically adjust the spraying operation, so that the sprayer can flexibly adapt to different environmental conditions, solving the problem of insufficient adaptability of the sprayer. The method dynamically optimizes the control strategy by comparing the predicted spraying effect with the actual spraying effect, and gradually realizes the self-optimization of the spraying process. This method effectively solves the problems of insufficient adaptability and lack of intelligence in control strategies when controlling fragrance spraying through environmental perception, intelligent prediction and feedback optimization, improves the stability of the fragrance spraying effect and user experience, and realizes the refinement and intelligence of the fragrance sprayer control.

[0034] The fragrance control method provided in the embodiment of the present application can be applied to an intelligent fragrance sprayer. In this case, the intelligent fragrance sprayer is the executor of the fragrance control method provided in the embodiment of the present application. The embodiment of the present application does not impose any restrictions on the specific type of the intelligent fragrance sprayer.

[0035] Exemplarily, the smart fragrance sprayer may include a spray module, a data acquisition module and a control module; the spray module is a module capable of spraying fragrance liquid, and may include a micro nozzle system, a flow control valve, a stepper motor, etc.; the data acquisition module is a module capable of collecting vehicle interior environment data, fragrance sprayer status data and fragrance liquid status data, and may include a gas sensor, a liquid level sensor, an optical sensor, etc.; the control module is a module capable of controlling the spray module and the data acquisition module and performing data processing, and may include an embedded microcontroller (MCU) (such as ESP32, STM32), a wireless communication module (Bluetooth, Wi-Fi, ZigBee, etc.), an AI algorithm module, etc.

[0036] In order to better understand the fragrance control method provided in the embodiment of the present application, the specific implementation process of the fragrance control method provided in the embodiment of the present application is exemplarily introduced below.

[0037] Figure 1 A schematic flow chart of a fragrance spraying control method provided in an embodiment of the present application is shown, and the fragrance spraying control method comprises:

[0038] S100, obtaining current environment information, fragrance information and a historical control instruction set. The current environment information is used to represent the current environment information in the car, the fragrance information includes the current state information of the fragrance dispenser and the current state information of the fragrance liquid, and the historical control instruction set is used to represent the control instructions corresponding to the historical fragrance spraying operations of the fragrance dispenser used in the car.

[0039] It can be understood that the current environmental information is used to characterize the real-time environmental status in the car, and the current environmental information may include temperature and humidity data, passenger detection data, air volume and airflow direction, and the volume inside the car. The temperature and humidity data may include the real-time temperature and humidity information inside the car; the passenger detection data may include the number of passengers in the car and their distribution positions; the air volume and airflow direction are used to determine the fragrance diffusion path, and may include the current air volume and airflow direction of the air conditioner; the volume inside the car is the volume of the interior space of the vehicle (such as cubic meters).

[0040] The status information of the aerosol dispenser may include the nozzle working status and the power system status. The nozzle working status can be used to determine whether the nozzle is spraying normally or whether it is blocked; the power system status may include the operation status of the motor or drive system, such as operating temperature, voltage, current and other parameters. The fragrance liquid status information may include the remaining amount of fragrance liquid, fragrance type and fragrance liquid quality.

[0041] The historical control instruction set is the specific parameters of each fragrance spraying operation, such as spraying time, spraying concentration, spraying mode, spraying frequency, etc.

[0042] For example, the acquisition of current environmental information: a temperature and humidity sensor (such as DHT22 or SHT series sensor) can be used to obtain the real-time temperature and humidity values ​​in the car. The sensor can communicate with the control module through the I2C or UART interface to provide stable data output.

[0043] Infrared sensors, ultrasonic sensors or seat pressure sensors can be used to detect the number and position distribution of passengers in the car.

[0044] It can communicate with the vehicle system through the CAN bus protocol to obtain data such as the air volume and air flow direction of the air conditioner.

[0045] Acquisition of fragrance information: The status information of the fragrance machine can be detected by a micro pressure sensor or flow sensor to detect whether the nozzle is working normally or whether there is any blockage; the operating status of the fragrance machine drive system can be monitored by current and voltage sensors.

[0046] The status information of the fragrance liquid can be obtained by measuring the remaining amount of the fragrance liquid through an ultrasonic liquid level sensor or a photoelectric liquid level sensor; an RFID tag or a QR code can be installed on the liquid storage bin to mark the type of fragrance liquid; and optical or chemical sensors can be used to detect whether there are quality problems (such as precipitation or deterioration) in the fragrance liquid.

[0047] Acquisition of historical control instruction sets: A non-volatile memory (such as EEPROM or Flash memory) can be set in the control module or an external storage device (such as an SD card) can be used to save the control instructions of each fragrance spraying operation.

[0048] The data from all sensors and modules can be acquired through wireless communication modules (such as Wi-Fi, Bluetooth or CAN bus) and integrated and preliminarily processed in the control module.

[0049] Through this step, the current environmental information, fragrance information and historical control instruction set can be fully and accurately obtained, providing data support and optimization basis for fragrance control.

[0050] In a possible implementation, S100, obtaining fragrance information, includes:

[0051] S110, obtaining the liquid level height in the liquid storage bin of the fragrance sprayer; calculating the remaining amount of the fragrance liquid according to the liquid level height and the total height of the liquid storage bin to obtain liquid remaining amount information. The liquid level height is obtained by a liquid level sensor.

[0052] For example, a liquid level sensor (such as an ultrasonic liquid level sensor, a photoelectric liquid level sensor, or a pressure liquid level sensor) can be used to measure the liquid level of the fragrance liquid in the liquid storage bin in real time. The sensor can output an electrical signal or a digital signal indicating the actual height of the current liquid level. The detected liquid level can be compared with the pre-stored total height of the liquid storage bin to calculate the percentage remaining amount of the fragrance liquid, that is, the percentage remaining amount of the fragrance liquid = (liquid level height / total height of the liquid storage bin) × 100%. The calculated liquid remaining amount information is stored in the control system for monitoring and prompting the user to replenish the fragrance liquid.

[0053] S120, obtaining current optical data of the fragrance liquid; comparing the current optical data with the initial optical data, determining whether the fragrance liquid has deteriorated, and obtaining liquid quality information. The initial optical data is detected by the optical sensor when the fragrance liquid is loaded into the fragrance sprayer, and the liquid quality information is whether the fragrance liquid has not deteriorated or has deteriorated.

[0054] It can be understood that the optical data may include the color, transparency, refractive index, turbidity, absorbance or spectral characteristics of the liquid, and these parameters can reflect the physical and chemical properties of the liquid.

[0055] Exemplarily, when the fragrance liquid is loaded into the fragrance sprayer, the initial optical data of the liquid is obtained by an optical sensor, and the initial optical data is used as a reference value and stored in the non-volatile memory of the system. If the liquid storage tank is a transparent liquid storage tank, a transmissive optical sensor (Transmittance Sensor) or an ultraviolet-visible light sensor (UV-Vis Sensor) can be used to detect the initial absorbance of the fragrance liquid; an infrared scattered light sensor (IRNephelometer) or an ultraviolet-visible light sensor can be used to detect the initial turbidity of the fragrance liquid. If the liquid storage tank is an opaque liquid storage tank, a refractive index sensor (Refractometer, such as an optical fiber sensor) can be used to detect the initial refractive index of the fragrance liquid. The refractive index sensor is installed inside the liquid storage tank and detects the refraction of light by contacting with the fragrance liquid. The initial absorbance, initial turbidity, or initial refractive index can be used as the initial optical data of the fragrance liquid, or at least two of the three can be used as the initial optical data of the fragrance liquid.

[0056] Here we assume that the liquid storage tank built into the aerosol dispenser is a transparent liquid storage tank:

[0057] The transmissive light sensor can be installed on both sides of the transparent liquid storage bin, allowing the light source to shine through the fragrance liquid, and the detector on the other side to receive the transmitted light. The installation method of the UV-visible light sensor is the same as that of the transmissive light sensor. The sensor on one side of the transparent liquid storage bin detects the incident light intensity (the light intensity before passing through the fragrance liquid), and the sensor on the other side detects the transmitted light intensity (the light intensity after passing through the fragrance liquid). The initial absorbance of the fragrance liquid is calculated based on the incident light intensity and the transmitted light intensity. The calculation formula for the initial absorbance is: , represents absorbance, represents the intensity of transmitted light, Represents the incident light intensity.

[0058] There are two methods for calculating the initial turbidity of the fragrance liquid: 1. Use an infrared scattered light sensor to detect turbidity. Install the infrared scattered light sensor on both sides of the transparent liquid storage bin, let the infrared light source irradiate the fragrance liquid, place one side at the infrared light source position to detect the incident light intensity, and place the other side at a certain angle to the infrared light source (such as a 90° scattering angle) to receive light scattered from the liquid (i.e. detect the scattered light intensity). Calculate the initial turbidity of the fragrance liquid based on the incident light intensity and the scattered light intensity. The initial turbidity calculation formula is: :, Indicates turbidity, represents the turbidity correction factor (calibrated by standard turbidity solution), Indicates the intensity of scattered light in the direction perpendicular to the incident light. 2. The UV-visible light sensor detects the initial turbidity of the fragrance liquid. The initial turbidity of the fragrance liquid can be calculated using the initial absorbance and turbidity correction coefficient obtained by the above calculation. The initial turbidity calculation formula is: .

[0059] Correspondingly, the current absorbance or the current turbidity or the current refractive index can be used as the current optical data of the fragrance liquid, or at least two of the three can be used as the current optical data of the fragrance liquid, and the calculation method of the current optical data is the same as the calculation method of the initial optical data mentioned above. Compare the current optical data of the fragrance liquid with the initial optical data: the turbidity change percentage can be calculated based on the current turbidity and the initial turbidity. If the turbidity change percentage exceeds the turbidity change threshold (such as 10% or 20%), it can be determined that the fragrance liquid has deteriorated. The turbidity change percentage calculation formula is: , Indicates the percentage change in turbidity. Indicates the current turbidity. Indicates the initial turbidity.

[0060] Similarly, the absorbance change amplitude can be calculated based on the current absorbance and the initial absorbance. If the absorbance change amplitude exceeds the absorbance change threshold (such as 10%), it can be determined that the fragrance liquid has deteriorated. The formula for calculating the absorbance change amplitude is: , represents the absorbance change amplitude, Indicates the current absorbance, represents the initial absorbance.

[0061] The refractive index change percentage can be calculated based on the initial refractive index and the current refractive index. If the refractive index change percentage exceeds a refractive index change threshold (eg, 0.3%), it can be determined that the fragrance liquid has deteriorated.

[0062] The method of judging whether the fragrance liquid has deteriorated by comparing the initial optical data (initial absorbance, initial turbidity, initial refractive index) with the current optical data (current absorbance, current turbidity, current refractive index) has the advantages of real-time, automation, and convenience, and can effectively improve the efficiency and accuracy of fragrance liquid quality detection.

[0063] S130, integrating the liquid remaining amount information and the liquid quality information to obtain the current state information of the fragrance liquid.

[0064] For example, the liquid remaining information (current remaining percentage) and the liquid quality information (such as not spoiled or spoiled) can be integrated to form the current status information of the fragrance liquid. The integrated fragrance liquid status information can be fed back to the user through the vehicle display, mobile phone app or voice prompt. If it is detected that the liquid is spoiled or the remaining amount is insufficient, the user can be actively prompted to take corresponding measures (such as replacing or replenishing the liquid).

[0065] Through the above steps, the current status information of the fragrance liquid can comprehensively cover the remaining amount and quality of the liquid, providing important support for the intelligent operation of the fragrance sprayer, while improving the user experience and the safety of liquid use.

[0066] S200, generating a current control instruction and an expected fragrance spraying effect according to the current environment information, fragrance spraying information and a historical control instruction set, wherein the expected fragrance spraying effect is obtained by predicting the fragrance spraying effect achieved after executing the current control instruction.

[0067] For example, the historical environment information and the historical actual fragrance spraying effect corresponding to each control instruction in the historical control instruction set can be obtained from the storage module. Each control instruction in the historical control instruction set is parsed to obtain the fragrance spraying parameters corresponding to each control instruction.

[0068] The fragrance parameters corresponding to each control instruction and the historical environmental information corresponding to each control instruction can be used as data sets to train machine learning models (such as decision trees, random forests, or neural networks) to predict the optimal fragrance parameters under the current environmental information. The current environmental information is input into the trained model, and the model can generate the current fragrance parameters (such as spraying concentration, spraying time, spraying frequency, spraying mode, etc.), and convert the generated current fragrance parameters into control instructions that can be executed by the diffuser. If the user has specific fragrance preferences (such as fragrance concentration or type), they can be included in the decision-making process, and can also be combined with the current fragrance liquid type and remaining amount to help the control instructions balance resource consumption and user experience.

[0069] A prediction model can be constructed based on the fragrance spraying parameters corresponding to each control instruction, the historical environmental information corresponding to each control instruction, and the historical actual fragrance spraying effect. The model type can use regression analysis or neural network to efficiently predict multi-dimensional inputs. The current fragrance spraying parameters and current environmental information are input into the prediction model, and the prediction model can predict the coverage of the fragrance in each area after the fragrance is sprayed based on the current airflow direction and the space inside the car.

[0070] Through this step, the fragrance control instructions can be generated intelligently, and the fragrance effect can be accurately predicted, providing scientific support for the efficient operation of the fragrance machine and the optimization of user experience.

[0071] In one possible implementation, see Figure 2, S200, generates current control instructions and expected fragrance spraying effects according to current environment information, fragrance spraying information and historical control instruction sets, including:

[0072] S210, generating a trigger signal according to the current state information of the aerosol dispenser and the current state information of the fragrance liquid. The trigger signal is generated based on the current state information of the aerosol dispenser indicating that the current state of the aerosol dispenser is good and the current state information of the fragrance liquid indicating that the current state of the fragrance liquid is good, and the trigger signal is used to trigger the generation of the current control instruction and the expected fragrance spraying effect.

[0073] For example, the status information of the aerosol dispenser can be used to check whether the nozzle is working properly, whether the power system is running well, and whether there is a hardware failure in the system (such as nozzle blockage, motor abnormality, etc.). If all conditions are normal, it can be determined that the current state of the aerosol dispenser is good.

[0074] It is possible to determine whether the fragrance liquid is sufficient based on the liquid remaining information obtained in step S110. A liquid threshold value (such as remaining amount>20%) can be set, and the percentage remaining amount of the fragrance liquid can be compared with the liquid threshold value. If the percentage remaining amount is greater than the liquid threshold value, it can be determined that the fragrance liquid is sufficient; if the percentage remaining amount is less than or equal to the liquid threshold value, it can be determined that the fragrance liquid is insufficient. It is possible to determine whether the fragrance liquid has deteriorated based on the liquid quality information obtained in step S120. When the fragrance liquid is sufficient and has not deteriorated, it can be determined that the fragrance liquid is in a good state.

[0075] When the current state of the fragrance sprayer and the current state of the fragrance liquid are both judged to be good, a trigger signal is generated. The trigger signal is a logical switch signal used to start the current control instruction and the generation process of the expected fragrance spray effect.

[0076] S220, generating a current control instruction based on the trigger signal, current environment information and a historical control instruction set.

[0077] Exemplarily, after receiving the trigger signal, the control instruction generation module is started, and at the same time, it is confirmed whether the current environmental information (such as temperature and humidity, passenger distribution, air volume and airflow direction) and the historical control instruction set are available.

[0078] The historical environment information and actual fragrance spraying effect corresponding to each instruction in the historical control instruction set can be extracted, and the historical environment information most similar to the current environment information can be screened out from the historical environment information corresponding to each instruction. The screening method can be Euclidean distance or cosine similarity. The similarity results calculated by Euclidean distance or cosine similarity can be sorted, and several historical environment information most similar to the current environment information can be selected. The control instructions corresponding to several historical environment information most similar to the current environment information are extracted from the historical control instruction set, and the weighted average method is used to calculate the weighted average of the control instructions corresponding to several historical environment information most similar to the current environment information, and the weighted average is determined as the preliminary current control instruction. The preliminary current control instruction can be optimized according to the difference between the current environment information and the most similar historical environment information to obtain the current control instruction. For example, if the current environment humidity is lower, the spraying time can be extended to enhance the fragrance diffusion; if there are more passengers in the current environment, the spraying frequency can be increased to cover more areas.

[0079] It can verify whether the current control instructions are logical (such as whether the spraying parameters exceed the equipment's capabilities), and store the current control instructions in the storage module as a reference for future decisions.

[0080] Through this step, the current environmental information and the historical control instruction set can be combined to dynamically generate optimized current control instructions, which is conducive to accurate fragrance spraying effect and efficient resource utilization, while improving user experience and environmental adaptability.

[0081] Optionally, see Figure 2 , S220, based on the trigger signal, the current environment information and the historical control instruction set, generating the current control instruction, including:

[0082] S221, based on the trigger signal, obtaining historical environment information corresponding to each historical control instruction in the historical control instruction set.

[0083] Exemplarily, when the trigger signal is confirmed to be valid, the historical data retrieval process is started, and the historical environment information corresponding to each historical control instruction in the historical control instruction set can be retrieved and extracted from the storage module.

[0084] S222, matching the historical environment information corresponding to each historical control instruction with the current environment information to obtain a matching result, wherein the matching result is used to represent the historical environment information most similar to the current environment information.

[0085] Exemplarily, the current environment information and the historical environment information corresponding to each historical control instruction can be standardized, and all variables can be normalized to a uniform range (such as 0 to 1). The distance method or the cosine similarity method can be used to calculate the similarity of all historical environment information with the current environment information one by one, and the distance value or similarity score of each historical environment information can be recorded.

[0086] All historical environmental information are sorted according to the calculated distance value or similarity score. If the Euclidean distance method is used, the higher the similarity, the smaller the distance; if the cosine similarity method is used, the higher the similarity, the larger the score. You can select the historical environmental information with the smallest distance value or the highest similarity score. This historical environmental information is the most similar historical environmental information (matching result) to the current environmental information.

[0087] The matching results can be verified to ensure that the matching results are reasonable, that is, to verify that the historical environmental information with high similarity scores or low distance values ​​meets the current environmental conditions. If there are no completely matching records, you can consider setting a similarity threshold and only select records with similarity scores exceeding a certain threshold.

[0088] S223, extracting the historical control instruction corresponding to the matching result from the historical control instruction set to obtain a first control instruction.

[0089] Exemplarily, the historical control instruction (first control instruction) corresponding to the historical environment information most similar to the current environment information is extracted from the historical control instruction set according to the matching result.

[0090] S224: Generate a current control instruction according to the first control instruction and the current environment information.

[0091] For example, the current environment information can be compared with the historical environment information corresponding to the first control instruction, and then the first control instruction can be adjusted according to the adjustment rule of the fragrance sprayer and the comparison result, so as to obtain the current control instruction. For example, if the number of passengers in the current environment information is greater than the number of passengers in the historical environment information, the spraying frequency can be increased to cover more areas; if the air conditioning wind speed in the current environment information is stronger, the spraying amount can be increased to compensate for the effect of the fragrance being blown away.

[0092] The first control instruction may include spraying concentration, spraying time, and spraying frequency. Assume that the spraying concentration adjustment coefficient is , the spraying time adjustment factor is , the spraying frequency adjustment coefficient is , then the adjustment rules may include: Spraying concentration adjustment rules: , Indicates the spraying concentration in the current control instruction. Indicates the spraying concentration in the first control instruction; spraying time adjustment rules: , Indicates the spraying time in the current control instruction. Indicates the spraying time in the first control instruction; spraying frequency adjustment rules: , Indicates the spraying frequency in the current control instruction. Indicates the spraying frequency in the first control instruction. Each adjustment coefficient can be dynamically calculated based on the difference between the current environment and the historical environment. For example, if the number of passengers in the current environment information is two more than the number of passengers in the historical environment information, the spraying frequency adjustment coefficient It can be 0.2.

[0093] The spraying concentration, spraying time and spraying frequency in the current control instruction are calculated according to the above adjustment rules and the first control instruction to obtain the current control instruction.

[0094] Through the above steps, it is possible to generate optimized current control instructions based on current environmental information and historical control instruction sets, thereby achieving intelligent control of precise fragrance spraying and environmental improvement.

[0095] For example, see Figure 2 , S224, generating a current control instruction according to the first control instruction and the current environment information, including:

[0096] S2241, obtain current time information.

[0097] For example, the received trigger signal may carry the timestamp when the trigger signal was generated (e.g., 08:05, January 13, 2025), and the current time period may be determined based on the timestamp when the trigger signal was generated. The current time information may include the current exact time (e.g., 08:05), date (e.g., day of the week, whether it is a holiday), and time period (e.g., morning rush hour, noon, evening rush hour, or late night).

[0098] S2242, extracting the control instruction corresponding to the historical time corresponding to the current time information from the historical control instruction set to obtain a second control instruction.

[0099] Exemplarily, each record in the historical control instruction set may include a corresponding timestamp (such as a certain time of a certain day). Each historical control instruction is associated with the time information of its execution to form a data set including control instructions and time information.

[0100] According to the current time information, select the record with the closest time characteristics (second control instruction) from the historical control instruction set. For example, match the records of the same time period (such as the morning peak corresponding to the morning peak), match the same cycle (such as the weekend time period), and if there is date information, directly match the historical records of the same date.

[0101] S2243: extract the historical environment information corresponding to the second control instruction from the historical environment information corresponding to each historical control instruction.

[0102] Exemplarily, the historical environment information corresponding to the second control instruction may be queried from the historical environment information corresponding to each historical control instruction.

[0103] S2244, extract feature vectors from the current environment information, the matching result, and the historical environment information corresponding to the second control instruction to obtain a current environment feature vector, a first environment feature vector, and a second environment feature vector.

[0104] For example, the parameters in the current environment information can be extracted and integrated to obtain the current environment feature vector. The parameters in the current environment information may include temperature, humidity, the size of the space inside the vehicle, and the number of passengers inside the vehicle. Then the current environment feature vector is [temperature, humidity, the size of the space inside the vehicle, and the number of passengers inside the vehicle]. The method for extracting the feature vector of the historical environment information (matching result) most similar to the current environment information and the historical environment information corresponding to the second control instruction is the same as that for extracting the feature vector of the current environment information. The current environment feature vector can be recorded as , the first environmental eigenvector is denoted as , the second environmental feature vector is denoted as .

[0105] S2245, calculating the distance between the current environment feature vector and the first environment feature vector to obtain a first distance, and calculating the distance between the current environment feature vector and the second environment feature vector to obtain a second distance.

[0106] Exemplarily, the Euclidean distance may be used to calculate the distance between the current environment feature vector and the first environment feature vector and the distance between the current environment feature vector and the second environment feature vector. The calculation formula for the first distance is: , represents the first distance; the calculation formula for the second distance is , Indicates the second distance.

[0107] S2246: Calculate the weight corresponding to the first control instruction and the weight corresponding to the second control instruction according to the first distance and the second distance to obtain the first weight and the second weight.

[0108] Exemplarily, the weight corresponding to the first control instruction and the weight corresponding to the second control instruction can be calculated according to the calculation formula of the first weight and the second weight. The calculation formula of the first weight is: , represents the weight corresponding to the first control instruction (first weight); the calculation formula of the second weight is , Indicates the weight (second weight) corresponding to the second control instruction. That is, the closer the distance to the current environment feature vector, the higher the weight.

[0109] S2247, generating a current control instruction according to the first weight, the first control instruction, the second weight, and the second control instruction.

[0110] For example, the first control instruction and the second control instruction may be interpolated according to the first weight and the second weight to generate a new control instruction. The interpolation calculation formula is: , Indicates the current control instruction. Indicates the first control instruction, Indicates the second control instruction. For example, the first distance 2, the second distance 1, the first control instruction The second control instruction is: spraying frequency 5 minutes (spraying once every 5 minutes), spraying concentration 0.1 ml / second / cubic meter, spraying time 5 seconds The spraying frequency is 3 minutes (spraying once every 3 minutes), the spraying concentration is 0.2 ml / s / m3, and the spraying time is 3 seconds. Then the first weight is , the second weight is , the spraying frequency of the current control instruction is , the spraying concentration of the current control instruction is , the spraying time of the current control instruction is , current control instruction The spraying frequency is 3.67 minutes (spraying once every 3.67 minutes), the spraying concentration is 0.167 ml / s / cubic meter, and the spraying time is 3.67 seconds.

[0111] Through the above steps, the current control instructions can be dynamically generated through a real-time adjustment mechanism, which is beneficial for the fragrance machine to adapt to different environments and optimize the fragrance effect and resource utilization.

[0112] S230, generating an expected fragrance spraying effect according to the current control instruction and the current environmental information.

[0113] For example, a data-driven fragrance effect prediction model (such as a regression model or a neural network) can be used to predict the fragrance effect based on input data. The core of the prediction model is to establish the relationship between the spraying parameters, environmental information and the fragrance result.

[0114] For example, a fragrance diffusion range calculation formula can be constructed based on the spraying concentration and spraying time of each instruction in the historical control instruction set, the airflow direction and air conditioning wind speed in the historical environmental information corresponding to each instruction, and the actual fragrance spraying effect corresponding to each instruction. The current control instruction and the current environmental information can be input into the prediction model, and the prediction model uses the fragrance diffusion range calculation formula to calculate the fragrance diffusion range corresponding to the current control instruction.

[0115] The fragrance diffusion range calculation formula is deployed to the prediction model. When a new control instruction and corresponding environmental information are input, the prediction model can predict the fragrance diffusion range after the control instruction is executed. The expected fragrance effect (fragrance diffusion range) can be stored together with the current control instruction and current environmental information for subsequent comparison of the actual fragrance effect and optimization model.

[0116] Through this step, the expected fragrance spraying effect generated based on the current control instructions and the current environmental information can effectively predict the result of the fragrance spraying operation, providing a scientific basis for optimizing the fragrance spraying strategy and improving the user experience.

[0117] Optionally, see Figure 3 , S230, generating an expected fragrance spraying effect according to the current control instruction and the current environment information, including:

[0118] S231, calculating the initial fragrance concentration according to the spraying concentration, spraying duration and current environment information in the current control instruction, and determining the expected fragrance concentration change information based on the initial fragrance concentration and fragrance liquid parameter information. The fragrance spraying information includes fragrance liquid parameter information.

[0119] It can be understood that the fragrance liquid parameter information may include the fragrance liquid concentration, the ratio of fragrance in the fragrance liquid (such as percentage concentration); the fragrance diffusion coefficient, the diffusion ability of fragrance molecules in the air (such as diffusion rate constant); the fragrance volatilization rate, the volatilization speed of the fragrance liquid at different humidity and temperature.

[0120] For example, the total spraying volume for one spraying can be calculated based on the spraying concentration and spraying duration in the current control instruction and the volume inside the vehicle in the current environmental information, that is, , Indicates the total spraying volume of one spraying. The initial fragrance concentration can be calculated based on the fragrance liquid concentration in the fragrance liquid parameter information, the total spray volume of one spray, and the volume of the car. , represents the initial fragrance concentration, and n represents the fragrance liquid concentration. According to the initial fragrance concentration and fragrance diffusion coefficient, the fragrance diffusion model is constructed, that is, , represents the fragrance diffusion model, represents the fragrance diffusion coefficient. According to the initial fragrance concentration and fragrance volatilization rate, the fragrance liquid volatilization model is constructed, that is, , Indicates the volatilization model of the fragrance liquid. represents the volatilization rate of fragrance. According to the fragrance diffusion model and the volatilization model of fragrance liquid, the fragrance concentration change model is constructed, that is, , represents the aroma concentration variation model, It represents the total attenuation coefficient, which can reflect the combined effect of environmental conditions and fragrance liquid characteristics. The trend of fragrance concentration change over time can be calculated according to the fragrance concentration change model to obtain a curve of fragrance concentration change over time. The expected fragrance concentration change information may include a curve of fragrance concentration change over time and the fragrance concentration corresponding to each time.

[0121] Through this step, the change in fragrance concentration after spraying can be predicted based on the current control instructions, fragrance liquid parameters and environmental information, providing a scientific basis for optimizing the spraying strategy and improving the user experience.

[0122] S232, predicting the duration of the fragrance according to the expected fragrance concentration change information to obtain the expected duration.

[0123] For example, a fragrance concentration threshold value may be set, indicating that when the fragrance concentration drops below the fragrance concentration threshold value, the fragrance is no longer noticeable, and the time when the fragrance concentration drops to the fragrance concentration threshold value is the fragrance duration. The time (expected duration) when the fragrance concentration drops to the fragrance concentration threshold value may be calculated based on the fragrance concentration change model and the fragrance concentration threshold value in step S231, that is, , t represents the fragrance duration, and A represents the fragrance concentration threshold.

[0124] S233, integrating the expected fragrance concentration change information and the expected duration to obtain the expected fragrance spraying effect.

[0125] For example, the curve of the change of fragrance concentration over time, the fragrance concentration corresponding to each time, and the expected duration can be integrated into the expected fragrance spraying effect.

[0126] Through the above steps, the effect of the fragrance spraying operation can be fully predicted, providing a scientific basis for precise control and user experience optimization.

[0127] In a possible implementation, the fragrance control method further includes:

[0128] S201, according to the first control instruction, the matching result and the current environment information, the instruction generation module of the generation model generates the current control instruction. The generation model includes an instruction generation module and an effect prediction module, the instruction generation module is an instruction generation model, and the instruction generation model is a machine learning model.

[0129] Exemplarily, the training process of the instruction generation module (instruction generation model) is as follows: feature extraction is performed on the environmental information corresponding to each instruction in the historical control instruction set to obtain the environmental features corresponding to each instruction. The environmental features corresponding to each instruction are used as the input of the model, and each instruction is used as a label. Each instruction in the historical control instruction set and the environmental features corresponding to each instruction are divided into a training set (70%), a validation set (20%), and a test set (10%) for model training and evaluation. A model structure suitable for generating control instructions can be selected, such as a neural network model (ANN), a random forest (RF), a gradient boosting decision tree (GBDT), etc. Use the training set to fit the model, adjust the model parameters so that it can accurately map the environmental information to the control instructions, use the validation set to evaluate the model performance, adjust the hyperparameters (such as the learning rate, the depth of the tree, the number of neurons), and avoid overfitting (such as introducing regularization, Dropout, etc.).

[0130] The difference between the matching result (the historical environment information most similar to the current environment information) and the current environment information is calculated, and the first control instruction, the matching result, the current environment information, and the difference between the matching result and the current environment information are input into the instruction generation module, and the instruction generation module can generate the current control instruction.

[0131] Through this step, the instruction generation module of the generated model can dynamically adapt to the current environmental conditions and generate accurate fragrance spraying control instructions based on historical experience, thereby realizing intelligent and efficient fragrance spraying operations.

[0132] S202, according to the current control instruction and the current environment information, using the effect prediction module in the generation model, predicting the fragrance spraying effect after executing the current control instruction to obtain the expected fragrance spraying effect. The effect prediction module is an effect prediction model, and the effect prediction model is a machine learning model.

[0133] Exemplarily, a suitable model can be selected, such as a decision tree, a random forest, a neural network, etc., and the historical control instruction set, the historical environmental information corresponding to each instruction in the historical control instruction set, and the actual fragrance spraying effect can be divided into a training set, a validation set, and a test set. The selected model is trained with the training set, the validation set, and the test set. The training set is used to fit the model, and the model parameters are adjusted so that the model can learn the relationship between the historical control instruction set and the historical environmental information corresponding to each instruction in the historical control instruction set and the actual fragrance spraying effect corresponding to each instruction. The validation set is used to evaluate the model performance, and the hyperparameters (such as learning rate, tree depth, number of neurons) are adjusted to avoid overfitting (such as introducing regularization, Dropout, etc.).

[0134] The current control instructions and current environmental information are input into the trained effect prediction model (effect prediction module). The model predicts the fragrance effect after executing the current control instructions and outputs the expected fragrance effect.

[0135] Through this step, the effect prediction module can accurately predict the fragrance spraying effect after executing the current control instruction, provide intelligent decision-making support, and continuously optimize in actual use to improve the intelligence level and user experience of the fragrance sprayer.

[0136] S300, controlling the aroma spraying machine to perform aroma spraying operation according to the current control instruction to obtain an actual aroma spraying effect.

[0137] For example, the current control instruction can be parsed to convert high-level parameters into low-level hardware execution signals, such as the start time and speed control of the drive motor, the switch state and continuous working time of the nozzle. The execution signal is sent to the corresponding device to open the nozzle and atomize the fragrance liquid, adjust the spraying concentration and direction according to the instruction, and control the spraying duration. The fragrance spraying operation can be stopped by closing the nozzle.

[0138] After the fragrance spraying operation is completed, the fragrance diffusion range and concentration can be evaluated through odor sensors or user feedback. If there is a passenger position sensor, it can detect whether the fragrance effectively covers the key areas and record these data as the actual fragrance spraying effect.

[0139] Through this step, after executing the control instructions, the actual effects are collected to provide reliable data support for the subsequent optimization of the fragrance spraying strategy.

[0140] In a possible implementation, S300, controlling the aroma sprayer to perform an aroma spraying operation according to the current control instruction to obtain an actual aroma spraying effect includes:

[0141] S310, controlling the spray module of the fragrance sprayer to perform fragrance spraying operation according to the current control instruction.

[0142] For example, the spray module (such as nozzle, pump, fan, etc.) can be started according to the current control instruction, and the nozzle can be opened according to the spray mode and duration in the current control instruction to spray the fragrance liquid. If it is an intermittent spray mode, the control module will cycle the switch action according to the spray frequency in the current control instruction. For the heavy spray mode, the nozzle pressure or fan speed may be increased to facilitate faster diffusion of the liquid. The control module controls the internal pump or flow control valve of the spray module to accurately adjust the output of the fragrance liquid according to the spray concentration in the current control instruction. If the device has a built-in fan, the fan can be started to help evenly diffuse the fragrance molecules into the vehicle interior.

[0143] S320, after the fragrance spraying operation is completed, a data acquisition signal is generated, wherein the data acquisition signal is used to trigger the data acquisition module of the fragrance sprayer to perform data acquisition.

[0144] For example, when the fragrance spraying operation is completed, a data acquisition signal is generated, the data acquisition signal is transmitted to the data acquisition module, and the data acquisition module is started to collect data. The concentration of fragrance molecules can be monitored by a gas sensor to determine the diffusion of the fragrance after spraying; the temperature and humidity in the car can be collected by a temperature and humidity sensor to analyze its impact on the diffusion and duration of the fragrance; the actual amount of liquid sprayed can be collected by a flow sensor to facilitate the spraying in accordance with the set parameters. The flow sensor can be installed on the nozzle or liquid storage bin.

[0145] S330, based on the data acquisition signal, obtaining a fragrance concentration data set, and constructing a fragrance concentration change curve according to the fragrance concentration data set to obtain actual fragrance concentration change information.

[0146] For example, the actual fragrance concentration values ​​(fragrance concentration data set) at different times can be collected by the gas sensor in the data acquisition module, and each time is used as the horizontal axis of the fragrance concentration change curve, and the fragrance concentration value corresponding to each time is used as the vertical axis of the fragrance concentration change curve to construct an actual fragrance concentration change curve. The fragrance concentration change curve can show the initial value of the fragrance concentration (peak value of concentration after spraying) and the trend of decay over time. The actual fragrance concentration change information can include the actual fragrance concentration change curve and the actual fragrance concentration values ​​at different times.

[0147] S340, calculating the actual duration of the fragrance according to the actual fragrance concentration change information to obtain the actual duration.

[0148] For example, the time point corresponding to the fragrance concentration threshold can be found from the fragrance concentration change curve, and the time point corresponding to the initial fragrance concentration of the fragrance concentration change curve can be set to 0, so the time point corresponding to the fragrance concentration threshold is the actual fragrance duration (actual duration).

[0149] S350, integrating the actual fragrance concentration change information and the actual duration to obtain the actual fragrance spraying effect.

[0150] Exemplarily, the actual fragrance concentration variation curve, the actual fragrance concentration values ​​at different times and the actual fragrance duration are integrated into the actual fragrance spraying effect.

[0151] Through the above steps, the fragrance spraying operation can be fully executed and relevant data can be collected to generate the actual fragrance spraying effect, which provides a closed-loop feedback mechanism for the intelligent operation of the fragrance sprayer and provides a scientific basis for optimizing the fragrance spraying strategy and improving the user experience.

[0152] S400, based on the expected fragrance spraying effect and the actual fragrance spraying effect, determine the fragrance spraying result of the fragrance spraying machine, and adjust the current control instruction based on the fragrance spraying result.

[0153] For example, the expected fragrance spraying effect is compared with the actual fragrance spraying effect to evaluate whether the actual fragrance coverage reaches the expected fragrance coverage. The difference rate between the actual fragrance coverage and the expected fragrance coverage is calculated. If the difference rate is within the allowable range, the actual fragrance spraying effect can be determined to be up to standard (fragrance spraying result). If the difference rate exceeds the range, the actual fragrance spraying effect can be determined to be not up to standard (fragrance spraying result) and marked as insufficient effect or excessive fragrance spraying. The calculation formula of the difference rate can be ,in, represents the difference rate, represents the expected value (expected fragrance coverage), Indicates actual value (actual fragrance coverage).

[0154] The current control instructions and current environmental information can be analyzed to identify potential reasons why the actual fragrance spraying effect does not meet the standard, such as unreasonable settings of spraying parameters (intensity, time, frequency, mode), and dynamic changes in the environment (such as airflow direction, temperature and humidity in the car) affecting the diffusion of fragrance. The specific parameters of the current control instructions can be adjusted according to the problem attribution of the fragrance spraying results and the preset parameter optimization logic. For example, if the fragrance concentration is too high, reduce the spraying concentration; if the fragrance spraying range is insufficient, extend the spraying time; if the spraying is excessive, shorten the spraying time. The current control instructions can be dynamically adjusted according to changes in the current environmental information. For example, if the environment is hot and humid, the spraying concentration can be reduced or the spraying time can be shortened; if the airflow is strong, the spraying direction can be adjusted or the spraying concentration can be increased; if in a dynamic environment (such as an open car window), the spraying frequency can be increased; if in a stable environment (such as a closed car window), the spraying frequency can be reduced.

[0155] The adjusted control instructions can be transmitted to the spray module of the fragrance sprayer to start the adjusted spray operation, monitor the operating status of the fragrance sprayer, and collect the actual fragrance effect of a new round of fragrance operation. The effectiveness of the adjustment can be verified by comparing it with the expected fragrance effect. If it is still not up to standard after adjustment, re-analyze and further optimize it.

[0156] Through this step, the control instructions can be dynamically adjusted in the feedback of the fragrance spraying results, the fragrance spraying effect can be continuously optimized, the adaptability and user experience can be improved, and at the same time, the efficient use of resources and the intelligent adjustment of the environment can be achieved.

[0157] In a possible implementation, S400, based on the fragrance spraying result, adjusts the current control instruction, including:

[0158] S410, when the fragrance spraying result indicates that the actual fragrance spraying effect is inconsistent with the expected fragrance spraying effect, the fragrance concentration deviation is determined based on the expected fragrance concentration change information and the actual fragrance concentration change information.

[0159] Exemplarily, the conditions for determining that the actual fragrance spraying effect does not match the expected fragrance spraying effect may include that the difference between the expected fragrance concentration peak value in the expected fragrance concentration change information and the actual fragrance concentration peak value in the actual fragrance concentration change information is greater than the concentration allowable threshold, and the difference between the expected duration and the actual duration is greater than the time threshold. When at least one of the above conditions is met, it can be determined that the actual fragrance spraying effect does not match the expected fragrance spraying effect.

[0160] The difference between the expected fragrance concentration and the actual fragrance concentration at each time can be calculated based on the fragrance concentration corresponding to each time in the expected fragrance concentration change information (expected fragrance concentration) and the actual fragrance concentration corresponding to each time in the actual fragrance concentration change information (actual fragrance concentration), and the differences at all time points are summed up to calculate the overall deviation (such as mean square error) to obtain the fragrance concentration deviation. When the fragrance concentration deviation is greater than zero, that is, the actual fragrance concentration is lower than the expected fragrance concentration, it indicates insufficient spraying; when the fragrance concentration deviation is less than zero, that is, the actual fragrance concentration is higher than the expected fragrance concentration, it indicates excessive spraying.

[0161] S420, calculating the difference between the expected duration and the actual duration to obtain a time difference, and comparing the time difference with a time threshold to determine whether the time difference is within the time threshold to obtain a determination result.

[0162] Exemplarily, the difference between the expected duration and the actual duration can be calculated to obtain the time difference, and the time difference can be compared with the time threshold. If the time difference is within the time threshold, it means that the actual fragrance duration meets the expected fragrance duration; if the time difference is not within the time threshold, it means that the current control instruction can be adjusted, and when the time difference is greater than zero, it means that the actual fragrance duration is insufficient; when the time difference is less than zero, it means that the actual fragrance duration is too long.

[0163] S430, adjusting the current control instruction according to the fragrance concentration deviation and the judgment result to generate a third control instruction, wherein the third control instruction is used to control the spraying module of the fragrance sprayer to perform the next fragrance spraying operation.

[0164] For example, when the difference between the expected fragrance concentration peak value in the expected fragrance concentration change information and the actual fragrance concentration peak value in the actual fragrance concentration change information is greater than the concentration allowable threshold, the spraying concentration or spraying time in the current control instruction can be adjusted according to the fragrance concentration deviation. For example, if the fragrance concentration deviation is greater than zero (the actual fragrance concentration is lower than the expected fragrance concentration), the spraying concentration can be increased, that is, , Indicates the spraying concentration in the third control instruction. Indicates the deviation of fragrance concentration, It indicates the adjustment coefficient of the fragrance concentration deviation to the spraying intensity; or it can extend the spraying time, that is, , Indicates the spraying time in the third control instruction, The adjustment coefficient of the fragrance concentration deviation on the spraying time. If the fragrance concentration deviation is less than zero (the actual fragrance concentration is higher than the expected fragrance concentration), the spraying concentration can be reduced or the spraying time can be shortened. The formula is the same as above.

[0165] When the difference between the expected duration and the actual duration is greater than the time threshold, the spraying time can be adjusted according to the time difference. For example, when the time difference is greater than zero (the actual fragrance duration is insufficient), the spraying time can be extended. , Indicates the time difference; when the time difference is less than zero (the actual fragrance duration is too long), the spraying time can be shortened. .

[0166] According to the above adjustment logic, an optimized third control instruction is generated.

[0167] Through this step, when the actual fragrance spraying effect does not match the expected fragrance spraying effect, the fragrance concentration deviation and time difference can be comprehensively considered to dynamically adjust the current control instruction and generate a more optimized third control instruction to ensure that the next fragrance spraying operation is more accurate and efficient.

[0168] In a possible implementation, after obtaining the current environment information, the fragrance spraying information and the historical control instruction set, the following is further included:

[0169] S10, compare the power status in the current status information of the aerosol dispenser with the power threshold to obtain a power comparison result; if the power comparison result indicates that the power status is lower than the power threshold, generate a lighting instruction, and control the indicator light of the aerosol dispenser according to the lighting instruction.

[0170] Exemplarily, the power status is extracted from the current status information of the aerosol dispenser, and the power status is compared with the power threshold. When the power status is lower than the power threshold, a lighting instruction is generated, and according to the lighting instruction, the indicator light of the aerosol dispenser is controlled to light up, and a low power status is prompted.

[0171] S20, compare the liquid remaining information with the liquid threshold to obtain a liquid comparison result; if the liquid comparison result indicates that the liquid remaining information is lower than the liquid threshold and / or the liquid quality information indicates that the fragrance liquid is deteriorated, generate a warning message and send the warning message to the user end.

[0172] Exemplarily, liquid remaining information is extracted from the current status information of the fragrance liquid, and the liquid remaining information is compared with the liquid threshold. When the liquid remaining information is lower than the liquid threshold and / or the liquid quality information indicates that the fragrance liquid is deteriorating, a warning message is generated, and the generated warning message is sent to the user end (such as a mobile phone App or a device display) via a wireless module (such as Bluetooth, Wi-Fi).

[0173] Through the above steps, the system can dynamically monitor the power status and liquid status of the fragrance sprayer, generate lighting instructions and warning information, and enhance the intelligence of the equipment and user experience.

[0174] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0175] Corresponding to the fragrance spraying control method described in the above embodiment, the embodiment of the present application also provides a fragrance spraying control device, and each unit of the device can implement each step of the fragrance spraying control method. Figure 5 A structural block diagram of the fragrance spray control device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0176] Reference Figure 4 , the device comprises:

[0177] The acquisition unit is used to acquire current environment information, fragrance information and historical control instruction set. The current environment information is used to represent the current environment information in the car, the fragrance information includes the current state information of the fragrance dispenser and the current state information of the fragrance liquid, and the historical control instruction set is used to represent the control instructions corresponding to the historical fragrance operation of the fragrance dispenser used in the car.

[0178] The generating unit is used to generate the current control instruction and the expected fragrance spraying effect according to the current environment information, the fragrance spraying information and the historical control instruction set, wherein the expected fragrance spraying effect is obtained by predicting the fragrance spraying effect achieved after executing the current control instruction.

[0179] The control unit is used to control the fragrance spraying machine to perform fragrance spraying operation according to the current control instructions to obtain the actual fragrance spraying effect.

[0180] The adjustment unit is used to determine the fragrance spraying result of the fragrance sprayer based on the expected fragrance spraying effect and the actual fragrance spraying effect, and adjust the current control instruction based on the fragrance spraying result.

[0181] It should be noted that the information interaction, execution process and other contents between the above-mentioned units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

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

[0183] The present application also provides an intelligent fragrance sprayer. Figure 5 The structure diagram of the intelligent aroma sprayer provided in one embodiment of the present application. The intelligent aroma sprayer includes a spray module, a data acquisition module and a control module. Figure 5 As shown, the control module 6 of the intelligent aromatherapy machine of this embodiment includes: at least one processor 60 ( Figure 5 Only one is shown), at least one memory 61 ( Figure 5Only one is shown in the figure) and a computer program 62 stored in the at least one memory 61 and executable on the at least one processor 60. When the processor 60 executes the computer program 62, the smart aroma diffuser implements the steps in any of the above-mentioned fragrance control method embodiments, or implements the functions of the units in the above-mentioned device embodiments.

[0184] Exemplarily, the computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 62 in the control module 6 of the smart aromatherapy machine.

[0185] The control module 6 of the smart aromatherapy machine may include an embedded microcontroller (MCU) (such as ESP32, STM32), a wireless communication module (Bluetooth, Wi-Fi, ZigBee, etc.), and an AI algorithm module. The smart aromatherapy machine may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will understand that Figure 5 It is only an example of a smart aroma diffuser and does not constitute a limitation of the smart aroma diffuser. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, buses, etc.

[0186] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0187] In some embodiments, the memory 61 may be an internal storage unit of the control module 6 of the smart aerosol dispenser, such as a hard disk or memory of the smart aerosol dispenser. In other embodiments, the memory 61 may also be an external storage device of the smart aerosol dispenser, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the smart aerosol dispenser. Furthermore, the memory 61 may also include both an internal storage unit and an external storage device of the smart aerosol dispenser. The memory 61 is used to store operating systems, applications, boot loaders (BootLoader), data and other programs, such as program codes of the computer programs, etc. The memory 61 may also be used to temporarily store data that has been output or is to be output.

[0188] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0189] An embodiment of the present application provides a computer program product. When the computer program product is run on an intelligent aroma diffuser, the intelligent aroma diffuser implements the steps in any of the above-mentioned method embodiments.

[0190] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the smart atomizer, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

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

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

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

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

[0195] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such 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, and should all be included in the protection scope of the present application.

Claims

1. A method for controlling fragrance spraying, characterized in that: include: Acquire current environment information, fragrance information and a historical control instruction set; wherein the current environment information is used to represent the current environment information in the car, the fragrance information includes the current state information of the fragrance dispenser and the current state information of the fragrance liquid, and the historical control instruction set is used to represent the control instructions corresponding to the historical fragrance spraying operations of the fragrance dispenser used in the car; Generate a current control instruction and an expected fragrance spraying effect according to the current environment information, the fragrance spraying information and the historical control instruction set; wherein the expected fragrance spraying effect is obtained by predicting the fragrance spraying effect achieved after executing the current control instruction; Control the aroma sprayer to perform aroma spraying operation according to the current control instruction to obtain an actual aroma spraying effect; Determining a fragrance spraying result of the fragrance spraying machine based on the expected fragrance spraying effect and the actual fragrance spraying effect, and adjusting the current control instruction based on the fragrance spraying result; The step of generating the current control instruction and the expected fragrance spraying effect according to the current environment information, the fragrance spraying information and the historical control instruction set includes: Generate a trigger signal according to the current state information of the aerosol dispenser and the current state information of the fragrance liquid; wherein the trigger signal is generated based on the current state information of the aerosol dispenser indicating that the current state of the aerosol dispenser is good and the current state information of the fragrance liquid indicating that the current state of the fragrance liquid is good, and the trigger signal is used to trigger the generation of the current control instruction and the expected fragrance spraying effect; generating the current control instruction based on the trigger signal, the current environment information and the historical control instruction set; Generate an expected fragrance spraying effect according to the current control instruction and the current environmental information; The generating the current control instruction based on the trigger signal, the current environment information and the historical control instruction set includes: Based on the trigger signal, acquiring historical environment information corresponding to each historical control instruction in the historical control instruction set; Matching the historical environment information corresponding to each historical control instruction with the current environment information to obtain a matching result; wherein the matching result is used to characterize the historical environment information that is most similar to the current environment information; Extracting the historical control instruction corresponding to the matching result from the historical control instruction set to obtain a first control instruction; generating the current control instruction according to the first control instruction and the current environment information; The step of generating the current control instruction according to the first control instruction and the current environment information includes: Get current time information; Extracting the control instruction corresponding to the historical time corresponding to the current time information from the historical control instruction set to obtain a second control instruction; Extracting the historical environment information corresponding to the second control instruction from the historical environment information corresponding to each historical control instruction; Extracting feature vectors from the current environment information, the matching result, and the historical environment information corresponding to the second control instruction to obtain a current environment feature vector, a first environment feature vector, and a second environment feature vector; Calculating the distance between the current environment feature vector and the first environment feature vector to obtain a first distance, and calculating the distance between the current environment feature vector and the second environment feature vector to obtain a second distance; Calculating a weight corresponding to the first control instruction and a weight corresponding to the second control instruction according to the first distance and the second distance to obtain a first weight and a second weight; The current control instruction is generated according to the first weight, the first control instruction, the second weight and the second control instruction.

2. The fragrance control method according to claim 1, characterized in that: Get fragrance information including: Obtaining the liquid level height in the liquid storage bin of the fragrance sprayer; calculating the remaining amount of the fragrance liquid according to the liquid level height and the total height of the liquid storage bin to obtain liquid remaining amount information; wherein the liquid level height is obtained by a liquid level sensor; Acquire current optical data of the fragrance liquid; compare the current optical data with initial optical data to determine whether the fragrance liquid has deteriorated, and obtain liquid quality information; wherein the initial optical data is detected by an optical sensor when the fragrance liquid is loaded into the fragrance dispenser, and the liquid quality information is whether the fragrance liquid has not deteriorated or the fragrance liquid has deteriorated; The liquid remaining amount information and the liquid quality information are integrated to obtain the current state information of the fragrance liquid.

3. The fragrance control method according to claim 1, characterized in that: The generating an expected fragrance spraying effect according to the current control instruction and the current environment information includes: Calculate the initial fragrance concentration according to the spraying concentration, spraying duration and the current environment information in the current control instruction, and determine the expected fragrance concentration change information based on the initial fragrance concentration and the fragrance liquid parameter information; wherein the fragrance spraying information includes the fragrance liquid parameter information; Predicting the duration of the fragrance according to the expected fragrance concentration change information to obtain the expected duration; The expected fragrance concentration change information and the expected duration are integrated to obtain the expected fragrance effect.

4. The fragrance control method according to claim 1, characterized in that: The method further comprises: According to the first control instruction, the matching result and the current environment information, the current control instruction is generated by using the instruction generation module of the generation model; wherein the generation model includes an instruction generation module and an effect prediction module, the instruction generation module is an instruction generation model, and the instruction generation model is a machine learning model; According to the current control instruction and the current environmental information, the effect prediction module in the generation model is used to predict the fragrance effect after executing the current control instruction to obtain the expected fragrance effect; wherein the effect prediction module is an effect prediction model, and the effect prediction model is a machine learning model.

5. The fragrance control method according to claim 3, characterized in that: The step of controlling the aroma sprayer to perform aroma spraying operation according to the current control instruction to obtain an actual aroma spraying effect includes: Controlling the spraying module of the fragrance sprayer to perform fragrance spraying operation according to the current control instruction; When the fragrance spraying operation is completed, a data acquisition signal is generated; wherein the data acquisition signal is used to trigger the data acquisition module of the fragrance spraying machine to perform data acquisition; Based on the data acquisition signal, a fragrance concentration data set is obtained, and a fragrance concentration change curve is constructed according to the fragrance concentration data set to obtain actual fragrance concentration change information; Calculate the actual duration of the fragrance according to the actual fragrance concentration change information to obtain the actual duration; The actual fragrance concentration change information and the actual duration are integrated to obtain the actual fragrance spraying effect.

6. The fragrance control method according to claim 5, characterized in that: The adjusting the current control instruction based on the fragrance spraying result includes: When the fragrance spraying result indicates that the actual fragrance spraying effect does not match the expected fragrance spraying effect, determining a fragrance concentration deviation based on the expected fragrance concentration change information and the actual fragrance concentration change information; Calculate the difference between the expected duration and the actual duration to obtain a time difference, and compare the time difference with a time threshold to determine whether the time difference is within the time threshold to obtain a determination result; According to the fragrance concentration deviation and the judgment result, the current control instruction is adjusted to generate a third control instruction; wherein the third control instruction is used to control the spray module of the fragrance sprayer to perform the next fragrance spraying operation.

7. An intelligent aromatherapy machine, 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 method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Air conditioning device, air conditioning system and air conditioning method

    CN113442685A

  • Fragrance control method, device and system and electronic device

    CN116278646A