Intelligent toilet lid control method and system
By establishing instruction libraries, behavioral databases and adjustment databases, combined with real -time environmental data and user interaction interfaces, dynamically adjust the control instruction set of smart toilet lids, solve the problem of unable to personalized adjustment in the existing technology, improve the user experience and operation convenience and convenient operation sex.
Patent Information
- Application Number
- CN202410757144.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-06-13
AI Technical Summary
Existing smart toilet lid products cannot be personalized according to the user's specific needs and usage scenarios, resulting in users needing to modify control parameters by themselves, which increases operational complexity and reduces user experience.
By establishing instruction libraries, behavioral databases and adjustment databases, combined with real -time environmental data and user interaction interfaces, dynamically adjust the control instruction set, to achieve automatic optimization of personalized control settings.
Reduced the needs of users to manually adjust the control instructions, improved the user experience, and provided a more personalized and environmental adaptability experience.
Smart Images

Figure CN118584814B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home control technology, and more specifically, to a smart toilet lid control method and system. Background Art
[0002] In the smart home ecosystem, the intelligentization of bathroom equipment, especially the technological development of smart toilets, is gradually becoming an essential element of modern life. Intelligent toilet lids not only improve hygiene functions and increase convenience, but also provide customized management of personal hygiene with energy saving and comfort as the orientation. Therefore, more and more families choose smart toilet lids.
[0003] However, most of the smart toilet seat products on the market are controlled by preset programs, which include the use of basic sensors to automatically perform basic functions such as flushing and seat heating. Although it can meet basic needs, such automated functions are usually limited to standard operations set at the factory and cannot be personalized according to the user's specific needs and usage scenarios. Although some smart toilet seats provide users with interactive means to customize the control parameters of the toilet seat, they often do not record the user's parameter adjustment history and lack the ability to learn user behavior patterns, making it impossible to achieve automatic optimization of control settings based on user behavior patterns. When the parameters set by the user are no longer suitable due to environmental changes during use. For example, under different temperature conditions, the user's demand for seat heating may be different. At this time, the user needs to modify the control parameters by himself, which increases the complexity of the operation and reduces the user experience. Summary of the invention
[0004] In order to overcome the problem in the prior art that users are required to modify control parameters by themselves, which increases the complexity of operation and reduces the user experience, the present invention proposes a smart toilet lid control method and system to solve the above problem.
[0005] The present invention provides the following technical solutions:
[0006] A smart toilet lid control method, comprising:
[0007] S1. Establish an instruction library for storing preset control instructions, assign a unique instruction number to each control instruction, and label each control instruction with an environmentally sensitive label or an environmentally stable label;
[0008] S2. Create a personal ID for each user, and establish a behavior database and an adjustment database corresponding to the personal ID; select control instructions from the instruction library to form an instruction set, set corresponding usage targets for the instruction set, and store them in the behavior database. The adjustment database is used to store the user's adjustment records;
[0009] S3, obtaining the user's personal identification and usage objectives through the user interaction interface;
[0010] S4. Acquire, according to the user's personal identifier, an instruction set corresponding to the usage target from a corresponding behavior database as a first instruction set;
[0011] S5, acquiring real-time environment data, adjusting the control instructions in the first instruction set according to the real-time environment data and the adjustment database, and using the adjusted first instruction set as the second instruction set;
[0012] S6, executing the control instructions in the second instruction set, and monitoring whether the user adjusts the control instruction when executing each control instruction, if not, executing according to the control instruction; if yes, executing according to the adjusted control instruction;
[0013] S7. When all the instructions in the second instruction set are executed, obtain the label of the control instruction adjusted by the user. If it is an environmentally stable label, update the instruction set in the behavior database. If it is an environmentally sensitive label, generate an adjustment record and store it in the adjustment database.
[0014] Preferably, the control instruction corresponds to an action performed by the toilet lid, and the adjustment record includes recording time, usage target, instruction number, recording environment and adjustment control instruction.
[0015] Preferably, the selecting control instructions from the instruction library to form an instruction set includes: receiving an action that the user requires the toilet lid to perform through a user interaction interface, and obtaining corresponding control instructions from the instruction library according to the action that the user requires the toilet lid to perform to form an instruction set.
[0016] Preferably, adjusting the control instructions in the first instruction set according to the real-time environment data and the adjustment database includes:
[0017] Obtain the usage target corresponding to the first instruction set and record it as the matching target, obtain the control instruction with the environmental sensitive tag in the first instruction set and record it as the instruction to be adjusted;
[0018] Obtain the instruction number of the instruction to be adjusted and record it as the matching number;
[0019] Filter out adjustment records whose use target is the same as the matching target and whose instruction number is the same as the matching number from the adjustment database to form a matching set;
[0020] Determine whether there is a matching adjustment record in the matching set based on the real-time environment data; if so, select a matching adjustment record as the target record, and use the adjustment control instruction in the target record to replace the instruction to be adjusted; if not, keep the instruction to be adjusted unchanged.
[0021] Preferably, the real-time environmental data includes real-time temperature and real-time humidity, and the recorded environment in the adjustment record includes recorded temperature and recorded humidity; and the step of judging whether there is a matching adjustment record in the matching set according to the real-time environmental data includes:
[0022] Get the matching set and determine whether the matching set is empty;
[0023] If it is empty, it is determined that there is no matching adjustment record in the matching set;
[0024] Otherwise, obtain the adjustment record in the matching set and calculate the difference between the adjustment record and the real-time environment data; the calculation formula is as follows:
[0025] ;
[0026] In the formula, Indicates the difference, Indicates the real-time temperature. Indicates real-time humidity. Indicates the recorded temperature. Indicates recording humidity, represents the preset temperature weight, represents the preset humidity weight, and ;
[0027] Determine whether there is a difference less than a preset difference threshold; if not, determine that there is no matching adjustment record in the matching set; if so, determine that there is a matching adjustment record in the matching set, and take the adjustment record with a difference greater than the preset difference threshold as the matching adjustment record.
[0028] Preferably, the step of selecting the target record includes:
[0029] Get the benchmark time difference based on the matching set;
[0030] Obtain the matching adjustment record and the corresponding difference, obtain the current time, use the current time to subtract the recorded time in the matching adjustment record to obtain the time difference, and divide the time difference by the reference time difference to obtain the time coefficient;
[0031] Multiply the time coefficient by the difference to get the corrected difference;
[0032] The matching adjustment record corresponding to the smallest correction difference is selected as the target record.
[0033] Preferably, the step of acquiring the reference time difference includes:
[0034] Obtain a matching set, and obtain any adjustment record from it as a base record;
[0035] Filter out the adjustment records whose recorded temperature and recorded humidity have errors less than a preset error rate from the matching set and form an analysis set together with the benchmark record;
[0036] Arrange the adjustment records in the analysis set in order of recording time, and calculate the difference in recording time between two adjacent adjustment records in the analysis set to form a time difference set ;
[0037] Calculate the base time difference. The base time difference is calculated using the following formula:
[0038] ,
[0039] In the formula, Indicates the base time difference, Represents a time difference set The position of the elements in Represents a time difference set The number of elements in , Represents a time difference set The elements.
[0040] Preferably, the instruction set in the update behavior database includes:
[0041] Accessing a behavior database corresponding to the user's personal identification, and finding an instruction set corresponding to the user's usage goal in the behavior database;
[0042] Get the command number of the control command adjusted by the user;
[0043] Find the control instruction corresponding to the instruction number in the instruction set, replace it with the control instruction adjusted by the user, and complete the update of the instruction set in the behavior database.
[0044] Preferably, the step of generating the adjustment record includes:
[0045] Obtain the time when the user adjusts the control instruction as the recording time;
[0046] Get the command number of the use target and the control command adjusted by the user;
[0047] The temperature and humidity when the user adjusts the control instruction are obtained and recorded as the recorded temperature and the recorded humidity respectively, and the recorded temperature and the recorded humidity constitute the recorded environment;
[0048] Acquire the control instruction adjusted by the user as the adjustment control instruction;
[0049] The recording time, usage target, instruction number, recording environment and adjustment control instruction are combined to obtain the adjustment record.
[0050] The present invention also provides a smart toilet lid control system for implementing a smart toilet lid control method, comprising: an instruction library module for establishing an instruction library for storing preset control instructions, assigning a unique instruction number to each control instruction, and marking each control instruction with an environmentally sensitive label or an environmentally stable label;
[0051] The personal library module creates a personal identification for each user, and establishes a behavior database and an adjustment database corresponding to the personal identification; selects control instructions from the instruction library to form an instruction set, and sets corresponding usage targets for the instruction set and stores them in the behavior database; the adjustment database is used to store the user's adjustment records;
[0052] An identification module, used to obtain the user's personal identification and usage objectives through a user interaction interface;
[0053] A first instruction module, used to obtain an instruction set corresponding to the usage target from a corresponding behavior database according to the user's personal identifier as a first instruction set;
[0054] A second instruction module is used to obtain real-time environmental data, adjust the control instructions in the first instruction set according to the real-time environmental data and the adjustment database, and use the adjusted first instruction set as the second instruction set;
[0055] an execution module, used for executing the control instructions in the second instruction set, and monitoring whether the user adjusts the control instruction when executing each control instruction, if not, executing according to the control instruction; if yes, executing according to the adjusted control instruction;
[0056] The update module is used to obtain the label of the control instruction adjusted by the user after all the instructions in the second instruction set are executed. If it is an environmentally stable label, the instruction set in the behavior database is updated; if it is an environmentally sensitive label, an adjustment record is generated and stored in the adjustment database.
[0057] The present invention provides a smart toilet lid control method and system, which has the following beneficial effects:
[0058] By building an instruction library and assigning a unique number to each control instruction, and further combining the creation of a unique identifier for each user, a behavior database and an adjustment database are established. This enables the system to not only make intelligent adjustments based on the user's personal preferences and historical adjustment records, but also dynamically adjust settings using real-time environmental data. When the system collects the user's identification and usage goals through the user interface, it can retrieve the instruction set that best matches the user's needs from the behavior database and automatically adjust these instruction sets based on the current environmental conditions, ensuring personalized operations and maximum adaptability to the environment, reducing the user's manual adjustments to control instructions, reducing the amount of user operations, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 A schematic flow chart of a smart toilet lid control method of the present invention;
[0060] Figure 2 The figure is a module schematic diagram of a smart toilet lid control system of the present invention. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] Example 1
[0063] See also Figure 1 In this embodiment, a smart toilet lid control method includes:
[0064] S1. Establish an instruction library for storing preset control instructions, assign a unique instruction number to each control instruction, and label each control instruction with an environmentally sensitive label or an environmentally stable label;
[0065] S2. Create a personal ID for each user, and establish a behavior database and an adjustment database corresponding to the personal ID; select control instructions from the instruction library to form an instruction set, set corresponding usage targets for the instruction set, and store them in the behavior database. The adjustment database is used to store the user's adjustment records;
[0066] The control instruction corresponds to the action performed by the toilet lid, and the adjustment record includes the recording time, the use target, the instruction number, the recording environment and the adjustment control instruction.
[0067] The step of selecting control instructions from the instruction library to form an instruction set includes: receiving an action that the user requires the toilet lid to perform through a user interaction interface, and obtaining corresponding control instructions from the instruction library according to the action that the user requires the toilet lid to perform to form an instruction set.
[0068] In this embodiment, first, we establish an instruction library, which is a database for storing preset control instructions. Each control instruction corresponds to the action of the toilet lid, such as raising the toilet lid, raising the seat, heating the seat, washing the buttocks, drying, etc. Each control instruction is assigned a unique number to facilitate rapid identification and call by the system. At the same time, according to the sensitivity of the control instruction to environmental changes, we label each control instruction with an environmentally sensitive label or an environmentally stable label. For example, the external temperature and humidity usually have no effect on the action of raising the toilet lid, so the corresponding control instruction can be labeled with an environmentally stable label. The action of heating the seat usually has an effect, so the corresponding control instruction can be labeled with an environmentally sensitive label.
[0069] Next, for each user, the system will create a unique personal ID to identify different users and implement personalized settings. Based on this personal ID, the system establishes two databases: a behavior database and an adjustment database. The behavior database stores the control instruction set that the user selects and sets based on the usage goals such as defecation from the instruction library. The adjustment database is used to record the user's personalized adjustments to the control instructions, including the adjustment time, usage goals, instruction number, environmental conditions, and details of the adjusted control instructions, which is used to analyze the impact of environmental conditions on the user's actual usage needs.
[0070] The user inputs their usage goals through an interactive interface such as a touch screen or a voice control system and selects corresponding control instructions, such as selecting corresponding control instructions according to actions such as raising the toilet lid, heating the seat, washing the buttocks, flushing, and closing the toilet lid. These control instructions are formed into an instruction set, and the corresponding usage goal is set as "defecation". Through the above process, the intelligent toilet lid control method of this embodiment can provide a personalized usage experience according to the specific needs of the user.
[0071] S3, obtaining the user's personal identification and usage objectives through the user interaction interface;
[0072] In this embodiment, when the user needs to use the toilet, the smart toilet lid can identify the user and the user's usage objectives through interactive methods such as voice, touch screen, and remote control.
[0073] S4. Acquire, according to the user's personal identifier, an instruction set corresponding to the usage target from a corresponding behavior database as a first instruction set;
[0074] In this embodiment, after the smart toilet seat recognizes the user and the target of use, it extracts the corresponding instruction set from the corresponding database to provide personalized services for the user.
[0075] S5, acquiring real-time environment data, adjusting the control instructions in the first instruction set according to the real-time environment data and the adjustment database, and using the adjusted first instruction set as the second instruction set;
[0076] The adjusting the control instructions in the first instruction set according to the real-time environment data and the adjustment database comprises:
[0077] Obtain the usage target corresponding to the first instruction set and record it as the matching target, obtain the control instruction with the environmental sensitive tag in the first instruction set and record it as the instruction to be adjusted;
[0078] Obtain the instruction number of the instruction to be adjusted and record it as the matching number;
[0079] Filter out adjustment records whose use target is the same as the matching target and whose instruction number is the same as the matching number from the adjustment database to form a matching set;
[0080] Determine whether there is a matching adjustment record in the matching set based on the real-time environment data; if so, select a matching adjustment record as the target record, and use the adjustment control instruction in the target record to replace the instruction to be adjusted; if not, keep the instruction to be adjusted unchanged.
[0081] The real-time environment data includes real-time temperature and real-time humidity, and the recorded environment in the adjustment record includes recorded temperature and recorded humidity; and the step of judging whether there is a matching adjustment record in the matching set according to the real-time environment data includes:
[0082] Get the matching set and determine whether the matching set is empty;
[0083] If it is empty, it is determined that there is no matching adjustment record in the matching set;
[0084] Otherwise, obtain the adjustment record in the matching set and calculate the difference between the adjustment record and the real-time environment data; the calculation formula is as follows:
[0085] ;
[0086] In the formula, Indicates the difference, Indicates the real-time temperature. Indicates real-time humidity. Indicates the recorded temperature. Indicates recording humidity, represents the preset temperature weight, represents the preset humidity weight, and ;
[0087] Determine whether there is a difference less than a preset difference threshold; if not, determine that there is no matching adjustment record in the matching set; if so, determine that there is a matching adjustment record in the matching set, and take the adjustment record with a difference greater than the preset difference threshold as the matching adjustment record.
[0088] The step of selecting the target record comprises:
[0089] Get the benchmark time difference based on the matching set;
[0090] Obtain the matching adjustment record and the corresponding difference, obtain the current time, use the current time to subtract the recorded time in the matching adjustment record to obtain the time difference, and divide the time difference by the reference time difference to obtain the time coefficient;
[0091] Multiply the time coefficient by the difference to get the corrected difference;
[0092] The matching adjustment record corresponding to the smallest correction difference is selected as the target record.
[0093] The step of obtaining the reference time difference comprises:
[0094] Obtain a matching set, and obtain any adjustment record from it as a base record;
[0095] Filter out the adjustment records whose recorded temperature and recorded humidity have errors less than a preset error rate from the matching set and form an analysis set together with the benchmark record;
[0096] Arrange the adjustment records in the analysis set in order of recording time, and calculate the difference in recording time between two adjacent adjustment records in the analysis set to form a time difference set ;
[0097] Calculate the base time difference. The base time difference is calculated using the following formula:
[0098] ,
[0099] In the formula, Indicates the base time difference, Represents a time difference set The position of the elements in Represents a time difference set The number of elements in , Represents a time difference set The elements.
[0100] In this embodiment, first, real-time environmental data is obtained, including real-time temperature and real-time humidity. These data are collected in real time by environmental sensors, ensuring the accuracy and real-time nature of the data. Next, according to the user's usage requirements, corresponding control instructions are selected from the instruction library to form a first instruction set. All control instructions marked with environmental sensitive tags are screened out from the first instruction set, which are called instructions to be adjusted. For each instruction to be adjusted, its instruction number is obtained, and adjustment records with the same usage target and matching target and the same instruction number are screened out from the adjustment database to form a matching set.
[0101] Calculate the difference between the adjustment records in the matching set and the real-time environmental data. The calculation of the difference takes into account the two dimensions of temperature and humidity, reflecting the difference between the adjustment record environment and the current environment. The temperature weight and humidity weight can be determined by industry data or actual observation experiments on the impact of temperature and humidity changes on user use. Determine whether there are adjustment records in the matching set with a difference less than a preset difference threshold, where the difference threshold can be set by the user. Generally, the lower the threshold is set, the more accurate the adjustment of the control command. If there are adjustment records in the matching set with a difference less than the preset difference threshold, further select an adjustment record that best suits the current environment from the adjustment records with a difference less than the preset difference threshold as the target record; this selection process takes into account the time correlation of the adjustment record, and by calculating the time difference and time coefficient, ensures that the selected adjustment record not only meets the current environmental conditions, but is also a recent adjustment experience, thereby ensuring the timeliness and accuracy of the adjustment.
[0102] Finally, the adjustment control instruction in the target record is used to replace the instruction to be adjusted to form an adjusted first instruction set, i.e., a second instruction set. If there is no adjustment record that meets the conditions in the matching set, the instruction to be adjusted will remain unchanged. Through the above process, the intelligent toilet lid control method of this embodiment can realize intelligent adjustment of the control instruction according to the real-time environmental data and the user's personalized adjustment record, thereby reducing the need for the user to manually adjust the control instruction, thereby providing the user with a more comfortable and personalized use experience.
[0103] S6, executing the control instructions in the second instruction set, and monitoring whether the user adjusts the control instruction when executing each control instruction, if not, executing according to the control instruction; if yes, executing according to the adjusted control instruction;
[0104] In this embodiment, the user can adjust the control instructions through voice control, touch, etc., and the specific content of the adjustment includes but is not limited to the following: the control instruction corresponding to the action of raising the toilet lid can adjust the lifting speed, the control instruction corresponding to the action of heating the seat can adjust the heating temperature, and the control instruction for buttocks flushing can adjust the flushing time.
[0105] S7. When all the instructions in the second instruction set are executed, obtain the label of the control instruction adjusted by the user. If it is an environmentally stable label, update the instruction set in the behavior database. If it is an environmentally sensitive label, generate an adjustment record and store it in the adjustment database.
[0106] The instruction set in the update behavior database includes:
[0107] Accessing a behavior database corresponding to the user's personal identification, and finding an instruction set corresponding to the user's usage goal in the behavior database;
[0108] Get the command number of the control command adjusted by the user;
[0109] Find the control instruction corresponding to the instruction number in the instruction set, replace it with the control instruction adjusted by the user, and complete the update of the instruction set in the behavior database.
[0110] The step of generating the adjustment record includes:
[0111] Obtain the time when the user adjusts the control instruction as the recording time;
[0112] Get the command number of the use target and the control command adjusted by the user;
[0113] The temperature and humidity when the user adjusts the control instruction are obtained and recorded as the recorded temperature and the recorded humidity respectively, and the recorded temperature and the recorded humidity constitute the recorded environment;
[0114] Acquire the control instruction adjusted by the user as the adjustment control instruction;
[0115] The recording time, usage target, instruction number, recording environment and adjustment control instruction are combined to obtain the adjustment record.
[0116] In this embodiment, by recording the adjustment records of the control instructions during use by the user, the user's adjustment data and environmental data are continuously accumulated, and a comprehensive database for the user can be gradually formed. Through this database, when faced with similar environmental conditions and user needs, the control instructions that best meet the user's preferences can be automatically selected, thereby reducing the number of manual adjustments by the user.
[0117] In this embodiment, by recording the user's adjustment records of the control instructions during use, we continuously accumulate the user's personalized adjustment data, which gradually builds a detailed user behavior database and adjustment database. When faced with similar environmental conditions and user needs, these two databases can intelligently select and automatically correct the control instructions that best meet the user's preferences. In this way, we effectively reduce the number of times users manually adjust control instructions, providing users with a more convenient and personalized use experience.
[0118] Example 2
[0119] See also Figure 2 In this embodiment, a smart toilet lid control system is provided, which is used to implement a smart toilet lid control method, including:
[0120] An instruction library module is used to establish an instruction library for storing preset control instructions, assign a unique instruction number to each control instruction, and label each control instruction with an environmentally sensitive label or an environmentally stable label;
[0121] The personal library module creates a personal identification for each user, and establishes a behavior database and an adjustment database corresponding to the personal identification; selects control instructions from the instruction library to form an instruction set, and sets corresponding usage targets for the instruction set and stores them in the behavior database; the adjustment database is used to store the user's adjustment records;
[0122] An identification module, used to obtain the user's personal identification and usage objectives through a user interaction interface;
[0123] A first instruction module, used to obtain an instruction set corresponding to the usage target from a corresponding behavior database according to the user's personal identification as a first instruction set;
[0124] A second instruction module is used to obtain real-time environmental data, adjust the control instructions in the first instruction set according to the real-time environmental data and the adjustment database, and use the adjusted first instruction set as the second instruction set;
[0125] an execution module, used for executing the control instructions in the second instruction set, and monitoring whether the user adjusts the control instruction when executing each control instruction, if not, executing according to the control instruction; if yes, executing according to the adjusted control instruction;
[0126] The update module is used to obtain the label of the control instruction adjusted by the user after all the instructions in the second instruction set are executed. If it is an environmentally stable label, the instruction set in the behavior database is updated; if it is an environmentally sensitive label, an adjustment record is generated and stored in the adjustment database.
[0127] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only one, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0128] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
[0129] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for controlling an intelligent toilet lid, characterized in that: include: S1. Establish an instruction library for storing preset control instructions, assign a unique instruction number to each control instruction, and label each control instruction with an environmentally sensitive label or an environmentally stable label; S2. Create a personal ID for each user, and establish a behavior database and an adjustment database corresponding to the personal ID; select control instructions from the instruction library to form an instruction set, set corresponding usage targets for the instruction set, and store them in the behavior database. The adjustment database is used to store the user's adjustment records; The control instruction corresponds to the action performed by the toilet lid, and the adjustment record includes the recording time, the use target, the instruction number, the recording environment and the adjustment control instruction; The step of selecting control instructions from the instruction library to form an instruction set includes: receiving an action that the user requires the toilet lid to perform through a user interaction interface, and obtaining corresponding control instructions from the instruction library according to the action that the user requires the toilet lid to perform to form an instruction set; S3, obtaining the user's personal identification and usage objectives through the user interaction interface; S4. Acquire, according to the user's personal identifier, an instruction set corresponding to the usage target from a corresponding behavior database as a first instruction set; S5, acquiring real-time environment data, adjusting the control instructions in the first instruction set according to the real-time environment data and the adjustment database, and using the adjusted first instruction set as the second instruction set; The adjusting the control instructions in the first instruction set according to the real-time environment data and the adjustment database comprises: Obtain the usage target corresponding to the first instruction set and record it as the matching target, obtain the control instruction with the environmental sensitive tag in the first instruction set and record it as the instruction to be adjusted; Obtain the instruction number of the instruction to be adjusted and record it as the matching number; Filter out adjustment records whose use target is the same as the matching target and whose instruction number is the same as the matching number from the adjustment database to form a matching set; Determine whether there is a matching adjustment record in the matching set according to the real-time environment data; if so, select a matching adjustment record as the target record, and use the adjustment control instruction in the target record to replace the instruction to be adjusted; if not, keep the instruction to be adjusted unchanged; The real-time environment data includes real-time temperature and real-time humidity, and the recorded environment in the adjustment record includes recorded temperature and recorded humidity; and the step of judging whether there is a matching adjustment record in the matching set according to the real-time environment data includes: Get the matching set and determine whether the matching set is empty; If it is empty, it is determined that there is no matching adjustment record in the matching set; Otherwise, obtain the adjustment record in the matching set and calculate the difference between the adjustment record and the real-time environment data. The calculation formula is as follows: Wherein, CY represents the difference, SW represents the real-time temperature, SS represents the real-time humidity, JW represents the recorded temperature, JS represents the recorded humidity, α represents the preset temperature weight, β represents the preset humidity weight, and α+β=1; Determine whether there is a difference less than a preset difference threshold; if not, determine that there is no matching adjustment record in the matching set; if so, determine that there is a matching adjustment record in the matching set, and take the adjustment record with a difference greater than the preset difference threshold as the matching adjustment record; S6, executing the control instructions in the second instruction set, and monitoring whether the user adjusts the control instruction when executing each control instruction, if not, executing according to the control instruction; if yes, executing according to the adjusted control instruction; S7. When all the instructions in the second instruction set are executed, obtain the label of the control instruction adjusted by the user. If it is an environmentally stable label, update the instruction set in the behavior database. If it is an environmentally sensitive label, generate an adjustment record and store it in the adjustment database.
2. The intelligent toilet lid control method according to claim 1, characterized in that: The step of selecting the target record comprises: Get the benchmark time difference based on the matching set; Obtain the matching adjustment record and the corresponding difference, obtain the current time, use the current time to subtract the recorded time in the matching adjustment record to obtain the time difference, and divide the time difference by the reference time difference to obtain the time coefficient; Multiply the time coefficient by the difference to get the corrected difference; The matching adjustment record corresponding to the smallest correction difference is selected as the target record.
3. The intelligent toilet lid control method according to claim 2, characterized in that: The step of obtaining the reference time difference comprises: Obtain a matching set, and obtain any adjustment record from it as a base record; Filter out the adjustment records whose recorded temperature and recorded humidity have errors less than a preset error rate from the matching set and form an analysis set together with the benchmark record; Arrange the adjustment records in the analysis set in order of recording time, and calculate the difference in recording time between two adjacent adjustment records in the analysis set to form a time difference set U; Calculate the base time difference. The base time difference is calculated using the following formula: In the formula, JSC represents the reference time difference, i represents the element position in the time difference set U, n represents the number of elements in the time difference set U, and U i Represents the i-th element in the time difference set U.
4. The intelligent toilet lid control method according to claim 3, characterized in that: The instruction set in the update behavior database includes: Accessing a behavior database corresponding to the user's personal identification, and finding an instruction set corresponding to the user's usage goal in the behavior database; Get the command number of the control command adjusted by the user; Find the control instruction corresponding to the instruction number in the instruction set, replace it with the control instruction adjusted by the user, and complete the update of the instruction set in the behavior database.
5. The intelligent toilet lid control method according to claim 4, characterized in that: The step of generating the adjustment record includes: Obtain the time when the user adjusts the control instruction as the recording time; Get the command number of the use target and the control command adjusted by the user; The temperature and humidity when the user adjusts the control instruction are obtained and recorded as the recorded temperature and the recorded humidity respectively, and the recorded temperature and the recorded humidity constitute the recorded environment; Acquire the control instruction adjusted by the user as the adjustment control instruction; The recording time, usage target, instruction number, recording environment and adjustment control instruction are combined to obtain the adjustment record.
6. A smart toilet lid control system, used to implement the smart toilet lid control method according to any one of claims 1 to 5, characterized in that: include: An instruction library module is used to establish an instruction library for storing preset control instructions, assign a unique instruction number to each control instruction, and label each control instruction with an environmentally sensitive label or an environmentally stable label; The personal library module creates a personal identification for each user, and establishes a behavior database and an adjustment database corresponding to the personal identification; selects control instructions from the instruction library to form an instruction set, and sets corresponding usage targets for the instruction set and stores them in the behavior database; the adjustment database is used to store the user's adjustment records; An identification module, used to obtain the user's personal identification and usage objectives through a user interaction interface; A first instruction module, used to obtain an instruction set corresponding to the usage target from a corresponding behavior database according to the user's personal identifier as a first instruction set; A second instruction module is used to obtain real-time environmental data, adjust the control instructions in the first instruction set according to the real-time environmental data and the adjustment database, and use the adjusted first instruction set as the second instruction set; an execution module, used for executing the control instructions in the second instruction set, and monitoring whether the user adjusts the control instruction when executing each control instruction, if not, executing according to the control instruction; if yes, executing according to the adjusted control instruction; The update module is used to obtain the label of the control instruction adjusted by the user after all the instructions in the second instruction set are executed. If it is an environmentally stable label, the instruction set in the behavior database is updated; if it is an environmentally sensitive label, an adjustment record is generated and stored in the adjustment database.
Citation Information
Patent Citations
Human body recognition microcomputer control closestool
CN104790491A
Device control method and apparatus
CN105759622A