Item recommendation method, device and system, computer system and storage medium
By obtaining the EEG and ECG signals of users when browsing items, the emotional types of items are determined and sorted, which solves the problem of inaccurate recommendation effects on online shopping platforms and achieves real-time matching of new user needs.
Patent Information
- Application Number
- CN202010557074.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-17
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-06-17
AI Technical Summary
Existing online shopping platforms cannot match users' new needs in real time when recommending items, resulting in inaccurate recommendation results.
By obtaining the user's brain and electrocardiogram signals when browsing items, the emotional type of the item is determined, a list of item preferences is generated, and items are sorted and recommended based on the emotional type.
It achieves real-time matching of user emotions, improves the accuracy of item recommendation, and meets users' new needs.
Smart Images

Figure CN113807904B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more specifically, to an item recommendation method, device and system, a computer system and a storage medium. Background Art
[0002] With the rapid development of the Internet, people are becoming more and more accustomed to online shopping, but the large number of items on online shopping platforms also makes it more difficult for people to make decisions.
[0003] At present, online shopping platforms generally help users quickly locate items of interest among a large number of items by pushing hot content and content that users like to them.
[0004] In the process of realizing the concept of the present disclosure, the inventor found that it is possible to discover the user's potential tendency based on the user's recent browsing content or order content, and make personalized item recommendations for the user. However, after the user has purchased an item, the possibility of repeating the need to purchase the item in a short period of time is very small. If the user is still continuously recommended items of the same type or items with similar attributes, it is impossible to match the user's new needs in real time, and a more accurate item recommendation effect cannot be achieved. Summary of the invention
[0005] In view of this, the present disclosure provides an item recommendation method, device and system, a computer system and a storage medium.
[0006] One aspect of the present disclosure provides an item recommendation method, comprising: obtaining EEG signals and ECG signals generated by a user in the process of browsing multiple items within a preset time period; determining the emotion type corresponding to each item based on the EEG signals and ECG signals corresponding to each item; sorting the multiple items according to the emotion type corresponding to each item to generate an item preference list; and recommending other items associated with specified items in the item preference list to the user based on the arrangement order of the items in the item preference list.
[0007] According to an embodiment of the present disclosure, determining the emotion type corresponding to each item based on the EEG signal and the ECG signal corresponding to each item includes: performing M-dimensional feature extraction on the EEG signal and the ECG signal corresponding to each item, respectively, to obtain M-dimensional EEG feature data and M-dimensional heart rate feature data, wherein M is an integer greater than 1; performing data fusion on the M-dimensional EEG feature data and the M-dimensional heart rate feature data to obtain fused feature data; optimizing the complexity of the fused feature data to obtain optimized feature data; inputting the optimized feature data into an emotion recognition model so that the emotion recognition model outputs the probability corresponding to each of the k emotion types, respectively, to obtain k probabilities, wherein k is an integer greater than 1; determining the final emotion type corresponding to the optimized feature data based on the k probabilities.
[0008] According to an embodiment of the present disclosure, the data fusion of the EEG feature data in M dimensions and the heart rate feature data in M dimensions includes: normalizing the EEG feature data in M dimensions and the heart rate feature data in M dimensions; performing a first data fusion based on the mean and variance of the EEG feature data in M dimensions after normalization, and the mean and variance of the heart rate feature data in M dimensions after normalization, to obtain feature data after the first data fusion; performing a second data fusion based on the standard deviation of the EEG feature data in M dimensions after normalization and the standard deviation of the heart rate feature data in M dimensions after normalization, to obtain feature data after the second data fusion; and performing a third data fusion based on the feature data after the first data fusion and the feature data after the second data fusion, to obtain fused feature data.
[0009] According to an embodiment of the present disclosure, k emotion types include negative emotions, calm emotions and excited emotions; the emotion recognition model includes a first emotion classification model, a second emotion classification model and a third emotion classification model, wherein: the input of the first emotion classification model is the optimized feature data, and the output of the first emotion classification model includes the probability of negative emotions and the probability of calm emotions; the input of the second emotion classification model is the optimized feature data, and the output of the second emotion classification model includes the probability of calm emotions and the probability of excited emotions; and the input of the third emotion classification model is the optimized feature data, and the output of the third emotion classification model includes the probability of negative emotions and the probability of excited emotions.
[0010] According to an embodiment of the present disclosure, the inputting of the optimized feature data into the emotion recognition model so as to output the probability corresponding to each of the k emotion types through the emotion recognition model includes: inputting the optimized feature data into the first emotion classification model, the second emotion classification model and the third emotion classification model respectively so as to output the first classification result, the second classification result and the third classification result through the first emotion classification model, the second emotion classification model and the third emotion classification; and determining the output of the emotion recognition model according to the first classification result, the second classification result and the third classification result, wherein the output of the emotion recognition model includes the probability of negative emotions, the probability of calm emotions and the probability of excited emotions.
[0011] According to an embodiment of the present disclosure, determining the final emotion type corresponding to the optimized feature data based on the k probabilities includes: generating an emotion recognition function based on the k probabilities; calculating the function value of negative emotion, the function value of calm emotion and the function value of excited emotion based on the emotion recognition function; and determining the final emotion type corresponding to the optimized feature data based on the relationship between the function value of negative emotion, the function value of calm emotion and the function value of excited emotion.
[0012] According to an embodiment of the present disclosure, the EEG feature data of M dimensions include at least M of the following: mean, standard deviation, first-order difference mean square error, second-order difference mean square error, characteristic entropy, frequency band energy and frequency band energy ratio of the EEG signal; the heart rate feature data of M dimensions include at least M of the following: mean, standard deviation, first-order difference mean square error, second-order difference mean square error, characteristic entropy, frequency band energy and frequency band energy ratio of the ECG signal.
[0013] Another aspect of the present disclosure provides an item recommendation system, comprising: an EEG monitoring device, a heart rate monitoring device, a terminal and a cloud server; the EEG monitoring device is used to obtain EEG signals generated by a user in the process of browsing multiple items according to a preset sampling frequency; the EEG signals are pre-processed and sent to the terminal or the cloud server; the heart rate monitoring device is used to obtain electrocardiogram signals generated by a user in the process of browsing multiple items according to the preset sampling frequency; the electrocardiogram signals are pre-processed and sent to the terminal or the cloud server; the terminal is used to: obtain EEG signals and electrocardiogram signals generated by a user in the process of browsing multiple items within a preset time period; and select a recommended item according to the information related to each item. The terminal is further configured to: detect the emotion types corresponding to the EEG signals and ECG signals in each of the preset acquisition cycles, and determine the emotion types corresponding to each item; sort the multiple items according to the emotion types corresponding to each item to generate an item preference list; and recommend other items associated with the specified items in the item preference list to the user according to the arrangement order of the items in the item preference list; the terminal is also configured to: send the emotion types corresponding to the EEG signals and ECG signals in each of the preset acquisition cycles to the cloud server; the cloud server is configured to receive the EEG signals sent by the EEG monitoring device, the ECG signals sent by the heart rate monitoring device, and the emotion types corresponding to the EEG signals and ECG signals in each of the preset acquisition cycles sent by the terminal.
[0014] Another aspect of the present disclosure provides an item recommendation device, including: an acquisition module, used to acquire EEG signals and ECG signals generated by a user in the process of browsing multiple items within a preset time period; a determination module, used to determine the emotion type corresponding to each item based on the EEG signals and ECG signals corresponding to each item; a generation module, used to sort the multiple items according to the emotion type corresponding to each item, and generate an item preference list; and a recommendation module, used to recommend other items associated with specified items in the item preference list to the user according to the arrangement order of the items in the item preference list.
[0015] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.
[0016] Another aspect of the present disclosure provides a computer program, which includes computer executable instructions, and the instructions are used to implement the method described above when executed.
[0017] Another aspect of the present disclosure provides a computer system, including: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
[0018] According to the embodiments of the present disclosure, a technical means is adopted to obtain the EEG signals and ECG signals generated by the user in the process of browsing multiple items within a preset time period, determine the emotion type corresponding to each item according to the EEG signals and ECG signals corresponding to each item, sort the multiple items according to the emotion type corresponding to each item, generate an item preference list, and recommend other items associated with the specified items in the item preference list to the user according to the arrangement order of the items in the item preference list. Since the multiple items are sorted according to the emotion type corresponding to each item, and other related items are recommended to the user according to the arrangement order of the items, the technical problem of being unable to match the user's new needs in real time caused by recommending items to the user according to the content that the user has browsed in the related art is at least partially overcome, thereby achieving the technical effect of more accurately recommending items. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0020] Figure 1 The application scenarios of the item recommendation method and device according to the embodiments of the present disclosure are schematically shown;
[0021] Figure 2 A flowchart of an item recommendation method according to an embodiment of the present disclosure is schematically shown;
[0022] Figure 3A A flowchart schematically shows a method for determining the emotion type corresponding to each object according to the EEG signal and the ECG signal corresponding to each object according to an embodiment of the present disclosure;
[0023] Figure 3B A flowchart schematically shows a method for data fusion of M-dimensional EEG feature data and M-dimensional heart rate feature data according to an embodiment of the present disclosure;
[0024] Figure 3C A flowchart schematically shows a method for outputting a probability corresponding to each of k emotion types through an emotion recognition model according to an embodiment of the present disclosure;
[0025] Figure 3D A flowchart of a method for determining a final emotion type corresponding to optimized feature data according to k probabilities according to an embodiment of the present disclosure is schematically shown;
[0026] Figure 4 The exemplary structural diagram of the item recommendation system according to the embodiment of the present disclosure is schematically shown;
[0027] Figure 5 A block diagram schematically shows an article pushing device according to an embodiment of the present disclosure; and
[0028] Figure 6 The block diagram of a computer system suitable for the item push method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0029] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0030] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0031] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0032] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0033] The embodiment of the present disclosure provides an item recommendation method. The method includes obtaining EEG signals and ECG signals generated by a user in the process of browsing multiple items within a preset time period; determining the emotion type corresponding to each item according to the EEG signals and ECG signals corresponding to each item; sorting the multiple items according to the emotion type corresponding to each item to generate an item preference list; and recommending other items associated with the specified items in the item preference list to the user according to the arrangement order of the items in the item preference list.
[0034] Figure 1 The application scenarios of the item recommendation method and device of the embodiment of the present disclosure are schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0035] like Figure 1 As shown, the application scenario 100 according to this embodiment may include an electroencephalogram monitoring device 101 , a heart rate monitoring device 102 , a terminal 103 and a cloud server 104 .
[0036] Among them, the EEG monitoring device 101 can be, for example, a headband device with a built-in EEG acquisition module. The heart rate monitoring device 102 can be, for example, a bracelet device with a built-in heart rate acquisition module. The user can use the terminal 103 to browse items. When the user uses the terminal 103, the user can wear the EEG monitoring device 101 and the heart rate monitoring device 102, so that when the user uses the terminal 103 to browse items, the EEG monitoring device 101 can obtain the user's EEG signal (Electroencephalography, referred to as EEG), and the heart rate monitoring device 102 can obtain the user's electrocardiogram signal (Electrocardiogram, referred to as ECG).
[0037] The EEG monitoring device 101 can send the collected EEG signals to the terminal 103 or to the cloud server 104 through the network, wherein the network between the EEG monitoring device 101 and the terminal 103 may include various connection types, such as wired and / or wireless communication links, etc.
[0038] The heart rate monitoring device 102 can send the collected ECG signal to the terminal 103 or to the cloud server 104 through the network, wherein the network between the heart rate monitoring device 102 and the terminal 103 may include various connection types, such as wired and / or wireless communication links, etc.
[0039] The EEG monitoring device 101 and the heart rate monitoring device 102 can respectively collect the user's EEG signal and ECG signal at the same collection frequency, so that the terminal 103 can obtain synchronized EEG signal and ECG signal.
[0040] After the terminal 103 obtains the EEG signals sent by the EEG monitoring device 101 and the ECG signals sent by the heart rate monitoring device 102, it can perform feature extraction, data fusion, pattern recognition and other processing on the EEG signals and the ECG signals to obtain the emotion types corresponding to the EEG signals and the ECG signals, thereby determining the user's emotional response during the process of browsing items.
[0041] The terminal 103 can sort the browsed items according to the obtained emotion type to obtain an item preference list. The arrangement order of the items in the item preference list can reflect the user's interest in the items, so that items associated with each item in the item preference list can be recommended to the user according to the arrangement order of the items.
[0042] The terminal 103 can send the processed EEG signals and ECG signals, the emotion types corresponding to the EEG signals and ECG signals, and the item preference list sorted by emotion type to the cloud server 104 so that these data can be stored in the cloud.
[0043] The cloud server 104 can process the EEG signals sent by the EEG monitoring device 101 and the ECG signals sent by the heart rate monitoring device 102 to obtain the emotion types corresponding to the EEG signals and the ECG signals, sort the items according to the emotion types, and send the sorted item preference list to the terminal 103, so that the terminal 103 can recommend other items to the user according to the item preference list.
[0044] The cloud server 104 can also receive the processed EEG signals and ECG signals, the emotion types corresponding to the EEG signals and ECG signals, and the item preference list sorted by emotion types sent by the terminal 103, and save this information so that the terminal 103 can obtain it at any time.
[0045] It should be noted that the item recommendation method provided in the embodiment of the present disclosure can generally be executed by the terminal 103. Accordingly, the item recommendation device provided in the embodiment of the present disclosure can generally be set in the terminal 103. The terminal 103 provided in the embodiment of the present disclosure can also be executed by the cloud server 104. Accordingly, the item recommendation device provided in the embodiment of the present disclosure can also be set in the cloud server 104.
[0046] It should be understood that Figure 1The number of EEG monitoring devices 101, heart rate monitoring devices 102, terminals 103 and cloud servers 104 in the embodiment is only for illustration. Any number of EEG monitoring devices 101, heart rate monitoring devices 102, terminals 103 and cloud servers 104 may be provided according to implementation requirements.
[0047] Figure 2 The flowchart of the item recommendation method according to an embodiment of the present disclosure is schematically shown.
[0048] like Figure 2 As shown, the method includes operations S201 to S204.
[0049] In operation S201, an electroencephalogram (EEG) signal and an electrocardiogram (ECG) signal generated when a user browses multiple items within a preset time period are obtained. Both the EEG signal and the ECG signal are physiological signals that can reflect emotional fluctuations.
[0050] According to an embodiment of the present disclosure, the terminal 103 may obtain the EEG signal and the ECG signal of the user when the user browses items within a preset time period, wherein the preset time period may be, for example, 5 minutes.
[0051] In operation S202, the emotion type corresponding to each object is determined according to the electroencephalogram signal and the electrocardiogram signal corresponding to each object.
[0052] According to an embodiment of the present disclosure, a user can browse multiple items within 5 minutes, and the EEG signal and ECG signal corresponding to each item can be determined based on the timestamps carried by the EEG signal and ECG signal.
[0053] According to the embodiments of the present disclosure, the EEG signals and ECG signals corresponding to each item can be processed separately first, for example, filtering, amplification and other preprocessing can be performed to remove the influence of surrounding noise. Then, feature extraction can be performed separately, and feature data showing different characteristics of different physiological signals when emotions change can be obtained. Then, the feature data of the EEG signal and the feature data of the ECG signal can be fused, and the fused feature data can comprehensively reflect the emotional fluctuations. Based on the fused feature data, the emotion type corresponding to the feature data can be identified using a pattern recognition algorithm, wherein the pattern recognition algorithm can be, for example, a neural network algorithm, and the emotion type can include, for example, excitement, calmness and negativity.
[0054] In operation S203, the plurality of items are sorted according to the emotion type corresponding to each item to generate an item preference list.
[0055] According to the embodiments of the present disclosure, the emotion type corresponding to each item can reflect the user's interest in the item. For example, if a user browses five items, A, B, C, D, and E, within a preset time period, and if the emotion type corresponding to the physiological signal generated by the user when browsing items C and D is excitement, it can be represented that the user has a high degree of interest in items C and D. If the emotion type corresponding to the physiological signal generated by the user when browsing items A and E is calm, it can be represented that the user has a general degree of interest in items A and E. If the emotion type corresponding to the physiological signal generated by the user when browsing item B is negative, it can be represented that the user has a low degree of interest in item B.
[0056] According to the embodiment of the present disclosure, multiple items browsed by the user can be sorted in the order of excitement, calmness, and negativity. For example, five items A, B, C, D, and E are sorted according to the emotion type, and the order of the items in the item preference list can be obtained as C, D, A, E, and B. Among them, C and D correspond to the same emotion type, and the order of C and D in the list can be interchanged. Similarly, the order of A and E can also be interchanged.
[0057] In operation S204, other items associated with the designated item in the item favorite list are recommended to the user according to the arrangement order of the items in the item favorite list.
[0058] According to the embodiment of the present disclosure, following the above example, items that the user is most interested in can be recommended to the user according to the arrangement order of the five items A, B, C, D, and E in the item preference list. For example, if items C and D are arranged at the front in the item preference list, items similar to items C and D, or items of the same type or attribute as items C and D, can be recommended to the user.
[0059] According to the disclosed embodiment, first, the EEG signals and ECG signals generated by the user in the process of browsing multiple items within a preset time period are obtained, and then the emotion type corresponding to each item is determined based on the EEG signals and ECG signals corresponding to each item. Furthermore, multiple items are sorted according to the emotion type corresponding to each item to generate an item preference list. Finally, other items associated with the specified items in the item preference list are recommended to the user based on the arrangement order of the items in the item preference list. The item preference list that the user is interested in can be determined based on the user's emotion type when browsing items, and the user's new needs can be matched in real time based on the item preference list, and the user's favorite items can be accurately recommended to the user, thereby improving the user experience.
[0060] Reference below Figure 3A to Figure 3D , combined with specific embodiments Figure 2 The method shown is further explained.
[0061] Figure 3A The flowchart of the method for determining the emotion type corresponding to each object according to the EEG signal and the ECG signal corresponding to each object according to an embodiment of the present disclosure is schematically shown.
[0062] like Figure 3A As shown, operation S202 may specifically include operations S301 to S305.
[0063] In operation S301, for the EEG signal and the ECG signal corresponding to each object, feature extraction of M dimensions is performed on the EEG signal and the ECG signal, respectively, to obtain M-dimensional EEG feature data and M-dimensional heart rate feature data, where M is an integer greater than 1.
[0064] According to the embodiments of the present disclosure, physiological signals will present different characteristics when emotions change, and various feature extraction methods can be used to extract different features, such as extracting time domain features, entropy features, and energy features in the frequency domain. Among them, the time domain features may include, for example, the mean, standard deviation, first-order difference mean square error, and second-order difference mean square error, and the energy features in the frequency domain may include, for example, the band energy and band energy proportion of the approximate signal of the physiological signal after wavelet transformation.
[0065] According to the embodiments of the present disclosure, different features are extracted from EEG signals and ECG signals respectively by a variety of feature extraction methods, and feature data of multiple dimensions of EEG signals and feature data of multiple dimensions of ECG signals can be obtained. For example, the feature data of multiple dimensions of EEG signals may include: the mean, standard deviation, first-order difference mean square error, second-order difference mean square error, characteristic entropy, frequency band energy, and frequency band energy proportion of the EEG signals. The feature data of multiple dimensions of ECG signals may include: the mean, standard deviation, first-order difference mean square error, second-order difference mean square error, characteristic entropy, frequency band energy, and frequency band energy proportion of the ECG signals.
[0066] According to the embodiments of the present disclosure, feature extraction of EEG signals and ECG signals can remove redundant and interfering components in the original EEG signals and ECG signals, so that the effective information of the original data can be retained, which greatly reduces the amount of data and also improves the accuracy of emotion recognition.
[0067] In operation S302, data fusion is performed on the M-dimensional EEG feature data and the M-dimensional heart rate feature data to obtain fused feature data.
[0068] According to the embodiments of the present disclosure, the feature data of the EEG signal and the feature data of the ECG signal in multiple dimensions after feature extraction can be fused so as to comprehensively reflect the user's emotional state towards the object based on the two physiological signals.
[0069] Figure 3BThe flowchart of the method for data fusion of M-dimensional EEG feature data and M-dimensional heart rate feature data according to an embodiment of the present disclosure is schematically shown.
[0070] like Figure 3B As shown, operation S302 may specifically include operations S3021 to S3024.
[0071] In operation S3021, the M-dimensional EEG feature data and the M-dimensional heart rate feature data are normalized.
[0072] According to the embodiment of the present disclosure, the feature data of the EEG signal of multiple dimensions after feature extraction can be called, for example, an EEG feature set, and the feature data of the ECG signal of multiple dimensions after feature extraction can be called, for example, a heart rate feature set. Taking the normalization of the EEG feature set as an example, the following formula (1) can be used to normalize each feature data in the EEG feature set so that the size of the feature value of each feature data is between [0, 1]:
[0073]
[0074] in, represents the eigenvalue of the normalized feature data of the i-th feature set in the EEG feature set, x min Indicates the feature data with the smallest eigenvalue in the EEG feature set, x max It represents the feature data with the largest feature value in the EEG feature set, and i represents the i-th feature data in the EEG feature set.
[0075] According to the embodiment of the present disclosure, a normalized heart rate feature set can be obtained according to the above formula 1, which will not be described in detail here.
[0076] In operation S3022, a first data fusion is performed based on the mean and variance of the normalized M-dimensional EEG feature data and the mean and variance of the normalized M-dimensional heart rate feature data to obtain feature data after the first data fusion.
[0077] According to the embodiment of the present disclosure, the first data fusion can be performed on the normalized EEG feature set and the heart rate feature set according to the following formula 2:
[0078]
[0079] in, represents the mean of the EEG feature set, represents the mean of the heart rate feature set, σ b represents the variance of the EEG feature set, σ h represents the variance of the heart rate feature set, R bhRepresents the feature data after the first data fusion.
[0080] In operation S3023, a second data fusion is performed based on the standard deviation of the normalized M-dimensional EEG feature data and the standard deviation of the normalized M-dimensional heart rate feature data to obtain feature data after the second data fusion.
[0081] According to the embodiment of the present disclosure, the least squares weighted method can be used to perform a second data fusion on the normalized EEG feature set and the heart rate feature set. The least squares weighted method can be used as the following formula 3:
[0082] R bh '=w b *E b +w h *E h Formula (III)
[0083] Among them, w b represents the weight of the EEG feature set, E b Represents the feature data of the EEG feature set, w h represents the weight of the heart rate feature set, E h Represents the feature data of the heart rate feature set. bh ' represents the feature data after the second data fusion.
[0084] According to the embodiment of the present disclosure, the weight of the EEG feature set and the weight of the heart rate feature set are determined according to their respective standard deviations. Taking the weight of the EEG feature set as an example, the weight of each dimension of feature data in the EEG feature set can be determined using the following formula (IV):
[0085]
[0086] Among them, w j represents the weight of the jth feature data in the EEG feature set, and the above formula 4 satisfies σ j represents the standard deviation of the j-th dimension feature data of the EEG feature set, and m is the dimension of the EEG feature set.
[0087] In operation S3024, a third data fusion is performed based on the feature data after the first data fusion and the feature data after the second data fusion to obtain fused feature data.
[0088] According to the embodiment of the present disclosure, the feature data R after the first fusion can be bh And the feature data R after the second fusion bh 'Perform the third data fusion, for example, the third data fusion can be performed according to the following formula:
[0089]
[0090] Among them, R s It is the feature data after the third data fusion.
[0091] According to an embodiment of the present disclosure, the feature data after three data fusions may include information of all dimensions of EEG signals and ECG signals. For example, the EEG feature set may include feature data of 7 dimensions, and the heart rate feature set may include feature data of 7 dimensions. The feature data after data fusion may include feature data of 14 dimensions.
[0092] In operation S303, the complexity of the fused feature data is optimized to obtain optimized feature data.
[0093] According to the embodiment of the present disclosure, the feature data after feature fusion is a relatively pure signal, but since the amount of data is very large, it is too complicated to process directly. The complexity of the data after feature fusion can be optimized.
[0094] For example, a PCA (Principal Component Analysis, PCA for short) algorithm may be used to reduce the complexity of feature data. The algorithm may extract the main information of the feature data and remove redundant information.
[0095] In operation S304, the optimized feature data is input into the emotion recognition model, so that the emotion recognition model outputs the probability corresponding to each of the k emotion types, thereby obtaining k probabilities, where k is an integer greater than 1.
[0096] According to the disclosed embodiment, the feature data after complexity optimization can be classified and identified to identify the emotion type corresponding to the feature data. Classification using feature data fused with multiple features can improve the accuracy and robustness of emotion recognition. Using feature data after complexity optimization can effectively shorten the classification response time while maintaining the classification accuracy of each feature extraction algorithm.
[0097] According to an embodiment of the present disclosure, the k emotion types may include negative emotion, calm emotion, and excited emotion. The emotion recognition model includes a first emotion classification model, a second emotion classification model, and a third emotion classification model, wherein: the input of the first emotion classification model is the optimized feature data, and the output of the first emotion classification model includes the probability of negative emotion and the probability of calm emotion; the input of the second emotion classification model is the optimized feature data, and the output of the second emotion classification model includes the probability of calm emotion and the probability of excited emotion; and the input of the third emotion classification model is the optimized feature data, and the output of the third emotion classification model includes the probability of negative emotion and the probability of excited emotion.
[0098] According to the embodiment of the present disclosure, the first emotion classification model, the second emotion classification model and the third emotion classification model may be, for example, binary classification models trained using a support vector machine (SVM) algorithm. Each binary classification model may be obtained by training and learning the user's EEG feature signals and heart rate feature signals using a support vector machine algorithm.
[0099] According to the embodiment of the present disclosure, since the output of the binary classification model includes the probabilities of two emotion types, the three emotion types of negative emotion, calm emotion and excited emotion can be divided into two types, and three division results can be obtained, which can be: binary classification of negative emotion and calm emotion, binary classification of calm emotion and excited emotion, and binary classification of negative emotion and excited emotion. Negative emotion can be recorded as 1, calm emotion as 2, and excited emotion as 3. The three division results can be recorded, for example, as: {c1=(1, 2)}, {c2=(2, 3)}, {c3=(1, 3)}.
[0100] According to the disclosed embodiment, the EEG signal data and ECG signal data of 40 users with independent shopping decision-making ability (for example, the user age can be distributed between 15 and 60 years old) can be selected for analysis. Taking the fused feature data as 14 dimensions as an example, a total of 560 sample feature data of 40 users can be obtained. The sample feature data can be input into the initial model for training, and the initial model can be continuously optimized to obtain the first classification model, the second emotion classification model and the third emotion classification model respectively.
[0101] Figure 3C The flowchart of the method for outputting the probability corresponding to each of k emotion types respectively through the emotion recognition model according to an embodiment of the present disclosure is schematically shown.
[0102] like Figure 3C As shown, operation S304 may specifically include operations S3041 to S3042.
[0103] In operation S3041, the optimized feature data is respectively input into the first emotion classification model, the second emotion classification model and the third emotion classification model, so as to output the first classification result, the second classification result and the third classification result through the first emotion classification model, the second emotion classification model and the third emotion classification model.
[0104] According to the embodiment of the present disclosure, three emotion classification results can be output based on the first emotion classification model, the second emotion classification model and the third emotion classification model. The three emotion classification results can be respectively recorded as: c1 , p2 c1}, {p2 c2 , p3 c2} and {p1 c3 , p3 c3},in, For i The probability that the emotion type is k in the emotion classification result, where k∈{1, 2, 3}, when k=1, The probability that the corresponding emotion type is negative, when k = 2, The corresponding probability of the emotion type being calm, when k=3, The probability that the corresponding emotion type is excitement.
[0105] In operation S3042, an output of the emotion recognition model is determined according to the first classification result, the second classification result, and the third classification result, wherein the output of the emotion recognition model includes a probability of a negative emotion, a probability of a calm emotion, and a probability of an excited emotion.
[0106] According to the embodiment of the present disclosure, the classification results respectively output by the first emotion classification model, the second emotion classification model and the third emotion classification model are: c1 , p2 c1}, {p2 c2 , p3 c2} and {p1 c3 , p3 c3}, the output of the emotion recognition model can be obtained using the following formula 6:
[0107]
[0108] Among them, p(k|F) represents the probability p that the feature vector F belongs to the emotion category k x , f i For each eigenvector F i The classification result, A and B can be constants.
[0109] According to the embodiment of the present disclosure, according to Formula 6, the probability of the emotion type k output by the emotion recognition model can be obtained as follows:
[0110]
[0111] According to the embodiment of the present disclosure, according to Formula 6 and Formula 7, when k is 1, 2, and 3 respectively, p k It can be expressed by the following formulas 8, 9 and 10:
[0112]
[0113]
[0114]
[0115] Among them, p1 represents the probability that the emotion type is negative, p2 represents the probability that the emotion type is calm, and p3 represents the probability that the emotion type is excited.
[0116] In operation S305 , a final emotion type corresponding to the optimized feature data is determined according to the k probabilities.
[0117] According to the embodiment of the present disclosure, three emotion classification results may be output according to the first emotion classification model, the second emotion classification model, and the third emotion classification model, and a final emotion type corresponding to the feature data may be determined.
[0118] Figure 3D The flowchart of the method for determining the final emotion type corresponding to the optimized feature data according to k probabilities according to an embodiment of the present disclosure is schematically shown.
[0119] like Figure 3D As shown, operation S305 may specifically include operations S3051 to S3053.
[0120] In operation S3051, an emotion recognition function is generated according to k probabilities.
[0121] According to the embodiment of the present disclosure, according to the above formula 6 and formula 7, an emotion recognition function can be obtained, and the emotion recognition function can be the following formula 11:
[0122] f(x)=ln(1-Px)-lnPx+C Formula (XI)
[0123] Among them, the probability of emotion type x is Px, and C is a constant.
[0124] In operation S3052, a function value of a negative emotion, a function value of a calm emotion, and a function value of an excited emotion are calculated according to the emotion recognition function.
[0125] According to the embodiment of the present disclosure, according to the above formula 11, the function value of negative emotion is f(1), the function value of calm emotion is f(2), and the function value of excited emotion is f(3).
[0126] In operation S3053, a final emotion type corresponding to the optimized feature data is determined according to a relationship among the function value of the negative emotion, the function value of the calm emotion, and the function value of the excited emotion.
[0127] According to the embodiment of the present disclosure, the final emotion type can be determined based on the relationship among f(1), f(2) and f(3).
[0128] For example, when f(1) < -1, and f(1) < f(2), and f(1) < f(3), the final emotion type can be determined to be negative. When f(2) < -1, and f(2) < f(3), and f(2) < f(1), the final emotion type can be determined to be calm. When f(3) < -1, and f(3) < f(2), and f(3) < f(1), the final emotion type can be determined to be excited.
[0129] Figure 4 An exemplary structural diagram of an item recommendation system according to an embodiment of the present disclosure is schematically shown.
[0130] like Figure 4 As shown, the item recommendation system 400 includes an electroencephalogram monitoring device 410 , a heart rate monitoring device 420 , a terminal 430 and a cloud server 440 .
[0131] The EEG monitoring device 410 is used to obtain the EEG signals generated by the user in the process of browsing multiple items according to a preset sampling frequency; and send the EEG signals to the terminal or cloud server after pre-processing.
[0132] like Figure 4 As shown, the EEG monitoring device 410 may include an EEG signal acquisition module 411, an EEG signal preprocessing module 412 and a first Bluetooth module 413. The EEG signal acquisition module 411 may include an EEG electrode, a reference electrode and a ground electrode, wherein the EEG electrode may be an EEG acquisition sensor for collecting brain wave signals.
[0133] According to the disclosed embodiment, the EEG monitoring device 410 may be a wearable headgear. Since the EEG activity of adults is more obvious on the left forehead, the EEG electrode of the EEG signal acquisition module 411 may be installed on the inner top of the headgear, so that when the user wears it, the EEG electrode is placed on the left forehead of the user, which can improve the accuracy of the collected signal. The EEG electrode may be a high input impedance amplifier dry electrode. Since the high input impedance amplifier dry electrode has an array design structure, it does not need to contact the user's scalp surface over a large area, and the user does not need to apply a large amount of conductive paste on the scalp. It only needs to place the dry electrode on the left forehead to perform real-time collection of EEG signals, making the EEG signal collection process more convenient. The reference electrode may be placed at a place relative to the zero potential point of the body, for example, the reference electrode may be placed on the earlobe or the back of the ear. The ground electrode, the reference electrode, and the EEG electrode may be connected via wireless communication.
[0134] According to the embodiment of the present disclosure, the EEG electrodes of the EEG signal acquisition module 411 can acquire EEG wave signals at a certain sampling frequency, and then the EEG signal acquisition module 411 can send the differential signal between the EEG electrode and the reference electrode to the EEG signal preprocessing module 412. Since the EEG signal obtained in the EEG signal acquisition module 411 is not a pure EEG signal, but contains a large amount of artifacts and noise, the EEG signal preprocessing module 412 can be used to preprocess it, wherein the preprocessing can include selecting a suitable frequency for filtering, denoising, and A / D conversion.
[0135] According to the disclosed embodiment, the EEG signal preprocessing module 412 may be an intelligent chip, for example, a ThinkGear AM chip, which may perform preprocessing of low-noise EEG spectrum signals. In order to improve the quality of the collected EEG signals, a shielded cable may be used to connect the EEG signal collection module 411 and the EEG signal preprocessing module 412 to minimize noise interference from the surrounding environment.
[0136] According to the disclosed embodiment, the EEG signal preprocessing module 412 can perform serial communication with the terminal through the first Bluetooth module 413 according to a certain data format, and send the preprocessed EEG signal to the terminal. Among them, the first Bluetooth module 413 has the advantages of ultra-low power consumption, low cost, small size, stable transmission performance, fast startup instant connection, etc., which can match the data transmission rate of the EEG signal preprocessing module 412 to ensure the stability of transmission performance.
[0137] The heart rate monitoring device 420 is used to obtain the electrocardiogram signal generated by the user in the process of browsing multiple items according to a preset sampling frequency; and send the electrocardiogram signal to the terminal or cloud server after pre-processing.
[0138] like Figure 4 As shown, the heart rate monitoring device 420 may include an ECG signal acquisition module 421, an ECG signal preprocessing module 422, and a second Bluetooth module 423. The ECG signal acquisition module 421 may include a heart rate sensor for collecting ECG signals at a preset sampling frequency. The heart rate monitoring device 420 may be a bracelet device, which a user can wear on his wrist to collect ECG signals, and the operation is free and flexible.
[0139] According to the embodiment of the present disclosure, the sampling frequency of the ECG signal acquisition module 421 may be the same as the sampling frequency of the EEG signal acquisition module to ensure synchronization of the acquired EEG signal and ECG signal.
[0140] According to the embodiment of the present disclosure, the ECG signal collected by the ECG signal acquisition module 421 can be sent to the ECG signal preprocessing module 422, and the ECG signal preprocessing module 422 can preprocess the ECG signal. The preprocessing can include using a digital band-stop filter to filter out power frequency interference, using zero-phase shift digital filtering to remove the baseline drift of the signal, and using a Butterworth bandpass filter and wavelet threshold denoising method to eliminate motion artifacts and noise in the measurement.
[0141] According to the embodiment of the present disclosure, the ECG signal preprocessing module 422 can perform serial port communication with the terminal through the second Bluetooth module 423 according to a certain data format of the preprocessed ECG signal, and send the preprocessed ECG signal to the terminal.
[0142] Terminal 430 is used to: obtain the EEG signals and ECG signals generated by the user when browsing multiple items within a preset time period; determine the emotion type corresponding to each item based on the EEG signals and ECG signals corresponding to each item; and send the emotion type corresponding to each item to the cloud server.
[0143] The cloud server 440 is used to: receive the emotion type corresponding to each item sent by the terminal, sort multiple items according to the emotion type corresponding to each item, and generate an item preference list; recommend other items associated with the specified items in the item preference list to the user according to the arrangement order of the items in the item preference list.
[0144] According to the embodiment of the present disclosure, the operations performed by the terminal 430 and the cloud server 440 correspond to the item recommendation method part in the embodiment of the present disclosure. The description of the operations performed by the terminal 430 and the cloud server 440 specifically refers to the item recommendation method part and will not be repeated here.
[0145] The cloud server 440 may also be used to receive EEG signals sent by an EEG monitoring device and ECG signals sent by a heart rate monitoring device.
[0146] According to the embodiment of the present disclosure, the cloud server 440 can process the EEG signals sent by the EEG monitoring device 410 and the ECG signals sent by the heart rate monitoring device 420 to obtain the emotion types corresponding to the EEG signals and the ECG signals, sort the items according to the emotion types, and send the sorted item preference list to the terminal 430, so that the terminal 430 can recommend other items to the user according to the item preference list.
[0147] According to an embodiment of the present disclosure, the cloud server 440 can also receive processed EEG signals and ECG signals, emotion types corresponding to the EEG signals and ECG signals, and a list of item preferences sorted by emotion types, sent by the terminal 430, and save this information so that the terminal 430 can obtain it at any time.
[0148] Figure 5 The block diagram of the article pushing device according to the embodiment of the present disclosure is schematically shown.
[0149] like Figure 5 As shown, the item recommendation system 500 includes an acquisition module 510 , a determination module 520 , a generation module 530 and a recommendation module 540 .
[0150] The acquisition module 510 is used to acquire the EEG signals and ECG signals generated when the user browses multiple items within a preset time period.
[0151] The determination module 520 is used to determine the emotion type corresponding to each object according to the EEG signal and the ECG signal corresponding to each object.
[0152] The generating module 530 is used to sort the multiple items according to the emotion type corresponding to each item to generate an item preference list.
[0153] The recommendation module 540 recommends other items associated with the designated items in the item favorite list to the user according to the arrangement order of the items in the item favorite list.
[0154] According to an embodiment of the present disclosure, the determination module 520 may include a feature extraction unit, a data fusion unit, an optimization processing unit, a recognition unit and a determination unit.
[0155] The feature extraction unit is used to perform M-dimensional feature extraction on the EEG signal and the ECG signal corresponding to each object, respectively, to obtain M-dimensional EEG feature data and M-dimensional heart rate feature data, where M is an integer greater than 1.
[0156] The data fusion unit is used to fuse the M-dimensional EEG feature data and the M-dimensional heart rate feature data to obtain fused feature data.
[0157] The optimization processing unit is used to optimize the complexity of the fused feature data to obtain optimized feature data.
[0158] The recognition unit is used to input the optimized feature data into the emotion recognition model so as to output the probability corresponding to each of the k emotion types through the emotion recognition model to obtain k probabilities, where k is an integer greater than 1.
[0159] The determination unit is used to determine the final emotion type corresponding to the optimized feature data according to k probabilities.
[0160] According to an embodiment of the present disclosure, the data fusion unit may include: a processing subunit, a first fusion subunit, a second fusion subunit and a third fusion subunit.
[0161] The processing subunit is used to normalize the M-dimensional EEG feature data and the M-dimensional heart rate feature data.
[0162] The first fusion subunit is used to perform a first data fusion according to the mean and variance of the normalized M-dimensional EEG feature data and the mean and variance of the normalized M-dimensional heart rate feature data to obtain feature data after the first data fusion.
[0163] The second fusion subunit is used to perform a second data fusion according to the standard deviation of the normalized M-dimensional EEG feature data and the standard deviation of the normalized M-dimensional heart rate feature data to obtain feature data after the second data fusion.
[0164] The third fusion subunit is used to perform a third data fusion according to the feature data after the first data fusion and the feature data after the second data fusion to obtain fused feature data.
[0165] According to an embodiment of the present disclosure, the k emotion types include negative emotion, calm emotion and excited emotion. The emotion recognition model includes a first emotion classification model, a second emotion classification model and a third emotion classification model, wherein: the input of the first emotion classification model is the optimized feature data, and the output of the first emotion classification model includes the probability of negative emotion and the probability of calm emotion; the input of the second emotion classification model is the optimized feature data, and the output of the second emotion classification model includes the probability of calm emotion and the probability of excited emotion; and the input of the third emotion classification model is the optimized feature data, and the output of the third emotion classification model includes the probability of negative emotion and the probability of excited emotion.
[0166] According to an embodiment of the present disclosure, the identification unit may include: a first identification subunit and a second identification subunit.
[0167] The first recognition subunit is used to input the optimized feature data into the first emotion classification model, the second emotion classification model and the third emotion classification model respectively, so as to output the first classification result, the second classification result and the third classification result through the first emotion classification model, the second emotion classification model and the third emotion classification.
[0168] The second recognition subunit is used to determine the output of the emotion recognition model according to the first classification result, the second classification result and the third classification result, wherein the output of the emotion recognition model includes the probability of negative emotion, the probability of calm emotion and the probability of excited emotion.
[0169] According to an embodiment of the present disclosure, the determination unit may include: a generation subunit, a calculation subunit and a determination subunit.
[0170] The generating subunit is used to generate an emotion recognition function according to k probabilities.
[0171] The calculation subunit is used to calculate the function value of negative emotion, the function value of calm emotion and the function value of excited emotion according to the emotion recognition function.
[0172] The determination subunit is used to determine the final emotion type corresponding to the optimized feature data according to the relationship between the function value of the negative emotion, the function value of the calm emotion and the function value of the excited emotion.
[0173] According to the disclosed embodiment, the M-dimensional EEG feature data include at least M of the following: mean, standard deviation, first-order difference mean square error, second-order difference mean square error, characteristic entropy, frequency band energy, and frequency band energy proportion of the EEG signal. The M-dimensional heart rate feature data include at least M of the following: mean, standard deviation, first-order difference mean square error, second-order difference mean square error, characteristic entropy, frequency band energy, and frequency band energy proportion of the ECG signal.
[0174] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0175] For example, any multiple of the acquisition module 510, the determination module 520, the generation module 530, and the recommendation module 540 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the acquisition module 510, the determination module 520, the generation module 530, and the recommendation module 540 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware or in a suitable combination of any of them. Alternatively, at least one of the acquisition module 510 , the determination module 520 , the generation module 530 , and the recommendation module 540 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.
[0176] It should be noted that the item recommendation device part in the embodiment of the present disclosure corresponds to the item recommendation method part in the embodiment of the present disclosure. The description of the item recommendation device part specifically refers to the item recommendation method part, which will not be repeated here.
[0177] Figure 6 A block diagram of a computer system suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Figure 6 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0178] like Figure 6 As shown, the computer system 600 according to the embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
[0179] In RAM 603, various programs and data required for the operation of system 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other through bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0180] According to an embodiment of the present disclosure, the system 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The system 600 may further include one or more of the following components connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0181] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0182] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0183] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0184] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or the RAM 603 described above and / or one or more memories other than the ROM 602 and the RAM 603 .
[0185] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments and / or claims of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0186] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. An item recommendation method, comprising: Acquire the EEG signals and ECG signals generated by the user when browsing multiple items within a preset time period; Determine the emotion type corresponding to each item according to the EEG signal and the ECG signal corresponding to each item, wherein the EEG signal and the ECG signal carry a timestamp; Sort the plurality of items according to the emotion type corresponding to each item to generate an item preference list; and recommending to the user other items associated with the designated item in the item favorite list according to the arrangement order of the items in the item favorite list; Wherein, determining the emotion type corresponding to each object according to the EEG signal and the ECG signal corresponding to each object includes: For the EEG signal and the ECG signal corresponding to each item, perform feature extraction of M dimensions on the EEG signal and the ECG signal respectively to obtain EEG feature data of M dimensions and heart rate feature data of M dimensions, where M is an integer greater than 1; Performing data fusion on the M-dimensional EEG feature data and the M-dimensional heart rate feature data to obtain fused feature data; Optimizing the complexity of the fused feature data to obtain optimized feature data; Inputting the optimized feature data into an emotion recognition model so that the emotion recognition model outputs a probability corresponding to each of k emotion types, thereby obtaining k probabilities, where k is an integer greater than 1; and According to the k probabilities, a final emotion type corresponding to the optimized feature data is determined.
2. The method according to claim 1, wherein: The data fusion of the M-dimensional EEG feature data and the M-dimensional heart rate feature data includes: Normalizing the M-dimensional EEG feature data and the M-dimensional heart rate feature data; Performing a first data fusion according to the mean and variance of the normalized M-dimensional EEG feature data and the mean and variance of the normalized M-dimensional heart rate feature data to obtain feature data after the first data fusion; Performing a second data fusion according to the standard deviation of the normalized M-dimensional EEG feature data and the standard deviation of the normalized M-dimensional heart rate feature data to obtain feature data after the second data fusion; and A third data fusion is performed based on the feature data after the first data fusion and the feature data after the second data fusion to obtain fused feature data.
3. The method according to claim 1, wherein: The k emotion types include negative emotion, calm emotion and excited emotion; The emotion recognition model includes a first emotion classification model, a second emotion classification model and a third emotion classification model, wherein: The input of the first emotion classification model is the optimized feature data, and the output of the first emotion classification model includes the probability of negative emotion and the probability of calm emotion; The input of the second emotion classification model is the optimized feature data, and the output of the second emotion classification model includes the probability of calm emotion and the probability of excited emotion; and The input of the third emotion classification model is the optimized feature data, and the output of the third emotion classification model includes the probability of negative emotion and the probability of excited emotion.
4. The method according to claim 3, wherein: The step of inputting the optimized feature data into the emotion recognition model so as to output the probability corresponding to each of the k emotion types through the emotion recognition model comprises: inputting the optimized feature data into the first emotion classification model, the second emotion classification model and the third emotion classification model respectively, so as to output a first classification result, a second classification result and a third classification result through the first emotion classification model, the second emotion classification model and the third emotion classification model; and The output of the emotion recognition model is determined according to the first classification result, the second classification result and the third classification result, wherein the output of the emotion recognition model includes the probability of negative emotion, the probability of calm emotion and the probability of excited emotion.
5. The method according to claim 4, wherein: Determining the final emotion type corresponding to the optimized feature data according to the k probabilities includes: Generate an emotion recognition function according to the k probabilities; Calculating a function value of negative emotion, a function value of calm emotion, and a function value of excited emotion according to the emotion recognition function; and According to the relationship between the function value of the negative emotion, the function value of the calm emotion and the function value of the excited emotion, a final emotion type corresponding to the optimized feature data is determined.
6. According to the method of claim 1, the M dimensions of the EEG feature data include at least M of the following: The mean, standard deviation, first-order difference mean square error, second-order difference mean square error, characteristic entropy, frequency band energy and frequency band energy proportion of the EEG signal; The heart rate characteristic data of M dimensions include at least M of the following: The mean, standard deviation, first-order difference mean square error, second-order difference mean square error, characteristic entropy, frequency band energy and frequency band energy ratio of the electrocardiogram signal.
7. An item recommendation system, comprising: EEG monitoring equipment, heart rate monitoring equipment, terminals and cloud servers; The EEG monitoring device is used to obtain EEG signals generated by the user in the process of browsing multiple items according to a preset sampling frequency; Preprocessing the EEG signal and then sending it to the terminal or the cloud server; The heart rate monitoring device is used to obtain the electrocardiogram signal generated by the user in the process of browsing multiple items according to the preset sampling frequency; and send the electrocardiogram signal to the terminal or the cloud server after pre-processing the electrocardiogram signal; The terminal is used for: Acquire the EEG signals and ECG signals generated by the user when browsing multiple items within a preset time period; Determine the emotion type corresponding to each item according to the EEG signal and the ECG signal corresponding to each item, wherein the EEG signal and the ECG signal carry a timestamp; Sending the emotion type corresponding to each item to the cloud server; The cloud server is used for: Sort the plurality of items according to the emotion type corresponding to each item to generate an item preference list; and recommending to the user other items associated with the designated item in the item favorite list according to the arrangement order of the items in the item favorite list; Wherein, determining the emotion type corresponding to each object according to the EEG signal and the ECG signal corresponding to each object includes: For the EEG signal and the ECG signal corresponding to each item, perform feature extraction of M dimensions on the EEG signal and the ECG signal respectively to obtain EEG feature data of M dimensions and heart rate feature data of M dimensions, where M is an integer greater than 1; Performing data fusion on the M-dimensional EEG feature data and the M-dimensional heart rate feature data to obtain fused feature data; Optimizing the complexity of the fused feature data to obtain optimized feature data; Inputting the optimized feature data into an emotion recognition model so that the emotion recognition model outputs a probability corresponding to each of k emotion types, thereby obtaining k probabilities, where k is an integer greater than 1; and According to the k probabilities, a final emotion type corresponding to the optimized feature data is determined.
8. An item recommendation device, comprising: An acquisition module, used to acquire EEG signals and ECG signals generated by a user in the process of browsing multiple items within a preset time period; A determination module, used to determine the emotion type corresponding to each object according to the EEG signal and the ECG signal corresponding to each object, wherein the EEG signal and the ECG signal carry a timestamp; a generating module, configured to sort the plurality of items according to the emotion type corresponding to each item, and generate an item preference list; and A recommendation module, configured to recommend other items associated with a specified item in the item favorite list to a user according to the arrangement order of the items in the item favorite list; Wherein, determining the emotion type corresponding to each object according to the EEG signal and the ECG signal corresponding to each object includes: For the EEG signal and the ECG signal corresponding to each item, perform feature extraction of M dimensions on the EEG signal and the ECG signal respectively to obtain EEG feature data of M dimensions and heart rate feature data of M dimensions, where M is an integer greater than 1; Performing data fusion on the M-dimensional EEG feature data and the M-dimensional heart rate feature data to obtain fused feature data; Optimizing the complexity of the fused feature data to obtain optimized feature data; Inputting the optimized feature data into an emotion recognition model so that the emotion recognition model outputs a probability corresponding to each of k emotion types, thereby obtaining k probabilities, where k is an integer greater than 1; and According to the k probabilities, a final emotion type corresponding to the optimized feature data is determined.
9. A computer system comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 6.
