Advertisement delivery method, device, equipment, and storage medium based on user emotions
By collecting user environmental data and physiological signals, combined with historical behavioral data, it predicts user emotions and dynamically adjusts advertising parameters, solving the problem of inaccurate emotion prediction in traditional advertising and improving the accuracy and personalization of advertising.
Patent Information
- Application Number
- CN202410030257.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-01-08
AI Technical Summary
Traditional user behavior analysis methods are affected by subjective factors in advertising, which limits the accuracy of advertising and makes it difficult to accurately predict user emotions.
By collecting user environmental data and physiological signals, we calculate environmental comfort and physiological characteristics, combine historical behavioral data, predict user emotional scores, and dynamically adjust advertising parameters to improve advertising accuracy.
It achieves accurate prediction of user emotions, improves the accuracy and personalization of advertising, and provides users with intelligent services.
Smart Images

Figure CN117829920B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data analysis, and specifically relates to a method and device, equipment, and storage medium for advertising based on user emotions. Background Art
[0002] On e-commerce platforms, the behavioral data generated by users browsing product pages and other methods can reflect their consumption habits and interests. Therefore, after analyzing and mining these behavioral data, adaptive advertising can provide users with more personalized services and recommendations, thereby improving shopping satisfaction and conversion rates.
[0003] However, traditional user behavior analysis methods mainly rely on behavioral data such as clicks and browsing left by users on the page, but these data may be affected by some subjective factors, such as users' personal preferences, psychological state, etc., which leads to a certain degree of limitation in the accuracy of advertising delivery. Summary of the invention
[0004] The purpose of the present invention is to provide a method and apparatus, device, and storage medium for advertising delivery based on user emotions, which can improve the accuracy of predicting user emotions and thus improve the accuracy of advertising delivery.
[0005] The first aspect of the present invention discloses an advertisement delivery method based on user emotions, comprising:
[0006] When a user is detected browsing a product, various environmental data of the user's environment and various physiological signals of the user are collected;
[0007] Calculate environmental comfort according to various environmental data, and obtain a prediction model corresponding to the environmental comfort;
[0008] Extracting features of various physiological signals respectively to obtain a variety of physiological feature information;
[0009] The target feature matrix is obtained by fusing multiple physiological feature information;
[0010] Inputting the target feature matrix into the prediction model to obtain the user's current emotion score;
[0011] Retrieving historical behavior data within a historical period specified by the user, and obtaining the user's ideal emotion score based on the historical behavior data;
[0012] Calculating an advertisement investment parameter according to the current emotion score and the ideal emotion score;
[0013] Advertisements are placed on the product page browsed by the user according to the advertisement placement parameters.
[0014] In some embodiments, the environmental comfort level is calculated based on a variety of environmental data, including:
[0015] Normalize various environmental data to obtain an environmental indicator matrix;
[0016] Controlling a preset time window to slide and sample in the environmental indicator matrix, and calculating a plurality of statistical characteristic values of sampling points in each sliding window;
[0017] Standardize multiple statistical characteristic values of sampling points in each sliding window to obtain mapping values of each statistical characteristic value;
[0018] Perform weighted summation on the mapping values corresponding to different statistical characteristic values in each sliding window to obtain the comprehensive index corresponding to each sliding window;
[0019] The environmental comfort level is calculated based on the comprehensive index of multiple sliding windows.
[0020] In some embodiments, the environmental comfort level is calculated based on the comprehensive index of multiple sliding windows, including:
[0021] According to the comprehensive index of each sliding window, the signal stability index of each sliding window is calculated;
[0022] Screening out a plurality of target windows whose signal stability index reaches a specified value;
[0023] The comprehensive indexes of multiple target windows are averaged to obtain the environmental comfort level.
[0024] In some embodiments, feature extraction is performed on various physiological signals to obtain a variety of physiological feature information, including:
[0025] Convert various physiological signals into binary variables, and scale the binary variables so that the standard deviations of various physiological signals are equal, to obtain a data matrix containing all physiological signals;
[0026] Calculating a candidate feature matrix according to the data matrix;
[0027] According to the order of importance of each feature in the candidate feature matrix, a specified number of features with greater importance are selected as principal components;
[0028] Feature extraction is performed on various physiological signals according to the principal components to obtain a variety of physiological feature information.
[0029] In some embodiments, a plurality of physiological characteristic information is fused to obtain a target characteristic matrix, including:
[0030] Perform quality assessment on various physiological signals to obtain quality scores of various physiological signals;
[0031] determining initial weights of various physiological signals according to the quality scores;
[0032] A plurality of physiological characteristic information is fused according to the initial weights to obtain a target characteristic matrix.
[0033] A second aspect of the present invention discloses an advertisement delivery device based on user emotions, comprising:
[0034] A collection unit, used to collect various environmental data of the user's environment and various physiological signals of the user when detecting that the user is browsing commodities;
[0035] A first calculation unit, used for calculating environmental comfort according to a variety of environmental data;
[0036] An acquisition unit, used for acquiring a prediction model corresponding to the environmental comfort level;
[0037] An extraction unit, used to extract features from various physiological signals respectively to obtain a variety of physiological feature information;
[0038] A fusion unit, used to fuse multiple physiological feature information to obtain a target feature matrix;
[0039] A prediction unit, used for inputting the target feature matrix into the prediction model to obtain the current emotion score of the user;
[0040] An analysis unit, used to retrieve historical behavior data within a historical period specified by the user, and obtain the user's ideal emotion score based on the historical behavior data;
[0041] A second calculation unit, configured to calculate an advertisement investment parameter according to the current emotion score and the ideal emotion score;
[0042] The delivery unit is used to deliver advertisements on the product page browsed by the user according to the advertisement delivery parameters.
[0043] In some embodiments, the first computing unit includes:
[0044] A normalization subunit is used to normalize various environmental data to obtain an environmental indicator matrix;
[0045] A sliding subunit, used for controlling a preset time window to slide and sample in the environmental indicator matrix, and calculating a plurality of statistical characteristic values of sampling points in each sliding window;
[0046] A standardization subunit is used to standardize multiple statistical characteristic values of sampling points in each sliding window to obtain mapping values of each statistical characteristic value;
[0047] A comprehensive subunit, used for weighted summing of mapping values corresponding to different statistical characteristic values in each sliding window to obtain a comprehensive index corresponding to each sliding window;
[0048] The comfort calculation subunit is used to calculate the environmental comfort according to the comprehensive index of multiple sliding windows.
[0049] In some embodiments, the extraction unit comprises:
[0050] A conversion subunit, used for converting various physiological signals into binary variables, and scaling the binary variables in proportion so that the standard deviations of various physiological signals are equal, thereby obtaining a data matrix containing all physiological signals;
[0051] A matrix calculation subunit, used for calculating a candidate feature matrix according to the data matrix;
[0052] A selection subunit is used to sort the features in the candidate feature matrix according to their importance, and select a specified number of features with greater importance as principal components;
[0053] The extraction subunit is used to extract features of various physiological signals according to the principal components to obtain a variety of physiological feature information.
[0054] The third aspect of the present invention discloses a terminal device, comprising a memory storing executable program code and a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the user emotion-based advertising delivery method disclosed in the first aspect.
[0055] A fourth aspect of the present invention discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute the method for delivering advertisements based on user emotions disclosed in the first aspect.
[0056] The beneficial effect of the present invention lies in that, when detecting that a user is browsing a product, a variety of environmental data of the user's environment and a variety of physiological signals of the user are collected, the environmental comfort is identified, and a corresponding prediction model is obtained, and features are extracted from the physiological signals, which are input into the above-mentioned prediction model to obtain the user's current emotion score; at the same time, the historical behavior data within the historical period specified by the user is retrieved, and the ideal emotion score of the user is obtained through analysis; according to the current emotion score and the ideal emotion score, advertising investment parameters are calculated, and finally, advertisements are delivered on the product page browsed by the user according to the advertising investment parameters; thereby, the environmental data of the user's environment and the physiological signals generated in the environment can be collected and features extracted, and combined with the application of the prediction model corresponding to the environmental comfort, accurate prediction of user emotions can be achieved, thereby improving the accuracy of advertising delivery, and providing users with more personalized and intelligent services. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings herein show specific examples of the technical solutions described in the present invention, and together with the specific implementation methods, constitute a part of the specification, and are used to explain the technical solutions, principles and effects of the present invention.
[0058] Unless otherwise specified or defined, the same reference numerals in different drawings represent the same or similar technical features, and the same or similar technical features may also be represented by different reference numerals.
[0059] Figure 1 It is a flow chart of a method for placing advertisements based on user emotions disclosed in the present invention;
[0060] Figure 2 It is a structural schematic diagram of a device for placing advertisements based on user emotions disclosed in the present invention;
[0061] Figure 3 It is a structural schematic diagram of a terminal device disclosed in the present invention.
[0062] Description of reference numerals:
[0063] 201, acquisition unit; 202, first calculation unit; 203, acquisition unit; 204, extraction unit; 205, fusion unit; 206, prediction unit; 207, analysis unit; 208, second calculation unit; 209, delivery unit; 301, memory; 302, processor. DETAILED DESCRIPTION
[0064] Unless otherwise specified or defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art. In the case of combining the technical solution of the present invention with realistic scenarios, all technical and scientific terms used herein may also have meanings corresponding to the purpose of implementing the technical solution of the present invention. The "first, second..." used herein is only used to distinguish the names and does not represent a specific quantity or order. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0065] It should be noted that when a component is considered to be "fixed to" another component, it can be directly fixed to the other component or there can be a central component; when an component is considered to be "connected to" another component, it can be directly connected to the other component or there can be a central component at the same time; when an component is considered to be "installed on" another component, it can be directly installed on the other component or there can be a central component at the same time. When an component is considered to be "set on" another component, it can be directly set on the other component or there can be a central component at the same time.
[0066] Unless otherwise specified or defined, the "said" and "the" used in this document refer to the technical features or technical contents mentioned or described before the corresponding position, and the technical features or technical contents may be the same as or similar to the technical features or technical contents mentioned therein. In addition, the terms "including" and "having" and any variations thereof used in this document are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0067] The embodiment of the present invention discloses a method for placing advertisements based on user emotions, which can be implemented by computer programming. The execution subject of the method can be a terminal device such as a computer, a laptop, a tablet computer, or an advertisement placing device based on user emotions embedded in the terminal device, and the present invention is not limited to this. In order to facilitate the understanding of the present invention, the specific embodiments of the present invention will be described in more detail below with reference to the drawings of the specification.
[0068] like Figure 1 As shown, the method includes the following steps 110 to 180:
[0069] 110. When it is detected that a user is browsing a product, various environmental data of the user's environment and various physiological signals of the user are collected.
[0070] In the application scenario of the present invention, the terminal device can be connected to a virtual reality (VR) device, and the user can watch the virtual application effect of the product by wearing the VR device. For example, when the user browses clothes, the VR device can generate a three-dimensional human body model of the user according to the user's physical parameters, and display the virtual effect of the clothes browsed by the user after wearing them based on the three-dimensional human body model. Based on this, when it is detected that the user is wearing a VR device to browse the goods, the VR device can be used to collect environmental data and the user's physiological signals.
[0071] Environmental data refers to the relevant physical quantity data in the environment, such as temperature, humidity, light intensity, air quality index, noise intensity, etc. These data can be collected through various sensors. For example, temperature sensors can be used to measure indoor or outdoor temperatures, humidity sensors can be used to detect the moisture content in the air, light intensity sensors can be installed to measure light intensity, air quality sensors can be used to detect air quality index, and noise sensors can be installed to detect the surrounding noise intensity. These sensors can be installed on VR devices or terminal devices. In terms of data processing, data can be cleaned, denoised, and preprocessed to ensure the quality and availability of the data, so as to ensure the accuracy and completeness of data collection.
[0072] Physiological signals may include but are not limited to EEG signals, eye movement signals, electromyographic signals and other signals. Among them, multi-channel electrodes may be provided on the VR device, for example, electrodes of multiple channels arranged at the top of the head (Cz), forehead (Fp1, Fp2), temporal (T7, T8) and other parts according to the 10-20 system, and the multi-channel electrodes are in full contact with the user's scalp, and the multi-channels independently detect the skin contact impedance of each brain position to form an EEG signal. It is best to ensure that the impedance values of all channels are below 5kΩ to meet the signal acquisition requirements. The signal frequency range is set to 0.5-100Hz, mainly collecting δ waves, θ waves, α waves, β waves and γ waves, and the sampling frequency is set to above 250Hz to meet the Nyquist sampling theorem. An eye movement recorder may also be provided on the VR device to capture the user's eye movement signals. A bipolar electromyographic sensor may also be provided on the VR device to collect electromyographic signals of facial expression muscles. For example, a pair of electrodes are arranged on each of the main expression muscles such as the anguli oris muscle and the zygomatic muscle for collection.
[0073] 120. Calculate environmental comfort based on a variety of environmental data and obtain a prediction model corresponding to the environmental comfort.
[0074] The environmental comfort level may be calculated based on a variety of environmental data such as temperature, humidity, light intensity, air quality index, noise intensity, oxygen content, carbon dioxide content, nitrogen oxide content, particle size distribution, wind speed, etc. The specific calculation method may include the following steps 1201 to 1203 not shown in the figure:
[0075] 1201. Normalize various environmental data to obtain an environmental indicator matrix.
[0076] Among them, the collection frequency of multiple environmental data is the same, so each type of environmental data includes n sample points. According to the sampling points of multiple environmental data, an environmental data matrix can be constructed. Each row in the environmental data matrix represents a different type of environmental data, and each column represents a sampling point at a different time. Then, the value of each sampling point in the environmental data matrix is converted into a unified numerical unit, for example, all mapped to the interval [0, 1] to form an environmental indicator matrix.
[0077] 1202. Control a preset time window to slide and sample in the environmental indicator matrix, and calculate multiple statistical characteristic values of the sampling points in each sliding window.
[0078] The size of the preset time window is set to cover a specified number of sampling points and a specified number of environmental data. For example, the size of the preset time window is set to 100×2, which means that the preset time window includes 100 sampling points of 2 types of environmental data at the same time. In addition, the preset time window is also set with a first step length and a second step length, wherein the first step length is used to control the preset time window to slide in the row direction to intercept sampling points at different times, and the second step length is used to control the preset time window to slide in the column direction to intercept different types of environmental data combinations. The values of the first step length and the second step length can be set to be the same or different. The sliding window refers to the window after the preset time window slides with a certain step length.
[0079] By setting two step sizes to sample multiple sampling points and multiple environmental data respectively, we can consider the statistical changes of environmental data at different times, as well as the statistical changes of different types of environmental data combinations. We can obtain statistical characteristics that better express the signal, so as to better describe the distribution of environmental data and the overall trend of comfort.
[0080] 1203. Standardize multiple statistical characteristic values of sampling points in each sliding window to obtain mapping values of each statistical characteristic value.
[0081] Among them, multiple statistical characteristic values can be mean values, medians, standard deviations, etc. Since the dimensions of different statistical characteristic values may be different and their amplitude ranges are different, they need to be standardized. After standardization, all statistical characteristic values can be mapped to a unified standard, which can effectively eliminate the impact of different dimensions on environmental comfort and make the calculation results more accurate.
[0082] 1204. Perform weighted summation on the mapping values corresponding to different statistical characteristic values in each sliding window to obtain a comprehensive index corresponding to each sliding window.
[0083] For each statistical characteristic value, its mapping value is multiplied by the corresponding weight, and then these products are added together to obtain the total score, which can be regarded as the comprehensive index corresponding to the sliding window. The weights of different statistical characteristic values can be set according to the relevant standards and empirical data of the country or region. For example, the weight of the average value can be set to 0.3, the weight of the median can be set to 0.5, the weight of the standard deviation can be set to 0.2, etc.
[0084] 1205. Calculate and obtain the environmental comfort level according to the comprehensive index of multiple sliding windows.
[0085] In this step, the multiple sliding windows may include all sliding windows or some sliding windows. Specifically, the comprehensive indexes of all sliding windows may be averaged to obtain the environmental comfort. Alternatively, all sliding windows may be screened to screen out some sliding windows, and the comprehensive indexes of some sliding windows may be averaged to obtain the environmental comfort. For example, based on the comprehensive index of each sliding window, the signal stability index of each sliding window is calculated, and multiple target windows whose signal stability index reaches a specified value are screened, and then the comprehensive indexes of these multiple target windows are averaged to obtain the environmental comfort. In this way, the window signal can be screened by considering the signal stability, which can improve the calculation accuracy of the environmental comfort.
[0086] After calculating the environmental comfort level, the comfort level of the environmental comfort level can be found according to the pre-defined comfort level and the corresponding empirical threshold. For example, the comfort level corresponding to the environmental comfort level in the range of [10, 20) is level one; the comfort level corresponding to the environmental comfort level in the range of [20, 40) is level two; the comfort level corresponding to the environmental comfort level in the range of [40, 60) is level three; the comfort level corresponding to the environmental comfort level in the range of [60, 80) is level four; the comfort level corresponding to the environmental comfort level in the range of [40, 60) is level three; the comfort level corresponding to the environmental comfort level in the range of [60, 80) is level four; the comfort level corresponding to the environmental comfort level in the range of [80, 100) is level five.
[0087] In the present invention, different model parameters can be matched for different comfort levels, and different prediction models can be obtained by training based on different model parameters. Therefore, after the comfort level is calculated, the corresponding prediction model can be called for subsequent emotion prediction based on the user's physiological signals. The prediction model includes but is not limited to training using a machine learning model, a deep learning model, a transfer learning model, or a meta-learning model.
[0088] Among them, machine learning models mainly include linear regression, support vector machine, decision tree, random forest, neural network, etc. Their basic idea is to find an optimal prediction model through training of historical data, and then predict new data. Deep learning models mainly include convolutional neural networks (CNN), recurrent neural networks (RNN), long short-term memory networks (LSTM), graph convolution neural networks (GCNNs), transformers, etc. Their main advantage is that they can automatically learn complex patterns in data and have strong nonlinear fitting ability. Transfer learning models mainly realize learning of new tasks by transferring pre-trained models. For example, in sentiment analysis tasks, pre-trained language models on large-scale corpora can be used to classify sentiment of new texts. Meta-learning models mainly learn how to adapt to new tasks and fields. For example, in transfer learning, meta-learning models can be used to automatically search for suitable model structures to achieve rapid adaptation to new tasks.
[0089] It is understandable that people may have different emotions in different environments. For example, when people are in a sunny and beautiful natural environment, they will feel happy and relaxed; on the contrary, when they are in a rainy and polluted urban environment, they will feel tired and depressed. Therefore, by appropriately selecting a prediction model that matches the current environment, the impact of the environment on emotion prediction can be reduced.
[0090] 130. Feature extraction is performed on various physiological signals to obtain a variety of physiological feature information.
[0091] For the user's physiological characteristics information, effective feature extraction and dimensionality reduction are required to better input into the prediction model. Features can be extracted using techniques such as principal component analysis (PCA) and linear discriminant analysis (LDA).
[0092] Exemplarily, step 130 may include the following steps 1301 to 1304, which are not shown in the figure:
[0093] 1301. Convert various physiological signals into binary variables, and scale the binary variables proportionally so that the standard deviations of various physiological signals are equal, to obtain a data matrix containing all physiological signals.
[0094] Converting it to a binary variable usually converts the value to 0 and 1, which can simplify the problem and scale the data of all physiological signals so that their standard deviations are equal, which can make the various features have a strong correlation and facilitate subsequent dimensionality reduction. Among them, the elements in the data matrix are the scaled values of each binary variable, each row in the matrix represents a different type of physiological signal, and each column represents a different feature variable.
[0095] 1302. Calculate a candidate feature matrix based on the data matrix.
[0096] Specifically, by calculating the autocorrelation coefficients between different features of various physiological signals, a candidate feature matrix is constructed, which describes the correlation between different features. Calculating the autocorrelation coefficients between physiological signals usually requires Fourier transforming the signals first. Exemplarily, step 1302 may include the following steps S11 to S14, which are not shown in the figure:
[0097] S11. Perform Fourier transform on various physiological signals in the data matrix to obtain frequency domain signals of various physiological signals.
[0098] Among them, the signal is converted from the time domain to the frequency domain through Fourier transform, and the Fourier transform can be a fast Fourier transform or a short-time Fourier transform. The fast Fourier transform can quickly convert the signal from the time domain to the frequency domain, while the short-time Fourier transform can perform frequency analysis while retaining the time local structure of the signal.
[0099] S12. Extracting characteristic vectors of various physiological signals according to the frequency domain signals of various physiological signals.
[0100] In the frequency domain, the autocorrelation coefficient is used to measure the similarity between two adjacent features. In order to extract accurate feature vectors from frequency domain signals, it is necessary to ensure that the frequency point interval in the frequency domain signal after Fourier transformation is fixed. For example, if the time step of the original physiological signal is T, then in the frequency domain, the frequency interval between two adjacent points should be Δf = 1 / N*T, where N is the number of signal points.
[0101] S13. Calculate the autocorrelation coefficient between each feature in the feature vectors of various physiological signals and its two adjacent features, and calculate the average autocorrelation coefficient of all features in the feature vectors.
[0102] For each feature, find the two adjacent features and calculate their autocorrelation coefficients in the frequency domain according to their corresponding eigenvalues. After traversing each feature in the feature vector, take the average of its autocorrelation coefficients to obtain the average autocorrelation coefficient of the physiological signal in the frequency domain.
[0103] S14. Generate a candidate feature matrix according to the average autocorrelation coefficients corresponding to various physiological signals.
[0104] 1303. According to the importance of each feature in the candidate feature matrix, select the first specified number of features with greater importance as the principal components.
[0105] 1304. Extract features of various physiological signals according to the principal components to obtain a variety of physiological feature information.
[0106] Among them, the principal component represents the main information of the original physiological signal, and the various physiological characteristic information corresponds to the various physiological signals one by one. By implementing steps 1301 to 1304, representative features can be extracted from the original multiple physiological signals, reducing the dimension of the data and improving the reliability, accuracy and interpretability of the prediction results.
[0107] 140. Multiple physiological feature information is integrated to obtain the target feature matrix.
[0108] Exemplarily, step 140 may include the following steps 1401 to 1403, which are not shown in the figure:
[0109] 1401. Perform quality assessment on various physiological signals to obtain quality scores of various physiological signals.
[0110] 1402. Determine initial weights of various physiological signals according to the quality scores.
[0111] Among them, the initial weight is positively correlated with the quality score, that is, the higher the quality score of the physiological signal, the greater the initial weight assigned to it, and the greater its influence on the calculation result.
[0112] 1403. A plurality of physiological characteristic information is fused according to initial weights to obtain a target characteristic matrix.
[0113] Among them, the multiple physiological characteristic information can be directly weighted and fused according to the initial weights to obtain the target characteristic matrix. Alternatively, the initial weights can be further adjusted to obtain the target weights, and then the multiple physiological characteristic information can be weighted and fused according to the target weights to obtain the target characteristic matrix. Exemplarily, step 1403 includes the following steps S21 to S23, which are not shown in the figure:
[0114] S21. Calculate the distance matrix based on the data matrix.
[0115] The distance matrix is used to describe the relative positions between various physiological signals, and the distance matrix can be calculated using distance metrics such as Euclidean distance and Mahalanobis distance.
[0116] S22. Adjust the initial weights of various physiological signals according to the distance matrix to obtain target weights of various physiological signals.
[0117] S23. Perform weighted fusion on multiple physiological feature information according to target weights to obtain a target feature matrix.
[0118] 150. Input the target feature matrix into the prediction model to obtain the user's current emotion score.
[0119] The prediction model can be constructed based on machine learning algorithms such as neural networks and support vector machines, and the prediction accuracy can be improved through training and optimization. In the training process of the prediction model, as much sample data with emotion tags as possible should be collected and labeled, and the constructed initial model should be trained with sample data as input and emotion tags as labels to ensure that the training and validation data sets of the model are sufficiently diverse and representative.
[0120] 160. Retrieve historical behavior data within a historical period specified by the user, and obtain the user's ideal emotion score based on analysis of the historical behavior data.
[0121] Among them, historical behavior data includes browsing time before collection, retention time after adding to the shopping cart, speed and frequency of order submission, after-sales records, etc., among which historical behavior data can be retrieved from the database based on the current user login account, and the specified historical period can be the past year, month or week, etc. After retrieving the historical behavior data, the historical behavior data can be preprocessed, including removing duplicates, filling missing values, normalizing data, etc., to ensure the quality and comparability of the data. After preprocessing the historical behavior data, it can be further identified and classified to identify the user's behavior habits, and then based on the preset emotional dictionary query, the ideal emotion score corresponding to the user's behavior habits can be obtained. By inferring and estimating user behavior habits through user behavior data, and then identifying the user's ideal emotions as the emotional judgment standard, the user's emotions can be measured more accurately.
[0122] 170. Calculate advertising investment parameters based on the current emotion score and the ideal emotion score.
[0123] The advertising investment parameters can be dynamically adjusted and balanced according to the user's ideal emotion score and current emotion score to achieve the most optimized advertising delivery effect.
[0124] Exemplarily, step 170 may include the following steps 1701 to 1703, which are not shown in the figure:
[0125] 1701. Determine a target emotion score based on the current emotion score.
[0126] In this step, the current emotion score can be directly used as the target emotion score, or a query window can be popped up to display the current emotion score and query information in the query window. The query information is used to inquire about the user's current emotion score, such as outputting several options, namely 4 points, 6 points, 7 points, 8 points, and 10 points, where 10 points is the full score, and if the emotion score fed back by the user is received within the preset time after the query information is output, the predicted current emotion score is corrected according to the emotion score to obtain the target emotion score. Through real-time human-computer interaction, the current emotion score can be corrected according to the user's feelings or reactions to the comfort of different environments, thereby improving the calculation accuracy. At the same time, the interaction and feedback mechanism can improve the user experience and participation, thereby improving user stickiness.
[0127] 1702. Calculate an error term based on the target emotion score and the ideal emotion score.
[0128] The error term is used to characterize the gap between the target emotion score and the ideal emotion score, for example, to calculate the similarity between the two, or to calculate the difference between the two. The value range of the target emotion score and the ideal emotion score can be set to [0, 100].
[0129] 1703. Calculate the advertising investment parameters based on the error term.
[0130] Among them, the user's interest index for the currently browsed product can be calculated based on the error term. When the interest index reaches the preset index, the first category code corresponding to the currently browsed product and the second category code of the product whose similarity with the currently browsed product is higher than the specified similarity are obtained; the first category code and the second category code are used as advertising investment parameters.
[0131] 180. Place advertisements on the product pages browsed by users according to the advertisement investment parameters.
[0132] Specifically, the recommended products corresponding to the first category code and the second category code can be output on the user recommendation interface. In this way, the relevant products that the user is interested in can be predicted based on the user's emotions, and can be recommended to the user in a targeted manner, thereby playing the role of precise advertising. After the advertisement is placed, it is also necessary to continuously track and analyze the advertising effect, identify problems in a timely manner, and make adjustments. This may include adjusting the advertising content, delivery frequency, delivery time, etc. to optimize the advertising performance.
[0133] In summary, by implementing the embodiments of the present invention, the environmental data of the user's environment and the physiological signals generated in the environment can be collected and features can be extracted. Combined with the application of the prediction model corresponding to the environmental comfort, accurate prediction of the user's emotions can be achieved, thereby improving the accuracy of advertising delivery and providing users with more personalized and intelligent services. That is, the implementation methods of the present invention not only provide users with more accurate emotion predictions, but also can effectively utilize the user's historical behavior data to provide users with more personalized and intelligent services, which has high practical value and commercial prospects.
[0134] like Figure 2 As shown, the embodiment of the present invention discloses an advertisement delivery device based on user emotions, including a collection unit 201, a first calculation unit 202, an acquisition unit 203, an extraction unit 204, a fusion unit 205, a prediction unit 206, an analysis unit 207, a second calculation unit 208, and a delivery unit 209, wherein:
[0135] The collection unit 201 is used to collect various environmental data of the user's environment and various physiological signals of the user when detecting that the user is browsing commodities;
[0136] A first calculation unit 202, used to calculate environmental comfort according to a variety of environmental data;
[0137] An acquisition unit 203 is used to acquire a prediction model corresponding to the environmental comfort level;
[0138] An extraction unit 204 is used to extract features from various physiological signals to obtain a variety of physiological feature information;
[0139] A fusion unit 205 is used to fuse multiple physiological characteristic information to obtain a target characteristic matrix;
[0140] Prediction unit 206, used to input the target feature matrix into the prediction model to obtain the user's current emotion score;
[0141] An analysis unit 207 is used to retrieve historical behavior data within a historical period specified by the user, and obtain the user's ideal emotion score based on the historical behavior data analysis;
[0142] The second calculation unit 208 is used to calculate the advertising investment parameter according to the current emotion score and the ideal emotion score;
[0143] The delivery unit 209 is used to deliver advertisements on the product page browsed by the user according to the advertisement delivery parameters.
[0144] In some embodiments, the first computing unit 202 includes the following sub-units (not shown):
[0145] A normalization subunit is used to normalize various environmental data to obtain an environmental indicator matrix;
[0146] A sliding subunit is used to control the sliding sampling of a preset time window in the environmental indicator matrix and calculate multiple statistical characteristic values of the sampling points in each sliding window;
[0147] A standardization subunit is used to standardize multiple statistical characteristic values of sampling points in each sliding window to obtain mapping values of each statistical characteristic value;
[0148] A comprehensive subunit, used for weighted summing of mapping values corresponding to different statistical characteristic values in each sliding window to obtain a comprehensive index corresponding to each sliding window;
[0149] The comfort calculation subunit is used to calculate the environmental comfort according to the comprehensive index of multiple sliding windows.
[0150] In some embodiments, the extraction unit 204 includes the following sub-units (not shown):
[0151] A conversion subunit, used for converting various physiological signals into binary variables, and scaling the binary variables in proportion so that the standard deviations of various physiological signals are equal, thereby obtaining a data matrix containing all physiological signals;
[0152] A matrix calculation subunit, used for calculating a candidate feature matrix according to a data matrix;
[0153] The selection subunit is used to sort the importance of each feature in the candidate feature matrix and select the features with the largest importance as the principal components.
[0154] The extraction subunit is used to extract features of various physiological signals according to the principal components to obtain a variety of physiological feature information.
[0155] In some embodiments, the fusion unit 205 includes the following subunits (not shown):
[0156] An evaluation subunit, used for performing quality evaluation on various physiological signals to obtain quality scores of various physiological signals;
[0157] A determination subunit, for determining initial weights of various physiological signals according to the quality scores;
[0158] The fusion subunit is used to fuse multiple physiological feature information according to the initial weights to obtain a target feature matrix.
[0159] like Figure 3 As shown, an embodiment of the present invention discloses a terminal device, including a memory 301 storing executable program code and a processor 302 coupled to the memory 301;
[0160] The processor 302 calls the executable program code stored in the memory 301 to execute the advertisement delivery method based on user emotions described in the above embodiments.
[0161] An embodiment of the present invention further discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the advertisement delivery method based on user emotions described in the above embodiments.
[0162] The purpose of the above embodiments is to exemplarily reproduce and deduce the technical solution of the present invention, and to fully describe the technical solution, purpose and effect of the present invention. Its purpose is to make the public understand the disclosed content of the present invention more thoroughly and comprehensively, and it does not limit the scope of protection of the present invention.
[0163] The above embodiments are not exhaustive enumerations of the present invention, and there may be multiple other implementations not listed. Any replacement and improvement made without violating the concept of the present invention shall fall within the protection scope of the present invention.
Claims
1. A method for delivering advertisements based on user emotions, characterized in that: include: When a user is detected browsing a product, various environmental data of the user's environment and various physiological signals of the user are collected; Calculate environmental comfort according to various environmental data, and obtain a prediction model corresponding to the environmental comfort; Extracting features of various physiological signals respectively to obtain a variety of physiological feature information; The target feature matrix is obtained by fusing multiple physiological feature information; Inputting the target feature matrix into the prediction model to obtain the user's current emotion score; Retrieving historical behavior data within a historical period specified by the user, and obtaining the user's ideal emotion score based on the historical behavior data; Calculating an advertisement investment parameter according to the current emotion score and the ideal emotion score; Place advertisements on product pages browsed by users according to the advertisement investment parameters; Among them, the environmental comfort is calculated based on a variety of environmental data, including: Normalize various environmental data to obtain an environmental indicator matrix; Controlling a preset time window to slide and sample in the environmental indicator matrix, and calculating a plurality of statistical characteristic values of sampling points in each sliding window; Standardize multiple statistical characteristic values of sampling points in each sliding window to obtain mapping values of each statistical characteristic value; Perform weighted summation on the mapping values corresponding to different statistical characteristic values in each sliding window to obtain the comprehensive index corresponding to each sliding window; The environmental comfort level is calculated based on the comprehensive index of multiple sliding windows.
2. The method for placing advertisements based on user emotions according to claim 1, characterized in that: The environmental comfort is calculated based on the comprehensive index of multiple sliding windows, including: According to the comprehensive index of each sliding window, the signal stability index of each sliding window is calculated; Screening out a plurality of target windows whose signal stability index reaches a specified value; The comprehensive indexes of multiple target windows are averaged to obtain the environmental comfort level.
3. The method for placing advertisements based on user emotions according to claim 1 or 2, characterized in that: Feature extraction is performed on each of the physiological signals to obtain a variety of physiological feature information, including: Convert various physiological signals into binary variables, and scale the binary variables so that the standard deviations of various physiological signals are equal, to obtain a data matrix containing all physiological signals; Calculating a candidate feature matrix according to the data matrix; According to the order of importance of each feature in the candidate feature matrix, a specified number of features ranked in descending order of importance are selected as principal components; Feature extraction is performed on various physiological signals according to the principal components to obtain a variety of physiological feature information.
4. The method for placing advertisements based on user emotions according to claim 1 or 2, characterized in that: The target feature matrix is obtained by fusing multiple physiological feature information, including: Perform quality assessment on various physiological signals to obtain quality scores of various physiological signals; determining initial weights of various physiological signals according to the quality scores; A plurality of physiological characteristic information is fused according to the initial weights to obtain a target characteristic matrix.
5. An advertising device based on user emotions, characterized in that: include: A collection unit, used to collect various environmental data of the user's environment and various physiological signals of the user when detecting that the user is browsing commodities; A first calculation unit, used for calculating environmental comfort according to a variety of environmental data; An acquisition unit, used for acquiring a prediction model corresponding to the environmental comfort level; An extraction unit, used to extract features from various physiological signals respectively to obtain a variety of physiological feature information; A fusion unit, used to fuse multiple physiological feature information to obtain a target feature matrix; A prediction unit, used for inputting the target feature matrix into the prediction model to obtain the current emotion score of the user; An analysis unit, used to retrieve historical behavior data within a historical period specified by the user, and obtain the user's ideal emotion score based on the historical behavior data; A second calculation unit, configured to calculate an advertisement investment parameter according to the current emotion score and the ideal emotion score; A delivery unit, used for delivering advertisements on the product page browsed by the user according to the advertisement delivery parameters; Wherein, the first calculation unit includes: A normalization subunit is used to normalize various environmental data to obtain an environmental indicator matrix; A sliding subunit, used for controlling a preset time window to slide and sample in the environmental indicator matrix, and calculating a plurality of statistical characteristic values of sampling points in each sliding window; A standardization subunit is used to standardize multiple statistical characteristic values of sampling points in each sliding window to obtain mapping values of each statistical characteristic value; A comprehensive subunit, used for weighted summing of mapping values corresponding to different statistical characteristic values in each sliding window to obtain a comprehensive index corresponding to each sliding window; The comfort calculation subunit is used to calculate the environmental comfort according to the comprehensive index of multiple sliding windows.
6. The device for placing advertisements based on user emotions as claimed in claim 5, characterized in that: The extraction unit comprises: A conversion subunit, used for converting various physiological signals into binary variables, and scaling the binary variables in proportion so that the standard deviations of various physiological signals are equal, thereby obtaining a data matrix containing all physiological signals; A matrix calculation subunit, used for calculating a candidate feature matrix according to the data matrix; A selection subunit is used to sort the features in the candidate feature matrix from large to small according to their importance, and select the first specified number of features sorted from large to small in importance as principal components; The extraction subunit is used to extract features of various physiological signals according to the principal components to obtain a variety of physiological feature information.
7. A terminal device, characterized in that: It comprises a memory storing executable program code and a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the user emotion-based advertising delivery method according to any one of claims 1 to 4.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute the method for delivering advertisements based on user emotions as described in any one of claims 1 to 4.
