Meal taking recommendation method and system based on emotion monitoring

By monitoring user emotions and historical meal records in real time, we build an emotion-diet preference model and use the Bi-LSTM algorithm to generate personalized recommended recipes, which solves the problem of existing systems ignoring emotional factors and improves recommendation accuracy and user satisfaction. Promotes healthy eating habits.

CN118780902AInactive Publication Date: 2024-10-15ZHEJIANG UNIV OF TECH

Patent Information

Application Number
CN202411268575.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing dining recommendation systems ignore the significant impact of emotions on dietary choices, resulting in reduced accuracy of recommendation results and reduced user satisfaction.

Method used

Through visual data collection and analysis, the user's emotional state is monitored in real time, and combined with historical meal records, an emotion-diet preference model is constructed, and the Bi-LSTM algorithm is used to generate personalized recommended recipes to improve the accuracy of recommendation results and user satisfaction.

Benefits of technology

It improves the accuracy of recommendation results and user satisfaction, helping users maintain healthy eating habits while managing their emotions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780902A_ABST
    Figure CN118780902A_ABST
Patent Text Reader

Abstract

A food taking recommendation method based on emotion monitoring belongs to the technical field of computer vision and food taking recommendation, and comprises the following steps: starting an intelligent weighing and food selling device, and placing food to be sold on an electronic weighing device; when the electronic weighing device detects that the weight of the food is reduced, the user may take the food; if the dinner plate is sensed, the recognizer scans a two-dimensional code or an information magnetic stripe on the dinner plate so as to judge whether the dinner plate is bound with a user account or not; if the dinner plate is bound, a personalized recommendation algorithm Bi-LSTM is called to recommend dishes to the user, and a recommendation result is displayed on a display; if the dinner plate is not bound or is not recorded by the user, an alarm is started to give an alarm; and deducting the meal taking cost from the account of the user who takes the meal successfully. The invention further provides a food taking recommendation system based on emotion monitoring. According to the method, the accuracy of the recommendation result and the user satisfaction are improved, and the user can be helped to keep a healthy dietary habit while managing the emotion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer vision and meal recommendation, and relates to an intelligent recommendation method and system for recommending dishes based on emotion records and meal collection records. Background Art

[0002] In recent years, with the development and popularization of computer technology, intelligent recommendation systems have been widely used in various fields, especially in the catering industry. The use of intelligent recommendation systems to recommend dishes to users has received more and more attention.

[0003] Current restaurant recommendation systems mainly generate recommended dishes based on users' historical dietary preferences and consumption records. However, such systems often ignore the significant impact of emotions on dietary choices. A large number of studies have shown that a person's emotional state directly affects their dietary behavior. For example, when people are stressed, depressed, or anxious, they are more likely to choose high-sugar and high-fat foods, while when they are in a good mood, they are more likely to choose healthy foods. If this emotional impact on dietary choices is not taken into account in the recommendation system, it will often lead to reduced accuracy of recommendation results and reduced user satisfaction.

[0004] For example, the Chinese invention patent application with publication number CN 112598435A discloses a restaurant recommendation method and device, storage medium, and electronic device. The method includes: when it is determined based on the current voice that the target user has a need to dine out, determining a target restaurant that matches the habits of the target user based on the knowledge graph of the target user; and recommending the target restaurant to the target user. This method requires distinguishing users by their voices. This application distinguishes users by cameras, which solves the limitations of voice recognition. Voice recognition may be affected by background noise, accents, speech speed, etc. Recognizing users by cameras can reduce the impact of these factors on user recognition accuracy.

[0005] Another example is the Chinese invention patent application with publication number CN113554456A, which discloses a catering analysis method and system based on weighing and visual recognition, which includes: photographing the user's facial image and retrieving the user information corresponding to the facial image; obtaining the user's dining data and payment data based on the user information; weighing and pricing the dishes picked up by the user and updating the user's payment data; photographing and analyzing the user's meal leftover images and updating the user's dining data; analyzing the payment data and dining data to generate a catering adjustment plan corresponding to the user. Although this method analyzes and considers the user's dining situation and data, it does not combine the user's emotions, which can affect the user's eating behavior. The present invention monitors the user's emotions in real time, analyzes the emotions and meal data simultaneously, and provides a dish recommendation result that is relatively more in line with the user's needs.

[0006] Current restaurant recommendation systems mainly generate recommended dishes based on users' historical dietary preferences and consumption records. However, such systems often ignore the significant impact of emotions on dietary choices. A large number of studies have shown that a person's emotional state directly affects their dietary behavior. For example, when people are stressed, depressed, or anxious, they are more likely to choose high-sugar and high-fat foods, while when they are in a good mood, they are more likely to choose healthy foods. If this emotional impact on dietary choices is not taken into account in the recommendation system, it will often lead to reduced accuracy of recommendation results and reduced user satisfaction. Summary of the invention

[0007] In order to overcome the shortcomings of the existing technology, the present invention provides a meal recommendation method and system based on emotion monitoring. Through the collection and analysis of visual data (i.e., facial expressions), the visual data collection requires the user's consent, the user's emotional state is monitored in real time, and these emotional data are combined with historical meal collection records to construct an emotion-diet preference model. The model can more accurately predict the user's dietary needs under different emotional states, thereby generating personalized recommended menus, which not only improves the accuracy of the recommendation results and user satisfaction, but also helps users maintain healthy eating habits while managing their emotions.

[0008] To achieve the above technical objectives, the present invention adopts a meal recommendation method based on emotion monitoring, comprising the following steps: Step 1) Start the intelligent weighing and selling vegetable device, and place the pre-sold edible vegetables on the electronic weighing device; the electronic weighing device automatically weighs and transmits the data to the control center. If the weighing device detects a weight change, it proceeds to step 2); Step 2) When the electronic weighing device detects that the weight of the edible dishes has decreased, it indicates that the user may be taking dishes; at this time, the weighing device sends this information to the control center, and the control center first checks whether the identifier senses the plate. If the plate is sensed, the identifier will scan the QR code or information magnetic strip on the plate to determine whether the plate has been bound to the user account. If the user has bound the plate, proceed to step 3); if the plate is not bound or there is no user record, proceed to step 4); Step 3) The user's historical meal pick-up records and corresponding historical emotional states will be retrieved. Based on this information, the personalized recommendation algorithm Bi-LSTM (Bi-directional Long Short-Term Memory) will be called to recommend dishes to the user, and the recommendation results will be displayed on the display. If the system does not query the user's historical records, the personalized recommendation algorithm Bi-LSTM will be called to recommend dishes based on the user's current emotional state. Step 4) If the identifier does not sense the dish or determines that the dish is not bound to the user, the alarm will be activated to prevent unauthorized food removal; Step 5) Each control center transmits the information to the general server, which aggregates the information of each control center and then deducts the meal fee from the user account that has successfully picked up the meal. After the deduction is successful, the alarm will sound.

[0009] Further, the process of step 1) is: 1.1) The process of starting the intelligent weighing and vending device begins with turning on the system power supply and activating all components, including the control center, electronic scale, alarm, display and identifier (camera). Before operation, ensure that the plate is placed in the set position so that the QR code and information magnetic strip on it can be accurately read by the identifier; 1.2) Afterwards, the electronic scale is cleaned and calibrated to ensure the accuracy of weighing. The pre-sold edible vegetables are placed on the weighing platform of the electronic scale. The vegetables are required to be placed neatly to avoid overflow or stacking, so as to ensure the accurate transmission of weighing data to the control center. 1.3) After the electronic scale automatically completes weighing, the weight data will be displayed on the monitor in real time and transmitted to the control center synchronously to provide initial data for transaction processing; at this time, the system enters the weight monitoring mode, and the electronic scale continuously monitors any changes in the weight of the dish. At the same time, the recognizer (camera) starts working and calls the face detection model MTCNN (Multitask Cascaded Convolutional Networks) to detect faces in real time.

[0010] Furthermore, the process of step 2) is as follows: 2.l) The electronic weighing device first detects the decrease in the weight of the edible dish, and this change is immediately recognized as a signal of the user's behavior of taking the dish; the weighing device then transmits the specific information of the weight change to the control center, including the weight reduction and the timestamp; 2.2) After receiving the signal, the control center immediately activates the identifier to detect the plate to confirm whether there is a plate placed on the scale; when a plate is detected, the system will automatically trigger the identifier to scan the QR code or information magnetic strip on the plate. These codes or magnetic strips can read the user's account information. If the plate has been bound, the system is ready to enter step 3); 2.3) If the identifier fails to sense the plate, or the control center detects that the plate is not bound to any user account, the system will proceed to step 4) according to the preset security protocol.

[0011] Furthermore, in step 3), for the identified user, a deep learning network is called to perform identification analysis. The workflow of the deep learning network is as follows: 3.1) Use the face detection model MTCNN to identify faces and perform face alignment after faces are detected; 3.2) Use the feature extraction module to extract features from the face. The obtained feature map is input into the pre-trained Resnet network to classify the emotion of the current face. There are 7 classification labels, namely happy, angry, surprised, fearful, disgusted, sad and neutral. The obtained emotion results and the dish taken by the current user are saved in the database; 3.3) According to the user information bound to the plate, retrieve the user's historical emotions and meal pick-up records in the database. If the data is found, the historical emotions and meal pick-up records are input into the personalized recommendation algorithm Bi-LSTM together. If no data is found, it means that the user is picking up food for the first time, and no recommendation is made. Only the meal pick-up record and emotion record are recorded for the next time the user comes to pick up food for recommendation.

[0012] Preferably, in the module structure and training process of the deep learning network, the feature extraction module adopts CBAM (Convolutional Block Attention Module), which is composed of a channel attention module and a spatial attention module. The channel attention module processes the input features through global maximum pooling and global average pooling to generate two feature vectors; these two vectors are added after being processed by a shared fully connected layer, and then the channel attention weight is generated through the Sigmoid activation function; the spatial attention module performs the maximum and average pooling operations on the input features in the channel dimension, then concatenates the results and compresses the channels through convolution, and finally obtains the spatial attention weight through the Sigmoid function. Given an input feature map , the formula of channel attention weight is as follows, (1); In the formula, Represents the input feature map Perform global average pooling, and represents the fully connected layer, represents the activation function, which is ReLU, represents the sigmoid function, which is used to normalize the score to the range of [0, 1]; The formula for spatial attention weight is as follows, (2); In the formula, , , represents the convolution operation, represents the activation function, Represents the sigmoid function; The overall formula of the CBAM module is expressed as: (3).

[0013] More preferably, in the module structure and training process of the deep learning network, the ResNet network is optimized, and a CBAM component is introduced after the feature map is processed by two convolutional layers and batch normalization. The CBAM module uses a channel attention mechanism and a spatial attention mechanism to optimize the weight distribution of the feature map, thereby enhancing the feature representation capability; the features adjusted by CBAM are then merged with the features of the original residual connection; in the entire ResNet network, all standard residual blocks are replaced with this CBAM-enhanced version; the initial layer of the network remains unchanged, and each residual block group is subjected to the above-mentioned adjustment, and finally, at the end of the network, the multi-scale feature maps are integrated into a single feature vector through a global average pooling layer, and this vector is then sent to the fully connected layer to form the final fused feature representation.

[0014] More preferably, in the module structure and training process of the deep learning network, a feature fusion module is constructed. After ResNet (Residual Neural Network, ResNet, i.e. residual neural network) is used to obtain the facial emotion classification result, the emotion and the type of dish selected by the user are used as training data to train a personalized dish recommendation network. The network uses Bi-LSTM, and first initializes two Embedding vectors, one for processing the numerical label output by the emotion model, and the other for processing the dish features. After obtaining the two Embedding vectors, Concat is used to fuse the two features; the Bi-LSTM network is input, and finally the final dish output is obtained through a fully connected layer.

[0015] More preferably, in the module structure and training process of the deep learning network, a loss function is constructed, and the loss function used is Mean Squared Error Loss (MSE Loss), and its formula is as follows: (4); In the formula, It is The true value of the samples, is the model’s predicted value for this sample, is the sample size.

[0016] The module structure and training process of the deep learning network are as follows: the Bi-LSTM network is trained for a total of 400 iterations, the basic learning rate is 0.0001, the learning rate decreases by 10 times every 20 times, the model is saved once after each iteration, and the model of the last iteration is selected as the network.

[0017] The process of step 4 is as follows: the identifier will check the plate placed on the electronic scale and try to sense the two-dimensional code or information magnetic strip on the plate; if the identifier fails to detect the presence of the plate, or determines that the plate is not bound to any user account, the system will determine that this is an unauthorized attempt to pick up food; in this case, the system will immediately activate the alarm and send out a warning signal to prevent unauthorized picking of food; at the same time, the display of the smart weighing and vending device will show a message to the user, clearly stating that unauthorized behavior has occurred, and provide further instructions or request the user to rescan the plate.

[0018] In step 5, the process of fee settlement and deduction is as follows: the general service end is responsible for aggregating information, calculating the fees that each user should pay based on the type and quantity of dishes taken, and automatically deducting the corresponding amount from the user's pre-bound payment account; before deducting the fees, the system will check the account balance. If the fees are deducted successfully, the general service end will record the transaction details and feedback the transaction confirmation information to the user through voice feedback of successful transaction. If the deduction fails, the voice prompt will indicate the reason for the failure.

[0019] A meal recommendation system based on emotion monitoring comprises a meal plate and an intelligent weighing and selling device, wherein the intelligent weighing and selling device comprises a control center, an electronic scale, an alarm, a display and an identifier, and the control center comprises a deep learning model for emotion recognition and a deep learning model for personalized recommendation; the deep learning model for emotion recognition first uses Euler expression amplification on the collected face video data, then uses MTCNN (Multitask Cascaded Convolutional Networks) for face recognition, and then uses Residual Neural Network (ResNet) ResNet for expression classification; the personalized recommendation deep learning model uses a personalized recommendation algorithm Bi-LSTM (Bi-directional Long Short-Term Memory) model to recommend dishes based on historical emotions and historical meal collection data.

[0020] The technical concept of the present invention is: through the collection and analysis of visual data (i.e., facial expressions), the collection of visual data must be approved by the user, the user's emotional state is monitored in real time, and these emotional data are combined with historical meal collection records to build an emotion-diet preference model. This model can more accurately predict the user's dietary needs under different emotional states, thereby generating personalized recommended recipes. This not only improves the accuracy of the recommendation results and user satisfaction, but also helps users maintain healthy eating habits while managing their emotions. In order to realize this technology, the following three problems must be solved: 1) Accuracy of emotion recognition models. The expressions of different users vary greatly, and the expressions of the same user in different environments may also change, which increases the complexity of expression recognition. In addition, even if the user's expression can be recognized, it is still challenging to accurately classify it into specific emotions (such as happiness, sadness, anger, etc.). This requires a large amount of training data and complex sentiment analysis algorithms. In order to improve the accuracy and robustness of expression recognition, it is necessary to ensure that the model can run stably when facing different users and different environments; 2) Accuracy and real-time performance of personalized recommendation algorithms. Personalized recommendation algorithms need to consider the user's historical data and current emotions, and the recommendation system needs to analyze user emotions in real time and generate recommendation results, which places high demands on the algorithm's computational efficiency. How to ensure the accuracy of recommendation results while meeting real-time requirements is an important technical difficulty; 3) Accurate measurement of the automatic meal billing system. The system must ensure that the electronic scale can accurately measure the weight of objects to avoid inaccurate billing due to weight errors. At the same time, the identification of dish information is also a challenge. The system needs to be able to accurately identify the QR code or information magnetic strip on the plate and bind it to the user information to ensure that each dish can be correctly recorded and billed. Solving these technical difficulties requires the system to have high-precision weighing and identification capabilities. At the same time, it is also necessary to consider the impact of the shape, density and placement of different dishes on measurement and identification to ensure that the system can accurately bill in various situations.

[0021] The beneficial effects of the present invention are mainly manifested in: not only improving the accuracy of recommendation results and user satisfaction, but also helping users maintain healthy eating habits while managing their emotions. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a flow chart of meal pick-up recommendations based on emotion monitoring.

[0023] Figure 2 It is a flowchart of using the feature extraction module to extract features from faces.

[0024] Figure 3 It is a flowchart for constructing the feature fusion module. DETAILED DESCRIPTION

[0025] The present invention will be further described below in conjunction with the accompanying drawings.

[0026] Reference Figure 1~Figure 3 , a meal recommendation method based on emotion monitoring, comprising the following steps: Step 1) Start the intelligent weighing and selling vegetable device, and place the pre-sold edible vegetables on the electronic weighing device; the electronic weighing device automatically weighs and transmits the data to the control center. If the weighing device detects a weight change, it will proceed to step 2 according to the change); The process of step 1) is: 1.1) The process of starting the intelligent weighing and vending device begins with turning on the system power supply and activating all components, including the control center, electronic scale, alarm, display and identifier (camera). Before operation, ensure that the plate is placed in the set position so that the QR code and information magnetic strip on it can be accurately read by the identifier; 1.2) Afterwards, the electronic scale is cleaned and calibrated to ensure the accuracy of weighing. The pre-sold edible vegetables are placed on the weighing platform of the electronic scale. The vegetables are required to be placed neatly to avoid overflow or stacking, so as to ensure the accurate transmission of weighing data to the control center. 1.3) After the electronic scale automatically completes weighing, the weight data will be displayed on the monitor in real time and transmitted to the control center synchronously to provide initial data for transaction processing; at this time, the system enters the weight monitoring mode, and the electronic scale continuously monitors any changes in the weight of the dish. At the same time, the identifier (camera) starts working and calls the face detection model MTCNN to detect faces in real time. Face collection requires user consent.

[0027] Step 2) When the electronic weighing device detects that the weight of the edible dishes has decreased, it indicates that the user may be taking dishes; at this time, the weighing device sends this information to the control center, and the control center first checks whether the identifier senses the plate. If the plate is sensed, the identifier will scan the QR code or information magnetic strip on the plate to determine whether the plate has been bound to the user account. If the user has bound the plate, proceed to step 3); if the plate is not bound or there is no user record, proceed to step 4); The process of step 2) is as follows: 2.l) The electronic weighing device first detects the decrease in the weight of the edible dish, and this change is immediately recognized as a signal of the user's behavior of taking the dish; the weighing device then transmits the specific information of the weight change to the control center, including the weight reduction and the timestamp; 2.2) After receiving the signal, the control center immediately activates the identifier to detect the plate to confirm whether there is a plate placed on the scale; when a plate is detected, the system will automatically trigger the identifier to scan the QR code or information magnetic strip on the plate. These codes or magnetic strips can read the user's account information. If the plate has been bound, the system is ready to enter step 3); 2.3) If the identifier fails to sense the plate, or the control center detects that the plate is not bound to any user account, the system will proceed to step 4) according to the preset security protocol.

[0028] Step 3) The user's historical meal pick-up records and corresponding historical emotional states will be retrieved. Based on this information, the personalized recommendation algorithm Bi-LSTM will be called to recommend dishes to the user, and the recommendation results will be displayed on the display. If the system does not query the user's historical records, the personalized recommendation algorithm Bi-LSTM will be called to recommend dishes based on the user's current emotional state. In step 3), for the identified user, the deep learning network is called to perform identification analysis. The workflow of the deep learning network is as follows: 3.1) Use MTCNN to recognize faces and perform face alignment after faces are detected; 3.2) Use the feature extraction module to extract features from the face. The obtained feature map is input into the pre-trained Resnet network to classify the emotion of the current face. There are 7 classification labels, namely happy, angry, surprised, fearful, disgusted, sad and neutral. The obtained emotion results and the dish taken by the current user are saved in the database; 3.3) According to the user information bound to the plate, retrieve the user's historical emotions and meal pick-up records in the database. If the data is found, the historical emotions and meal pick-up records are input into the personalized recommendation algorithm Bi-LSTM together. If no data is found, it means that the user is picking up food for the first time, and no recommendation is made. Only the meal pick-up record and emotion record are recorded for the next time the user comes to pick up food for recommendation.

[0029] In the module structure and training process of the deep learning network, the feature extraction module adopts CBAM, which is composed of a channel attention module and a spatial attention module. The channel attention module processes the input features through global maximum pooling and global average pooling to generate two feature vectors; these two vectors are added after being processed by a shared fully connected layer, and then the channel attention weight is generated through a Sigmoid activation function; the spatial attention module performs maximum and average pooling operations on the input features in the channel dimension, then concatenates the results and compresses the channels through convolution, and finally obtains the spatial attention weight through a Sigmoid function.

[0030] Given an input feature map , the formula of channel attention weight is as follows, (1); In the formula, Represents the input feature map Perform global average pooling, and represents the fully connected layer, represents the activation function, usually ReLU, represents the sigmoid function, which is used to normalize the score to the range of [0, 1]; The formula for spatial attention weight is as follows, (2); In the formula, , , represents the convolution operation, represents the activation function, Represents the sigmoid function; The overall formula of the CBAM module is expressed as: (3).

[0031] In the module structure and training process of the deep learning network, the ResNet network is optimized and the traditional residual block is significantly improved. Specifically, after the feature map is processed by two convolutional layers and batch normalization, the CBAM module is introduced; the CBAM module uses the channel attention mechanism and the spatial attention mechanism to optimize the weight distribution of the feature map, thereby enhancing the ability of feature representation; the features adjusted by CBAM are then merged with the features of the original residual connection; in the entire ResNet network, all standard residual blocks are replaced with this CBAM-enhanced version; such an improvement not only retains the hierarchical structure of the original network, but also further improves the expressiveness of the features through the attention mechanism; the initial layer of the network remains unchanged, while each residual block group has undergone the above-mentioned adjustment, and finally, at the end of the network, the multi-scale feature maps are integrated into a single feature vector through the global average pooling layer, and this vector is then sent to the fully connected layer to form the final fused feature representation.

[0032] In the module structure and training process of the deep learning network, a feature fusion module is constructed. After using ResNet to obtain the facial emotion classification result, the emotion and the type of dish selected by the user are used as training data to train a personalized dish recommendation network. The network uses Bi-LSTM. The bidirectional characteristics of Bi-LSTM enable it to consider the user's past and future choices at the same time, so as to better understand the user's current preferences and possible changes. First, two Embedding vectors are initialized, one for processing the numerical label output by the emotion model, using [1,0,0,0,0,0,0] to represent happiness, and so on for other emotions; the other is used to process the dish features. After obtaining the two Embedding vectors, Concat is used to fuse the two features; the Bi-LSTM network is input, and finally a fully connected layer is used to obtain the final dish output.

[0033] In the module structure and training process of the deep learning network, a loss function is constructed, and the loss function used is Mean Squared Error Loss (MSE Loss), and its formula is as follows: (4); In the formula, It is The true value of the samples, is the model’s predicted value for this sample, is the sample size.

[0034] The module structure and training process of the deep learning network are as follows: the Bi-LSTM network is trained for a total of 400 iterations, the basic learning rate is 0.0001, the learning rate decreases by 10 times every 20 times, the model is saved once after each iteration, and the model of the last iteration is selected as the network.

[0035] Step 4) If the plate is not bound or there is no user record, that is, if the identifier does not sense the plate or determines that the plate is not bound to a user, the alarm will be activated to prevent unauthorized food collection; The process of step 4 is as follows: the identifier will check the plate placed on the electronic scale and try to sense the two-dimensional code or information magnetic strip on the plate; if the identifier fails to detect the presence of the plate, or determines that the plate is not bound to any user account, the system will determine that this is an unauthorized attempt to pick up food; in this case, the system will immediately activate the alarm and send out a warning signal to prevent unauthorized picking of food; at the same time, the display of the smart weighing and vending device will show a message to the user, clearly stating that unauthorized behavior has occurred, and provide further instructions or request the user to rescan the plate.

[0036] Step 5) Each control center transmits the information to the general server, which aggregates the information of each control center and then deducts the meal fee from the user account that has successfully picked up the meal. After the deduction is successful, the alarm will sound; In step 5, the process of fee settlement and deduction is as follows: the general service end is responsible for aggregating information, calculating the fees that each user should pay based on the type and quantity of dishes taken, and automatically deducting the corresponding amount from the user's pre-bound payment account; before deducting the fees, the system will check the account balance. If the fees are deducted successfully, the general service end will record the transaction details and feedback the transaction confirmation information to the user through voice feedback of successful transaction. If the deduction fails, the voice prompt will indicate the reason for the failure.

[0037] A meal recommendation system based on emotion monitoring comprises a meal tray and an intelligent weighing and selling device, wherein the intelligent weighing and selling device comprises a control center, an electronic scale, an alarm, a display and an identifier, and the control center comprises a deep learning model for emotion recognition and a deep learning model for personalized recommendation; the deep learning model for emotion recognition first uses Euler expression amplification on the collected face video data, then uses MTCNN (Multitask Cascaded Convolutional Networks) for face recognition, and then uses Residual Neural Network (ResNet) ResNet for expression classification; the personalized recommendation deep learning model uses a personalized recommendation algorithm Bi-LSTM (Bi-directional Long Short-Term Memory) model to recommend dishes based on historical emotions and historical meal collection data; the processing process of the multi-task cascade network MTCNN, the residual neural network ResNet and the bidirectional long short-term memory network Bi-LSTM is the same as that in the above method.

[0038] In summary, this example builds a personalized recommendation algorithm by detecting and analyzing user emotions in real time, combining user emotion data and historical meal collection records, which can more accurately predict the user's dietary preferences when in a state of emotional distress. This method not only improves the accuracy of the recommendation algorithm and user satisfaction, but also helps users maintain healthy eating habits while managing their emotions, thus achieving an organic combination of technology and user needs.

[0039] The contents described in the embodiments of this specification are merely enumerations of implementation forms of the inventive concept and are for illustrative purposes only. The protection scope of the present invention should not be considered to be limited to the specific forms described in this embodiment, and the protection scope of the present invention also extends to equivalent technical means that can be thought of by ordinary technicians in this field based on the inventive concept.

Claims

1. A meal recommendation method based on emotion monitoring, It is characterized in that The method comprises the following steps: Step 1) Start the intelligent weighing and selling vegetable device, and place the pre-sold edible vegetables on the electronic weighing device; the electronic weighing device automatically weighs and transmits the data to the control center. If the weighing device detects a weight change, it proceeds to step 2); Step 2) When the electronic weighing device detects that the weight of the edible dishes has decreased, it indicates that the user may be taking dishes; at this time, the weighing device sends this information to the control center, and the control center first checks whether the identifier senses the plate. If the plate is sensed, the identifier will scan the QR code or information magnetic strip on the plate to determine whether the plate has been bound to the user account. If the user has bound the plate, proceed to step 3); if the plate is not bound or there is no user record, proceed to step 4); Step 3) The user's historical meal pick-up records and corresponding historical emotional states will be retrieved. Based on this information, the personalized recommendation algorithm Bi-LSTM will be called to recommend dishes to the user, and the recommendation results will be displayed on the display. If the system does not query the user's historical records, the personalized recommendation algorithm Bi-LSTM will be called to recommend dishes based on the user's current emotional state. Step 4) If the identifier does not sense the dish or determines that the dish is not bound to the user, the alarm will be activated to prevent unauthorized food removal; Step 5) Each control center transmits the information to the general server, which aggregates the information of each control center and then deducts the meal fee from the user account that has successfully picked up the meal. After the deduction is successful, the alarm will sound.

2. A meal recommendation method based on emotion monitoring as claimed in claim 1, It is characterized in that The process of step 1) is: 1.1) The process of starting the intelligent weighing and vending device begins with turning on the system power supply and activating all components, including the control center, electronic scale, alarm, display and identifier. Before operation, ensure that the plate is placed in the set position so that the QR code and information magnetic strip on it can be accurately read by the identifier; 1.2) Then, clean and calibrate the electronic weighing device to ensure the accuracy of weighing; The pre-sold edible vegetables are placed on the weighing platform of the electronic weighing machine. The vegetables are required to be placed neatly to avoid overflow or stacking, so as to ensure the accurate transmission of weighing data to the control center. 1.3) After the electronic scale automatically completes weighing, the weight data will be displayed on the monitor in real time and transmitted to the control center synchronously to provide initial data for transaction processing; at this time, the system enters the weight monitoring mode, and the electronic scale continuously monitors any changes in the weight of the dish. At the same time, the recognizer starts working and calls the face detection model MTCNN to detect the face in real time.

3. A meal recommendation method based on emotion monitoring as claimed in claim 1 or 2, It is characterized in that The process of step 2) is as follows: 2.l) The electronic weighing device first detects the decrease in the weight of the edible dish, and this change is immediately recognized as a signal of the user's behavior of taking the dish; the weighing device then transmits the specific information of the weight change to the control center, including the weight reduction and the timestamp; 2.2) After receiving the signal, the control center immediately activates the identifier to detect the plate to confirm whether there is a plate placed on the scale; when a plate is detected, the system will automatically trigger the identifier to scan the QR code or information magnetic strip on the plate. These codes or magnetic strips can read the user's account information. If the plate has been bound, the system is ready to enter step 3); 2.3) If the identifier fails to sense the plate, or the control center detects that the plate is not bound to any user account, the system will proceed to step 4) according to the preset security protocol.

4. A meal recommendation method based on emotion monitoring as claimed in claim 1 or 2, It is characterized in that In step 3), for the identified user, the deep learning network is called to perform identification analysis. The workflow of the deep learning network is as follows: 3.1) Use the face detection model MTCNN to identify faces and perform face alignment after faces are detected; 3.2) Use the feature extraction module to extract features from the face. The obtained feature map is input into the pre-trained Resnet network to classify the emotion of the current face. There are 7 classification labels, namely happy, angry, surprised, fearful, disgusted, sad and neutral. The obtained emotion results and the dish taken by the current user are saved in the database; 3.3) According to the user information bound to the plate, retrieve the user's historical emotions and meal pick-up records in the database. If the data is found, input the historical emotions and meal pick-up records into the personalized recommendation algorithm Bi-LSTM together; If no data is found, it means that this is the first time for the user to pick up food, and no recommendation will be made. Only the meal pick-up record and emotional record will be recorded, and the record will be used as a recommendation for the next time the user comes to pick up food.

5. A meal recommendation method based on emotion monitoring as claimed in claim 4, It is characterized in that In the module structure and training process of the deep learning network, the feature extraction module adopts CBAM, which is composed of a channel attention module and a spatial attention module. The channel attention module processes the input features through global maximum pooling and global average pooling to generate two feature vectors; these two vectors are added after being processed by the shared fully connected layer, and then the channel attention weight is generated through the Sigmoid activation function; the spatial attention module performs the maximum and average pooling operations on the input features in the channel dimension, then concatenates the results and compresses the channels through convolution, and finally obtains the spatial attention weight through the Sigmoid function. Given the input feature map , the formula of channel attention weight is as follows, (1); In the formula, Represents the input feature map Perform global average pooling, and represents the fully connected layer, represents the activation function, which is ReLU, represents the sigmoid function, which is used to normalize the score to the range of [0, 1]; The formula for spatial attention weight is as follows, (2); In the formula, , , represents the convolution operation, represents the activation function, Represents the sigmoid function; The overall formula of the CBAM module is expressed as: (3)。 6. A method for recommending meals based on emotion monitoring as claimed in claim 5, It is characterized in that In the module structure and training process of the deep learning network, the ResNet network is optimized, and the CBAM module is introduced after the feature map is processed by two convolution layers and batch normalization. The CBAM module uses the channel attention mechanism and the spatial attention mechanism to optimize the weight distribution of the feature map, thereby enhancing the ability of feature representation; the features adjusted by CBAM are then merged with the features of the original residual connection; In the entire ResNet network, all standard residual blocks are replaced with this CBAM-enhanced version; the initial layer of the network remains unchanged, and each residual block group has undergone the above adjustments. Finally, at the end of the network, the multi-scale feature maps are integrated into a single feature vector through the global average pooling layer, which is then sent to the fully connected layer to form the final fused feature representation.

7. A method for recommending meals based on emotion monitoring as claimed in claim 6, It is characterized in that In the module structure and training process of the deep learning network, a feature fusion module is constructed. After using ResNet to obtain the facial emotion classification result, the emotion and the type of dish selected by the user are used as training data to train a personalized dish recommendation network. The network uses Bi-LSTM. First, two Embedding vectors are initialized, one for processing the numerical label output by the emotion model, and the other for processing the dish features. After obtaining the two Embedding vectors, Concat is used to fuse the two features; Input the Bi-LSTM network and finally pass it through a fully connected layer to get the final dish output.

8. The method for recommending meals based on emotion monitoring according to claim 5, It is characterized in that In the module structure and training process of the deep learning network, a loss function is constructed, and the loss function used is the mean square error loss, and its formula is as follows: (4); In the formula, It is The true value of the samples, is the model’s predicted value for this sample, is the sample size.

9. A meal recommendation method based on emotion monitoring as claimed in claim 1 or 2, It is characterized in that The process of step 4 is as follows: the identifier will check the meal plate placed on the electronic scale and try to sense the two-dimensional code or information magnetic strip on the meal plate; if the identifier fails to detect the existence of the meal plate, or determines that the meal plate is not bound to any user account, the system will determine that this is an unauthorized attempt to pick up the food; in this case, the system will immediately activate the alarm to sound an alarm and send out a warning signal to prevent unauthorized food picking; at the same time, the display of the intelligent weighing and vending device will display a message to the user, clearly indicating that an unauthorized behavior has occurred, and provide further instructions or request the user to rescan the meal plate; In step 5, the process of fee settlement and deduction is as follows: the general service end is responsible for aggregating information, calculating the fees that each user should pay based on the type and quantity of dishes taken, and automatically deducting the corresponding amount from the user's pre-bound payment account; before deducting the fees, the system will check the account balance. If the fees are deducted successfully, the general service end will record the transaction details and feedback the transaction confirmation information to the user through voice feedback of successful transaction. If the deduction fails, the voice prompt will indicate the reason for the failure.

10. A system for implementing the method for recommending meals based on emotion monitoring as claimed in claim 1, comprising a meal tray, It is characterized in that The system also includes an intelligent weighing and vending device, which includes a control center, an electronic scale, an alarm, a display and an identifier. The control center includes a deep learning model for emotion recognition and a personalized recommendation deep learning model. The deep learning model for emotion recognition first uses Euler expression amplification on the collected facial video data, then uses MTCNN for face recognition, and then uses the residual neural network ResNet for expression classification. The personalized recommendation deep learning model uses a personalized recommendation algorithm Bi-LSTM model to recommend dishes based on historical emotions and historical meal collection data.

Citation Information

Patent Citations

  • Dish recommendation method and device, server, electronic equipment and storage medium

    CN111161035A

  • Recommendation method based on explicit information coupling analysis of bidirectional long-short-term memory network

    CN112256859A

  • Residual network expression recognition method integrated with attention

    CN112541409A

  • Catering recommendation method and system based on big data and readable storage medium

    CN113256396A

  • Meal automatic charging system and method thereof

    CN115641674A

Cited By

  • Intelligent dish ordering method and device, electronic equipment and storage medium

    CN121029930A