Knocking control method, device and equipment for refrigerator and storage medium
By rationally arranging and processing the signals of dual ultrasonic sensors, the problems of insufficient environmental adaptability and anti-interference ability of the refrigerator control method are solved, and a convenient and precise refrigerator operation experience is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ANHUI ZHIMEI INTELLIGENT TECHNOLOGY CO LTD
- Filing Date
- 2026-01-27
- Publication Date
- 2026-04-24
AI Technical Summary
Existing refrigerator control methods suffer from problems such as complex structure, poor environmental adaptability, insufficient ease of operation, and weak anti-interference ability, making it difficult to meet the usage needs of diverse scenarios.
By employing a rational arrangement of dual ultrasonic sensors and multi-stage signal processing, the system acquires, preprocesses, and extracts characteristic parameters to confirm the tapping location, frequency, and pattern, generating control commands to adjust the refrigerator's operating status.
It improves the anti-interference capability of the control method, ensures the accuracy and reliability of operation, provides a convenient and intuitive user experience, and is suitable for use in high temperature, high humidity and noisy environments.
Smart Images

Figure CN121916629A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of refrigerator control technology, and in particular to a knocking control method, device, equipment and storage medium for refrigerators. Background Technology
[0002] Currently, refrigerator control methods are developing towards convenience and intelligence. The mainstream control methods include touch sensing control, voice control, and gesture control. However, the aforementioned control methods still have many technical defects that are difficult to overcome in practical applications.
[0003] Although touch-sensitive control does not require openings, its sensitivity is easily affected by ambient humidity, temperature, and the cleanliness of the touch surface. In high-temperature, high-humidity, and oily environments such as kitchens, it often fails to function or is triggered falsely. Furthermore, the touch-sensitive area needs to be kept dry and clean, which increases the user's maintenance costs.
[0004] Voice control relies on a clear voice input environment. In noisy scenarios such as family gatherings or kitchen exhaust fans, the accuracy of voice command recognition drops significantly. At the same time, voice control poses a risk of privacy leaks, and the learning cost of complex voice commands is high for users such as the elderly and children.
[0005] Although gesture control does not require contact with the device surface, it is easily affected by changes in ambient light, operating distance, and the standardization of hand movements. In scenarios such as strong kitchen light, oil stains, or multiple users operating together, the recognition accuracy often decreases or the command response is delayed. At the same time, the learning cost of complex gestures may cause obstacles for elderly users.
[0006] In summary, existing refrigerator control methods generally suffer from problems such as complex structure, poor environmental adaptability, insufficient ease of operation, and weak anti-interference ability, making it difficult to meet users' needs in diverse scenarios; therefore, there is still room for improvement in existing technologies. Summary of the Invention
[0007] In order to overcome the shortcomings of the prior art, the present invention aims to provide a tapping control method for refrigerators, which abandons the structural defects of traditional touch sensing, voice control and other control methods. Through the reasonable arrangement of dual ultrasonic sensors and multi-stage signal processing, the accuracy and reliability of control operation are ensured, providing users with a convenient, intuitive and stable operating experience.
[0008] The first aspect of the present invention provides a tapping control method for a refrigerator, the refrigerator comprising a main body, the main body including a non-metallic region, a first ultrasonic sensor and a second ultrasonic sensor disposed within the non-metallic region, the distance between the first ultrasonic sensor and the second ultrasonic sensor being configured to create a difference in the sound wave signals generated by the first ultrasonic sensor and the second ultrasonic sensor; the tapping control method comprising: acquiring a first raw electrical signal fed back by the first ultrasonic sensor and a second raw electrical signal fed back by the second ultrasonic sensor; preprocessing the first raw electrical signal and the second raw electrical signal respectively to generate a first digital signal and a second digital signal; extracting feature parameters from the first digital signal and the second digital signal, and determining the tapping position based on the feature parameters; within a set sliding window time range, counting the number of the first digital signal and the second digital signal to determine the number of taps, and counting the time interval between two adjacent signal receptions to obtain multiple interval data; determining the tapping pattern based on the multiple interval data; determining a control command based on the tapping position, the number of taps, and the tapping pattern, and adjusting the operating state of the refrigerator based on the control command.
[0009] Optionally, in a first implementation of the first aspect of the present invention, the step of preprocessing the first original electrical signal and the second original electrical signal to generate a first digital signal and a second digital signal includes: filtering the first original electrical signal and the second original electrical signal to obtain a first filtered signal and a second filtered signal; amplifying the first filtered signal and the second filtered signal to obtain a first amplified signal and a second amplified signal; and performing analog-to-digital conversion on the first amplified signal and the second amplified signal to obtain a first digital signal and a second digital signal.
[0010] Optionally, in a second implementation of the first aspect of the present invention, the step of extracting feature parameters from the first digital signal and the second digital signal, and confirming the striking position based on the feature parameters, includes: obtaining the current ambient noise level; confirming a time difference threshold and an amplitude difference threshold based on the current ambient noise level; extracting feature parameters from the first digital signal and the second digital signal, the feature parameters including a time difference and an amplitude difference; confirming whether the feature parameters are valid based on the time difference threshold and the amplitude difference threshold; and confirming the striking position based on the feature parameters if the feature parameters are valid.
[0011] Optionally, in a third implementation of the first aspect of the present invention, the step of confirming the striking position based on the feature parameter if the feature parameter is valid includes: if the feature parameter is valid, performing cosine similarity calculation between the feature parameter and a pre-stored feature template in the acoustic feature database to obtain a real-time confidence level; obtaining a preset confidence level threshold, comparing the real-time confidence level with the confidence level threshold; if the real-time confidence level is higher than the confidence level threshold, matching the striking position corresponding to the feature parameter.
[0012] Optionally, in a fourth implementation of the first aspect of the present invention, the step of counting the number of the first digital signal and the second digital signal within a set sliding window time range to confirm the number of taps includes: obtaining a preset pulse amplitude threshold and a preset anti-shake time; filtering the first digital signal and the second digital signal based on the pulse amplitude threshold and the anti-shake time within the set sliding window time range to obtain a first valid signal and a second valid signal; and confirming the number of taps based on the first valid signal and the second valid signal.
[0013] Optionally, in a fifth implementation of the first aspect of the present invention, the step of confirming the striking pattern based on multiple interval data includes: obtaining a preset pattern division threshold; matching multiple interval data with the pattern division threshold respectively to obtain striking pattern types corresponding to each interval data; counting the number of intervals for each striking pattern type, and calculating the type proportion of the corresponding striking pattern type based on the number of intervals; obtaining a preset proportion threshold; comparing the type proportion with the proportion threshold, and confirming the striking pattern based on the comparison result.
[0014] Optionally, in a sixth implementation of the first aspect of the present invention, the step of confirming the control command based on the tapping position, the number of taps, and the tapping pattern includes: confirming the functional attributes of the command based on the tapping position; confirming the operating level or operating mode of the command based on the number of taps; confirming the operating method of the command based on the tapping pattern; and integrating the functional attributes, the operating method, and the operating level or operating mode to obtain the control command.
[0015] A second aspect of the present invention provides a tapping control device for a refrigerator, comprising: an acquisition module for acquiring a first raw electrical signal fed back by a first ultrasonic sensor and a second raw electrical signal fed back by a second ultrasonic sensor; a processing module for preprocessing the first raw electrical signal and the second raw electrical signal respectively to generate a first digital signal and a second digital signal; an extraction module for extracting feature parameters from the first digital signal and the second digital signal, and confirming the tapping position based on the feature parameters; a statistics module for counting the number of the first digital signal and the second digital signal within a set sliding window time range to confirm the number of taps, and counting the time interval between two adjacent signal receptions to obtain multiple interval data; a confirmation module for confirming the tapping pattern based on the multiple interval data; and a control module for confirming a control command based on the tapping position, the number of taps, and the tapping pattern, and adjusting the operating state of the refrigerator based on the control command.
[0016] A third aspect of the present invention provides a tapping control device for a refrigerator, the tapping control device for a refrigerator comprising: a memory and at least one processor, the memory storing instructions; the at least one processor calling the instructions in the memory to cause the tapping control device for a refrigerator to perform the steps of the tapping control method for a refrigerator described in any of the preceding claims.
[0017] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed by a processor, implement the steps of the knocking control method for a refrigerator described in any of the preceding claims.
[0018] The tapping control method for refrigerators of this invention eliminates the structural defects of touch sensing and voice control methods. It eliminates the need for holes or specific sensing areas on the refrigerator surface, maintaining the overall integrity and simplicity of the product's appearance, while preventing equipment malfunctions caused by dust and water intrusion. Through the rational arrangement of dual ultrasonic sensors and multi-stage signal processing, the anti-interference capability of the control method is significantly improved, enabling it to adapt to high-temperature, high-humidity, and noisy usage scenarios such as kitchens. The three-dimensional parameter combination command matching method enriches the number of control commands, meeting the diverse functional control needs of the refrigerator. Simultaneously, through multiple screening and recognition mechanisms, the probability of false triggering is effectively reduced, ensuring the accuracy and reliability of control operations and providing users with a convenient, intuitive, and stable operating experience. Attached Figure Description
[0019] Figure 1 A logic flowchart of a knocking control method for a refrigerator provided in an embodiment of the present invention; Figure 2A schematic diagram of the structure of a knocking control device for a refrigerator provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a tapping control device for a refrigerator provided in an embodiment of the present invention. Detailed Implementation
[0020] This invention provides a method, apparatus, device, and storage medium for tapping control of a refrigerator. In this invention, the terms "first," "second," "third," "fourth," etc. (if present)," in the specification, claims, and accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" or "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0021] This application discloses a tapping control method for a refrigerator. The refrigerator includes a main body, which includes a non-metallic area. A first ultrasonic sensor and a second ultrasonic sensor are provided in the non-metallic area. The distance between the first ultrasonic sensor and the second ultrasonic sensor is used to make the sound wave signals generated by the first ultrasonic sensor and the second ultrasonic sensor different. In this embodiment, the non-metallic area is made of plastic, silicone, or ceramic and can be installed on the front door panel of the refrigerator. The distance between the first and second ultrasonic sensors is 40%-60% of the width of the non-metallic area. This distance ensures that when the user taps different locations, the path length of the sound waves transmitted to the two sensors will be significantly different, thus making the original electrical signals received by the two ultrasonic sensors naturally distinguishable, providing basic data support for the subsequent identification process. The two ultrasonic sensors are installed close to the inner wall of the non-metallic area to ensure that the sound wave transmission efficiency is not affected.
[0022] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 One embodiment of the knocking control method for a refrigerator in this invention includes: 101. Acquire the first raw electrical signal fed back by the first ultrasonic sensor and the second raw electrical signal fed back by the second ultrasonic sensor; 102. Preprocess the first original electrical signal and the second original electrical signal respectively to generate a first digital signal and a second digital signal; In this embodiment, the core purpose of preprocessing is to eliminate environmental interference and enhance signal recognizability, specifically including three stages: filtering, amplification, and analog-to-digital conversion.
[0023] 103. Extract feature parameters from the first digital signal and the second digital signal, and confirm the striking position based on the feature parameters; In this embodiment, the characteristic parameters are specifically the time difference and amplitude difference between the two digital signals. The time difference refers to the difference in the time at which the two ultrasonic sensors receive the valid signals, and the amplitude difference refers to the difference in the amplitude of the valid signals received by the two ultrasonic sensors.
[0024] 104. Within the set sliding window time range, count the number of the first digital signal and the second digital signal to confirm the number of taps, and count the time interval between two adjacent signal receptions to obtain multiple interval data. In this embodiment, the sliding window time is set to 500ms-1500ms. This range can fully cover the operation cycle of a single continuous tap by the user, and avoid signal confusion between different batches of tapping operations. Before the statistics are performed, the signals need to be filtered to remove interference signals with amplitudes lower than the 50mV-100mV pulse amplitude threshold, as well as signals superimposed with intervals less than the 20ms-50ms anti-shake time. Only valid signals are retained for counting, and the number of valid signals is the number of taps. At the same time, the time interval between two adjacent valid signals is counted to form multiple interval data. During the statistics, invalid intervals shorter than the anti-shake time need to be removed to ensure that the interval data can truly reflect the user's tapping rhythm.
[0025] 105. Based on multiple interval data points, confirm the tapping pattern; In this embodiment, the striking pattern corresponds to the striking pattern type, which includes three types: rapid continuous striking, equally spaced striking, and slow intermittent striking.
[0026] 106. Based on the tapping location, the number of taps, and the tapping pattern, confirm the control command, and adjust the refrigerator's operating status based on the control command; In this embodiment, the refrigerator's control module has a built-in instruction matching library that pre-stores a one-to-one correspondence between three-dimensional parameter combinations and control instructions. By querying the matching library to integrate functional attributes, operating gears or modes and operating methods, the corresponding control instructions are obtained, thereby adjusting the refrigerator's operating status.
[0027] The tapping control method for refrigerators disclosed in this application eliminates the structural defects of traditional touch sensing and voice control methods. It eliminates the need for holes or specific sensing areas on the refrigerator surface, maintaining the integrity and simplicity of the product's appearance while preventing equipment malfunctions caused by dust and water intrusion. Through the rational arrangement of dual ultrasonic sensors and multi-stage signal processing, the anti-interference capability of the control method is significantly improved, enabling it to adapt to high-temperature, high-humidity, and noisy usage scenarios such as kitchens. The three-dimensional parameter combination command matching method enriches the number of control commands, meeting the diverse functional control needs of refrigerators. At the same time, through multiple screening and recognition mechanisms, the probability of false triggering is effectively reduced, ensuring the accuracy and reliability of control operations and providing users with a convenient, intuitive, and stable operating experience.
[0028] Further, in this embodiment of the invention, the preprocessing of the first original electrical signal and the second original electrical signal to generate the first digital signal and the second digital signal includes: 201. Filter the first original electrical signal and the second original electrical signal respectively to obtain the first filtered signal and the second filtered signal; In this embodiment, the original electrical signal is mixed with high-frequency environmental interference, which can mask the effective signal generated by the impact. Therefore, a second-order RC low-pass filter circuit is used to filter the original electrical signal. This type of circuit has good low-frequency signal retention capability and high-frequency signal attenuation effect. The cutoff frequency is set to 800Hz-1.2kHz. This frequency range is determined based on the characteristic that the sound wave signal generated by the impact is mainly concentrated in 50Hz-1.2kHz. It can accurately filter high-frequency interference beyond this range and ensure that the filtered signal retains only the effective impact sound wave related components.
[0029] 202. Amplify the first filtered signal and the second filtered signal respectively to obtain a first amplified signal and a second amplified signal; The original electrical signal generated by the impact is weak, typically in the millivolt range, after being transmitted to the ultrasonic sensor. This makes it difficult for subsequent analog-to-digital conversion and control modules to recognize, thus requiring amplification. In this embodiment, an instrumentation amplifier is used for amplification. The instrumentation amplifier has higher input impedance, lower offset voltage, and stronger common-mode rejection ratio, enabling precise amplification of the effective signal while suppressing interference. The gain range is set to 20-50 times, which can be finely adjusted according to the thickness of the non-metallic material and the sound wave transmission efficiency of different refrigerators. This ensures that the amplified signal amplitude is within the ideal range of 0.5V-2.5V, meeting the recognition requirements of the ADC chip without causing signal saturation distortion due to excessive amplitude.
[0030] 203. Perform analog-to-digital conversion on the first amplified signal and the second amplified signal respectively to obtain a first digital signal and a second digital signal; In this embodiment, the control module can only perform calculations and analysis on digital signals. Analog signals cannot be directly used for feature parameter extraction and logical judgment, so analog-to-digital conversion is required. The analog-to-digital conversion is performed by a 12-bit resolution ADC chip. The 12-bit resolution ensures the accuracy of the signal conversion, so that the converted digital signal can accurately reflect the characteristics of the original analog signal and avoid the loss of signal details due to insufficient resolution. The sampling rate is set to 8kHz-10kHz, which is much higher than the highest frequency of the effective signal, conforms to the Nyquist sampling theorem, and can avoid signal aliasing. This ensures that the digital signal can completely restore the time difference and amplitude difference characteristics of the effective tapping signal, providing high-quality data for subsequent recognition steps.
[0031] In this embodiment, through step-by-step and targeted preprocessing operations, environmental interference components in the original electrical signal are effectively eliminated, solving the problem of identification difficulties caused by weak original signals and mixed noise. Filtering provides a guarantee for signal purification, amplification enhances the signal's recognizability, and analog-to-digital conversion achieves signal type adaptation. The three work together to ensure that the preprocessed digital signal retains the core characteristics of the tapping operation while eliminating irrelevant interference. This provides a stable and reliable data foundation for subsequent steps such as feature parameter extraction, tapping position identification, and tapping count statistics, improving the recognition accuracy and anti-interference capability of the control method and reducing misjudgments and false triggers caused by signal quality issues.
[0032] Furthermore, in this embodiment of the invention, the step of extracting feature parameters from the first digital signal and the second digital signal, and confirming the tapping position based on the feature parameters, includes: 301. Obtain the current ambient noise level, and based on the current ambient noise level, determine the time difference threshold and amplitude difference threshold; In this embodiment, the current ambient noise level is determined by the control module through real-time acquisition of the signal strength of two ultrasonic sensors when there is no impact operation. First, a preset signal strength benchmark value is established. When the acquired signal strength exceeds the preset benchmark value, the ambient noise level is considered to have increased. To prevent interference signals from being mistakenly identified as valid signals, the time difference threshold and amplitude difference threshold are automatically increased by 10%-20%. If the acquired signal strength is less than or equal to the preset benchmark value, an initial threshold is used. The preset benchmark value is 0.1V-0.3V, and the initial range of the time difference threshold is set to 50. -200 The initial range of the amplitude difference threshold is set to 0.3V-0.8V. This initial range is determined based on a large amount of experimental data and can adapt to the signal differences generated by striking different positions in most scenarios, ensuring that the effective signal can be accurately identified.
[0033] In this embodiment, by setting a dynamic threshold, the tapping position recognition can adapt to different environmental noise scenarios, solving the problem of misjudgment caused by a fixed threshold in complex environments and improving the environmental adaptability of the control method.
[0034] 302. Extract feature parameters from the first digital signal and the second digital signal, wherein the feature parameters include time difference and amplitude difference; In this embodiment, the time difference refers to the time difference between the rising edge of the effective pulse signal in the first digital signal and the second digital signal arriving at the control module. Since the distance between the two ultrasonic sensors is fixed and the striking position is different, the sound wave propagation path length is different, resulting in a difference in signal arrival time. The amplitude difference refers to the difference in the peak amplitude of the effective pulse signal in the first digital signal and the second digital signal. Due to the different striking positions, the energy attenuation of the sound wave propagating to the two ultrasonic sensors is different, which in turn leads to a difference in amplitude. These two parameters together constitute the core feature for distinguishing different striking positions.
[0035] In this embodiment, the accurate extraction and effective screening of feature parameters ensure that all signals involved in position recognition are valid signals generated by the tapping operation, eliminating the influence of environmental interference and significantly improving the accuracy of tapping position recognition.
[0036] 303. Confirm the validity of the feature parameters based on the time difference threshold and the amplitude difference threshold; In this embodiment, the standard for judging the validity of feature parameters is based on two conditions: the extracted time difference must be within the currently set time difference threshold range, and the extracted amplitude difference must be within the currently set amplitude difference threshold range. Only when both conditions are met simultaneously can the feature parameters be judged as valid. If either condition is not met, it is judged as an invalid signal. Invalid signals are likely generated by interference factors such as environmental vibration and noise, and do not participate in the subsequent position recognition process, thereby eliminating interference and improving recognition accuracy.
[0037] 304. If the feature parameters are valid, the tapping position is confirmed based on the feature parameters; In this embodiment, after determining that the feature parameters are valid, the valid feature parameters are compared with the standard feature templates of two tapping positions pre-stored in the acoustic feature database. The standard feature templates are standard time difference and amplitude difference feature vectors determined by statistical analysis of valid signals from different users tapping the corresponding positions through a large number of experiments. By comparing the degree of matching between the feature parameters and the standard templates, the user's specific tapping area can be accurately located, and the position recognition can be completed. Among the two tapping positions, the left side is the function selection area, and the right side is the power on / off / cancel area.
[0038] In this embodiment, the tapping location recognition no longer relies on a single fixed standard, but is dynamically adjusted according to the actual environmental conditions. This not only ensures the accuracy of the recognition, but also enhances the practicality of the method, providing a reliable guarantee for subsequent location-based functional classification and further improving the stability of the three-dimensional combined control system.
[0039] Further, in this embodiment of the invention, the step of determining the tapping location based on the feature parameters if the feature parameters are valid includes: 401. If the feature parameters are valid, then the feature parameters are compared with the feature templates pre-stored in the acoustic feature database to calculate the cosine similarity and obtain the real-time confidence level. In this embodiment, the feature template in the acoustic feature database is the standard feature vector corresponding to the left function selection area and the right power on / off / cancel area. This vector is determined by statistical analysis of a large number of valid tapping signals collected in experiments, and can represent the typical features of tapping at different positions. The cosine similarity calculation is performed by taking the dot product of the vector composed of the extracted real-time feature parameters and the pre-stored feature template vector, and then dividing by the product of the magnitudes of the two vectors. The real-time confidence value ranges from 0 to 1. The closer the value is to 1, the higher the degree of matching between the real-time feature and the standard template. Through the quantitative analysis method of cosine similarity confidence calculation, the identification criteria for the tapping position are further refined, which solves the signal matching ambiguity problem that may exist by only filtering by threshold, and provides an objective basis for accurate identification.
[0040] 402. Obtain a preset confidence threshold and compare the real-time confidence with the confidence threshold; In this embodiment, the preset confidence threshold is set to 0.75-0.85. This threshold range is determined after comprehensively considering factors such as environmental interference, differences in user tapping force, and individual sensor differences. This range can both eliminate interference signals with low matching degree to avoid misjudgment of position due to signal similarity, and prevent valid tapping signals from being misjudged as invalid due to an excessively high threshold, thus ensuring the accuracy and inclusiveness of the recognition. The setting of the confidence threshold provides a strict screening basis for position recognition, effectively eliminating interference signals that are within the threshold range but have low matching degree with the actual tapping position features, significantly improving the accuracy and reliability of tapping position recognition.
[0041] 403. If the real-time confidence level is higher than the confidence level threshold, then match the tap position corresponding to the feature parameter; In this embodiment, when the real-time confidence level is higher than the set confidence level threshold, it indicates that the matching degree between the real-time feature parameters and the pre-stored feature template has reached a reliable standard, and it can be determined that the user's tapping position is the area corresponding to the feature template. If the real-time confidence level is lower than the set confidence level threshold, the current signal is determined to be an interference signal, and no position matching is performed. Instead, the signal is directly returned to be re-acquired to further filter interference, ensure the accuracy of tapping position recognition, further reduce the probability of false triggering, and provide a reliable guarantee for subsequent position-based functional classification.
[0042] Further, in this embodiment of the invention, the step of counting the number of the first digital signal and the second digital signal within a set sliding window time range to confirm the number of taps includes: 501. Obtain the preset pulse amplitude threshold and the preset anti-shake time; In this embodiment, the preset pulse amplitude threshold is set to 50mV-100mV. This threshold is determined based on the effective signal amplitude range generated by the tap. The amplitude of interference signals such as slight vibrations and airflow disturbances in the environment is usually lower than this threshold. This threshold can be used to initially filter out such low-amplitude interference. The preset anti-shake time is set to 20ms-50ms. This time range is determined based on the physiological characteristics of human tapping. The signal superposition duration generated by a single tap by the user is usually no more than 20ms, while the time interval between two independent taps is usually greater than 50ms. By setting the anti-shake time, the signal superposition and independent taps can be effectively distinguished, avoiding duplicate counting.
[0043] 502. Within a set sliding window time range, the first digital signal and the second digital signal are filtered based on the pulse amplitude threshold and the anti-shake time respectively to obtain the first valid signal and the second valid signal; In this embodiment, the sliding window time range can fully cover the operation cycle of three consecutive taps by the user, while avoiding the inclusion of different batches of tap operation signals in the same window for statistics, ensuring the independence and timeliness of the counting; in the filtering process, signals with amplitudes lower than the pulse amplitude threshold are first removed, and then it is determined whether the interval between two adjacent pulse signals is less than the anti-shake time. If it is less than the anti-shake time, it is determined that the signals generated by the same tap are superimposed, and only one valid signal is retained. Through double filtering, it is ensured that the remaining signals are all valid signals generated by the user's independent taps.
[0044] In this embodiment, a triple filtering mechanism of pulse amplitude threshold, anti-shake time, and sliding window effectively solves the problems of interference pulse counting and signal superposition miscounting in traditional counting methods, ensuring the accuracy of the tap count. The setting of pulse amplitude threshold filters out low-amplitude environmental interference, the setting of anti-shake time avoids duplicate counting caused by signal superposition, and the setting of sliding window ensures the timeliness and independence of counting. The three work together to ensure that the tap count results can truly reflect the user's operation intention.
[0045] 503. Based on the first valid signal and the second valid signal, confirm the number of taps; In this embodiment, since the two ultrasonic sensors collect signals simultaneously and the effective signals all come from the same tapping operation, the final number of taps is determined by counting the number of pulses that are consistent among the effective signals filtered by the two sensors. If there is a slight difference in the number of effective signal pulses between the two ultrasonic sensors, the average value is taken and rounded off to ensure the accuracy of the tapping count. This provides reliable parameters for subsequent gear selection based on the number of taps, avoids false triggering of commands due to errors in the count, and further improves the accuracy and reliability of the entire control method, providing users with a stable and consistent operating experience.
[0046] Furthermore, in this embodiment of the invention, confirming the tapping pattern based on multiple interval data includes: 601. Obtain a preset pattern division threshold, and match multiple interval data with the pattern division threshold respectively to obtain the tapping pattern type corresponding to each interval data; In this embodiment, the preset pattern classification threshold is determined based on experimental data of user tapping habits. The tapping pattern types are divided into three categories: rapid continuous tapping corresponds to an interval threshold of less than 300ms, which is suitable for users' rapid and continuous tapping operations; equal-interval tapping corresponds to an interval threshold of 300ms to 800ms, which is suitable for users' tapping operations with a uniform rhythm; and slow-interval tapping corresponds to an interval threshold of more than 800ms, which is suitable for users' tapping operations with longer intervals. Each valid interval data is compared with the above interval thresholds one by one to determine the tapping pattern type to which each interval data belongs, providing a classification basis for subsequent pattern judgment.
[0047] 602. Count the number of intervals for each type of striking pattern, and calculate the type percentage of the corresponding striking pattern based on the number of intervals; In this embodiment, the type percentage is calculated by dividing the number of intervals of a certain tapping pattern type by the total number of all valid interval data, and then multiplying by 100%. Valid interval data refers to the interval data after removing invalid intervals that are less than the anti-shake time threshold, ensuring that the intervals involved in the percentage calculation are all real intervals generated by the user's taps. The percentage can reflect the dominant position of different tapping pattern types in the overall operation.
[0048] 603. Obtain a preset percentage threshold, compare the type percentage with the percentage threshold, and confirm the tapping pattern based on the comparison result; In this embodiment, the preset percentage threshold is set to 70%-80%. This percentage threshold can ensure the consistency of pattern determination. Only when the percentage of a certain type of interval reaches or exceeds the percentage threshold can the current tapping pattern be confirmed as the pattern corresponding to that type, avoiding misjudgment of the pattern due to individual interval deviations. If the percentage of all types is lower than the percentage threshold, it is determined to be an irregular tapping and no control command is triggered.
[0049] In this embodiment, the ambiguity in determining tapping patterns under multiple interval data is resolved through multiple logical steps including interval classification, proportion statistics, and deviation verification, ensuring the accuracy and reliability of tapping pattern recognition. The setting of the pattern division threshold adapts to different user tapping habits, the setting of the proportion threshold ensures the consistency of patterns, and the equal interval deviation rate verification further enhances the rigor of equal interval pattern determination. The three work together to ensure that the determination of tapping patterns can truly reflect the user's operating rhythm. Accurate tapping patterns provide reliable parameter support for subsequent command matching, enabling control commands to accurately correspond to the user's operating intentions, while avoiding the situation of triggering commands by random tapping, further reducing the probability of false triggering, and improving the logic and reliability of the three-dimensional combined control system.
[0050] Furthermore, in this embodiment of the invention, the step of confirming the control command based on the tapping location, the number of taps, and the tapping pattern includes: 701. Based on the tapping location, confirm the functional attributes of the instruction; In this embodiment, the correspondence between the tapping position and the functional attribute is based on user operating habits and the refrigerator's functional logic design. The function selection area on the left corresponds to various core operating functions of the refrigerator, including refrigerator temperature adjustment, freezer temperature adjustment, defrosting mode, etc., which correspond to the refrigerator's core adjustment functions. The power on / off / cancel area on the right only corresponds to the refrigerator's basic control commands, including child lock on / off, function cancellation, emergency mode activation, etc. This division method makes the function classification clear, and users do not need to remember complex operations. They can quickly lock the function direction by tapping the position, reducing the difficulty of operation.
[0051] 702. Based on the number of taps, confirm the operating gear or operating mode of the command; In this embodiment, based on determining the tapping location, i.e., the functional attribute, the number of taps is used to distinguish different sub-options under the same major functional category, adapting to the diverse needs of users. For example, for the function selection area on the left, 1 tap corresponds to adjusting the refrigerator temperature, 2 taps correspond to adjusting the freezer temperature, and 3 taps correspond to adjusting the defrost intensity. For the power on / off / cancel area on the right, 1 tap corresponds to canceling the function, 2 taps correspond to turning the child lock on / off, and 3 taps correspond to activating the emergency mode.
[0052] 703. Based on the aforementioned tapping pattern, confirm the command's execution method; In this embodiment, the tapping pattern is used to distinguish different execution modes under the same function and power level, adapting to different usage scenarios. For example, rapid continuous tapping corresponds to a high-efficiency operation mode, such as high-efficiency cooling in the refrigerator, high-efficiency cooling in the freezer, and rapid defrosting; equally spaced tapping corresponds to a standard operation mode, such as maintaining standard temperature in the refrigerator, maintaining standard temperature in the freezer, and regular defrosting; slow, intermittent tapping corresponds to an energy-saving operation mode, such as energy-saving cooling in the refrigerator, energy-saving cooling in the freezer, and delayed defrosting. This design allows the same function to flexibly adjust its operation mode according to the tapping pattern, improving the flexibility of use.
[0053] 704. Integrate the aforementioned functional attributes, operating modes, and operating gears or operating conditions to obtain control commands; In this embodiment, the three-dimensional combined control system significantly expands the number of control commands, solving the problem of limited command quantity in traditional single-dimensional control methods, and can meet the diverse functional control needs of modern refrigerators. The functional division logic of the three-dimensional parameters is clear, and users can quickly achieve function selection, gear adjustment, and operating mode switching through simple tap operations, making operation convenient and with low learning costs. The precise matching of commands ensures that the user's operation intention can be accurately translated into the refrigerator's operating status adjustment, avoiding misoperation caused by command confusion. At the same time, the three-dimensional combined filtering mechanism further reduces the probability of false triggering, making the control method both flexible and reliable.
[0054] The above describes the tapping control method for a refrigerator in an embodiment of the present invention. The following describes the tapping control device for a refrigerator in an embodiment of the present invention. Please refer to [link / reference]. Figure 2 One embodiment of the knocking control device for a refrigerator in this invention includes: The acquisition module 801 is used to acquire the first raw electrical signal fed back by the first ultrasonic sensor and the second raw electrical signal fed back by the second ultrasonic sensor. Processing module 802 is used to preprocess the first original electrical signal and the second original electrical signal respectively to generate a first digital signal and a second digital signal; Extraction module 803 is used to extract feature parameters from the first digital signal and the second digital signal, and to confirm the striking position based on the feature parameters; The statistics module 804 is used to count the number of the first digital signal and the second digital signal within a set sliding window time range to confirm the number of taps, and to count the time interval between two adjacent signal receptions to obtain multiple interval data. The confirmation module 805 is used to confirm the tapping pattern based on multiple interval data. The control module 806 is used to confirm control commands based on the tapping position, the number of taps, and the tapping pattern, and to adjust the operating status of the refrigerator based on the control commands.
[0055] Based on the same ideas as the methods in the above embodiments, the apparatus provided in this application can implement the methods in the above embodiments.
[0056] above Figure 2 The tapping control device for a refrigerator in this embodiment of the invention is described in detail from the perspective of modular functional entities. The tapping control device for a refrigerator in this embodiment of the invention is described in detail from the perspective of hardware processing.
[0057] Figure 3 This is a schematic diagram of a knocking control device 900 for a refrigerator according to an embodiment of the present invention. The knocking control device 900 for a refrigerator can vary considerably depending on its configuration or performance. It may include one or more central processing units (CPUs) 910 and a memory 920, and one or more storage media 930 (e.g., one or more mass storage devices) storing application programs 933 or data 932. The memory 920 and storage media 930 may be temporary or persistent storage. The program stored in the storage media 930 may include one or more modules (not shown in the diagram), each module may include a series of instruction operations on the knocking control device 900 for the refrigerator. Furthermore, the processor 910 may be configured to communicate with the storage media 930 and execute the series of instruction operations in the storage media 930 on the knocking control device 900 for the refrigerator to implement the steps of the knocking control method for a refrigerator provided in the above-described method embodiments.
[0058] The knocking control device 900 for a refrigerator may also include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input / output interfaces 960, and / or one or more operating systems 931, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 3 The illustrated structure of the tapping control device for a refrigerator does not constitute a limitation on the tapping control device for a refrigerator, and may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0059] The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform steps of a tapping control method for a refrigerator.
[0060] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system, device, or unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0061] If the integrated unit is implemented as 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 technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0062] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A tapping control method for a refrigerator, the refrigerator comprising a main body, characterized in that, The main body includes a non-metallic region, within which a first ultrasonic sensor and a second ultrasonic sensor are disposed. The distance between the first and second ultrasonic sensors is used to create a difference in the sound wave signals generated by the first and second ultrasonic sensors. The tapping control method includes: Acquire the first raw electrical signal fed back by the first ultrasonic sensor and the second raw electrical signal fed back by the second ultrasonic sensor; The first original electrical signal and the second original electrical signal are preprocessed respectively to generate a first digital signal and a second digital signal; Feature parameters are extracted from the first digital signal and the second digital signal, and the striking position is determined based on the feature parameters; Within the set sliding window time range, the number of the first digital signal and the second digital signal are counted to confirm the number of taps, and the time interval between two adjacent signal receptions is counted to obtain multiple interval data. Based on multiple interval data points, the tapping pattern was confirmed; Based on the tapping location, the number of taps, and the tapping pattern, a control command is confirmed, and the refrigerator's operating status is adjusted based on the control command.
2. The tapping control method for a refrigerator according to claim 1, characterized in that, The step of preprocessing the first original electrical signal and the second original electrical signal to generate a first digital signal and a second digital signal includes: The first original electrical signal and the second original electrical signal are filtered respectively to obtain a first filtered signal and a second filtered signal. The first filtered signal and the second filtered signal are amplified respectively to obtain a first amplified signal and a second amplified signal; The first amplified signal and the second amplified signal are respectively subjected to analog-to-digital conversion to obtain a first digital signal and a second digital signal.
3. The tapping control method for a refrigerator according to claim 1, characterized in that, The step of extracting feature parameters from the first digital signal and the second digital signal, and determining the tapping position based on the feature parameters, includes: Obtain the current ambient noise level, and based on the current ambient noise level, determine the time difference threshold and amplitude difference threshold; Feature parameters are extracted from the first digital signal and the second digital signal, the feature parameters including time difference and amplitude difference; The validity of the feature parameters is confirmed based on the time difference threshold and the amplitude difference threshold. If the feature parameters are valid, the tapping location is confirmed based on the feature parameters.
4. The tapping control method for a refrigerator according to claim 3, characterized in that, If the feature parameter is valid, then determining the tapping location based on the feature parameter includes: If the feature parameters are valid, then the cosine similarity between the feature parameters and the feature templates pre-stored in the acoustic feature database is calculated to obtain the real-time confidence level. Obtain a preset confidence threshold and compare the real-time confidence level with the confidence threshold. If the real-time confidence level is higher than the confidence level threshold, then the tap position corresponding to the feature parameter is matched.
5. The tapping control method for a refrigerator according to claim 1, characterized in that, Within a set sliding window time range, counting the number of the first digital signal and the second digital signal to confirm the number of taps includes: Obtain the preset pulse amplitude threshold and the preset anti-shake time; Within a set sliding window time range, the first digital signal and the second digital signal are filtered based on the pulse amplitude threshold and the anti-shake time respectively to obtain the first valid signal and the second valid signal; The number of taps is confirmed based on the first valid signal and the second valid signal.
6. The tapping control method for a refrigerator according to claim 1, characterized in that, The process of confirming the tapping pattern based on multiple interval data includes: Obtain a preset pattern division threshold, match multiple interval data with the pattern division threshold respectively, and obtain the tapping pattern type corresponding to each interval data; The number of intervals for each type of striking pattern is counted, and the percentage of each striking pattern type is calculated based on the number of intervals. Obtain a preset percentage threshold, compare the percentage of the type with the percentage threshold, and confirm the tapping pattern based on the comparison result.
7. The tapping control method for a refrigerator according to claim 1, characterized in that, The control command confirmation based on the tapping location, the number of taps, and the tapping pattern includes: Based on the tapping location, confirm the functional attributes of the command; Based on the number of taps, confirm the operating gear or operating mode of the command; Based on the aforementioned tapping pattern, the command execution method is confirmed; By integrating the functional attributes, the operating mode, and the operating gear or operating mode, control commands are obtained.
8. A tapping control device for a refrigerator, characterized in that, include: The acquisition module is used to acquire the first raw electrical signal fed back by the first ultrasonic sensor and the second raw electrical signal fed back by the second ultrasonic sensor. The processing module is used to preprocess the first original electrical signal and the second original electrical signal respectively to generate a first digital signal and a second digital signal; An extraction module is used to extract feature parameters from the first digital signal and the second digital signal, and to confirm the striking position based on the feature parameters; The statistics module is used to count the number of the first digital signal and the second digital signal within a set sliding window time range to confirm the number of taps, and to count the time interval between two adjacent signal receptions to obtain multiple interval data. The confirmation module is used to confirm the tapping pattern based on multiple interval data. The control module is used to confirm control commands based on the tapping location, the number of taps, and the tapping pattern, and to adjust the refrigerator's operating status based on the control commands.
9. A tapping control device for a refrigerator, characterized in that, The tapping control device for the refrigerator includes: a memory and at least one processor, wherein the memory stores instructions; At least one of the processors invokes the instructions in the memory to cause the tapping control device for the refrigerator to perform the steps of the tapping control method for the refrigerator as claimed in any one of claims 1-7.
10. A computer-readable storage medium storing instructions thereon, characterized in that, When the instructions are executed by the processor, they implement the steps of the tapping control method for a refrigerator as described in any one of claims 1-7.