Refrigerator and food material recognition method thereof

By recognizing the state of the hand holding the object and the overlap of areas, the starting point of the effective access action is accurately determined, which solves the efficiency and accuracy problems of food identification in the existing technology and achieves efficient and robust food identification results.

CN122544490BActive Publication Date: 2026-11-27HISENSE(SHANDONG)REFRIGERATOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611025342.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-07-10
Publication Date
2026-11-27
Estimated Expiration
2046-07-10

AI Technical Summary

Technical Problem

In existing technologies, the food recognition methods of smart refrigerators cannot accurately select the time period with the best food image quality for efficient and high-precision recognition without increasing computing power. In particular, they cannot effectively detect changes in food if the user does not close the door immediately.

Method used

By recognizing the holding state of the hand area in the action detection image collected by the image acquisition device and the overlap with the preset area, the starting node of the valid access action is accurately determined. Subsequent processing is triggered only within the optimal time window of the image quality when the hand holding food passes through the refrigerator door frame. Overlap timeout and incomplete cumulative termination mechanisms are configured to ensure the integrity and robustness of the image sequence.

Benefits of technology

It improves the confidence and robustness of food identification at the overall statistical level, avoids interference from irrelevant frames, ensures the temporal integrity of image sequences and the security of storage resources, and improves the efficiency and accuracy of food identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122544490B_ABST
    Figure CN122544490B_ABST
Patent Text Reader

Abstract

The application relates to a refrigerator and a food material recognition method thereof. The refrigerator comprises a cabinet, an image collector, a memory and a controller. The controller is configured to recognize a holding state of a hand region in a motion detection image collected by the image collector, recognize an overlapping condition between the hand region and a preset region in the motion detection image, store at least one frame of the motion detection image collected by the image collector into the memory without storing the at least one frame of the motion detection image into the memory in a case that the holding state represents an empty-handed state, store at least one frame of the motion detection image collected by the image collector into the memory until the hand region and the preset region are no longer overlapped in a case that the holding state represents a held material and the hand region and the preset region are overlapped, and stop storing the motion detection image into the memory, and count each food material category recognized in the motion detection image stored in the memory, and take a food material category with the largest number as a target food material of the current food material access action. The method can improve the food material recognition accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of refrigerators, and in particular to a refrigerator and a method for identifying food items thereon. Background Technology

[0002] With the integration of computer vision and smart home appliance technologies, refrigerator food management systems based on visual perception have gradually become a research hotspot in the industry. This technology automatically collects video images of users storing and retrieving food by deploying cameras inside the refrigerator, and uses deep learning object detection algorithms to identify food categories, thereby achieving intelligent updates and management of the food list.

[0003] In traditional technology, smart refrigerators mainly use two methods to identify food: the first is continuous identification, which involves performing complete deep learning inference on each frame of video image captured by the camera to capture changes in the food; the second is door / drawer closing triggering, which involves analyzing the captured image sequence and identifying the food that the user put in or took out only when the refrigerator door or drawer is detected to be closed.

[0004] However, this method relies on physical state sensors on doors or drawers, and cannot effectively detect scenarios where users only open the door to retrieve items and do not immediately close it. Therefore, how to accurately select the time period with the best food image quality for efficient and high-precision recognition without increasing computing power has become a pressing technical problem that needs to be solved. Summary of the Invention

[0005] This application provides a refrigerator and a method for identifying food items thereon, in order to improve the efficiency of food item identification in the refrigerator.

[0006] In a first aspect, some embodiments provide a refrigerator, including:

[0007] The enclosure has at least one compartment.

[0008] At least one image acquisition device is configured to acquire motion detection images of food storage and retrieval actions; the field of view of the image acquisition device includes the external area of ​​the refrigerator and the internal area of ​​the compartments.

[0009] Memory for caching at least one frame of motion detection image;

[0010] At least one controller, connected to each image acquisition unit and the memory, is configured to:

[0011] The image recognition device identifies the holding state of the hand region in the motion detection image captured by the image acquisition device; and,

[0012] Identify the overlap between the hand region and a preset region in the motion detection image; the preset region is used to characterize the image space range traversed by the hand as it moves from the outer region to the inner region during the food storage and retrieval process;

[0013] When the holding state indicates that an object has been held, and the hand area overlaps with a preset area, at least one frame of motion detection image captured by the image acquisition device is stored in the memory until the hand area no longer overlaps with the preset area, at which point the storage of motion detection images in the memory is stopped.

[0014] The food categories identified in the motion detection images stored in the memory are statistically analyzed, and the food category with the highest number of statistical results is taken as the target food for the current food storage and retrieval action.

[0015] The controller is further configured to: stop storing the motion detection image to the memory when the overlap between the hand region and the preset region detected in the motion detection image reaches a preset time; and stop storing the motion detection image to the memory when, during the process of storing the motion detection image to the memory, at least one motion detection image is found to have an incomplete hand region, and the number of motion detection images with incomplete hand regions reaches a preset number threshold.

[0016] The refrigerator provided in the above embodiments, by simultaneously recognizing the hand holding the object and the overlap between the hand and a preset area, can accurately determine the starting point of a valid access action, eliminating interference from invalid actions such as opening and closing the door with an empty hand. This ensures that subsequent processing is triggered only within the optimal image quality window when the food is being held across the refrigerator door frame, significantly filtering out irrelevant frames at the source. Based on this precise triggering condition, a frame buffer is started and action detection images are continuously stored until the hand leaves the preset area. This ensures that the image sequence stored in the buffer completely covers the entire process of the food entering the refrigerator from the outside, avoiding the period when the food is obscured after the door is closed. The action detection images stored in the memory are then used to identify the food category and count the number of occurrences of each category. The category with the highest number of occurrences is selected as the final target food. Images are drawn from multiple moments throughout the entire action process. Local defects such as occlusion, blurring, or uneven lighting that may exist in a single frame are effectively smoothed by a multi-frame statistical voting mechanism. This ensures that the final recognition result no longer depends on the accidental quality of a single frame, but has higher confidence and robustness at the overall statistical level. On this basis, an automatic termination mechanism with timeout is configured to prevent the infinite growth of cache and memory overflow caused by the user's hand lingering in the preset area for a long time due to hesitation or searching. An automatic termination mechanism is also configured when the incomplete hand area accumulates to a threshold. This effectively identifies and avoids hand area truncation caused by rapid hand movement beyond the field of vision or body occlusion, and terminates the invalid cache of low-quality image segments in a timely manner. While ensuring the safety of storage resources and operational stability, this ensures that the image sequence participating in the recognition has both temporal integrity and single-frame availability.

[0017] Secondly, some embodiments also provide a refrigerator food identification method, including:

[0018] The image recognition device identifies the holding state of the hand region in the motion detection image captured by the image acquisition device; and,

[0019] Identify the overlap between the hand region and a preset region in the motion detection image; the preset region is used to characterize the image space range traversed by the hand when moving from the outer area to the inner area of ​​the refrigerator during the food storage and retrieval process;

[0020] When the holding state indicates that an object has been held, and the hand area overlaps with a preset area, at least one frame of motion detection image captured by the image acquisition device is stored in the memory until the hand area no longer overlaps with the preset area, at which point the storage of motion detection images in the memory is stopped.

[0021] The food categories identified in the motion detection images stored in the memory are statistically analyzed, and the food category with the highest number of statistical results is taken as the target food for the current food storage and retrieval action.

[0022] The method further includes: stopping the storage of motion detection images to memory when the overlap between the hand region and the preset region detected in the motion detection image reaches a preset time; stopping the storage of motion detection images to memory when, during the process of storing motion detection images to memory, if at least one motion detection image is found to have an incomplete hand region, and the number of motion detection images with incomplete hand regions reaches a preset number threshold; and stopping the storage of motion detection images to memory when the holding state represents an empty-handed state, it is not necessary to store at least one frame of motion detection image captured by the image acquisition device to memory.

[0023] The refrigerator food identification method provided in the above embodiments can accurately determine the starting point of valid access actions by simultaneously identifying the hand holding the food and the overlap between the hand and the preset area. This eliminates interference from invalid actions such as opening and closing the door with empty hands, ensuring that subsequent processing is triggered only within the optimal image quality window when the food is held across the refrigerator door frame. This significantly filters out irrelevant frames at the source. Based on this precise triggering condition, a frame buffer is started and action detection images are continuously stored until the hand leaves the preset area. This ensures that the image sequence stored in the buffer completely covers the entire process of the food entering the refrigerator from the outside, and avoids the period when the food is obscured after the door is closed. The food category is identified for each action detection image stored in the memory, and the number of occurrences of each category is counted. The category with the highest number of occurrences is selected as the final target food. These images come from multiple moments throughout the entire action process. Local defects such as occlusion, blurring, or uneven lighting that may exist in a single frame image are effectively smoothed by a multi-frame statistical voting mechanism. This makes the final recognition result no longer dependent on the accidental quality of a single frame, but has higher confidence and robustness at the overall statistical level. On this basis, an automatic termination mechanism with timeout is configured to prevent the infinite growth of cache and memory overflow caused by the user's hand lingering in the preset area for a long time due to hesitation or searching. An automatic termination mechanism is configured when the incomplete hand area accumulates to a threshold, effectively identifying and avoiding hand area truncation caused by rapid hand movement beyond the field of vision or body occlusion, and timely terminating the invalid cache of low-quality image segments. While ensuring the safety of storage resources and operational stability, this ensures that the image sequence participating in the recognition has both temporal integrity and single-frame availability.

[0024] Thirdly, some embodiments also provide a refrigerator food identification device, including:

[0025] The recognition module is used to recognize the holding state of the hand area in the motion detection image acquired by the image acquisition device; and to recognize the overlap between the hand area and the preset area in the motion detection image; the preset area is used to characterize the image space range traversed by the hand when it moves from the outer area to the inner area of ​​the refrigerator during the food storage and retrieval action.

[0026] The storage module is used to store at least one frame of motion detection image captured by the image acquisition device into the memory when the holding state indicates that an object has been held and the hand area overlaps with the preset area, until the hand area no longer overlaps with the preset area, and then stop storing the motion detection image into the memory.

[0027] The statistics module is used to count the food categories identified in the motion detection images stored in the memory, and select the food category with the highest number of counts as the target food for the current food storage and retrieval action.

[0028] The stop module is used to stop storing the motion detection image to the memory when the overlap between the hand region and the preset region detected in the motion detection image reaches a preset time; during the process of storing the motion detection image to the memory, if at least one motion detection image is found to have an incomplete hand region, and the number of motion detection images with incomplete hand regions reaches a preset number threshold, the module stops storing the motion detection image to the memory; when the holding state represents an empty hand state, it is not necessary to store at least one frame of motion detection image captured by the image acquisition device to the memory.

[0029] The refrigerator food recognition device provided in the above embodiments can accurately determine the starting point of valid access actions by simultaneously recognizing the hand holding the food and the overlap between the hand and the preset area. This eliminates interference from invalid actions such as opening and closing the door with empty hands, ensuring that subsequent processing is triggered only within the optimal image quality window when the food is held across the refrigerator door frame. This significantly filters out irrelevant frames at the source. Based on this precise triggering condition, a frame buffer is started and action detection images are continuously stored until the hand leaves the preset area. This ensures that the image sequence stored in the buffer completely covers the entire process of the food entering the refrigerator from the outside, and avoids the period when the food is obscured after the door is closed. The food category is identified for each action detection image stored in the memory, and the number of occurrences of each category is counted. The category with the highest number of occurrences is selected as the final target food. These images come from multiple moments throughout the entire action process. Local defects such as occlusion, blurring, or uneven lighting that may exist in a single frame image are effectively smoothed by a multi-frame statistical voting mechanism. This makes the final recognition result no longer dependent on the accidental quality of a single frame, but has higher confidence and robustness at the overall statistical level. On this basis, an automatic termination mechanism with timeout is configured to prevent the infinite growth of cache and memory overflow caused by the user's hand lingering in the preset area for a long time due to hesitation or searching. An automatic termination mechanism is configured when the incomplete hand area accumulates to a threshold, effectively identifying and avoiding hand area truncation caused by rapid hand movement beyond the field of vision or body occlusion, and timely terminating the invalid cache of low-quality image segments. While ensuring the safety of storage resources and operational stability, this ensures that the image sequence participating in the recognition has both temporal integrity and single-frame availability.

[0030] Fourthly, some embodiments also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0031] The image recognition device identifies the holding state of the hand region in the motion detection image captured by the image acquisition device; and,

[0032] Identify the overlap between the hand region and a preset region in the motion detection image; the preset region is used to characterize the image space range traversed by the hand when moving from the outer area to the inner area of ​​the refrigerator during the food storage and retrieval process;

[0033] When the holding state indicates that an object has been held, and the hand area overlaps with a preset area, at least one frame of motion detection image captured by the image acquisition device is stored in the memory until the hand area no longer overlaps with the preset area, at which point the storage of motion detection images in the memory is stopped.

[0034] The food categories identified in the motion detection images stored in the memory are statistically analyzed, and the food category with the highest number of statistical results is taken as the target food for the current food storage and retrieval action.

[0035] The method further includes: stopping the storage of motion detection images to memory when the overlap between the hand region and the preset region detected in the motion detection image reaches a preset time; stopping the storage of motion detection images to memory when, during the process of storing motion detection images to memory, if at least one motion detection image is found to have an incomplete hand region, and the number of motion detection images with incomplete hand regions reaches a preset number threshold; and stopping the storage of motion detection images to memory when the holding state represents an empty-handed state, it is not necessary to store at least one frame of motion detection image captured by the image acquisition device to memory.

[0036] The readable storage medium provided in the above embodiments stores a computer program that, when executed by a processor, can accurately determine the starting point of a valid access action by simultaneously recognizing the hand holding the object and the overlap between the hand and a preset area. This eliminates interference from invalid actions such as opening and closing the door with empty hands, ensuring that subsequent processing is triggered only within the optimal image quality window when the food is being held across the refrigerator door frame. This significantly filters out irrelevant frames at the source. Based on this precise triggering condition, a frame buffer is started and action detection images are continuously stored until the hand leaves the preset area. This ensures that the image sequence retained in the buffer completely covers the entire process of the food entering the refrigerator from the outside, and avoids the period when the food is obscured after the door is closed. The action detection images stored in the memory are then used to identify the food category and count the number of occurrences of each category, with the category with the highest number of occurrences being used as the reference category. The final target is the food ingredients. Since these images come from multiple moments throughout the entire process, local defects such as occlusion, blurring, or uneven lighting that may exist in a single frame are effectively smoothed by a multi-frame statistical voting mechanism. This makes the final recognition result no longer dependent on the accidental quality of a single frame, but has higher confidence and robustness at the overall statistical level. On this basis, an automatic termination mechanism with timeout is configured to prevent the infinite growth of cache and memory overflow caused by the user's hand lingering in the preset area for a long time due to hesitation or searching. An automatic termination mechanism is configured when the incomplete hand area accumulates to a threshold, effectively identifying and avoiding hand area truncation caused by rapid hand movement beyond the field of vision or body occlusion, and timely terminating the invalid cache of low-quality image segments. While ensuring the safety of storage resources and operational stability, this ensures that the image sequence participating in the recognition has both temporal integrity and single-frame availability.

[0037] Fifthly, some embodiments also provide a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0038] The image recognition device identifies the holding state of the hand region in the motion detection image captured by the image acquisition device; and,

[0039] Identify the overlap between the hand region and a preset region in the motion detection image; the preset region is used to characterize the image space range traversed by the hand when moving from the outer area to the inner area of ​​the refrigerator during the food storage and retrieval process;

[0040] When the holding state indicates that an object has been held, and the hand area overlaps with a preset area, at least one frame of motion detection image captured by the image acquisition device is stored in the memory until the hand area no longer overlaps with the preset area, at which point the storage of motion detection images in the memory is stopped.

[0041] The food categories identified in the motion detection images stored in the memory are statistically analyzed, and the food category with the highest number of statistical results is taken as the target food for the current food storage and retrieval action.

[0042] The method further includes: stopping the storage of motion detection images to memory when the overlap between the hand region and the preset region detected in the motion detection image reaches a preset time; stopping the storage of motion detection images to memory when, during the process of storing motion detection images to memory, if at least one motion detection image is found to have an incomplete hand region, and the number of motion detection images with incomplete hand regions reaches a preset number threshold; and stopping the storage of motion detection images to memory when the holding state represents an empty-handed state, it is not necessary to store at least one frame of motion detection image captured by the image acquisition device to memory.

[0043] The computer program provided in the above embodiments, when executed by the processor, can accurately determine the starting point of a valid access action by simultaneously recognizing the hand holding the object and the overlap between the hand and the preset area. This eliminates interference from invalid actions such as opening and closing the door with empty hands, ensuring that subsequent processing is triggered only within the optimal image quality window when the food is being held across the refrigerator door frame. This significantly filters out irrelevant frames at the source. Based on this precise triggering condition, a frame buffer is started and action detection images are continuously stored until the hand leaves the preset area. This ensures that the image sequence stored in the buffer completely covers the entire process of the food entering the refrigerator from the outside, and avoids the period when the food is obscured after the door is closed. The action detection images stored in the memory are then used to identify the food category and count the number of occurrences of each category, with the category with the highest number of occurrences being selected. As the final target food ingredient, since these images come from multiple moments throughout the entire process, local defects such as occlusion, blurring, or uneven lighting that may exist in a single frame image are effectively smoothed by a multi-frame statistical voting mechanism. This makes the final recognition result no longer dependent on the accidental quality of a single frame, but has higher confidence and robustness at the overall statistical level. On this basis, an automatic termination mechanism for stacking timeout is configured to prevent the infinite growth of cache and memory overflow caused by the user's hand lingering in the preset area for a long time due to hesitation or searching. An automatic termination mechanism is configured when the incomplete hand area accumulates to a threshold, effectively identifying and avoiding hand area truncation caused by rapid hand movement beyond the field of vision or body occlusion, and timely terminating the invalid cache of low-quality image segments. While ensuring the safety of storage resources and operational stability, this ensures that the image sequence participating in the recognition has both temporal integrity and single-frame availability. Attached Figure Description

[0044] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0045] Figure 1 A schematic block diagram of a first refrigerator structure provided for some embodiments of this application;

[0046] Figure 2 A schematic block diagram of a second refrigerator structure provided for some embodiments of this application;

[0047] Figure 3 Schematic block diagram of the structure of the processing device in the refrigerator provided in some embodiments of this application;

[0048] Figure 4 A schematic block diagram of a third refrigerator structure provided for some embodiments of this application;

[0049] Figure 5 A schematic block diagram of a fourth refrigerator structure provided in some embodiments of this application;

[0050] Figure 6 A flowchart illustrating a first refrigerator food identification method provided in some embodiments of this application;

[0051] Figure 7 A schematic diagram of a preset area provided for some embodiments of this application;

[0052] Figure 8 A flowchart illustrating a step to stop caching, provided for some embodiments of this application;

[0053] Figure 9 A flowchart illustrating the first food ingredient identification step provided in some embodiments of this application;

[0054] Figure 10 A flowchart illustrating a first step in determining a hand detection image, provided for some embodiments of this application;

[0055] Figure 11 A flowchart illustrating a second step for determining a hand detection image, provided for some embodiments of this application;

[0056] Figure 12 A flowchart illustrating a second food ingredient identification step provided in some embodiments of this application;

[0057] Figure 13 A flowchart illustrating a second refrigerator food identification method provided in some embodiments of this application;

[0058] Figure 14 A schematic flowchart of a refrigerator food identification device provided in some embodiments of this application;

[0059] Figure 15 This is an internal structural diagram of a computer device provided for some embodiments of this application. Detailed Implementation

[0060] The embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described below do not represent all embodiments consistent with this application. They are merely examples of systems and methods consistent with some aspects of this application as detailed in the claims.

[0061] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0062] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.

[0063] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.

[0064] The term "module" refers to any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0065] The refrigerator 1 provided in this application will now be described with reference to the accompanying drawings. The overall structure of the refrigerator 1 is as follows: Figure 1 As shown. Refrigerator 1 includes a cabinet 10 and a processing device 20.

[0066] like Figure 2 As shown, the housing 10 has at least one storage compartment.

[0067] Storage rooms are typically divided into freezer rooms and refrigerator rooms (referred to as refrigerator rooms). They can also be further divided into chambers with special functions, such as chambers for storing fruits and vegetables. Refrigerator rooms can maintain a temperature range of approximately 4°C to store food, medicine, or biological agents in a refrigerated state. Freezer rooms can maintain a temperature range of approximately -18°C to store food, medicine, or biological agents in a frozen state.

[0068] The storage compartment has an opening that can be opened and closed via a door 11 hinged to the outer casing, or via a drawer 12. When a refrigerator compartment and a freezer compartment are provided, one opening can be opened and closed via a door (e.g., the refrigerator compartment), and the other opening can be opened and closed via a drawer 12 (e.g., the freezer compartment).

[0069] The housing 10 employs a vapor compression refrigeration cycle to generate energy for maintaining the target temperature. The refrigeration cycle consists of a compressor 161, a condenser, a throttling device, and an evaporator. The refrigeration cycle involves a series of processes, including compression, condensation, expansion, and evaporation, to cool the storage compartment and maintain an ideal low-temperature storage environment inside.

[0070] In a vapor compression refrigeration cycle, a low-temperature, low-pressure refrigerant enters the compressor 161, which compresses it into a high-temperature, high-pressure refrigerant gas and discharges the compressed refrigerant gas. The discharged refrigerant gas flows into the condenser, where the condenser condenses the compressed refrigerant into a liquid phase, and the heat is released to the surrounding environment through the condensation process.

[0071] The throttling device causes the high-temperature, high-pressure liquid refrigerant formed in the condenser to expand into a low-pressure liquid refrigerant. The evaporator evaporates the refrigerant that has expanded in the throttling device and returns the low-temperature, low-pressure refrigerant gas to the compressor 161. The evaporator can achieve a cooling effect by exchanging heat with the material to be cooled through the latent heat of refrigerant evaporation. In this application, the evaporator exchanges heat with air to form air for cooling the storage compartment, thereby cooling the storage compartment. The throttling device can be a capillary tube.

[0072] A filter is also installed downstream of the condenser. The filter is used to filter impurities in the refrigerant, improve the heat exchange efficiency of the refrigeration unit, and reduce the risk of pipe blockage.

[0073] A liquid receiver can also be installed on the suction side of the compressor 161. The liquid receiver is used to separate the refrigerant into gas and liquid phases. The liquid receiver is a shell-shaped component. The gas-liquid mixed refrigerant fluid enters the liquid receiver for basic phase separation. The gas enters the gas passage and undergoes gravity settling to separate droplets, while the liquid enters the liquid space and separates into bubbles. The gas flows out from the gas outlet and is then drawn into the compressor 161, preventing the compressor 161 from carrying liquid in the suction and reducing the service life of the compressor 161.

[0074] The compressor 161 and condenser can be located at the lower rear of the housing, while the evaporator can be located at the rear of the housing corresponding to the storage compartment. The evaporator and condenser can also be arranged in other locations according to the industrial design of the housing 10, which will not be listed here. The location where the evaporator is located has sufficient space to allow air to flow. The air is driven by the fan 162 to deliver the air generated by the evaporator for cooling the storage compartment to the target location and to draw in air from the storage compartment, forming an air circulation. In one or more embodiments of this application, the fan 162 includes a refrigeration fan and a freezing fan. In one or more embodiments of this application, the fan 162 can also be configured in conjunction with the condenser.

[0075] In one or more embodiments of this application, the evaporator may also be divided into two parts for the refrigerator compartment and the freezer compartment, referred to as the refrigerator compartment cooler and the freezer compartment cooler.

[0076] A defrosting element is provided in the housing 10. The defrosting element is configured to generate heat for defrosting the evaporator, thereby putting the evaporator in a defrosting state. In one or more embodiments of this application, the defrosting element includes a defrosting heater 163, which may be an electric heating tape or an electric heater. In one or more embodiments of this application, the defrosting element may also be a combination of an electric heating tape or an electric heater, and a heat exchanger or heat exchange piping. When defrosting conditions are met, the heat exchange piping is opened, and the high-temperature, high-pressure refrigerant discharged from the compressor 161 enters the heat exchange piping, exchanges heat with the surrounding air, raises the air temperature, and further provides heat to melt the frost layer on the evaporator surface, thereby putting the evaporator in a defrosting state. The heat exchange piping may be located below the evaporator, utilizing the principle that hot air has a lower density and rises to guide the air to remove the ice or frost layer on the evaporator. The defrosting element composed of an electric heating tape or an electric heater may also be located around the evaporator in other positions, such as above or to one side of the evaporator.

[0077] A display 164 is installed on the cabinet 10.

[0078] The cabinet 10 is equipped with a refrigeration system, which is configured to transfer heat from the inside of the refrigerator to the outside through the circulation of refrigerant.

[0079] like Figure 3As shown in the figure, the hardware configuration of the processing device 20 is as follows. The processing device 20 includes components such as a processor 201, volatile memory 203, non-volatile memory 202, display device 204, operation device 205, communication interface 206, and drive device 207, which are interconnected via a bus 208. The processor 201 can be a dedicated processor 201, a central processing unit, etc. The processor 201 can access the storage unit to execute instructions or application programs stored in the storage unit to achieve related functions. The display device 204 is a display device 204 for displaying various information, the operation device 205 is an operation device for receiving various operations, and the drive device 207 is a hardware terminal that interacts with the storage medium. In one or more embodiments of this application, the storage medium includes media such as CD-ROM, floppy disk, and optical-magnetic-optical disk that record information in an optical, electrical, or magnetic manner. The storage medium can also be a semiconductor memory such as ROM or flash memory that records information in an electrical manner.

[0080] In one or more embodiments of this application, the processing device 20 may be a controller 13. The controller 13 is disposed in the housing 10.

[0081] In one or more embodiments of this application, the processing device 20 may be communicatively connected to the controller 13, for example, by a terminal device 15 and / or a cloud server 14.

[0082] In one or more embodiments of this application, some functions of the processing device 20 may be implemented by the controller 13, and some functions may be implemented by the terminal device 15 and / or the cloud server 14.

[0083] Controller 13 can communicate with terminal device 15 and / or server 14. The network between controller 13 and terminal device 15, or between controller 13 and server 14, can be the Internet, cellular network, Wi-Fi network, low power wide area network (LPWAN), WAN, LAN, etc., based on standards and protocols such as LoRa, Sigfox, and NB-IoT.

[0084] The cabinet 10 can be used in home environments to store daily necessities such as food and cold drinks; it can also be used in commercial places such as restaurants, hotels, supermarkets, and convenience stores to store ingredients, food and beverages to meet customer needs; and it can also be used in places such as hospitals and laboratories to store medicines and biological samples to meet medical and scientific research needs.

[0085] Server 14 can provide various network services, such as resource and data access for refrigerator 1 controller 13 and terminal device 15. Server 14 has higher performance and reliability. Server 14 can connect to multiple refrigerator 1 controllers 13, multiple terminal devices 15, and other smart home appliance terminals.

[0086] Terminal device 15 is an electronic device with intelligent functions. It can connect to the aforementioned networks to achieve functions such as remote control, data exchange, and human-computer interaction. Terminal device 15 includes smartphones, tablets, smart speakers, wearable devices, smart home appliances (such as smart TVs), and smart in-vehicle devices, etc. The interaction methods between terminal device 15 and users include, but are not limited to: operating on the screen with a finger or stylus, performing various operations through buttons, voice control, gesture control, iris recognition, and facial recognition, etc.

[0087] In one or more embodiments of this application, the housing 10 is communicatively connected to the sensor assembly 30. At least a portion of the sensors in the sensor assembly 30 are disposed within the housing 10.

[0088] like Figure 4 and Figure 5 As shown, in one or more embodiments of this application, the sensor assembly 30 includes at least one temperature sensor; the temperature sensor may include at least one of a compartment temperature sensor 31, an evaporator temperature sensor 32, and an ambient temperature sensor 33.

[0089] In one or more embodiments of this application, at least one controller is connected to a temperature sensor. The controller is configured to: determine initial control parameters corresponding to the current ambient temperature based on a parameter initialization model; wherein the parameter initialization model is obtained through reinforcement learning based on refrigerator operating data under a preset sample ambient temperature; for each iteration, control the refrigerator to operate in a single cycle according to the refrigerator control parameters corresponding to the current iteration, and obtain the performance evaluation data corresponding to the refrigerator's operation in this single cycle; wherein the refrigerator control parameters in the first iteration are the initial control parameters; if the performance evaluation data corresponding to the current single cycle meets a preset update condition, update the refrigerator control parameters corresponding to the current iteration based on the performance evaluation data corresponding to the current single cycle to obtain the refrigerator control parameters corresponding to the next iteration; continue executing the next iteration until the performance evaluation data in the latest iteration no longer meets the preset update condition.

[0090] For example, the compartment temperature sensor 31 includes a refrigerator compartment temperature sensor 311 and a freezer compartment temperature sensor 312. The refrigerator compartment temperature sensor 311 is installed in the refrigerator compartment of the cabinet 10 to detect the temperature of the refrigerator compartment; the freezer compartment temperature sensor 312 is installed in the freezer compartment of the cabinet 10 to detect the temperature of the freezer compartment.

[0091] In one or more embodiments of this application, the compartment temperature sensor 31 further includes a fruit and vegetable compartment temperature sensor 313.

[0092] In one or more embodiments of this application, the compartment temperature sensor 31 further includes a variable temperature compartment temperature sensor 314.

[0093] For example, an evaporator temperature sensor 32 is disposed on the evaporator for detecting the temperature of the evaporator.

[0094] In one or more embodiments of this application, the evaporator temperature sensor includes a refrigerator compartment cooler temperature sensor 321 and a freezer compartment cooler temperature sensor 322.

[0095] In one or more embodiments of this application, the ambient temperature sensor 33 includes an indoor temperature sensor 331.

[0096] In one or more embodiments of this application, the ambient temperature sensor 33 includes an indoor temperature sensor 331 and an outdoor temperature sensor (not shown). The outdoor temperature can also be obtained by querying a server.

[0097] In one or more embodiments of this application, the sensor assembly 30 further includes a humidity sensor.

[0098] In one or more embodiments of this application, the sensor assembly 30 further includes a door switch sensor to detect the opening and closing of the door 11.

[0099] In one or more embodiments of this application, the sensor assembly 30 may also include other sensors, such as vibration sensors, weight sensors, etc.

[0100] In one or more embodiments of this application, the sensor assembly 30 further includes an electrical parameter sensor 34. The number of electrical parameter sensors 34 is not limited, and the electrical parameter sensors 34 can be used to detect one or more of the following: electrical charge, peak electrical charge, valley electrical charge, current, voltage, and energy efficiency.

[0101] In one or more embodiments of this application, the electrically driven actuator 16 in the housing 10 includes a compressor 161, a fan 162, and a defrost heater 163.

[0102] In one or more embodiments of this application, the electrically driven actuators 16 in the housing 10 include a compressor 161, a fan 162, a defrost heater 163, a display 164, and may also include, for example, a water pump in an ice-making module and a motor in an ice-crushing module.

[0103] Currently, to accurately identify the categories of food items stored and retrieved by users for automatic updates to the food list, traditional technologies mainly employ two approaches: the first is continuous recognition, which performs complete deep learning inference on every frame of video image captured by the camera to capture every moment of food item change; the second is a door or drawer-triggered approach, which analyzes the captured image sequence only when the refrigerator door or drawer is detected as closed to identify the food items placed or removed by the user. However, both of these methods have inherent drawbacks. While continuous recognition can capture the entire scene, the food items are often obscured by the user's hand, blurred by motion, or subject to sudden changes in lighting in many frames when the user is carrying the food items through the door frame area. This means that performing inference on every frame not only consumes enormous computational resources, but also introduces significant noise due to the large number of low-quality images involved in the recognition process, making it difficult to improve the overall recognition accuracy and resulting in low computational efficiency. On the other hand, while the door-closing trigger method reduces the number of inferences, its triggering timing is significantly delayed compared to the period when the food image quality is optimal. That is, when the door or drawer is closed, the food is often obscured by the door or drawer panel, preventing the camera from capturing a clear frontal image of the food, making the selection of the recognition window extremely unreasonable. Furthermore, this method heavily relies on the physical sensor signals of the door or drawer, making it completely ineffective in scenarios where the user only opens the door to retrieve items and does not immediately close it. It is also unsuitable for refrigerators without door-closing sensors. Therefore, traditional technologies suffer from the problem of not being able to accurately locate the hand holding the food during the user's actions of accessing or retrieving it, thus hindering the identification of food types and urgently requiring improvement.

[0104] To overcome the above problems, in some alternative embodiments, see Figure 6 A method for identifying food items in a refrigerator is provided, which can be applied to the controller in the refrigerator and may include the following steps:

[0105] The S601 identifies the holding state of the hand area in the motion detection image acquired by the image acquisition device; and identifies the overlap between the hand area and a preset area in the motion detection image.

[0106] The motion detection images are video frames continuously captured by the image acquisition device during the refrigerator's operation to detect the user's actions of accessing food. The hand region is the image area where the user's hand is located, identified by object detection algorithms (such as deep learning models like YOLO), and is usually represented by a rectangular detection box.

[0107] The holding state characterizes whether the hand is currently holding food, and is typically obtained by identifying the hand area using a classification model. Holding states can include: a held state (i.e., the hand is holding food) and an empty-handed state (i.e., the hand is not holding any food). By recognizing the holding state, invalid actions such as opening and closing doors with empty hands can be effectively filtered out, ensuring that subsequent frame buffering and recognition processes are only triggered when the user actually accesses or retrieves food.

[0108] The preset area is used to represent the image space range traversed by the hand as it moves from the outer area to the inner area during the food storage and retrieval process; this area is typically set as the geometric region corresponding to the refrigerator door frame or drawer opening in the image. For example, such as... Figure 7 The diagram shows the preset area. The area outside the trapezoidal area is the preset area described in this embodiment. As can be clearly seen from the diagram, when the user's hand moves from the outer area to the inner area, it will enter the preset area, resulting in an overlap between the hand area and the preset area.

[0109] The overlap condition can be understood as the positional intersection state between the hand region and the preset region in the image space, used to determine whether the hand has entered or is crossing the preset region. The overlap condition is usually represented by Boolean values ​​or geometric intersection-over-union (IoU), such as "overlapping" indicating that the hand region and the preset region have an intersection, and "non-overlapping" indicating that they have no intersection. The change in the overlap condition (from "non-overlapping" to "overlapping", and then from "overlapping" to "non-overlapping") marks the start and completion of a complete access operation, and is the core trigger condition for controlling the start and stop of the frame buffer.

[0110] In some embodiments, in response to the opening of the refrigerator door, an image acquisition device is activated; the image acquisition device acquires the user's motion detection image stream in real time, and detects the holding state of the hand area in the motion detection image stream; and the overlap between the hand area and a preset area in the motion detection image.

[0111] For example, the method for identifying the holding state of the hand region in an action detection image acquired by an image acquisition device is as follows: The action detection image is input into a pre-trained target detection model, and the target detection model outputs at least one hand detection box in the action detection image and the hand category information corresponding to each hand detection box; If a single hand detection box is detected in the action detection image, the hand category information corresponding to the hand detection box is directly used as the holding state of the hand region; If multiple hand detection boxes are detected in the action detection image, the hand detection box with the highest detection confidence is selected, and the hand category information corresponding to the hand detection box is used as the holding state of the hand region; Alternatively, If multiple hand detection boxes are detected in the action detection image, the hand category information and detection confidence corresponding to each hand detection box are obtained respectively, and the hand category information with a detection confidence higher than a preset confidence threshold is voted on and the hand category information with the highest number of votes is used as the holding state of the hand region. The target detection model is a target detection network based on YOLO series, Single Shot MultiBox Detector (SSD), or Convolutional Neural Network (Faster R-CNN).

[0112] For example, the method for identifying the overlap between the hand region and a preset region in the motion detection image is as follows: Obtain the geometric parameters of the detection box of the hand region in the motion detection image, including the center point coordinates, width, and height of the detection box; obtain the geometric boundary parameters of the preset region in the motion detection image, where the preset region is a pre-marked polygonal region in the motion detection image, corresponding to the projection range of a refrigerator door frame or drawer opening in the image space, and the vertex coordinates of the polygonal region are pre-stored in a configuration file or cache in the memory; based on the geometric parameters of the detection box and the geometric boundary parameters of the preset region, calculate the overlap determination result between the hand region and the preset region, where the overlap determination result includes overlap and non-overlap.

[0113] Optionally, based on the geometric parameters of the detection box and the geometric boundary parameters of the preset region, the overlap determination result between the hand region and the preset region is calculated. The overlap determination result includes whether the hand region overlaps or does not overlap. The method can be: extract the center point coordinates of the detection box of the hand region, and determine whether the center point coordinates are located inside the preset polygon region by ray casting or cross product algorithm; if yes, the hand region is determined to overlap with the preset region; if no, the hand region is determined to not overlap with the preset region.

[0114] Optionally, based on the geometric parameters of the detection box and the geometric boundary parameters of the preset region, the overlap determination result between the hand region and the preset region is calculated. The overlap determination result includes overlapping and non-overlapping. The method can be as follows: calculate the intersection area between the detection box of the hand region and the preset polygon region, and calculate the area of ​​the detection box. The ratio between the intersection area and the area of ​​the detection box is used as the overlap rate. If the overlap rate is greater than the preset overlap rate threshold, the hand region is determined to overlap with the preset region. If the overlap rate is not greater than the preset overlap rate threshold, the hand region is determined to not overlap with the preset region.

[0115] Optionally, based on the geometric parameters of the detection box and the geometric boundary parameters of the preset region, the overlap determination result between the hand region and the preset region is calculated. The overlap determination result includes overlapping and non-overlapping. The method can be as follows: extract the coordinates of the four vertices of the detection box of the hand region, and determine whether each vertex coordinate is located inside the preset polygon region; count the number of vertices located inside the preset polygon region, and determine that the hand region and the preset region overlap if the number of vertices is greater than the preset vertex number threshold; determine that the hand region and the preset region do not overlap if the number of vertices is not greater than the preset vertex number threshold.

[0116] Optionally, based on the geometric parameters of the detection box and the geometric boundary parameters of the preset region, the overlap determination result between the hand region and the preset region is calculated. The overlap determination result includes overlapping and non-overlapping. The method can be as follows: extract the boundary contour point set of the detection box of the hand region, calculate the shortest distance between each contour point in the boundary contour point set and the boundary of the preset polygon region, count the proportion of contour points whose shortest distance is less than a preset distance threshold, and determine that the hand region and the preset region overlap if the proportion is greater than a preset proportion threshold; determine that the hand region and the preset region do not overlap if the proportion is not greater than the preset proportion threshold.

[0117] S602, when the holding state indicates that an object has been held and the hand area overlaps with a preset area, stores at least one frame of motion detection image captured by the image acquisition device into the memory, until the hand area no longer overlaps with the preset area, and stops storing the motion detection image into the memory.

[0118] In one optional embodiment, when the holding state indicates that an object is being held and the hand area overlaps with a preset area, a screenshot state machine is activated; when the state of the screenshot state machine is adjusted from an idle state to an activated state, at least one frame of motion detection image captured by the image acquisition device is stored in the memory; during the process of storing each motion detection image in the memory, the state of the screenshot state machine is controlled to be adjusted from an activated state to a cached state; when the hand area and the preset area no longer overlap, the state of the screenshot state machine is controlled to be adjusted from a cached state to a stopped state.

[0119] For example, when the holding state indicates that an object is being held and the hand area overlaps with a preset area, the screenshot state machine is activated. The state of the screenshot state machine changes from the idle state (CROP_IDLE) to the activated state (CROP_STARTED), and at least one frame of motion detection image captured by the image acquisition device is stored in the memory. During the process of storing the motion detection image in the memory, the screenshot state machine will change to and remain in the cached state (CROP_ACTIVE) until the hand area no longer overlaps with the preset area. Then, the state transition of the screenshot state machine is triggered, that is, from the cached state to the stopped state (CROP_STOPPED), and the subsequent food recognition process is triggered. Finally, it returns to the idle state.

[0120] The FrameCaptureFSM is a core control component used to monitor the entire process of a user accessing food items. It defines four states: CROP_IDLE (idle), CROP_STARTED (started), CROP_ACTIVE (in cache), and CROP_STOPPED (stopped). State transitions are driven by detecting changes in the overlap between the hand area and a preset area, as well as confirmation of the hand holding an item. When the hand detection frame first enters the preset area, it transitions from idle to started; after confirming the hand is holding an item, it enters the cached state to begin... The dynamic frame buffer continuously stores motion detection images. When the hand leaves the preset area, it switches to a stopped state and sends a motion completion signal to trigger the subsequent recognition process. After completion, it returns to an idle state to wait for the next action. At the same time, the state machine is also equipped with an occlusion tolerance mechanism for the hand's brief disappearance, an invalid action filtering mechanism that directly returns to the idle state when crossing empty-handed, and a timeout protection mechanism that forces a stop after the buffer expires. This accurately defines the start and stop points of the frame buffer, ensuring that the buffered image completely covers the entire process of the hand holding an object crossing the preset area, while effectively filtering invalid interference actions and ensuring the stable operation of the system under complex user behavior.

[0121] It should be noted that in this embodiment, the operation of caching motion detection images will only be triggered when the holding state indicates that an object is being held and the hand area overlaps with the preset area. If the holding state indicates that the hand is empty, or if the hand area does not overlap with the preset area, the operation of caching motion detection images will not be triggered. That is, when the holding state indicates that the hand is empty, it is not necessary to store at least one frame of motion detection image captured by the image acquisition device into the memory.

[0122] For example, when the holding state indicates that an object is being held and the hand area overlaps with a preset area, the screenshot state machine transitions from the CROP_IDLE state to the CROP_STARTED state and then to the CROP_ACTIVE state. In the CROP_ACTIVE state, the controller writes each frame of motion detection image to the memory buffer frame by frame, according to the video stream output frame rate of the image acquisition unit. While the screenshot state machine is in the CROP_ACTIVE state, the controller continuously monitors the real-time overlap determination result between the hand area and the preset area. When the real-time overlap determination result changes from overlap to non-overlap, the screenshot state machine transitions from the CROP_ACTIVE state to the CROP_STOPPED state, and the controller responds. Upon entering the CROP_STOPPED state, the writing of subsequent action detection images to the buffer should be immediately stopped, and all action detection images already stored in the buffer should be locked as valid image sequences, preventing new images from overwriting the stored image data. After the action detection images stored in the buffer are locked, the controller performs a keyframe extraction operation on the valid image sequence. The keyframe extraction operation selects a target number of keyframes from the valid image sequence at preset time intervals for use in subsequent cropping and recognition processes. After the keyframe extraction operation is completed, the screenshot state machine returns from the CROP_STOPPED state to the CROP_IDLE state, and clears or unlocks the buffer to release storage resources, preparing for the next frame buffer operation for accessing actions.

[0123] In one optional embodiment, when the holding state indicates that an object is being held and the hand area overlaps with a preset area, the frame buffer module is activated. The frame buffer module uses the video stream output frame rate of the image acquisition device as a reference and writes the motion detection images acquired by the image acquisition device frame by frame into the buffer area of ​​the memory in a time sequence. The buffer area adopts a circular buffer data structure, and its storage capacity is configured with a preset storage limit. During the operation of the frame buffer module, the real-time overlap determination result between the hand area and the preset area is continuously acquired, and the real-time overlap determination result is used as the stopping condition of the frame buffer module. When the real-time overlap determination result is detected to change from overlap to non-overlap, the operation of the frame buffer module to write subsequent motion detection images into the buffer area is immediately stopped, and the timestamp of the stopping time is recorded. After the writing stops, the controller marks all motion detection images stored in the buffer area as valid image sequences for subsequent food category recognition processing.

[0124] It should be noted that, in this embodiment, the determination that the hand area does not overlap with the preset area can also be made by at least one of the following methods: the detection frame of the hand area disappears for more than K frames (the hand leaves the camera's field of view); the refrigerator door / drawer closing sensor signal (compatible with traditional triggering methods).

[0125] S603 performs a statistical analysis on the food categories identified in the motion detection images stored in the memory, and selects the food category with the highest number of statistical results as the target food for this food storage and retrieval action.

[0126] In some embodiments, for each motion detection image stored in the memory, the food category in the motion detection image is identified; for each food category, the number of motion detection images that identify that food category is determined; and the food category with the largest number of images is selected as the target food for this food access action.

[0127] The refrigerator food identification method provided in the above embodiments can accurately determine the starting point of valid access actions by simultaneously identifying the hand holding the food and the overlap between the hand and the preset area. This eliminates interference from invalid actions such as opening and closing the door with empty hands, ensuring that subsequent processing is triggered only within the optimal image quality window when the food is held across the refrigerator door frame. This significantly filters out irrelevant frames at the source. Based on this precise triggering condition, a frame buffer is started and action detection images are continuously stored until the hand leaves the preset area. This ensures that the image sequence stored in the buffer completely covers the entire process of the food entering the refrigerator from the outside, and avoids the period when the food is obscured after the door is closed. The food category is identified for each action detection image stored in the memory, and the number of occurrences of each category is counted. The category with the highest number of occurrences is selected as the final target food. These images come from multiple moments throughout the entire action process. Local defects such as occlusion, blurring, or uneven lighting that may exist in a single frame image are effectively smoothed by a multi-frame statistical voting mechanism. This makes the final recognition result no longer dependent on the accidental quality of a single frame, but has higher confidence and robustness at the overall statistical level. On this basis, an automatic termination mechanism with timeout is configured to prevent the infinite growth of cache and memory overflow caused by the user's hand lingering in the preset area for a long time due to hesitation or searching. An automatic termination mechanism is configured when the incomplete hand area accumulates to a threshold, effectively identifying and avoiding hand area truncation caused by rapid hand movement beyond the field of vision or body occlusion, and timely terminating the invalid cache of low-quality image segments. While ensuring the safety of storage resources and operational stability, this ensures that the image sequence participating in the recognition has both temporal integrity and single-frame availability.

[0128] Based on the technical solutions of the above embodiments, some optional embodiments are also provided, in which the above embodiments are further refined.

[0129] See Figure 8 The steps to stop caching shown include:

[0130] S801 stops storing the motion detection image to memory when the overlap between the hand region and the preset region detected in the motion detection image reaches the preset time.

[0131] For example, if the screenshot state machine remains in the ACTIVE state (i.e., the hand area overlaps with the preset area for a period of time) for more than a preset time (e.g., 10 seconds) and still does not detect the hand leaving, a STOPPED is forcibly triggered to forcibly stop storing the motion detection image in the memory, thus avoiding the infinite growth of the cache.

[0132] In the above embodiments, by setting a preset threshold for the overlap duration as an additional condition for stopping the frame buffer, the continued storage of the image can be forcibly terminated when the user's hand lingers in the preset crossing area for a long time due to hesitation, searching, or adjusting the posture of the food. This effectively avoids the risk of memory overflow caused by the infinite growth of the number of cached frames due to the excessive duration of a single access action, ensuring the reasonable use of memory resources and the stable operation of the system. This timeout protection mechanism limits the cached image to the effective time period in the early and middle stages of the action, preventing redundant low-quality frames caused by the hand becoming still or the food being repeatedly obscured in the later stages from being mixed into the voting statistics.

[0133] It should be noted that, in this embodiment, during the process of storing motion detection images into the memory, if at least one motion detection image is found to have an incomplete hand region, and the number of motion detection images with incomplete hand regions reaches a preset threshold, the storage of motion detection images into the memory is stopped. For example, if the hand region is incomplete in N consecutive motion detection images, and the number of motion detection images with incomplete hand regions does not reach the preset threshold (e.g., 3 frames), then STOPPED is not triggered prematurely to avoid false triggering due to occlusion; however, if the hand region is incomplete in N consecutive motion detection images, and the number of motion detection images with incomplete hand regions reaches the preset threshold (e.g., 3 frames), then the storage of motion detection images into the memory is stopped.

[0134] In the above embodiments, by detecting the integrity of the hand region in real time during the frame caching process and actively stopping storage when the cumulative number of incomplete hand region images reaches a preset threshold, it is possible to effectively identify and avoid low-quality images continuously entering the cache sequence caused by abnormal situations such as the user's hand moving quickly beyond the camera's field of view or the hand region being partially truncated due to body obstruction. This prevents these invalid frames, which cannot provide complete food feature information, from occupying valuable cache resources and participating in subsequent voting statistics. At the same time, this mechanism uses the cumulative number of incomplete frames rather than the instantaneous state of a single frame as the judgment criterion, which can distinguish between accidental brief hand out-of-frame movement and continuous hand loss. Under the premise of ensuring that caching is not stopped due to occasional shaking, it promptly terminates the invalid acquisition period caused by abnormal user behavior or posture changes, thereby ensuring the integrity and availability of the hand region in each frame of the cached image sequence from the source. This avoids the interference and misleading of low-quality frames on the voting results of multiple frames, and effectively saves storage space and the computing power consumed by subsequent cropping and recognition of invalid frames, further improving the accuracy and operating efficiency of the food recognition process under non-ideal user behavior scenarios.

[0135] It should be noted that in this embodiment, when the number of motion detection images stored in the memory reaches a preset storage limit, the motion detection images stored later in the memory will overwrite the motion detection images stored earlier in the memory. That is, if the number of motion detection images stored in the buffer reaches the preset storage limit, the newly written motion detection images will overwrite the earliest time-series motion detection images in the buffer, so that the buffer always retains the motion detection images within the most recent time window; if the number of motion detection images stored in the buffer does not reach the preset storage limit, new motion detection images will be appended and written in chronological order.

[0136] In the above embodiments, by setting a preset storage limit for the memory and adopting a circular storage strategy of overwriting the oldest image with a new image when the number of cached images reaches the limit, the memory space occupied by the frame cache can be strictly limited within a controllable range. This effectively avoids the risk of memory overflow caused by the infinite growth of the number of cached frames due to the user's access action lasting too long or the hand lingering in the preset area for a long time. This ensures the stability of storage resources and the reliability of the system during long-term operation of the refrigerator controller. At the same time, this overwriting strategy ensures that the memory always retains the most recent frame image that is closest to the completion time of the action. As the hand moves through the preset area, the closer to the completion time of the action, the deeper the hand goes into the compartment, the more stable the food becomes, and the closer it is to the center of the camera's field of view. These recent frames often contain the clearest, most complete, and least obstructed image information of the food. Thus, under limited cache capacity, storage resources are automatically tilted towards high-quality image segments, providing an image data foundation with maximized information gain for subsequent key frame extraction and food category recognition, further improving the overall accuracy and efficiency of the recognition process.

[0137] Based on the technical solutions of the above embodiments, some optional embodiments are also provided. In these optional embodiments, the step of S603 in the above embodiments, which identifies each food category in the action detection image stored in the memory, is refined to take the food category with the largest number of statistics as the target food step of the current food storage and retrieval action.

[0138] See Figure 9 The food identification steps shown include:

[0139] S901 takes each motion detection image stored in the memory, and based on the distance between the hand area of ​​the food-retrieving action in each motion detection image and the compartment, crops the hand area to obtain a hand detection image.

[0140] Among them, the hand detection image is a local image cropped from the original motion detection image, centered on the hand and appropriately expanded to include the food being held.

[0141] In some embodiments, for each motion detection image stored in the memory, the distance between the hand region of the food accessing action in the motion detection image and the compartment is determined; a cropping scale matching the distance is determined; and the hand region is cropped based on the cropping scale to obtain a hand detection image.

[0142] S902 performs a statistical analysis on the food categories identified in each hand detection image and selects the food category with the highest number of statistical results as the target food for this food storage / retrieval action.

[0143] In some embodiments, for each hand detection image, the food category of the hand detection image is identified; for each food category, the number of hand detection images corresponding to the food category is determined; and the food category with the most images is selected as the target food for this food access action.

[0144] In the above embodiments, by performing differentiated cropping of the hand region based on the distance difference between the hand region and the compartment in each action detection image stored in the memory, adaptive adjustments can be made to address the scale changes of food in the image due to different distances from the compartment. Specifically, when the hand is closer to the compartment, the cropping range is appropriately reduced to focus on food details; when the hand is farther from the compartment, the cropping range is correspondingly expanded to compensate for the small proportion of food in the image at a distance. This ensures that the food region in each cropped hand detection image is covered by the optimal scale, effectively eliminating background interference and avoiding food truncation or information loss. For each cropped hand detection image, food category identification is performed and the number of occurrences of each category is counted. The category with the most occurrences is selected as the final target food. Since each cropped image comes from multiple moments when the hand is in different spatial positions during the entire action, the difference in distance between chambers ensures that the image sequence covers the perspective changes of the food from near to far. The multi-frame voting mechanism smooths out and cancels out local misjudgments caused by hand occlusion, scale changes, or motion blur in a single frame at the statistical level. Thus, while ensuring the optimal quality of each input image, the overall accuracy and robustness of food category identification are significantly improved through sequence-level statistical decision-making.

[0145] Based on the technical solutions of the above embodiments, some optional embodiments are also provided. In these optional embodiments, the step of S901 in the above embodiments, which involves cropping the hand area based on the distance between the hand area of ​​the food storage action and the compartment in each action detection image stored in the memory, to obtain the hand detection image, is refined.

[0146] See Figure 10 The steps for determining the hand detection image shown include:

[0147] S1001 selects a motion detection image from at least one frame of motion detection images stored in the memory at preset time intervals, and crops the hand region based on the distance between the hand region of the food-retrieving action in the motion detection image and the compartment to obtain a hand detection image.

[0148] In some embodiments, a motion detection image is selected from at least one frame of motion detection images stored in the memory at preset time intervals; the hand region is cropped according to the distance between the hand region of the food-retrieving action in the motion detection image and the compartment to obtain a hand detection image. For example, a motion detection image is selected from at least one frame of motion detection images stored in the memory according to a preset frame index [0, stride, 2×stride, ..., M-1]. It should be noted that the frame index includes the first frame index 0 and the last frame index M-1.

[0149] It should be noted that the preset time interval in this embodiment can be set based on experience, or based on a large number of experiments, or based on the ratio between the number of motion detection images and the number of preset target keyframes.

[0150] For example, the preset time interval is determined based on the ratio between the number of motion detection images and the number of preset target keyframes, according to the following formula.

[0151]

[0152] Where stride is the preset time interval, M is the upper limit of the cache in the memory, and target_N is the preset number of target keyframes.

[0153] It should be noted that, in addition to selecting motion detection images from at least one frame of motion detection images stored in the memory according to a preset time interval, this embodiment can also calculate the optical flow / frame difference between adjacent frames and select the N frames with the largest amount of motion change (corresponding to the period when the food movement is most significant); or it can first perform lightweight detection on all cached frames and select the N frames with the highest detection confidence to perform full inference. This embodiment does not limit this.

[0154] In the above embodiments, by selecting images from the motion detection images stored in the memory for cropping at preset time intervals, the number of image frames participating in subsequent cropping and recognition can be compressed to a controllable range while ensuring the representativeness of the temporal coverage of the entire action process. This effectively avoids redundant calculations caused by processing all consecutive frames in the cache one by one. The equal-interval frame selection strategy ensures that the selected images are evenly distributed throughout the entire action process of the hand crossing the preset area. This ensures that the image sequence on which cropping and recognition are based can fully reflect the continuous change process of the food moving from the outside of the refrigerator to various spatial positions inside. This avoids the problem of single perspective or information bias caused by selecting images from a certain local time period. In turn, it provides the most reasonable temporal distribution and the most sufficient information gain image foundation for subsequent distance-based adaptive cropping and multi-frame voting statistics, significantly improving the execution efficiency of the overall recognition process and the credibility of the recognition results under limited computing power.

[0155] Based on the technical solutions of the above embodiments, some optional embodiments are also provided. In these optional embodiments, the step of S901 in the above embodiments, which involves cropping the hand area based on the distance between the hand area and the compartment in each action detection image for the action of retrieving food, to obtain the hand detection image, is refined.

[0156] See Figure 11 The steps for determining the hand detection image shown include:

[0157] S1101 If the distance between the hand region for storing food in the motion detection image and the compartment is less than a preset distance threshold, the detection box of the hand region is enlarged by a first factor; if the distance between the hand region for storing food in the motion detection image and the compartment is not less than the preset distance threshold, the detection box of the hand region is enlarged by a second factor.

[0158] Among them, the first multiple (such as 2 times) is less than the second multiple (such as 3 times).

[0159] In some embodiments, if the distance between the hand region of the food-retrieving action in the motion detection image and the compartment is less than a preset distance threshold, the hand frame size is expanded outward by a first multiple (e.g., 2 times) with the center of the detection frame of the hand region as the origin; if the distance between the hand region of the food-retrieving action in the motion detection image and the compartment is not less than the preset distance threshold, the hand frame size is expanded outward by a second multiple (e.g., 3 times) with the center of the detection frame of the hand region as the origin.

[0160] It should be noted that since the size and shape of the ingredients are not uniform, and some ingredients are relatively long, this embodiment can also apply an upward offset correction of the hand frame height by a preset multiple (such as 0.3 times) in the y-axis direction of the motion detection image to correct the deviation of the ingredients being above the hand frame when holding the ingredients.

[0161] It should be noted that, in this embodiment, in addition to expanding outward from the center of the detection box of the hand area as the origin, it is also possible to expand outward from the center of the food detection box as the reference when there are already coarse-grained food detection results in the caching stage; it is also possible to perform full-image cropping according to a fixed ratio in scenarios where the camera view is fixed and the position of the food is relatively fixed; it is also possible to perform inference on the whole frame without cropping in server-side scenarios with sufficient inference computing power.

[0162] S1102 crops the hand region according to the detection bounding box of the hand region to obtain the hand detection image.

[0163] In some embodiments, the geometric parameters of the detection box of the hand region in the action detection image are obtained. The geometric parameters include the coordinates of the top left corner vertex, the coordinates of the bottom right corner vertex, the coordinates of the center point, the width, and the height of the detection box. Using the center point of the detection box of the hand region as the reference point for expanding the box, the boundary coordinates of the cropping box are calculated according to the expansion factor k. The boundary coordinates of the cropping box are subjected to boundary constraint processing to correct the coordinate values ​​that exceed the boundary of the action detection image to the range of the image boundary, ensuring that the cropping box does not exceed the boundary range of the action detection image. According to the cropping box coordinates after boundary constraint processing, the corresponding pixel region is extracted from the action detection image, and the resulting image after cropping is the hand detection image.

[0164] In the above embodiments, by using the distance between the hand area and the compartment as the criterion, a smaller first-fold expansion of the detection box is used when the distance is less than a preset threshold, and a larger second-fold expansion of the detection box is used when the distance is not less than the preset threshold. This allows for precise compensation for scale differences caused by the different spatial positions of the food in the image. That is, when the hand is close to the compartment, the food occupies a large area in the image, and a smaller expansion of the box is sufficient to completely enclose the food and effectively reduce the introduction of background noise; when the hand is far from the compartment, the food's proportion in the image is significantly reduced, and a larger expansion of the box ensures that even at a distance, the fine edges and features of the food are clearly visible. The feature region is still fully included in the cropping range, avoiding food truncation or information loss due to insufficient frame expansion. The hand region is cropped according to the detection box after distance adaptive adjustment, so that the food region in each frame of the obtained hand detection image is completely covered with the scale most suitable for the spatial position of the frame. This unifies the relative size of food in the input image at different distances, reduces the sensitivity of the subsequent recognition model to scale changes, and effectively removes irrelevant background interference. Thus, while ensuring the integrity and purity of the cropped image information in each frame, it significantly improves the consistency of feature extraction and the accuracy of the final food classification in the subsequent multi-frame statistical recognition process.

[0165] Based on the technical solutions of the above embodiments, some optional embodiments are also provided. In these optional embodiments, the step of S603 in the above embodiments, which counts the food categories identified in each hand detection image and uses the food category with the largest number of counts as the target food category for this food storage and retrieval action, is further refined.

[0166] See Figure 12 The food identification steps shown include:

[0167] S1201 For each hand detection image, identify at least one food category from the hand detection image, and the confidence level of the corresponding food category.

[0168] In one alternative embodiment, for each hand detection image, at least one food category is identified from the hand detection image based on a food identification algorithm, and the confidence level of the corresponding food category is determined.

[0169] In one optional embodiment, the hand detection images are assembled into a batch, and a single inference interface call (e.g., `detect_v8_batch(batch_frames)`) returns a list of detection results for all N frames. Compared to frame-by-frame inference (i.e., N calls to the inference interface), batch inference requires only one session call, fully utilizing the parallel computing capabilities of the Graphics Processing Unit (GPU) or Neural-network Processing Unit (NPU) to significantly reduce inference latency. The batch inference interface can be flexibly adapted to various backends based on the computing power configuration of the deployment platform: it adapts to ONNX Runtime + CUDA on NVIDIA GPU platforms, RKNN NPU on embedded NPU platforms such as Rockchip RV1126, TensorRT on NVIDIA GPU scenarios requiring high-performance inference optimization, and falls back to Central Processing Unit (CPU) inference in scenarios without GPU devices, thus accommodating different needs of lightweight edge deployment and high-performance cloud computing.

[0170] S1202 For each food category, the number of hand detection images with a confidence level higher than a preset confidence threshold for that food category is used as the statistical count for that food category.

[0171] In one optional embodiment, a list of detection results output by the food identification model after inference of all N frames of hand detection images is obtained. The detection result of each frame of hand detection image in the detection result list includes at least one food category identified in the frame image and a confidence value corresponding to each food category. The confidence value represents the reliability estimate of the food identification model for the detection result, and the value ranges from 0 to 1. The detection results of each frame of hand detection image in the detection result list are traversed. For each food category identified in the current frame detection result, the confidence value corresponding to the food category is obtained, and the confidence value is compared with a preset confidence threshold. The preset confidence threshold is a pre-set hyperparameter with a value range of 0.3 to 0.7, preferably 0.5, and is stored in a configuration file in the memory. If the confidence value is greater than the preset confidence threshold, the frame is determined to be a valid voting frame for that food category, and the confidence value is accumulated. The effective vote count for each food category is calculated. If the confidence value is not greater than a preset confidence threshold, the vote count for that food category in that frame is skipped and not included in the statistical count for that food category. For each food category, after traversing the detection results of all N frames of hand detection images, the sum of the accumulated effective vote counts is taken as the statistical count for that food category. The statistical count is the sum of the number of frames that make a high-confidence recognition result for that food category in all frames. Among them, if multiple food categories are identified in the detection results of the same frame of hand detection image and the confidence value corresponding to each food category is higher than the preset confidence threshold, that frame contributes one effective vote count to each of the multiple food categories. If no food category is identified in the detection results of a certain frame of hand detection image, or if the confidence value corresponding to all identified food categories is not higher than the preset confidence threshold, then that frame does not contribute a valid vote count to any food category.

[0172] In one optional embodiment, batch inference is used on N frames of hand detection images to obtain N frames of detection results at once. The detection results of each frame are returned in the form of a tensor with dimensions [N, M, X], where N is the number of frames, M is the maximum number of detected targets per frame, and X is the detection result vector (including target category identifier, confidence value, and detection box coordinates, etc.). The food category identifier and corresponding confidence value of each detected target in each frame are extracted from the batch inference result tensor to construct a confidence mask matrix. Each element in the confidence mask matrix indicates whether the confidence value of the corresponding detected target in the corresponding frame is higher than a preset confidence threshold. Based on the confidence mask matrix, detection results higher than the threshold are filtered out. Using the food category identifier as the grouping key, the effective number of times each food category identifier appears in all frames is counted, and the statistical results are used as the statistical quantity of each food category.

[0173] S1203 selects the food category with the highest statistical quantity as the target food for this food storage / retrieval operation.

[0174] In an optional embodiment, this embodiment can also obtain the confidence value corresponding to each food category in each frame of hand detection image. If the confidence value is higher than the preset confidence threshold, the confidence value is used as the voting weight of the food category in that frame. For each food category, the confidence values ​​corresponding to the food category in all N frames are summed and the sum is used as the weighted statistical score of the food category. The food category with the highest weighted statistical score is selected as the target food for this food access action.

[0175] In an optional embodiment, this embodiment can also obtain the storage time sequence position of each frame of hand detection image in the memory. The storage time sequence position is represented by the index number or timestamp of the frame in the frame buffer. The time sequence weight coefficient of each frame is determined based on the storage time sequence position. The time sequence weight coefficient increases monotonically as time approaches the time of action completion, so that frames that are closer to the time of stopping storage (i.e., the time when the hand leaves the preset area and the action is completed) are given higher voting weight. That is, the closer to the time of action completion, the deeper the hand goes into the room, the more stable the food is held, the less shaking, the less occlusion, and the higher the image quality. Therefore, it should be given a higher decision contribution. For each food category, the confidence value corresponding to the food category in each frame that is higher than the confidence threshold is multiplied by the time sequence weight coefficient of the frame and then accumulated. The accumulated sum is used as the time sequence weighted statistical score of the food category. The food category with the highest time sequence weighted statistical score is selected as the target food for this food retrieval action.

[0176] In one optional embodiment, this embodiment can also obtain the confidence value corresponding to each food category in each frame of hand detection image. If the confidence value is higher than a preset confidence threshold, the food category of that frame is determined as a valid detection result and included in the voting statistics. If the confidence value is not higher than the preset confidence threshold, the detection result of that food category of that frame is directly discarded and not included in any voting statistics. That is, equal-weighted voting is performed only on the basis of confidence threshold filtering, so that each vote participating in the final decision meets the minimum quality requirements, filtering out unreliable detection results with low confidence from the source and avoiding noise frames from interfering with the final output.

[0177] In the above embodiments, by identifying the food category and its corresponding confidence level for each frame of hand detection image, and only including results with a confidence level higher than a preset threshold in the statistical quantity of that category, a quality screening check can be placed before the voting statistics stage. This effectively eliminates false detection results with low confidence caused by occlusion, blurring, or poor lighting, and avoids unreliable identification conclusions introducing noise or interference into the voting process, thereby ensuring that each vote participating in the final decision has a high degree of credibility. For each food category, the number of frames that pass the confidence threshold screening is accumulated as the statistical quantity, and the category with the highest quantity is taken as the target food for this access action. Combining the quantitative statistics of multi-frame identification results with quality screening, the final output no longer depends on a single frame image or a single inference result, but forms a statistically optimal decision under the joint support of multiple effective and reliable detection conclusions. The quantitative advantage smooths out the random deviation in individual frames, and the confidence threshold ensures the effectiveness of the contribution of each frame. Thus, under the dual protection, the final accuracy of food category identification and the overall reliability of the system are significantly improved.

[0178] Based on the technical solutions of the above embodiments, some optional embodiments are also provided, in which the control process of the refrigerator is described in detail.

[0179] See Figure 13 The refrigerator food identification method shown includes:

[0180] The S1301 identifies the holding state of the hand area in the motion detection image acquired by the image acquisition device; and identifies the overlap between the hand area and a preset area in the motion detection image.

[0181] S1302 When the object holding state indicates that an object has been held and the hand area overlaps with the preset area, at least one frame of motion detection image captured by the image acquisition device is stored in the memory until the hand area no longer overlaps with the preset area, and the storage of motion detection image in the memory is stopped.

[0182] S1303 selects the target detection image from at least one frame of motion detection image stored in the memory.

[0183] S1304 If the distance between the hand region of the food-retrieving action in the target detection image and the compartment is less than a preset distance threshold, the detection box of the hand region is expanded by a first factor; if the distance between the hand region of the food-retrieving action in the target detection image and the compartment is not less than the preset distance threshold, the detection box of the hand region is expanded by a second factor.

[0184] S1305 crops the hand region according to the detection bounding box of the hand region to obtain the hand detection image.

[0185] S1306 For each hand detection image, identify at least one food category from the hand detection image, and the confidence level of the corresponding food category.

[0186] S1307 uses the number of hand detection images with a confidence level higher than a preset confidence threshold for each food category as the statistical count for that food category.

[0187] S1308 selects the food category with the highest statistical quantity as the target food for this food storage / retrieval operation.

[0188] For example, this embodiment uses the scenario of a user opening a refrigerator's crisper compartment, holding a carton of milk, moving it from outside the refrigerator across the door frame to the crisper shelf, and then closing the refrigerator as the distance measurement. The system parameters are configured as follows: target_N = 8 (number of target keyframes); frame buffer limit = 8 × 3 + 1 = 25 frames; inference confidence threshold = 0.5; hand state voting backtracking frames = 3 frames; ROI near-end expansion factor = 2.0, far-end expansion factor = 3.0, y-axis offset = 0.3.

[0189] The camera video stream is captured at 30fps, and each frame is input to the target detection module. When the center point of the detected hand enters the preset trapezoidal region (the cross product algorithm determines that the point is inside the polygon, and the state changes from 0 to 1), the screenshot state machine transitions from CROP_IDLE to CROP_STARTED, recording the current frame as the entry frame. In the CROP_STARTED state, the hand classType (empty hand = 0 / holding object = 1) of the most recent 3 frames is voted on: if at least 2 of the 3 frames show holding an object, it is confirmed as a holding hand, the state machine transitions to CROP_ACTIVE, and the FrameBuffer begins buffering frames. If the voting result of the 3 frames is empty hand, the state machine returns to CROP_IDLE, and this action does not trigger food recognition (opening and closing the refrigerator with an empty hand does not trigger it).

[0190] During the CROP_ACTIVE state machine, each video frame is buffered by the FrameBuffer. Taking this embodiment as an example: the process of the user moving milk from the outside into the refrigerator lasts about 1.5 seconds (45 frames @ 30fps); the buffer limit is 25 frames, if 45 frames > 25 frames, the excess will trigger a loop to overwrite; the buffer will eventually retain the most recent 25 frames (corresponding to the time when the hand is about to complete the action).

[0191] When the center point of the hand detection box is detected to be outside the preset area (the cross product algorithm changes the state from 1 to 0), the state machine transitions from CROP_ACTIVE to CROP_STOPPED, issues an action completion signal, and stops buffering. FrameExtractor selects 8 frames at equal intervals from the 25-frame buffer: stride = 25 / (8 - 1) ≈ 3.57 → rounded to 3. Frame indices: 0, 3, 6, 9, 12, 15, 18, 24 (including the last frame); using the center of the hand detection box (cx, cy) as the reference, the hand box size is (w, h): assuming the hand is located in the middle of the image (not at the extreme near or far end), a 2x expansion is used: ROI cropping range: [cx -w, cy - h × 1.3, cx + w, cy + h × 0.7] (corrected by an upward offset of 0.3h on the y-axis); all 8 frames are cropped according to this rule, resulting in 8 ROI images.

[0192] Assemble the 8 ROI images into a batch, call `detect_v8_batch(batch_of_8)`, execute `session.Run()` once, and return the detection results for 8 frames:

[0193] Frame 0: [Milk, confidence=0.82]

[0194] Frame 1: [Milk, confidence=0.79]

[0195] Frame 2: [Milk, confidence=0.85]

[0196] Frame 3: [Milk, confidence=0.31] ← This frame has severe occlusion, below the threshold of 0.5, skip.

[0197] Frame 4: [Milk, confidence=0.88]

[0198] Frame 5: [Milk, confidence=0.91]

[0199] Frame 6: [Milk, confidence=0.76]

[0200] Frame 7: [Milk, confidence=0.83]

[0201] Obviously, `vote_map = {"milk": 7}` / / Frame 3 is below the confidence threshold and is not included; `final_classId = "milk"` (highest vote 7 votes), and the final output is structured JSON:

[0202] {

[0203] "action": "deposit",

[0204] "location": "Middle shelf",

[0205] "food_class": "milk",

[0206] "confidence": 0.83,

[0207] "trigger": "CROP_STOPPED",

[0208] "keyframes_used": 8,

[0209] "vote_result": {"milk": 7}

[0210] }

[0211] The state machine returns to CROP_IDLE and waits for the next operation.

[0212] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0213] Based on the same inventive concept, this application also provides a refrigerator food identification device for implementing the refrigerator food identification method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more refrigerator food identification device embodiments provided below can be found in the limitations of the refrigerator food identification method described above, and will not be repeated here.

[0214] In one exemplary embodiment, such as Figure 14 As shown, a refrigerator food identification device is provided, including: an identification module 1401, a storage module 1402, and a statistics module 1403. Among them,

[0215] The recognition module 1401 is used to recognize the holding state of the hand area in the motion detection image acquired by the image acquisition device; and to recognize the overlap between the hand area and the preset area in the motion detection image; the preset area is used to characterize the image space range traversed by the hand when it moves from the outer area to the inner area of ​​the refrigerator during the food storage and retrieval action.

[0216] The storage module 1402 is used to store at least one frame of motion detection image captured by the image acquisition device into the memory when the holding state indicates that an object has been held and the hand area overlaps with the preset area, until the hand area no longer overlaps with the preset area, and then stop storing the motion detection image into the memory.

[0217] The statistics module 1403 is used to count the food categories identified in the motion detection images stored in the memory, and to select the food category with the highest number of counts as the target food for the current food storage and retrieval action.

[0218] In some embodiments, the refrigerator food recognition device includes a stop module, configured to stop storing the motion detection image to a memory when the overlap between the hand area and the preset area detected from the motion detection image reaches a preset time.

[0219] In some embodiments, the stop module is further configured to, during the process of storing motion detection images into the memory, if at least one motion detection image is found to have an incomplete hand region, and the number of motion detection images with incomplete hand regions reaches a preset threshold, stop storing motion detection images into the memory.

[0220] In some embodiments, the stop module is further configured to, when the holding state represents the empty-handed state, not to store at least one frame of motion detection image captured by the image acquisition device into the memory.

[0221] In some embodiments, the stopping module is further configured to overwrite previously stored motion detection images in the memory with motion detection images that are subsequently stored in the memory when the number of motion detection images stored in the memory reaches a preset storage limit.

[0222] In some embodiments, the refrigerator food identification device includes: a covering module, configured to crop the hand area based on the distance between the hand area and the compartment in each action detection image stored in the memory to obtain a hand detection image; and to count the food categories identified in each hand detection image, and select the food category with the most counts as the target food for the current food retrieval action.

[0223] In some embodiments, the statistics module 1403 is further configured to crop the hand region based on the distance between the hand region of the food-retrieving action in the action detection image selected from at least one frame of action detection images stored in the memory at preset time intervals, and obtain a hand detection image.

[0224] In some embodiments, the statistics module 1403 is further configured to: expand the detection box of the hand region based on a first factor when the distance between the hand region storing the food action and the compartment in the motion detection image is less than a preset distance threshold; expand the detection box of the hand region based on a second factor when the distance between the hand region storing the food action and the compartment in the motion detection image is not less than the preset distance threshold; the first factor is less than the second factor; and crop the hand region according to the detection box of the hand region to obtain a hand detection image.

[0225] In some embodiments, the refrigerator food identification device includes: a preset module for determining a preset time interval based on the ratio between the number of motion detection images and the number of preset target keyframes.

[0226] In some embodiments, the statistics module 1403 is further configured to, for each hand detection image, identify at least one food category from the hand detection image, and the confidence level of the corresponding food category; for each food category, use the number of hand detection images whose confidence level of the food category is higher than a preset confidence threshold as the statistical quantity of the food category; and select the food category with the highest statistical quantity as the target food for this food access action.

[0227] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 15As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When executed by the processor, the computer program implements a method for identifying food items in a vacuum drawer. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0228] Those skilled in the art will understand that Figure 15 The structures shown are merely block diagrams of some structures related to the embodiments of this application and do not constitute a limitation on the computer devices on which the embodiments of this application are applied. Specific computer devices may include more or fewer components than those shown in the figures, or combine certain components, or have different component arrangements.

[0229] In one alternative embodiment, Figure 15 The computer device shown may be the aforementioned refrigerator. In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0230] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.

[0231] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0232] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with relevant regulations.

[0233] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0234] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0235] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A refrigerator, characterized in that, include: The enclosure has at least one compartment. At least one image acquisition device is configured to acquire motion detection images of food storage and retrieval actions; the field of view of the image acquisition device includes the external area of ​​the refrigerator and the internal area of ​​the compartment; Memory for caching at least one frame of motion detection image; At least one controller, connected to each of the image acquisition units and the memory, is configured to: The image acquisition device identifies the holding state of the hand region in the motion detection image it captures; and, Identify the overlap between the hand region and a preset region in the motion detection image; the preset region represents the image space range traversed by the hand as it moves from the outer region to the inner region during the food storage and retrieval action; When the holding state indicates that an object has been held, and the hand area overlaps with the preset area, at least one frame of motion detection image captured by the image acquisition device is stored in the memory until the hand area no longer overlaps with the preset area, at which point the storage of the motion detection image in the memory is stopped. The food categories identified in the motion detection images stored in the memory are statistically analyzed, and the food category with the highest number of statistical results is taken as the target food for the current food storage and retrieval action. The controller is further configured to: stop storing the motion detection image to the memory when the overlap between the hand region and the preset region detected in the motion detection image reaches a preset duration; stop storing the motion detection image to the memory when, during the process of storing the motion detection image to the memory, at least one motion detection image is found to have an incomplete hand region, and the number of motion detection images with incomplete hand regions reaches a preset number threshold; and when the holding state represents an empty-hand state, it is not necessary to store at least one frame of motion detection image acquired by the image acquisition device to the memory.

2. The refrigerator according to claim 1, characterized in that, When the controller stores at least one frame of motion detection image captured by the image acquisition device into the memory in the case where the holding state indicates that an object is being held and the hand area overlaps with the preset area, the controller is configured to: When the holding state indicates that an object is being held, and the hand area overlaps with the preset area, the screenshot state machine is activated; When the state of the screenshot state machine is adjusted from idle state to activated state, at least one frame of motion detection image captured by the image acquisition device is stored in the memory.

3. The refrigerator according to claim 2, characterized in that, The controller is also configured to: During the process of storing each of the action detection images into the memory, the state of the screenshot state machine is adjusted from the started state to the cached state; When the hand area no longer overlaps with the preset area, the state of the screenshot state machine is adjusted from the cached state to the stopped state.

4. The refrigerator according to claim 1, characterized in that, The controller is also configured to: If the number of motion detection images stored in the memory reaches a preset storage limit, the motion detection images stored later in the memory will overwrite the motion detection images stored earlier in the memory.

5. The refrigerator according to claim 1, characterized in that, When the controller performs a statistical analysis of the food categories identified in the motion detection images stored in the memory, and selects the food category with the highest number of identified categories as the target food for the current food retrieval action, it is configured as follows: For each motion detection image stored in the memory, the hand region is cropped according to the distance between the hand region of the food-retrieving action in each motion detection image and the compartment to obtain a hand detection image; The categories of food identified in each hand detection image are statistically analyzed, and the category with the highest number of statistical results is selected as the target food for this food retrieval action.

6. The refrigerator according to claim 5, characterized in that, When the controller executes the operation of each motion detection image stored in the memory, and crops the hand region based on the distance between the hand region of the food-retrieving action in each motion detection image and the compartment to obtain a hand detection image, it is configured as follows: Based on the motion detection image selected from at least one frame of motion detection images stored in the memory at preset time intervals, the hand region is cropped according to the distance between the hand region of the food-retrieving action in the motion detection image and the compartment to obtain the hand detection image.

7. The refrigerator according to any one of claims 5-6, characterized in that, The controller performs a cropping operation on the hand region in the motion detection image based on the distance between the hand region performing the food access action and the compartment, resulting in a hand detection image, which is configured as follows: If the distance between the hand region storing the food-retrieving action in the motion detection image and the compartment is less than a preset distance threshold, the detection box of the hand region is expanded by a first factor. If the distance between the hand region storing the food-retrieving action in the motion detection image and the compartment is not less than a preset distance threshold, the detection box of the hand region is expanded by a second factor. The first multiple is less than the second multiple; The hand region is cropped according to the detection bounding box to obtain a hand detection image.

8. The refrigerator according to claim 6, characterized in that, When the controller performs the process of determining the preset time interval, it is configured to: A preset time interval is determined based on the ratio between the number of motion-detected images and the number of preset target keyframes.

9. The refrigerator according to claim 5, characterized in that, When the controller performs a statistical analysis of each food category identified in each hand detection image, and selects the food category with the highest statistical count as the target food for the current food retrieval action, it is configured as follows: For each hand detection image, at least one food category is identified from the hand detection image, and the confidence level of the corresponding food category is determined. For each food category, the number of hand detection images with a confidence level higher than a preset confidence threshold for that food category is taken as the statistical count for that food category. Select the food category with the highest statistical quantity as the target food for this food storage / retrieval operation.

10. A method for identifying food items in a refrigerator, characterized in that, The method includes: The image recognition device identifies the holding state of the hand region in the motion detection image captured by the image acquisition device; and, Identify the overlap between the hand region and a preset region in the motion detection image; the preset region is used to characterize the image space range traversed by the hand when moving from the outer area to the inner area of ​​the refrigerator during the food storage and retrieval action; When the holding state indicates that an object has been held, and the hand area overlaps with the preset area, at least one frame of motion detection image captured by the image acquisition device is stored in the memory until the hand area no longer overlaps with the preset area, at which point the storage of the motion detection image in the memory is stopped. The food categories identified in the motion detection images stored in the memory are statistically analyzed, and the food category with the highest number of statistical results is taken as the target food for the current food storage and retrieval action. The method further includes: stopping the storage of motion detection images to memory when the overlap between the hand region and the preset region in the motion detection image reaches a preset duration; stopping the storage of motion detection images to memory when, during the process of storing motion detection images to memory, at least one motion detection image is found to have an incomplete hand region, and the number of motion detection images with incomplete hand regions reaches a preset threshold; and stopping the storage of motion detection images to memory when the holding state represents an empty-handed state, it is not necessary to store at least one frame of motion detection image acquired by the image acquisition device to memory.

Citation Information

Patent Citations

  • Food material management method and device and food material storage equipment

    CN112484387A

  • Refrigerator and food material occupation amount determining method thereof

    CN121953575A