WO2021233259A1 - Method for evaluating female emotion and related apparatus, and device - Google Patents
Method for evaluating female emotion and related apparatus, and device Download PDFInfo
- Publication number
- WO2021233259A1 WO2021233259A1 PCT/CN2021/094165 CN2021094165W WO2021233259A1 WO 2021233259 A1 WO2021233259 A1 WO 2021233259A1 CN 2021094165 W CN2021094165 W CN 2021094165W WO 2021233259 A1 WO2021233259 A1 WO 2021233259A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- time point
- data
- user
- evaluated
- evaluation result
- Prior art date
Links
- 230000008451 emotion Effects 0.000 title claims abstract description 246
- 238000000034 method Methods 0.000 title claims abstract description 91
- 238000011156 evaluation Methods 0.000 claims abstract description 169
- 238000005070 sampling Methods 0.000 claims abstract description 77
- 238000013528 artificial neural network Methods 0.000 claims description 59
- 238000004891 communication Methods 0.000 claims description 40
- 230000015654 memory Effects 0.000 claims description 39
- 238000013527 convolutional neural network Methods 0.000 claims description 38
- 239000011159 matrix material Substances 0.000 claims description 36
- 230000027758 ovulation cycle Effects 0.000 claims description 31
- 238000012545 processing Methods 0.000 claims description 31
- 238000012549 training Methods 0.000 claims description 30
- 206010027940 Mood altered Diseases 0.000 claims description 19
- 230000007510 mood change Effects 0.000 claims description 19
- 230000002996 emotional effect Effects 0.000 claims description 18
- 230000008859 change Effects 0.000 claims description 16
- 125000004122 cyclic group Chemical group 0.000 claims description 8
- 230000016087 ovulation Effects 0.000 claims description 8
- 230000003821 menstrual periods Effects 0.000 claims description 7
- 230000005906 menstruation Effects 0.000 claims description 3
- 238000013473 artificial intelligence Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 33
- 238000011176 pooling Methods 0.000 description 31
- 238000010586 diagram Methods 0.000 description 28
- 238000007726 management method Methods 0.000 description 17
- 230000004913 activation Effects 0.000 description 11
- 210000000988 bone and bone Anatomy 0.000 description 11
- 238000010295 mobile communication Methods 0.000 description 11
- 230000007613 environmental effect Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 230000000306 recurrent effect Effects 0.000 description 10
- 230000005236 sound signal Effects 0.000 description 10
- 230000014509 gene expression Effects 0.000 description 8
- 238000013480 data collection Methods 0.000 description 6
- 230000029058 respiratory gaseous exchange Effects 0.000 description 6
- 230000001133 acceleration Effects 0.000 description 5
- 210000004027 cell Anatomy 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 239000000284 extract Substances 0.000 description 5
- 230000006403 short-term memory Effects 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 230000036760 body temperature Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000012546 transfer Methods 0.000 description 4
- 230000008081 blood perfusion Effects 0.000 description 3
- 230000036772 blood pressure Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 230000008909 emotion recognition Effects 0.000 description 3
- 230000007787 long-term memory Effects 0.000 description 3
- 230000029849 luteinization Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 238000010009 beating Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000013145 classification model Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000006894 menstrual cycle phase Effects 0.000 description 2
- 230000002175 menstrual effect Effects 0.000 description 2
- 238000003062 neural network model Methods 0.000 description 2
- 210000002569 neuron Anatomy 0.000 description 2
- 238000013186 photoplethysmography Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000003416 augmentation Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000010985 leather Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000006996 mental state Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000036651 mood Effects 0.000 description 1
- 230000011599 ovarian follicle development Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000036387 respiratory rate Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
- A61B5/0205—Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
- A61B5/0205—Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
- A61B5/02055—Simultaneously evaluating both cardiovascular condition and temperature
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
- A61B5/024—Detecting, measuring or recording pulse rate or heart rate
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
- A61B5/024—Detecting, measuring or recording pulse rate or heart rate
- A61B5/02405—Determining heart rate variability
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
- A61B5/024—Detecting, measuring or recording pulse rate or heart rate
- A61B5/02438—Detecting, measuring or recording pulse rate or heart rate with portable devices, e.g. worn by the patient
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
- A61B5/026—Measuring blood flow
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/05—Detecting, measuring or recording for diagnosis by means of electric currents or magnetic fields; Measuring using microwaves or radio waves
- A61B5/053—Measuring electrical impedance or conductance of a portion of the body
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/08—Detecting, measuring or recording devices for evaluating the respiratory organs
- A61B5/0816—Measuring devices for examining respiratory frequency
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/103—Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
- A61B5/11—Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/103—Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
- A61B5/11—Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
- A61B5/1118—Determining activity level
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/16—Devices for psychotechnics; Testing reaction times ; Devices for evaluating the psychological state
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/16—Devices for psychotechnics; Testing reaction times ; Devices for evaluating the psychological state
- A61B5/165—Evaluating the state of mind, e.g. depression, anxiety
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/68—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
- A61B5/6801—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
- A61B5/6802—Sensor mounted on worn items
- A61B5/6803—Head-worn items, e.g. helmets, masks, headphones or goggles
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/68—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
- A61B5/6801—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
- A61B5/6802—Sensor mounted on worn items
- A61B5/681—Wristwatch-type devices
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
- A61B5/7264—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
- A61B5/7264—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
- A61B5/7267—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems involving training the classification device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
Definitions
- This application relates to the field of artificial intelligence technology, and in particular to a method and related devices and equipment for evaluating female emotions.
- Emotions can reflect a person's mental state, and emotion recognition is used to study the relationship between the human body's signal characteristics and emotions.
- the emotion recognition method judges the user's emotion by obtaining the user's specific signal characteristics.
- related emotion management methods can be pushed to users, so that users can improve their ability to manage emotions and better cope with study, work and life.
- wearable devices are mainly used to collect physiological data related to emotions in the human body, such as body temperature, heartbeat, and respiration rate.
- the existing emotion recognition is mainly based on the physiological parameters of a time point to evaluate the emotion corresponding to the time point.
- emotions are continuous, and the emotions at each point in time are changed on the basis of the historical emotions before that point in time; secondly, for women, in different stages of the menstrual cycle, emotional changes and physiological data
- the relevance is different, and it is inevitable that the result of emotional evaluation obtained from physiological data at a time point is not high. Therefore, how to improve the accuracy of evaluating women's emotions so that women can obtain more accurate emotional conditions and better manage their emotions is a technical problem that needs to be solved urgently.
- the embodiments of the present application provide a method for evaluating female emotions and related devices and equipment.
- the method for evaluating female emotions is aimed at the characteristics of women and takes into account the factor of changes in the correlation between female emotional changes and physiological data at different physiological stages. , By evaluating the physiological data in a menstrual cycle before the time point, the user’s emotions at the evaluation time point are evaluated, which can improve the accuracy of evaluating women’s emotions.
- an embodiment of the present application provides a method for evaluating female emotions, including:
- the execution device acquires the user's M data to be evaluated.
- the M data to be evaluated include the physiological data of M sampling points sampled from time tT to time t.
- the M data to be evaluated are arranged in chronological order, M
- the evaluation result corresponding to the time point t is used to indicate the probability that the user's emotion at the time point t is each of the N emotion types.
- the first model is obtained through multiple sample training Deep neural network, the input data of each sample in multiple samples includes the physiological data of M'sampling points sampled from time point t'-T' to time point t', and the label of each sample is at time point t
- physiological data may include heart rate, respiration rate, heart rate variability, blood perfusion, body temperature, exercise volume, blood perfusion, bioelectrical impedance, and the like.
- the first model may be a convolutional neural network or a recurrent neural network, and M'should be greater than or equal to M.
- the execution device can be a terminal device, such as a mobile phone, a tablet computer, a desktop computer, a portable notebook, AR/VR, etc., or a server or cloud.
- a terminal device such as a mobile phone, a tablet computer, a desktop computer, a portable notebook, AR/VR, etc., or a server or cloud.
- the embodiment of the present application combines the characteristics of the female's entire menstrual cycle to obtain the user’s information in a menstrual cycle before the time point.
- Physiological data to evaluate the user’s emotions at that point in time In the second aspect, emotions are continuous in time, and the user’s emotions at that time point are evaluated only through physiological data at one point in time, ignoring the influence of historical emotions on the current emotions.
- the embodiment of the present application obtains the time point before The physiological data of a menstrual cycle is used to evaluate the emotion at that time point, and the influence of historical physiological data on the emotion at that time point is added.
- implementing the application examples can improve the accuracy of evaluating women's emotions.
- the data to be evaluated may also include the user's psychological characteristic score, the type of place the user is located in, the user's basic information, the user's physiological cycle characteristics, the user's environmental information, and so on.
- the psychological feature score includes the user's neuroticism score, conscientiousness score, easygoing score, etc.
- the user's basic information includes the user's age, gender, weight, etc.
- the user's menstrual cycle characteristics include the user's menstrual cycle stage and menstrual cycle duration , The length of time from the day of ovulation and the length of time from the menstrual period
- the user's environmental information may include information such as the light intensity of the user's environment.
- the data to be evaluated combines the user's psychological feature score, physiological cycle characteristics, environmental information, basic information and other parameters on the basis of physiological data to improve the accuracy of evaluating the user's emotions.
- the first model is a cyclic neural network
- the first model includes M grid units
- inputting M pieces of data to be evaluated into the first model includes: inputting the i-th of the M pieces of data to be evaluated
- the data to be evaluated and the output data of the i-1th network unit are input to the i-th network unit of the M network units, where i is an integer greater than or equal to 2 and less than or equal to M.
- the first model is a convolutional neural network
- M pieces of data to be evaluated form a data matrix
- the data matrix includes M rows
- the data in the jth row is the jth of the M pieces of data to be evaluated
- j is an integer greater than or equal to 1 and less than or equal to M.
- the first model includes a first sub-model and a second sub-model, and M pieces of to-be-evaluated data are input to the first model to obtain the evaluation result corresponding to the time point t, including:
- the first evaluation result is used to indicate the probability that the user’s emotion at time t is each of the P emotion types
- the model is a deep neural network trained by samples labeled with P emotion types in multiple samples; M pieces of data to be evaluated are input into the second sub-model to obtain the second evaluation result, which is used to instruct the user
- the emotion at time t is the probability of each of the Q emotion types.
- the second sub-model is a deep neural network trained by samples labeled Q emotion types in multiple samples; the evaluation corresponding to time t
- first model may be a single multi-class neural network, or may include multiple sub-models, and each sub-model may be a multi-class neural network.
- the execution device is also used to: obtain the evaluation result corresponding to each sampling point time point from time point T0 to time point t, where time point T0 is a time point before time point t; output time
- the evaluation result corresponding to point t includes: generating a mood change trend graph according to the evaluation result corresponding to each data to be evaluated from time point T0 to time point t; and outputting the mood change trend graph.
- the execution device outputs the mood change trend graph, so that the user can intuitively understand the user's mood change between the time point T0 and the time point t.
- the method further includes: sending the evaluation result corresponding to the time point t to the server, so that the server obtains the evaluation result corresponding to the time point t Corresponding push information, which is used to instruct the user to manage emotions at time t; receive and output push information sent by the server.
- the execution device outputs push information to the user, so that the user can manage the user's emotions by means of push information prompts.
- the method further includes:
- a reminder message is sent to the set contact of the user, and the reminder information is used to remind the user
- the emotional state of the user from time t1 to time t the first emotion is one of the N emotion types, and time t1 is a time point from time T0 to time t .
- the execution device may also detect that the difference between the first emotion corresponding to the user at time t and the first emotion corresponding to a sampling time point before time t is greater than the second threshold. Next, send a reminder message to the contact person of the set user.
- the sending of prompt information by the execution device to the user's contact is not limited to the aforementioned conditions, and corresponding trigger conditions can also be set based on actual applications, so that the user's contact can understand the user's emotional state.
- the execution device outputs the evaluation result corresponding to the time point t, including:
- the emotion types can include happy, down, positive, and negative.
- an embodiment of the present application also provides an apparatus for evaluating female emotions, which is characterized by comprising a processor and a memory, the memory is used to store program instructions, and the processor is used to call the memory to store The program instructions perform the following operations:
- the first model is a deep neural network trained through a plurality of samples, and the input data of each sample in the plurality of samples includes the time point t'-T' to the probability of each emotion type.
- the device further includes a display and an input module, the display is coupled to the processor, the data to be evaluated includes a psychological feature score, and the processor executes the acquisition of the M data of the user Data to be evaluated, including implementation:
- the scale questionnaire including at least one question
- the psychological feature score of the user is determined according to the input options of each question, and the psychological feature score includes at least one of a neuroticism score, a conscientiousness score, and an easygoing score.
- the device further includes a positioning module
- the data to be assessed includes the type of place where the user is located at the time point t
- the processor executes the acquisition of M data of the user Data to be evaluated, including implementation:
- the type of place where the user is located at the time point t is determined according to the location information.
- the device further includes an input module coupled to the processor, the data to be evaluated includes the age, gender, and weight of the user, and the processor executes the Obtain the user's M data to be evaluated, including execution:
- the data to be evaluated further includes at least one of the user's menstrual cycle stage, menstrual cycle duration, duration from ovulation day, duration from menstruation, and light intensity.
- the first model is a recurrent neural network
- the first model includes M network units
- the processor executes the input of the M to-be-assessed data into the first model, including implement:
- the first model is a convolutional neural network
- the M pieces of data to be evaluated form a data matrix
- the data matrix includes M rows
- the data in the jth row is the M The j-th data to be evaluated among the data to be evaluated, where j is an integer greater than or equal to 1 and less than or equal to M.
- the first model includes a first sub-model and a second sub-model
- the processor executes the input of the M data to be evaluated into the first model to obtain the time point t
- Corresponding assessment results including execution:
- the M to-be-evaluated data are input into the first sub-model to obtain a first evaluation result.
- the first evaluation result is used to indicate that the user’s emotion at the time point t is each of the P emotion types.
- a probability of an emotion type the first sub-model is a deep neural network obtained by training of samples labeled as the P emotion types in the plurality of samples;
- the M to-be-evaluated data are input into the second sub-model to obtain a second evaluation result, and the second evaluation result is used to indicate that the emotion of the user at the time point t is each of the Q emotion types A probability of one emotion type, the second sub-model is a deep neural network obtained through training of samples labeled as the Q emotion types in the plurality of samples;
- the processor further includes executing:
- the outputting the evaluation result corresponding to the time point t includes:
- the device further includes a communication module, and after the processor executes and outputs the evaluation result corresponding to the time point t, it further includes executing:
- the evaluation result corresponding to the time point t is sent to the server through the communication module, so that the server obtains corresponding push information according to the evaluation result corresponding to the time point t, and the push information is used to instruct the user to manage the time point t's emotions;
- the push information sent by the server is received through the communication module, and the push information sent by the server is output.
- the method further includes executing:
- the communication module sends prompt information to the set contact of the user, so The prompt information is used to prompt the user's contacts of the user's emotional state of the user from the time point t1 to the time point t, and the first emotion is one of the N emotion types Emotion type, the time point t1 is a time point from the time point T0 to the time point t.
- the processor executes and outputs the evaluation result corresponding to the time point t, including executing: determining that the emotion type corresponding to the greatest probability among the N emotion types is that the user is at the time The target emotion type corresponding to point t; output the target emotion type.
- the emotion types include happy, down, positive, and negative.
- an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable medium is used to store program code, and the program code includes a method for executing the method described in the first aspect.
- an embodiment of the present application provides a computer program product containing instructions, which when the computer program product runs on a computer, causes the computer to execute the method in the above-mentioned first aspect.
- FIG. 1a is a schematic diagram of a network architecture of a method for evaluating female emotions provided by an embodiment of the present application
- Fig. 1b is a schematic structural diagram of an LSTM provided by an embodiment of the present application.
- Fig. 1c is an LSTM model architecture diagram provided by an embodiment of the present application.
- Figure 1d is a schematic structural diagram of a CNN provided by an embodiment of the present application.
- Figure 1e is a schematic structural diagram of another CNN provided by an embodiment of the present application.
- FIG. 2 is a schematic flowchart of a method for evaluating female emotions according to an embodiment of the present application
- FIG. 3a is a flowchart of a method for evaluating female emotions performed by an execution device according to an embodiment of the present application
- FIG. 3b is a schematic diagram of data to be evaluated provided by an embodiment of the present application.
- Fig. 4a is a schematic diagram of an evaluation result exemplarily provided by an embodiment of the present application.
- FIG. 4b is a schematic diagram of another evaluation result exemplarily provided by an embodiment of the present application.
- FIG. 5a is a schematic diagram of an evaluation result corresponding to an output time point t provided by an embodiment of the present application
- FIG. 5b is a schematic diagram of a user emotion change trend provided by an exemplary embodiment of the present application.
- FIG. 6 is a schematic flowchart of a method for evaluating female emotions provided by an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- FIG. 8 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
- FIG. 1a is a schematic diagram of a network architecture of a method for evaluating female emotions provided by an embodiment of the present application.
- the schematic diagram of the network architecture may include a collection device 101, a training device 102, an execution device 103, and a server 104. in:
- the collection device 101 can collect sample data and send the sample data to the training device 102.
- each sample in the sample data includes input data and a label
- the input data may include physiological data of the user during a physiological cycle, for example, the input data includes physiological data from time point t'-T' to time point t'
- the label can be used to indicate the emotion type at the time point t'.
- the physiological data may include heart rate, respiration rate, heart rate variability, body temperature, exercise volume, and so on.
- the input data can also include the user's menstrual cycle characteristics (the menstrual cycle characteristics can include the menstrual cycle stage, the length of the menstrual cycle, the length of time from the ovulation day, the length of the menstrual period, etc.), the user's basic information (the basic information can include (Age, gender, weight), user's environmental information (environmental information can include light intensity, type of place, etc.), user's psychological feature score (psychological feature score can include neuroticism score, conscientiousness score, easygoing score, etc.) Wait.
- the collection device 101 may be a smart wearable device, for example, a smart watch, a smart bracelet, smart glasses, etc.; the training device 102 may be a server, or a terminal such as a mobile phone or a computer.
- the training device 102 may receive sample data sent by multiple collection devices 101, and further, train an initialized model through the sample data to obtain a trained model, which is the first model.
- the first model can predict the user's emotion type based on the user's data to be evaluated in a physiological cycle. Further, the training device 102 may send the first model to the execution device 103.
- the first model may be a convolutional neural network, a cyclic neural network, or other neural networks.
- the first model may be a single multi-classification model, and the first model may also include multiple multi-classification models.
- the execution device 103 may be a smart wearable device, a smart terminal (mobile phone, computer, etc.), a server, and the like. After the execution device 103 obtains the first model, the first model can be used to evaluate the emotion type of the user.
- the execution device 103 may be a wearable device with a physiological data collection function, such as a smart watch or a smart bracelet, and the execution device 103 may collect physiological data of the user at a certain sampling frequency.
- the execution device 103 may be a device that does not have a physiological data collection function such as a mobile phone, a tablet computer, a computer, or a server.
- the collection device 101 can collect the user's physiological data at a certain sampling frequency, and Send it to the execution device 103.
- the collection device 101 may collect the physiological data of the user at a certain sampling frequency and send it to the execution device 103, and the execution device 103 generates the data to be evaluated according to the physiological data of the user, that is, the data to be evaluated and the One-to-one correspondence with physiological data.
- each piece of data to be evaluated may also include the user's menstrual cycle characteristics (the menstrual cycle characteristics may include the menstrual cycle phase, the length of the menstrual cycle, the length of time from ovulation day, the length of time from menstruation, etc.), the user's basic information (basic information can be Including age, gender, weight), user's environmental information (environmental information can include light intensity, type of place, etc.), user's psychological feature score (psychological feature score can include neuroticism score, conscientious score, easy-going score, etc. )Wait.
- the menstrual cycle characteristics may include the menstrual cycle phase, the length of the menstrual cycle, the length of time from ovulation day, the length of time from menstruation, etc.
- the user's basic information basic information can be Including age, gender, weight
- user's environmental information environment information can include light intensity, type of place, etc.
- user's psychological feature score can include neuroticism score, conscientious score, easy-going
- the collection device 101 or the execution device 103 may also be used to obtain the above-mentioned characteristic information of the user, so that the execution device 103 generates the data to be evaluated according to the user's physiological data and the above-mentioned characteristic information.
- the execution device 103 may input the data to be evaluated obtained from the time point tT to the time point t into the first model to obtain the evaluation result corresponding to the time point t, and the evaluation result is used To indicate the probability of the user in each of the N emotion types at the time point t.
- T is a menstrual cycle
- the emotion type can be happy, positive, negative, low, etc.
- the execution device 103 After the execution device 103 obtains the evaluation result corresponding to the time point t, it can output the evaluation result corresponding to the time point t to the user, or it can send the evaluation result corresponding to the time point t to the collection device 101, so that the collection device 101 tells the user Output the evaluation result corresponding to time t.
- the acquisition device 101 or the execution device 103 After the acquisition device 101 or the execution device 103 obtains the evaluation result corresponding to the time point t, it may also send the evaluation result corresponding to the time point t to the server 104.
- the server 104 can find the push information corresponding to the evaluation result in the database according to the evaluation result corresponding to the time point t, and then the server 104 sends the push information to the collection device 101 or the execution device 103, so that the collection device 101 or the execution device 103 outputs the push information to the user.
- the evaluation result corresponding to time t is: happy 40%, low 60%, positive 46%, and negative 54%.
- the server 104 finds the push message corresponding to the evaluation result in the database as "Unhappy will become ugly,” Try to smile ⁇ ", and then, the server 104 sends the push message to the execution device 103, so that the execution device 103 outputs and displays the push information to the user.
- the execution device 103 may obtain the evaluation result corresponding to each sampling time point from the time point t-T0 to the time point t, and then output the mood change trend graph to the user.
- the mood change trend graph displays the user's mood change over a period of time in the form of a mood change curve, so that the user can intuitively understand his own mood change and facilitate better management of his mood.
- the emotion change trend graph uses time as the horizontal axis and emotion value on the vertical axis. Each sampling time point on the horizontal axis has a corresponding emotion value on the vertical axis. Connect the emotion value corresponding to each sampling time point to form a continuous Curve of emotional change.
- the execution device 103 may also send the evaluation result corresponding to each sampling time point from the time point t-T0 to the time point t to the collection device 101, so that the collection device 101 can output and display the mood change trend graph.
- the acquisition device 101 or the execution device 103 After the acquisition device 101 or the execution device 103 obtains the evaluation result corresponding to each sampling time point from the time point t-T0 to the time point t, it can also be used to automatically detect the emotional state of the user during the time period t1-t, Furthermore, when the user's emotional state meets the set condition, the collection device 101 or the execution device 103 sends prompt information to the set contact person, and the prompt information is used to prompt the set emotional state of the contact user. For example, when the execution device 103 detects that the probability that the user is happy at each sampling time point in the time period t1-t is less than the first threshold, the execution device 103 sends a message to the set contact to remind the user that the user has been in depression. Prompt information. Among them, the time point t1 is a time point from the time point T0 to the time point t.
- the execution device 103 may include a collection device 102.
- the network architecture diagram of the method for evaluating female emotions in FIG. 1a is only an exemplary implementation in the embodiment of the present application, and the network architecture for evaluating female emotions in the embodiment of the present application is not limited to the above structure.
- the above-mentioned first model is a deep neural network obtained by training with multiple samples, such as a recurrent neural network or a convolutional neural network.
- the two neural network models mentioned in the embodiments of the present application are introduced below.
- RNN Recurrent Neural Networks
- RNNs The purpose of RNNs is to process sequence data.
- the layers In the traditional neural network model, from the input layer to the hidden layer and then to the output layer, the layers are fully connected, and the nodes between each layer are not connected. But this ordinary neural network is powerless for many problems. For example, if you want to predict what the next word of a sentence will be, you generally need to use the previous word, because the preceding and following words in a sentence are not independent. The reason why RNNs are called recurrent neural networks is that the current output of a sequence is also related to the previous output.
- RNNs can process sequence data of any length. This application mainly uses the long and short-term memory neural network in the cyclic neural network, and the long and short-term memory network is introduced below.
- the Long Short-Term Memory (LSTM, Long Short-Term Memory) model is a structure of input gates, output gates, forget gates and network units (cell) to control the learning and forgetting of historical information, making the model suitable for processing long sequences problem.
- FIG. 1b is a schematic structural diagram of an LSTM provided by an embodiment of the present application. As shown in Figure 1b, suppose that at time t, the LSTM model updates and propagates the cell state c t and the hidden state h t . Forgotten gate output is represented as f t, the output of the input gate is represented as i t, is expressed as output gate o t, the element values of three gates in the interval [0,1].
- the forget gate is to control whether to forget, that is, to control whether to forget the hidden state of the upper layer with a certain probability.
- its input is the hidden state h t-1 of the previous sequence and the data x t of this sequence.
- the output f t of the forgetting gate is obtained.
- the activation function here can be sigmoid.
- the processing logic of the forget gate can be expressed as the following mathematical expression (1):
- w f is the coefficient of the linear relationship
- b f is the bias
- ⁇ is the activation function sigmoid.
- the input gate is responsible for processing the input of the current sequence position and deciding what new information to put into the network unit.
- the input gate consists of two parts. The first part is under the action of the activation function sigmoid, and the output is i t, the second portion tanh function in the active role, the output is a t, the two parts have to update the status result of multiplication of the network element.
- the role of the input gate is to prepare for the status update of the network unit.
- processing logic of the input gate can be expressed as the following mathematical expression (2):
- w i, w a is the coefficient of linear relationship, b i, b a bias, ⁇ represents the activation function sigmoid.
- the state c t consists of two parts, the first part is c t-1 and forgetting f t the gate outputs the product, and the second part is the product of a t i t input gate, i.e., it can be expressed as the following mathematical expression (3):
- * means Hadamard product, that is, the corresponding elements of the matrix are multiplied.
- the update of the hidden state h t consists of two parts.
- the first part is o t , which is obtained from the hidden state h t-1 of the previous sequence and the data x t of this sequence, as well as the activation function sigmoid.
- the second part consists of the hidden state c t and the activation function tanh, and its processing logic can be expressed as the following mathematical expression (4):
- w o is the linear relationship coefficient
- b o is the bias
- ⁇ is the activation function sigmoid.
- w' is the linear relationship coefficient
- ⁇ represents the activation function sigmoid.
- the first model may include, but is not limited to, an LSTM model.
- FIG. 1c is an LSTM model architecture diagram provided by an embodiment of the present application.
- M multiple network units
- M data to be evaluated acquired during a physiological cycle T if it is from time point tT to time point t
- T can be input into the model, where the M data to be evaluated are sorted in chronological order
- the sampling time point corresponding to the M-th data to be evaluated is t.
- the first network unit of the LSTM model executes the first input data to be evaluated, and obtains the evaluation result corresponding to the user at the first sampling time point; further, the evaluation result output by the first network unit And the second to-be-evaluated data is input to the second network unit to obtain the to-be-evaluated result corresponding to the second sampling time point...
- Each network unit in the LSTM structure continuously associates the user output by the previous network unit on it
- the evaluation result corresponding to a sampling time point is to memorize the previous evaluation results and apply the current input data to be evaluated, so that the user can be more accurately obtained at the time point t (the sampling time corresponding to the Mth data to be evaluated)
- the point is the evaluation result of t), therefore, the accuracy of obtaining user emotions can be effectively improved.
- Convolutional neural network (CNN, convolutional neuron network) is a deep neural network with a convolutional structure.
- the convolutional neural network contains a feature extractor composed of a convolutional layer and a sub-sampling layer.
- the feature extractor can be seen as a filter, and the convolution process can be seen as using a trainable filter to convolve with an input image or convolution feature map.
- a convolutional neural network (CNN) 100 may include an input layer 110, a convolutional layer/pooling layer 120, where the pooling layer is optional, and a neural network layer 130.
- the convolutional layer/pooling layer 120 may include layers 121-126 as in the examples.
- layer 121 is a convolutional layer
- layer 122 is a pooling layer
- layer 123 is a convolutional layer
- layer 124 is a convolutional layer.
- Pooling layer, 125 is a convolutional layer
- 126 is a pooling layer; in another implementation, 121 and 122 are convolutional layers, 123 is a pooling layer, 124 and 125 are convolutional layers, and 126 is a pooling layer Floor. That is, the output of the convolutional layer can be used as the input of the subsequent pooling layer, or as the input of another convolutional layer to continue the convolution operation.
- the convolutional layer 121 can include many convolution operators.
- the convolution operator is also called a kernel. Its role in image processing is equivalent to a filter that extracts specific information from the input image matrix.
- the convolution operator can be a weight matrix. This weight matrix is usually predefined. In the process of convolution on the image, the weight matrix is usually one pixel after another pixel in the horizontal direction on the input image ( Or two pixels followed by two pixels...It depends on the value of stride) to complete the work of extracting specific features from the image.
- the size of the weight matrix should be related to the size of the image. It should be noted that the depth dimension of the weight matrix and the depth dimension of the input image are the same.
- the weight matrix will extend to Enter the entire depth of the image. Therefore, convolution with a single weight matrix will produce a convolution output of a single depth dimension, but in most cases, a single weight matrix is not used, but multiple weight matrices with the same dimension are applied. The output of each weight matrix is stacked to form the depth dimension of the convolutional image. Different weight matrices can be used to extract different features in the image. For example, one weight matrix is used to extract edge information of the image, another weight matrix is used to extract specific colors of the image, and another weight matrix is used to eliminate unwanted noise in the image. Fuzzy... the dimensions of the multiple weight matrices are the same, the dimension of the feature map extracted by the weight matrix of the same dimension is also the same, and then the extracted feature maps of the same dimension are merged to form the output of the convolution operation .
- weight values in these weight matrices need to be obtained through a lot of training in practical applications, and each weight matrix formed by the weight values obtained through training can extract information from the input image, thereby helping the convolutional neural network 100 to make correct predictions.
- the initial convolutional layer (such as 121) often extracts more general features, which can also be called low-level features; with the convolutional neural network
- the subsequent convolutional layers for example, 126
- features such as high-level semantics
- the pooling layer can also be a multi-layer convolutional layer followed by one or more pooling layers.
- the sole purpose of the pooling layer is to reduce the size of the image space.
- the pooling layer may include an average pooling operator and/or a maximum pooling operator for sampling the input image to obtain an image with a smaller size.
- the average pooling operator can calculate the pixel values in the image within a specific range to generate an average value.
- the maximum pooling operator can take the pixel with the largest value within a specific range as the result of the maximum pooling.
- the operators in the pooling layer should also be related to the image size.
- the size of the image output after processing by the pooling layer can be smaller than the size of the image of the input pooling layer, and each pixel in the image output by the pooling layer represents the average value or the maximum value of the corresponding sub-region of the image input to the pooling layer.
- the convolutional neural network 100 After processing by the convolutional layer/pooling layer 120, the convolutional neural network 100 is not enough to output the required output information. Because as mentioned above, the convolutional layer/pooling layer 120 only extracts features and reduces the parameters brought by the input image. However, in order to generate the final output information (required class information or other related information), the convolutional neural network 100 needs to use the neural network layer 130 to generate one or a group of required classes of output. Therefore, the neural network layer 130 may include multiple hidden layers (131, 132 to 13n as shown in FIG. 1d) and an output layer 140. The parameters contained in the multiple hidden layers can be based on specific task types. Relevant training data of, for example, the task type can include image recognition, image classification, image super-resolution reconstruction, etc...
- the output layer 140 After the multiple hidden layers in the neural network layer 130, that is, the final layer of the entire convolutional neural network 100 is the output layer 140.
- the output layer 140 has a loss function similar to the classification cross entropy, which is specifically used to calculate the prediction error.
- the convolutional neural network 100 shown in FIG. 1d is only used as an example of a convolutional neural network.
- the convolutional neural network may also exist in the form of other network models, for example, such as
- the multiple convolutional layers/pooling layers shown in FIG. 1e are parallel, and the respectively extracted features are input to the full neural network layer 130 for processing.
- the first model may also be CNN.
- the M data to be evaluated may form a matrix A to be evaluated, the matrix A to be evaluated includes M rows, and the data in the i-th row in the matrix A to be evaluated is the i-th row among the M data to be evaluated Pieces of data to be evaluated, i is greater than or equal to 1 and less than or equal to M.
- the CNN model performs multiple convolution operations and pooling operations on the matrix A to be evaluated to extract the features in the matrix A to be evaluated. Further, the corresponding output layer evaluation result.
- the matrix A to be evaluated includes the user's M data to be evaluated in a physiological cycle (time point tT to time point t).
- the CNN model extracts the characteristics of the data to be evaluated in a physiological cycle to determine The user's emotion at time t can effectively improve the accuracy of evaluating the user's emotion.
- sampling time points t'corresponding to different samples may be different, and the M'training data included in each sample is the user's data in one physiological period T', and the physiological period T'of different users may also be different.
- the sample please refer to the relevant description of the sample in the above network architecture diagram.
- the input data of the sample is respectively input to the initialized model (for example, convolutional neural network) to obtain the predicted evaluation result, and then, according to the predicted evaluation result and the real result (ie the label of the sample)
- the initialized model for example, convolutional neural network
- the model parameters of the initialized neural network By iteratively adjusting the model parameters of the neural network, the error becomes smaller and smaller. The smaller the error, the closer the predicted evaluation result is to the real result, and the more accurately the model can evaluate the emotional type of women.
- the first model in the embodiment of the present application may be a single neural network.
- the initialized model may be trained through the training manner of the above steps S101-S102 to obtain the first model.
- the input data of each sample includes the physiological data of M'sampling points sampled from time point t'-T' to time point t', and the label of each sample is the emotion type at time point t', and the value of t'
- the first model in the embodiment of the present application may also include multiple sub-models.
- the first model includes a first sub-model and a second sub-model, and the first sub-model or the second sub-model may be a convolutional neural network or a recurrent neural network, respectively.
- the first sub-model or the second sub-model may also be trained separately through the training methods of the above steps S101-S102 to obtain the first model.
- the first sub-model is a deep neural network obtained through training of samples labeled with P emotion types in the above samples;
- the second sub-model is a deep neural network obtained through training of samples labeled with Q emotion types in the above samples.
- N P+Q.
- M' should be greater than or equal to M, and the sampling frequency Z should be consistent with the sampling frequency Z of the M data to be evaluated.
- FIG. 2 is a schematic flowchart of a method for evaluating female emotions provided by an embodiment of the present application. The method may include some or all of the following steps:
- the execution device acquires M pieces of data to be evaluated from the user, the M pieces of data to be evaluated include physiological data of M sampling points sampled from time point tT to time point t, and the M pieces of data to be evaluated are arranged in chronological order ,
- T is a physiological cycle of the user
- the physiological cycle T can be different for different personal characteristics
- Z is the sampling frequency of physiological data
- the sampling frequency Z can be set based on the actual situation.
- the execution device may be a wearable device with a physiological data collection function, such as a smart watch or a smart bracelet, and the execution device 103 may collect the physiological data of the user at a certain sampling frequency.
- the physiological data may be respiratory rate, heart rate, heart rate variability, body temperature, blood perfusion, bioelectrical impedance, exercise volume, and the like.
- the execution device acquires the physiological data of the user at the time point t.
- the execution device may use photoplethysmography (PPG) to perform the measurement on the user.
- PPG photoplethysmography
- Data collection obtain pulse wave signals, and then analyze the user’s heart rate, respiration rate, heart rate variability, etc. at that time point; in the embodiment of the application, the amount of exercise refers to the amount of exercise the user has at time t, generally
- the “number of steps” is used to indicate the user's daily exercise volume.
- the execution device can obtain the user's location information through GPS, and then analyze and calculate the user's exercise volume at time t.
- FIG. 3a is a flowchart of a method for evaluating female emotions performed by an execution device according to an embodiment of the present application.
- the execution device determines whether the user uses the method for evaluating female emotions for the first time (for example, the execution device determines whether the user's account exists Historical evaluation records are used to determine whether the user uses the method for evaluating female emotions for the first time).
- the execution device outputs the scale questionnaire to the user so that the user can input the options of the scale questionnaire.
- the options of each question in the scale questionnaire output by the user are analyzed and calculated the psychological characteristic score of the user.
- the execution device receives basic information input by the user, including age, gender, weight, and so on. Secondly, the execution device outputs prompt information to the user whether to automatically collect physiological data. In the case that the user chooses to enable automatic physiological data collection, the execution device automatically collects the user's physiological data at a certain frequency to form the data to be evaluated, which can then be reported to the user Output the evaluation result at the sampling time point corresponding to the latest data to be evaluated. Conversely, when the user chooses not to automatically collect physiological data, the execution device outputs the user's historical evaluation result to the user.
- FIG. 3b is a schematic diagram of data to be evaluated provided by an embodiment of the present application.
- the sampling time point corresponding to the data to be evaluated is t
- the data to be evaluated may also include the user's basic information, psychological feature scores, physiological cycle features, and environmental parameters, etc., as described below:
- the basic parameters of the user may include age, gender, weight, and so on.
- the execution device Before the user uses the method for evaluating female emotions for the first time, the execution device can receive the basic information input by the user, and further, the execution device You can store basic user information.
- the user's psychological feature score may include a neuroticism score, a conscientiousness score, an easygoing score, and the like.
- the execution device can display a scale questionnaire, the scale questionnaire includes at least one question; At least one question is the input options for each question; finally, the user's psychological characteristic score is determined according to the options input for each question.
- the execution device may also periodically output a scale questionnaire to the user to continuously obtain and update the user's psychological feature score.
- the physiological cycle characteristics of the user may include the physiological cycle stage of the user, the length of the physiological cycle, the length of time from the day of ovulation, the length of time from the menstrual period, and the like.
- a complete menstrual cycle phase includes the luteal phase, menstrual period, follicular phase and ovulation phase.
- the execution device may receive the physiological cycle characteristics input by the user at a certain frequency. In another implementation manner, the execution device may also receive the menstrual start time and menstrual end time input by the user every month, and analyze and calculate the above-mentioned menstrual cycle characteristics of the user by means such as machine learning.
- the user's environmental parameters may include the type of place where the user is located, light intensity, and the like.
- the execution device may include a light sensor. At time t as shown in Figure 3b, the execution device can obtain the user's light intensity at time t through the light sensor; the type of place refers to the type of place the user is at at time t, and the user can be located at time through GPS. The location at point t, and then determine the type of place the location belongs to.
- the data to be evaluated mentioned in the embodiments of the present application may also include other characteristic parameters of the user, and the form of the data to be evaluated provided above is only an exemplary description in the embodiments of the present application.
- the execution device may also be a device that does not have a physiological data collection function, such as a mobile phone, a tablet computer, a computer, or a server. In this case, the execution device obtains the data to be evaluated through a communication interface.
- the execution device inputs M to-be-evaluated data into the first model, and obtains the evaluation result corresponding to time point t.
- the evaluation result corresponding to time point t is used to indicate that the user’s emotion at time point t is each of the N emotion types.
- the probability of an emotion type is used to indicate that the user’s emotion at time point t is each of the N emotion types.
- the first model is a deep neural network obtained by training with multiple samples, and the training method of the first model can be referred to the related description of the training method of the neural network.
- the first model may be a multi-class model obtained by training, or multiple multi-class models.
- FIG. 4a is a schematic diagram of an evaluation result exemplarily provided by an embodiment of the present application.
- the first model is a multi-class model, and the emotion types include happy, positive, negative, and low.
- Input the above M data to be evaluated into the first model, and the output time point t corresponds to the evaluation result: happy 15%, low 30%, negative 35%, positive 20%.
- FIG. 4b is another schematic diagram of an evaluation result exemplarily provided by an embodiment of the present application.
- the first model includes two sub-models: a first sub-model and a second sub-model. If the emotion types include happy, positive, negative, and low, the first sub-model is used to determine the probability that the user's emotion is happy or low, and the second sub-model is used to determine the probability that the user's emotion is positive or negative.
- the apple results corresponding to time point t are: happy 40%, low 60%, positive 46%, and negative 54%.
- the execution device inputs M to-be-evaluated data into the first model to obtain the realization of the evaluation result corresponding to the time point t.
- the realization mode (1) realization mode (2), and realization mode (3) The detailed description.
- the evaluation result corresponding to the output time point t of the execution device may include the following three examples.
- the execution device may output an emotion type that can express the emotion of the user at the time point t.
- the execution device determines that the emotion type corresponding to the greatest probability among the N emotion types is the target emotion type corresponding to the user at the time point t; secondly, the execution device outputs the target emotion type.
- the N emotion types may include happy, down, positive, and negative.
- N is 4.
- input M data to be evaluated into the first model, and the evaluation results corresponding to the output time point t of the first model are: happy 40%, low 20%, positive 30%, and negative 10% .
- the execution device determines that the emotion type corresponding to the maximum probability is "happy", and further, the execution device outputs the corresponding emotion type of the user at the time point t as "happy".
- the evaluation result corresponding to time t is used to indicate the probability that the user’s emotion at time t is each of the N emotion types. Therefore, the execution device can also output the probability of each emotion type of the user at time t .
- the N emotion types may include happy, down, positive, and negative.
- N is 4.
- the first model includes the first sub-model and the second sub-model
- the two sub-models are both two-class models.
- the first sub-model is used to judge the probability of happy and low
- the second sub-model is used to judge the positive probability and Negative probability.
- the execution device inputs M to-be-evaluated data into the first sub-model, and the evaluation results corresponding to the output time point t of the first sub-model include: happy 60%, down 40%; the execution device inputs M to-be-evaluated data into the second sub-model
- the evaluation result corresponding to the output time point t of the second sub-model includes positive 80% and negative 20%. At this time, the evaluation results corresponding to time point t are: happy 60%, low 40%, positive 80%, and negative 20%.
- FIG. 5a is a schematic diagram of an evaluation result corresponding to an output time point t provided in an embodiment of the present application.
- the execution device can output the probability of each emotion type at the above time point t through the combination of the radar chart and the Russell ring model.
- the execution device may also output the evaluation result corresponding to each sampling time point from the time point T0 to the time point t to form a trend graph of mood changes.
- the time point T0 is a time point before the time point t.
- the execution device obtains the evaluation result corresponding to each sampling time point from time point T0 to time point t, and the time point T0 is a time point before time point t; further, the execution device outputs the evaluation result corresponding to time point t, including: execution The device generates an emotion change trend graph according to the evaluation result corresponding to each data to be evaluated from the time point T0 to the time point t; the execution device outputs the emotion change trend graph.
- the N emotion types may include happy, down, positive, and negative.
- N is 4.
- the two sub-models are both two-class models. The first sub-model is used to judge the probability of happy and low, and the second sub-model is used to judge the positive probability and Negative probability. The evaluation result of each sampling point from time point T0 to time point t is obtained through the first model.
- FIG. 5b is a schematic diagram of a trend of user emotions exemplarily provided in an embodiment of the present application.
- the mood change trend graph shows the user's mood change from time point T0 to time point t.
- the mood change trend graph includes: a happy and low curve (the dotted line shown in Fig. 5b) and a positive and negative curve ( The solid line shown in Figure 5b).
- the execution device obtains the evaluation result corresponding to each sampling point of the user from time point T0 to time point t, it determines the position of the evaluation result corresponding to each sampling point in the mood change trend graph, including happy probability and low
- the first type of location determined by probability, the second type of location determined by the positive probability and the negative probability.
- FIG. 6 is a schematic flowchart of a method for evaluating female emotions provided by an embodiment of the present application.
- the method for evaluating female emotions may further include:
- S208 The execution device sends the evaluation result corresponding to the time point t to the server.
- the server receives the evaluation result corresponding to the time point t sent by the execution device, and obtains corresponding push information according to the evaluation result, where the push information is used to instruct the user to manage the emotion at the time point t.
- S212 The server sends the push information to the execution device.
- S214 The execution device receives and outputs the push information sent by the server.
- the push information may be information in the form of text, picture, audio, video, etc., which is not limited here.
- the evaluation results corresponding to time point t are: happy 46%, low 54%, positive 40%, and negative 60%.
- the execution device sends the evaluation result corresponding to the time point t to the server.
- the corresponding relationship between the evaluation result and the push information is pre-stored in the database.
- the server receives the evaluation result, it can look up the push information corresponding to the evaluation result in the database, and then the server sends the push information to Execution equipment. After receiving the push information sent by the server, the execution device outputs the push information.
- the push message output by the execution device is: "Unhappy will become ugly, try to smile ⁇ ".
- the execution device outputs push information provided above.
- the manner in which the execution device outputs push information is only an exemplary description of the embodiment of the present application, and other implementation manners may also be included.
- the execution device may also The push information is sent to other devices, so that the other devices output the push information to the user.
- the method for evaluating female emotions may further include:
- the execution device sends the evaluation result corresponding to each sampling point from time point T0 to time point t to the server, so that the server detects the probability of the first emotion type corresponding to each sampling point from time point t1 to time point t
- the server detects the probability of the first emotion type corresponding to each sampling point from time point t1 to time point t
- send reminder information to the set contact of the user, the reminder information is used to remind the user’s contact of the user’s emotional state from time t1 to time t
- the first emotion type It is an emotion type among N emotion types
- the time point t1 is a time point from the time point T0 to the time point t.
- the first threshold is 50%.
- the execution device detects that the happiness level corresponding to each sampling point from time t1 to time t is less than 50%, The execution device sends a prompt message to the set contact of the user. At this time, the prompt message indicates that the user is continuously in a low state.
- the triggering condition for the execution device to send the prompt information to the user's contact is not limited to the above-mentioned conditions, and other triggering conditions can also be set, for example, the first emotion type at time t and the previous sampling time point. The corresponding difference of the first emotion type is greater than the second threshold, and the execution device may also send prompt information to the user's contact. At this time, the prompt information may be used to indicate that the user's emotion has a sudden change.
- the condition for triggering the execution device to send the prompt information to the user's contact is not limited here.
- the following describes a specific implementation manner of inputting M to-be-evaluated data into the first model in step S204 to obtain the evaluation result corresponding to the time point t, which may include, but is not limited to, the following three implementation manners.
- the first model is a single cyclic neural network.
- the cyclic neural network includes M network units.
- Inputting M data to be evaluated into the first model includes: inputting the i-th data to be evaluated among the M data to be evaluated and The output data of the i-1th network unit is input to the i-th network unit among the M network units, and i is an integer greater than or equal to 2 and less than or equal to M.
- the first model is a long and short-term memory model in a cyclic neural network
- the i-th network unit executes: receiving the output data of the i-1th network unit and the i-th data to be evaluated, and the output data includes the hidden state And the cell state; it is determined that the cell state of the i-th network unit is the cell state of the i-1th network unit through the forgetting gate and the input gate.
- the forgetting gate is used to select the hiding of the i-1th network unit.
- the state and the i-th data to be evaluated, the input gate is used to select the hidden state of the i-1th network unit and the i-th data to be evaluated; output the output data of the i-th network unit.
- the evaluation result corresponding to the time point t is obtained from the output state of the Mth network unit. For example, if at time t, the output state of the M-th network unit is h t , then the evaluation result corresponding to time t can be expressed as:
- w' is the linear relationship coefficient
- ⁇ represents the activation function sigmoid.
- the first model can be a convolutional neural network.
- the M data to be evaluated form a data matrix.
- the data matrix includes M rows.
- the data in the jth row is the jth data to be evaluated among the M data to be evaluated, and j is greater than or equal to An integer of 1 and less than or equal to M.
- Each emotion type of the N emotion types includes at least one feature; the fully connected layer performs the last time The features extracted by the convolutional layer or the pooling layer are combined to integrate the features corresponding to each of the N emotion types.
- the combination refers to outputting the output value of each emotion type of the N emotion types through the activation function ;
- the output layer is connected with the softmax function, and the probability of each emotion type in the N emotion types is determined and output according to the output value of each emotion type in the N emotion types.
- the first model includes a plurality of sub-models, and each sub-model may be a convolutional neural network or a recurrent neural network.
- the first model includes a first sub-model and a second sub-model, and the training method of the first sub-model or the second sub-model can refer to the related description of the first model including multiple sub-models in the above-mentioned neural network training method.
- the first sub-model can be used to judge the happy probability and the low probability
- the second sub-model can be used to judge the positive probability and the negative probability.
- the first sub-model or the second sub-model may be a recurrent neural network, or a convolutional neural network, or a recurrent neural network or a convolutional neural network, or another type of neural network, which is not limited here.
- Input M to-be-evaluated data into the first model to obtain the evaluation result corresponding to the time point t including but not limited to S302 and S304:
- the execution device inputs M to-be-evaluated data into the first sub-model to obtain a first evaluation result.
- the first evaluation result is used to indicate that the user's emotion at time point t is of each emotion type among the P emotion types.
- Probability the first sub-model is a deep neural network trained by samples labeled P emotion types in multiple samples.
- S304 The execution device inputs M to-be-evaluated data into the second sub-model to obtain a second evaluation result, which is used to indicate that the emotion of the user at time t is each emotion of the Q emotion types
- the probability of the type, the second sub-model is the depth obtained by training samples with Q emotion types in multiple samples.
- the execution device acquires M data to be evaluated from the user, and the M data to be evaluated include physiological data of M sampling points sampled from a time point tT to a time point t, and the M data to be evaluated
- the first model is a deep neural network trained through multiple samples.
- the input data of each sample in the multiple samples includes the time point t'-
- the embodiment of the present application combines the characteristics of the female's entire menstrual cycle to obtain the user’s information in a menstrual cycle before the time point.
- Physiological data to evaluate the user’s emotions at that point in time In the second aspect, emotions are continuous in time, and the user’s emotions at that time point are evaluated only through physiological data at one point in time, ignoring the influence of historical emotions on the current emotions. Therefore, the embodiment of the present application obtains the time point before The physiological data of a menstrual cycle is used to evaluate the emotion at that time point, and the influence of historical physiological data on the emotion at that time point is added.
- implementing the application examples can improve the accuracy of evaluating women's emotions.
- FIG. 7 shows a schematic structural diagram of the electronic device 700.
- the electronic device 700 may include a processor 710, an external memory interface 720, an internal memory 721, a universal serial bus (USB) interface 730, a charging management module 740, a power management module 741, and a battery 742 , Antenna 1, antenna 2, mobile communication module 750, wireless communication module 760, audio module 770 (including speaker 770A, receiver 770B, microphone 770C, earphone interface 770D) sensor module 780, button 790, motor 791, indicator 792, camera 793, a display screen 794, and a subscriber identification module (SIM) card interface 795, etc.
- SIM subscriber identification module
- the sensor module 780 may include pressure sensor 780A, gyroscope sensor 780B, air pressure sensor 780C, magnetic sensor 780D, acceleration sensor 780E, distance sensor 780F, proximity light sensor 780G, fingerprint sensor 780H, temperature sensor 780J, touch sensor 780K, ambient light Sensor 780L, bone conduction sensor 780M, etc.
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 700.
- the electronic device 700 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
- the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
- the electronic device 700 may be the execution device 103 in FIG. 1a, or the collection device 101.
- the processor 710 may include one or more processing units.
- the processor 710 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
- AP application processor
- modem processor modem processor
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- the different processing units may be independent devices or integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 700.
- the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
- a memory may also be provided in the processor 710 for storing instructions and data.
- the memory in the processor 710 is a cache memory.
- the memory can store instructions or data that have just been used or recycled by the processor 710. If the processor 710 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 710 is reduced, and the efficiency of the system is improved.
- the processor 710 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter/receiver
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB Universal Serial Bus
- the processor can execute the method for evaluating female emotions provided by the embodiment of the present application by calling the program code in the memory, including executing:
- the M data to be evaluated include physiological data of M sampling points sampled from time tT to time t.
- the M data to be evaluated are arranged in chronological order, and the M data to be evaluated are arranged in chronological order.
- the first model is a deep neural network trained through multiple samples.
- the processor 710 executes the foregoing method for evaluating female emotions. For a specific description, please refer to the related description of implementing the evaluation of female emotions in FIG. 2, which will not be repeated here.
- the USB interface 730 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
- the USB interface 730 can be used to connect a charger to charge the electronic device 700, and can also be used to transfer data between the electronic device 700 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 700.
- the electronic device 700 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
- the charging management module 740 is used to receive charging input from the charger.
- the charger can be a wireless charger or a wired charger.
- the charging management module 740 may receive the charging input of the wired charger through the USB interface 730.
- the charging management module 740 may receive the wireless charging input through the wireless charging coil of the electronic device 700. While the charging management module 740 charges the battery 742, it can also supply power to the electronic device through the power management module 741.
- the power management module 741 is used to connect the battery 742, the charging management module 740 and the processor 710.
- the power management module 741 receives input from the battery 742 and/or the charge management module 740, and supplies power to the processor 710, the internal memory 721, the external memory, the display screen 794, the camera 793, and the wireless communication module 760.
- the power management module 741 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
- the power management module 741 may also be provided in the processor 710.
- the power management module 741 and the charging management module 740 may also be provided in the same device.
- the wireless communication function of the electronic device 700 can be implemented by the antenna 1, the antenna 2, the mobile communication module 750, the wireless communication module 760, the modem processor, and the baseband processor.
- the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the electronic device 700 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 750 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 700.
- the mobile communication module 750 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
- the mobile communication module 750 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
- the mobile communication module 750 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
- at least part of the functional modules of the mobile communication module 750 may be provided in the processor 710.
- at least part of the functional modules of the mobile communication module 750 and at least part of the modules of the processor 710 may be provided in the same device.
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
- the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
- the application processor outputs sound signals through audio equipment (not limited to the speaker 770A, the receiver 770B, etc.), or displays pictures or videos through the display screen 794.
- the modem processor may be an independent device.
- the modem processor may be independent of the processor 710 and be provided in the same device as the mobile communication module 750 or other functional modules.
- the wireless communication module 760 can provide applications on the electronic device 700 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- the wireless communication module 760 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 760 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 710.
- the wireless communication module 760 may also receive the signal to be sent from the processor 710, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
- the antenna 1 of the electronic device 700 is coupled with the mobile communication module 750, and the antenna 2 is coupled with the wireless communication module 760, so that the electronic device 700 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
- the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite-based augmentation systems
- the communication module is used to receive and send information, and can execute:
- the server sends the evaluation result corresponding to the time point t to the server through the communication module, so that the server obtains corresponding push information according to the evaluation result corresponding to the time point t, the push information is used to instruct the user to manage the emotions at the time point t; receive the server sent through the communication module And output the push information sent by the server.
- the communication module is also used to execute: when the probability of the first emotion corresponding to each sampling time point from time t1 to time t is detected to be less than the first threshold, the communication module sends a reminder to the set contact of the user Information, the prompt information is used to remind the user’s contacts of the user’s emotional state of the user from time t1 to time t, the first emotion is one of the N emotion types, and the time point t1 is the time point T0 To a point in time t.
- the electronic device 700 implements a display function through a GPU, a display screen 794, and an application processor.
- the GPU is an image processing microprocessor, which connects the display screen 794 and the application processor.
- the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
- the processor 710 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 794 is used to display pictures, videos, etc.
- the display screen 794 includes a display panel.
- the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
- LCD liquid crystal display
- OLED organic light-emitting diode
- active-matrix organic light-emitting diode active-matrix organic light-emitting diode
- AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
- the electronic device 700 may include one or N display screens 794, and N is a positive integer greater than one.
- the display screen may include input modules such as a soft keyboard.
- the following can be performed through a display (such as the above-mentioned display screen 794) and an input module:
- the scale questionnaire includes at least one question; receive input options for each of the at least one question through the input module; determine the user’s psychological feature score according to the input options for each question, and the psychological feature score includes neuroticism At least one of score, conscientiousness score, and easy-going score.
- the basic information input by the user, the physiological cycle characteristics of the user and other characteristic parameters can be received through the display screen 794.
- the relevant description in step S202 please refer to the relevant description in step S202, which will not be repeated here.
- the electronic device 700 can realize the collection function through an ISP, a camera 793, a video codec, a GPU, a display screen 794, and an application processor.
- the ISP is used to process the data fed back from the camera 793. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing, which is converted into a picture or video visible to the naked eye.
- ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be provided in the camera 793.
- the camera 793 is used to capture still pictures or videos.
- the object generates an optical image through the lens and is projected to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital picture or video signal.
- ISP outputs digital pictures or video signals to DSP for processing.
- DSP converts digital pictures or video signals into standard RGB, YUV and other formats of pictures or video signals.
- the electronic device 700 may include one or N cameras 793, and N is a positive integer greater than one.
- the digital signal processor is used to process digital signals. In addition to processing digital pictures or video signals, it can also process other digital signals. For example, when the electronic device 700 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
- Video codecs are used to compress or decompress digital video.
- the electronic device 700 may support one or more video codecs. In this way, the electronic device 700 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
- MPEG moving picture experts group
- NPU is a neural-network (NN) computing processor.
- NN neural-network
- applications such as intelligent cognition of the electronic device 700 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
- the external memory interface 720 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 710 through the external memory interface 720 to realize the data storage function. For example, save music, video and other files in an external memory card.
- the internal memory 721 may be used to store computer executable program code, where the executable program code includes instructions.
- the processor 710 executes various functional applications and data processing of the electronic device 700 by running instructions stored in the internal memory 721.
- the internal memory 721 may include a program storage area and a data storage area.
- the storage program area can store an operating system, at least one application program (such as a sound playback function, a picture or video playback function, etc.) required by at least one function.
- the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 700.
- the internal memory 721 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
- UFS universal flash storage
- the electronic device 100 can implement audio functions through an audio module 770, a speaker 770A, a receiver 770B, a microphone 770C, a headphone interface 770D, and an application processor. For example, music playback, recording, etc.
- the audio module 770 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
- the audio module 770 can also be used to encode and decode audio signals.
- the audio module 770 may be provided in the processor 710, or part of the functional modules of the audio module 770 may be provided in the processor 710.
- the speaker 770A also called “speaker” is used to convert audio electrical signals into sound signals.
- the electronic device 700 can listen to music through the speaker 770A, or listen to a hands-free call.
- the receiver 770B also called “earpiece” is used to convert audio electrical signals into sound signals.
- the electronic device 700 answers a call or voice message, it can receive the voice by bringing the receiver 770B close to the human ear.
- Microphone 770C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 770C through the human mouth, and input the sound signal into the microphone 770C.
- the electronic device 100 may be provided with at least one microphone 770C. In some other embodiments, the electronic device 700 can be provided with two microphones 770C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 700 may also be provided with three, four or more microphones 770C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
- the earphone interface 770D is used to connect wired earphones.
- the earphone interface 770D may be a USB interface 730, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association
- the pressure sensor 780A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
- the pressure sensor 780A may be provided on the display screen 794.
- the capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force is applied to the pressure sensor 780A, the capacitance between the electrodes changes. The electronic device 700 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 794, the electronic device 700 detects the intensity of the touch operation according to the pressure sensor 780A.
- the electronic device 700 may also calculate the touched position according to the detection signal of the pressure sensor 780A.
- touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
- the gyro sensor 780B may be used to determine the movement posture of the electronic device 700.
- the angular velocity of the electronic device 700 around three axes ie, x, y, and z axes
- the gyro sensor 780B can be used for image stabilization.
- the gyro sensor 780B can also be used for navigation and somatosensory game scenes.
- the air pressure sensor 780C is used to measure air pressure.
- the electronic device 700 calculates the altitude based on the air pressure value measured by the air pressure sensor 780C to assist positioning and navigation.
- the magnetic sensor 780D includes a Hall sensor.
- the electronic device 700 can use the magnetic sensor 780D to detect the opening and closing of the flip holster.
- the acceleration sensor 780E can detect the magnitude of the acceleration of the electronic device 700 in various directions (generally three axes). When the electronic device 700 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on.
- the electronic device 700 can measure the distance by infrared or laser.
- the positioning module may include a distance sensor 780F, an acceleration sensor 780E, etc.
- the positioning module is used to locate the position of the user, so that the processor executes: obtain the user's position information at time t through the positioning module; The information determines the type of place the user is in at time t.
- the position information of the user may also be obtained through the sensor 780F and the acceleration sensor 780E, so as to analyze and calculate the amount of exercise of the user.
- the sensor 780F and the acceleration sensor 780E may also be obtained through the sensor 780F and the acceleration sensor 780E, so as to analyze and calculate the amount of exercise of the user.
- the above-mentioned related description of obtaining the user's exercise volume please refer to the above-mentioned related description of obtaining the user's exercise volume, which will not be repeated here.
- the proximity light sensor 780G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
- the light emitting diode may be an infrared light emitting diode.
- the electronic device 700 emits infrared light to the outside through the light emitting diode.
- the electronic device 700 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 700. When insufficient reflected light is detected, the electronic device 700 can determine that there is no object near the electronic device 700.
- the electronic device 700 can use the proximity light sensor 780G to detect that the user holds the electronic device 700 close to the ear to talk, so as to automatically turn off the screen to save power.
- the proximity light sensor 780G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
- the ambient light sensor 780L is used to sense the brightness of the ambient light.
- the electronic device 700 can adaptively adjust the brightness of the display screen 794 according to the perceived brightness of the ambient light.
- the ambient light sensor 780L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 780L can also cooperate with the proximity light sensor 780G to detect whether the electronic device 700 is in the pocket to prevent accidental touch.
- the light intensity of the user can be obtained through the light sensor.
- the light sensor please refer to the above description of obtaining the light intensity of the user, which will not be repeated here.
- the fingerprint sensor 780H is used to collect fingerprints.
- the electronic device 700 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
- the temperature sensor 780J is used to detect temperature.
- the electronic device 700 uses the temperature detected by the temperature sensor 780J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 780J exceeds a threshold value, the electronic device 700 performs a reduction in the performance of the processor located near the temperature sensor 780J, so as to reduce power consumption and implement thermal protection.
- the electronic device 700 when the temperature is lower than another threshold, the electronic device 700 heats the battery 742 to avoid abnormal shutdown of the electronic device 700 due to low temperature.
- the electronic device 700 boosts the output voltage of the battery 742 to avoid abnormal shutdown caused by low temperature.
- the user's temperature can be obtained through a temperature sensor.
- the touch sensor 780K is also called “touch panel”.
- the touch sensor 780K can be set on the display screen 794, and the touch screen is composed of the touch sensor 780K and the display screen 794, which is also called a “touch screen”.
- the touch sensor 780K is used to detect touch operations acting on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- the visual output related to the touch operation can be provided through the display screen 794.
- the touch sensor 780K may also be disposed on the surface of the electronic device 700, which is different from the position of the display screen 794.
- the bone conduction sensor 780M can acquire vibration signals.
- the bone conduction sensor 780M can acquire the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 780M can also contact the human pulse and receive blood pressure beating signals.
- the bone conduction sensor 780M may also be provided in the earphone, combined with the bone conduction earphone.
- the audio module 770 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 780M, and realize the voice function.
- the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 780M, and realize the heart rate detection function.
- the user's blood pressure beat information can be obtained through the above-mentioned bone conduction sensor, so as to obtain information such as heart rate and respiration rate.
- the electronic device 700 may further include an optical heart rate sensor 780N, through which characteristic parameters such as the user's heart rate, respiration rate, and heart rate variability are acquired.
- characteristic parameters such as the user's heart rate, respiration rate, and heart rate variability are acquired.
- the button 790 includes a power button, a volume button, and so on.
- the button 790 may be a mechanical button. It can also be a touch button.
- the electronic device 700 may receive key input, and generate key signal input related to user settings and function control of the electronic device 700.
- the motor 791 can generate vibration prompts.
- the motor 791 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
- touch operations applied to different applications can correspond to different vibration feedback effects.
- Acting on touch operations in different areas of the display screen 794, the motor 791 can also correspond to different vibration feedback effects.
- Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 792 can be an indicator light, which can be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
- the SIM card interface 795 is used to connect to the SIM card.
- the SIM card can be inserted into the SIM card interface 795 or pulled out from the SIM card interface 795 to achieve contact and separation with the electronic device 700.
- the electronic device 700 may support 1 or N SIM card interfaces, and N is a positive integer greater than 7.
- the SIM card interface 795 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
- the same SIM card interface 795 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
- the SIM card interface 795 can also be compatible with different types of SIM cards.
- the SIM card interface 795 can also be compatible with external memory cards.
- the electronic device 700 interacts with the network through the SIM card to implement functions such as call and data communication.
- the electronic device 700 adopts an eSIM, that is, an embedded SIM card.
- the eSIM card can be embedded in the electronic device 700 and cannot be separated from the electronic device 700.
- FIG. 8 is a schematic structural diagram of another electronic device for evaluating female emotions provided by an embodiment of the present application.
- the electronic device 800 shown in FIG. 8 (the electronic device 800 may specifically be a computer device) includes a memory 801, a processor 802, a communication interface 803, and a bus 804. Among them, the memory 801, the processor 802, and the communication interface 803 realize the communication connection between each other through the bus 804.
- the memory 801 may be a read only memory (Read Only Memory, ROM), a static storage device, a dynamic storage device, or a random access memory (Random Access Memory, RAM).
- the memory 801 may store a program. When the program stored in the memory 801 is executed by the processor 802, the processor 802 and the communication interface 803 are used to execute each step of the method for evaluating female emotions in the embodiment of the present application.
- the processor 802 may adopt a general central processing unit (Central Processing Unit, CPU), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a graphics processing unit (graphics processing unit, GPU), or one or more
- the integrated circuit is used to execute related programs to realize the functions required in the method for evaluating female emotions in the embodiments of the present application.
- the processor 802 may also be an integrated circuit chip with signal processing capability. In the implementation process, each step of the method for evaluating female emotions of the present application can be completed by the integrated logic circuit of hardware in the processor 802 or instructions in the form of software.
- the aforementioned processor 802 may also be a general-purpose processor, a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices , Discrete gates or transistor logic devices, discrete hardware components.
- DSP Digital Signal Processing
- ASIC application specific integrated circuit
- FPGA off-the-shelf programmable gate array
- FPGA Field Programmable Gate Array
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
- the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
- the storage medium is located in the memory 801, and the processor 802 reads the information in the memory 801 and completes the method for evaluating female emotions in the embodiment of the present application in combination with its hardware.
- the communication interface 803 uses a transceiving device such as but not limited to a transceiver to implement communication between the device 800 and other devices or a communication network. For example, the data to be evaluated can be obtained through the communication interface 803.
- a transceiving device such as but not limited to a transceiver to implement communication between the device 800 and other devices or a communication network.
- the data to be evaluated can be obtained through the communication interface 803.
- the bus 804 may include a path for transferring information between various components of the device 800 (for example, the memory 801, the processor 802, and the communication interface 803).
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Animal Behavior & Ethology (AREA)
- Pathology (AREA)
- Heart & Thoracic Surgery (AREA)
- Medical Informatics (AREA)
- Surgery (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Physiology (AREA)
- Cardiology (AREA)
- Theoretical Computer Science (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Data Mining & Analysis (AREA)
- Mathematical Physics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Psychiatry (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Signal Processing (AREA)
- Pulmonology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Hospice & Palliative Care (AREA)
- Evolutionary Biology (AREA)
- Hematology (AREA)
- Fuzzy Systems (AREA)
- Social Psychology (AREA)
- Dentistry (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
Abstract
A method and apparatus for evaluating female emotion, and a related device, relating to the field of artificial intelligence. The method comprises: an execution device obtains M pieces of data to be evaluated of a user, wherein the M pieces of data to be evaluated comprise physiological data of M sampling points sampled from a time point t-T to a time point t, and the M pieces of data to be evaluated have one-to-one correspondence to the M sampling points; then, the execution device inputs the M pieces of data to be evaluated into a first model to obtain an evaluation result corresponding to the time point t; and finally, the execution device outputs the evaluation result corresponding to the time point t. The emotion of a user is evaluated by obtaining data to be evaluated of the user within one physiological period. Female emotion is evaluated by using history data to be evaluated and female physiological period characteristics, so that the accuracy of evaluation of the female emotion can be improved.
Description
本申请要求于2020年05月21日提交国家知识产权局、申请号为202010437492.6、申请名称为“一种评估女性情绪的方法及相关装置、设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office on May 21, 2020, the application number is 202010437492.6, and the application title is "A method for assessing female emotions and related devices and equipment", and the entire content of it is approved The reference is incorporated in this application.
本申请涉及人工智能技术领域,尤其涉及一种评估女性情绪的方法及相关装置、设备。This application relates to the field of artificial intelligence technology, and in particular to a method and related devices and equipment for evaluating female emotions.
情绪能够反映一个人的精神状况,情绪识别用于研究人体的信号特征与情绪之间的关系。情绪识别方法通过获取用户特定的信号特征,对用户情绪进行判断。进而,可以向用户推送相关的情绪管理方法,以使用户提升管理情绪的能力,更好的应对学习、工作和生活。Emotions can reflect a person's mental state, and emotion recognition is used to study the relationship between the human body's signal characteristics and emotions. The emotion recognition method judges the user's emotion by obtaining the user's specific signal characteristics. Furthermore, related emotion management methods can be pushed to users, so that users can improve their ability to manage emotions and better cope with study, work and life.
目前,主要采用穿戴设备采集人体中与情绪相关的生理数据,例如,体温、心跳、呼吸率等。一般而言,现有的情绪识别主要是基于一个时间点的生理参数对该时间点对应的情绪进行评估。但是,情绪是连续性的,每一个时间点的情绪是在该时间点之前的历史情绪的基础上变化而来的;其次,对于女性而言,在不同的生理周期阶段,情绪变化与生理数据的关联性不同,一个时间点的生理数据得到的情绪评估结果准确定难免不高。因此,如何提高评估女性情绪的准确性,使得女性可以获取到更加准确的情绪状况,从而更好的管理情绪,是目前亟待解决的技术问题。At present, wearable devices are mainly used to collect physiological data related to emotions in the human body, such as body temperature, heartbeat, and respiration rate. Generally speaking, the existing emotion recognition is mainly based on the physiological parameters of a time point to evaluate the emotion corresponding to the time point. However, emotions are continuous, and the emotions at each point in time are changed on the basis of the historical emotions before that point in time; secondly, for women, in different stages of the menstrual cycle, emotional changes and physiological data The relevance is different, and it is inevitable that the result of emotional evaluation obtained from physiological data at a time point is not high. Therefore, how to improve the accuracy of evaluating women's emotions so that women can obtain more accurate emotional conditions and better manage their emotions is a technical problem that needs to be solved urgently.
发明内容Summary of the invention
本申请实施例提供了一种评估女性情绪的方法及相关装置、设备,该评估女性情绪方法针对女性的特征,考虑到了在不同生理阶段,女性情绪变化与生理数据的关联性的变化这一因素,通过评估时间点之前的一个生理周期内生理数据,来评估用户在该评估时间点的情绪,可提升评估女性情绪的准确性。The embodiments of the present application provide a method for evaluating female emotions and related devices and equipment. The method for evaluating female emotions is aimed at the characteristics of women and takes into account the factor of changes in the correlation between female emotional changes and physiological data at different physiological stages. , By evaluating the physiological data in a menstrual cycle before the time point, the user’s emotions at the evaluation time point are evaluated, which can improve the accuracy of evaluating women’s emotions.
第一方面,本申请实施例提供了一种评估女性情绪的方法,包括:In the first aspect, an embodiment of the present application provides a method for evaluating female emotions, including:
执行设备获取用户的M个待评估数据,该M个待评估数据包括在时间点t-T至时间点t内采样的M个采样点的生理数据,该M个待评估数据按照时间先后顺序排列,M个待评估数据与M个采样点一一对应,其中,M=Z*T,T为一个生理周期,Z为生理数据的采样频率;进而,将M个待评估数据输入到第一模型,得到时间点t对应的评估结果,该时间点t对应的评估结果用于指示用户在时间点t的情绪为N个情绪类型中每一个情绪类型的概率,第一模型是通过多个样本训练得到的深度神经网络,多个样本中每一个样本的输入数据包括在时间点t’-T’至时间点t’内采样的M’个采样点的生理数据,每一个样本的标签为在时间点t’的情绪类型,M’=Z*T’,T’为一个生理周期;最后,输出时间点t对应的评估结果。The execution device acquires the user's M data to be evaluated. The M data to be evaluated include the physiological data of M sampling points sampled from time tT to time t. The M data to be evaluated are arranged in chronological order, M Each data to be evaluated corresponds to M sampling points one-to-one, where M=Z*T, T is a physiological period, and Z is the sampling frequency of physiological data; furthermore, input M data to be evaluated into the first model to obtain The evaluation result corresponding to the time point t. The evaluation result corresponding to the time point t is used to indicate the probability that the user's emotion at the time point t is each of the N emotion types. The first model is obtained through multiple sample training Deep neural network, the input data of each sample in multiple samples includes the physiological data of M'sampling points sampled from time point t'-T' to time point t', and the label of each sample is at time point t The emotion type of', M'=Z*T', T'is a menstrual cycle; finally, output the evaluation result corresponding to the time point t.
应理解,生理数据可以包括心率、呼吸率、心率变异性、血流灌注、体温、运动量、 血流灌注、生物电阻抗等。It should be understood that the physiological data may include heart rate, respiration rate, heart rate variability, blood perfusion, body temperature, exercise volume, blood perfusion, bioelectrical impedance, and the like.
应理解,第一模型可以是卷积神经网络,也可以是循环神经网络,M’应大于或等于M。It should be understood that the first model may be a convolutional neural network or a recurrent neural network, and M'should be greater than or equal to M.
执行设备可以是终端设备,如手机、平板电脑、台式计算机、便携式笔记本、AR/VR等,也可以是服务器或者云端等。The execution device can be a terminal device, such as a mobile phone, a tablet computer, a desktop computer, a portable notebook, AR/VR, etc., or a server or cloud.
上述方法,一方面,因为女性在生理周期的不同阶段,情绪变化与生理数据的关联性会发生变化,例如,在生理数据完全相同的情况下,因为情绪与生理数据的关联性不同,女性处在“经期”与处在“黄体期”所表现出的情绪可能不同。因此,仅通过一个时间点的生理数据评估女性在该时间点的情绪难免准确度低,因此,本申请实施例通过结合女性整个生理周期的特性,获取用户在时间点之前的一个生理周期内的生理数据来评估用户在该时间点时的情绪。第二方面,情绪在时间上是连续的,仅通过一个时间点的生理数据来评估用户在该时间点的情绪,忽略了历史情绪对当前情绪的影响,因此,本申请实施例获取时间点之前一个生理周期的生理数据来评估该时间点的情绪,加入历史生理数据对该时间点的情绪的影响。综上,实施申请实施例,可以提高评估女性情绪的准确度。The above method, on the one hand, because women are in different stages of the menstrual cycle, the relationship between emotional changes and physiological data will change. The emotions shown during the "menstrual period" and the "luteal phase" may be different. Therefore, it is inevitable that the accuracy of evaluating women’s emotions at that time point by only using physiological data at one point in time is low. Therefore, the embodiment of the present application combines the characteristics of the female's entire menstrual cycle to obtain the user’s information in a menstrual cycle before the time point. Physiological data to evaluate the user’s emotions at that point in time. In the second aspect, emotions are continuous in time, and the user’s emotions at that time point are evaluated only through physiological data at one point in time, ignoring the influence of historical emotions on the current emotions. Therefore, the embodiment of the present application obtains the time point before The physiological data of a menstrual cycle is used to evaluate the emotion at that time point, and the influence of historical physiological data on the emotion at that time point is added. In summary, implementing the application examples can improve the accuracy of evaluating women's emotions.
在一个可选的实现方式中,待评估数据还可以包括用户的心理特征得分、用户所处的场所类型、用户的基本信息、用户的生理周期特征、用户的环境信息等。其中,心理特征得分包括用户的神经质得分、责任心得分、随和性得分等;用户的基本信息包括用户的年龄、性别、体重等;用户的生理周期特征包括用户所在的生理周期阶段、生理周期时长、距离排卵日的时长、距离经期的时长;用户的环境信息可以包括用户所处环境的光强度等信息。In an optional implementation manner, the data to be evaluated may also include the user's psychological characteristic score, the type of place the user is located in, the user's basic information, the user's physiological cycle characteristics, the user's environmental information, and so on. Among them, the psychological feature score includes the user's neuroticism score, conscientiousness score, easygoing score, etc.; the user's basic information includes the user's age, gender, weight, etc.; the user's menstrual cycle characteristics include the user's menstrual cycle stage and menstrual cycle duration , The length of time from the day of ovulation and the length of time from the menstrual period; the user's environmental information may include information such as the light intensity of the user's environment.
应理解,不同用户的心理素质、生活经验、所处的环境等情况的不同,在很大程度上,不同用户在同一场景下的情绪差异明显。因此,上述方法,待评估数据在生理数据的基础上结合用户的心理特征得分、生理周期特性、环境信息、基本信息等参数,以提高评估用户情绪的准确性。It should be understood that the psychological quality, life experience, environment and other situations of different users are different, to a large extent, the emotions of different users in the same scene are obviously different. Therefore, in the above method, the data to be evaluated combines the user's psychological feature score, physiological cycle characteristics, environmental information, basic information and other parameters on the basis of physiological data to improve the accuracy of evaluating the user's emotions.
在一个可选的实现方式中,第一模型为循环神经网络,第一模型包括M个网格单元,将M个待评估数据输入到第一模型包括:将M个待评估数据中的第i个待评估数据和第i-1个网络单元的输出数据输入到M个网络单元中的第i个网络单元,i为大于等于2且小于等于M的整数。In an optional implementation manner, the first model is a cyclic neural network, the first model includes M grid units, and inputting M pieces of data to be evaluated into the first model includes: inputting the i-th of the M pieces of data to be evaluated The data to be evaluated and the output data of the i-1th network unit are input to the i-th network unit of the M network units, where i is an integer greater than or equal to 2 and less than or equal to M.
在一个可选的实现方式中,第一模型为卷积神经网络,M个待评估数据形成数据矩阵,该数据矩阵包括M行,第j行的数据为M个待评估数据中的第j个待评估数据,j为大于等于1且小于等于M的整数。In an alternative implementation, the first model is a convolutional neural network, and M pieces of data to be evaluated form a data matrix, the data matrix includes M rows, and the data in the jth row is the jth of the M pieces of data to be evaluated For the data to be evaluated, j is an integer greater than or equal to 1 and less than or equal to M.
在一个可选的实现方式中,第一模型包括第一子模型和第二子模型,将M个待评估数据输入到第一模型,得到时间点t对应的评估结果,包括:In an optional implementation manner, the first model includes a first sub-model and a second sub-model, and M pieces of to-be-evaluated data are input to the first model to obtain the evaluation result corresponding to the time point t, including:
将M个待评估数据输入到第一子模型,得到第一评估结果,该第一评估结果用于指示用户在时间点t的情绪为P个情绪类型中每一个情绪类型的概率,第一子模型是通过多个样本中标签为P个情绪类型的样本训练得到的深度神经网络;将M个待评估数据输入到第二子模型,得到第二评估结果,该第二评估结果用于指示用户在时间点t的情绪为Q个情绪类型中每一个情绪类型的概率,第二子模型是通过多个样本中标签为Q个情绪类型的样本训练得到的深度神经网络;时间点t对应的评估结果包括第一评估结果和第二评估结果, N=P+Q,P、Q为正整数。Input M to-be-evaluated data into the first sub-model to obtain the first evaluation result. The first evaluation result is used to indicate the probability that the user’s emotion at time t is each of the P emotion types, the first sub-model The model is a deep neural network trained by samples labeled with P emotion types in multiple samples; M pieces of data to be evaluated are input into the second sub-model to obtain the second evaluation result, which is used to instruct the user The emotion at time t is the probability of each of the Q emotion types. The second sub-model is a deep neural network trained by samples labeled Q emotion types in multiple samples; the evaluation corresponding to time t The result includes the first evaluation result and the second evaluation result, N=P+Q, and P and Q are positive integers.
应理解,上述第一模型可以是单个多分类的神经网络,也可以包括多个子模型,每个子模型可以是多分类的神经网络。It should be understood that the foregoing first model may be a single multi-class neural network, or may include multiple sub-models, and each sub-model may be a multi-class neural network.
在一个可选的实现方式中,执行设备还用于:获取时间点T0至时间点t内每一个采样点时间点对应的评估结果,时间点T0为时间点t之前的一个时间点;输出时间点t对应的评估结果,包括:根据时间点T0至时间点t内每一个待评估数据对应的评估结果生成情绪变化趋势图;输出该情绪变化趋势图。In an optional implementation manner, the execution device is also used to: obtain the evaluation result corresponding to each sampling point time point from time point T0 to time point t, where time point T0 is a time point before time point t; output time The evaluation result corresponding to point t includes: generating a mood change trend graph according to the evaluation result corresponding to each data to be evaluated from time point T0 to time point t; and outputting the mood change trend graph.
上述方法,执行设备输出情绪变化趋势图,以使用户可以直观的了解用户在时间点T0至时间点t之间的情绪变化。In the above method, the execution device outputs the mood change trend graph, so that the user can intuitively understand the user's mood change between the time point T0 and the time point t.
在一个可选的实现方式中,执行设备在输出时间点t对应的评估结果之后,该方法还包括:向服务器发送时间点t对应的评估结果,以使服务器根据时间点t对应的评估结果获取对应的推送信息,该推送信息用于指示用户管理时间点t的情绪;接收并输出服务器发送的推送信息。In an optional implementation manner, after the execution device outputs the evaluation result corresponding to the time point t, the method further includes: sending the evaluation result corresponding to the time point t to the server, so that the server obtains the evaluation result corresponding to the time point t Corresponding push information, which is used to instruct the user to manage emotions at time t; receive and output push information sent by the server.
上述方法,执行设备向用户输出推送信息,以使用户可以通过推送信息提示的方式管理用户的情绪。In the above method, the execution device outputs push information to the user, so that the user can manage the user's emotions by means of push information prompts.
在一个可选的实现方式中,执行设备获取时间点T0至所述时间点t内每一个待评估数据对应的评估结果之后,该方法还包括:In an optional implementation manner, after the execution device obtains the evaluation result corresponding to each data to be evaluated from the time point T0 to the time point t, the method further includes:
在检测到时间点t1至时间点t的每一个采样时间点分别对应的第一情绪的概率小于第一阈值时,向设定的用户的联系人发送提示信息,该提示信息用于提示该用户的联系人该用户在时间点t1至时间点t内该用户的情绪状况,第一情绪为N个情绪类型中的一个情绪类型,时间点t1为时间点T0至时间点t内的一个时间点。When it is detected that the probability of the first emotion corresponding to each sampling time point from time t1 to time t is less than the first threshold, a reminder message is sent to the set contact of the user, and the reminder information is used to remind the user The emotional state of the user from time t1 to time t, the first emotion is one of the N emotion types, and time t1 is a time point from time T0 to time t .
应理解,在一种应用场景中,执行设备还可以在检测到用户在时间点t对应的第一情绪与时间点t之前的一个采样时间点对应的第一情绪的差值大于第二阈值情况下,向设定的用户的联系联系人发送提示信息。It should be understood that, in an application scenario, the execution device may also detect that the difference between the first emotion corresponding to the user at time t and the first emotion corresponding to a sampling time point before time t is greater than the second threshold. Next, send a reminder message to the contact person of the set user.
应理解,执行设备向用户的联系人发送提示信息不限于上述提及的条件,还可以基于实际应用设定相应的触发条件,以使用户的联系人了解用户的情绪状况。It should be understood that the sending of prompt information by the execution device to the user's contact is not limited to the aforementioned conditions, and corresponding trigger conditions can also be set based on actual applications, so that the user's contact can understand the user's emotional state.
在一个可选的实现方式中,执行设备输出时间点t对应的评估结果,包括:In an optional implementation manner, the execution device outputs the evaluation result corresponding to the time point t, including:
确定N个情绪类型中最大概率对应的情绪类型为该用户在时间点t对应的目标情绪类型;输出该目标情绪类型。Determine the emotion type corresponding to the greatest probability among the N emotion types as the target emotion type corresponding to the user at the time point t; output the target emotion type.
在一个可选的实现方式中,情绪类型可以包括高兴、低落、积极和消极。In an alternative implementation, the emotion types can include happy, down, positive, and negative.
第二方面,本申请实施例还提供了一种评估女性情绪的装置,其特征在于,包括处理器和存储器,所述存储器用于存储程序指令,所述处理器用于调用所述存储器用于存储程序指令执行如下操作:In a second aspect, an embodiment of the present application also provides an apparatus for evaluating female emotions, which is characterized by comprising a processor and a memory, the memory is used to store program instructions, and the processor is used to call the memory to store The program instructions perform the following operations:
获取用户的M个待评估数据,所述M个待评估数据包括在时间点t-T至时间点t内采样的M个采样点的生理数据,所述M个待评估数据按照时间先后顺序排列,所述M个待评估数据与所述M个采样点一一对应,所述M=Z*T,所述T为一个生理周期,所述Z为所述生理数据的采样频率;Acquire M to-be-assessed data of the user, the M to-be-assessed data include physiological data of M sampling points sampled from time point tT to time point t, and the M to-be-assessed data are arranged in chronological order, so The M to-be-assessed data correspond to the M sampling points one-to-one, the M=Z*T, the T is a physiological cycle, and the Z is the sampling frequency of the physiological data;
将所述M个待评估数据输入到第一模型,得到所述时间点t对应的评估结果,所述时间点t对应的评估结果用于指示所述用户在所述时间点t的情绪为N个情绪类型中每一个情绪类型的概率,所述第一模型是通过多个样本训练得到的深度神经网络,所述多个样本中每一个样本的输入数据包括在时间点t’-T’至时间点t’内采样的M’个采样点的生理数据,所述每一个样本的标签为在所述时间点t’的情绪类型,M’=Z*T’,所述T’为一个生理周期;Input the M data to be evaluated into the first model to obtain the evaluation result corresponding to the time point t, and the evaluation result corresponding to the time point t is used to indicate that the user's emotion at the time point t is N The first model is a deep neural network trained through a plurality of samples, and the input data of each sample in the plurality of samples includes the time point t'-T' to the probability of each emotion type. The physiological data of M'sampling points sampled within the time point t', the label of each sample is the emotion type at the time point t', M'=Z*T', and the T'is a physiological data cycle;
输出所述时间点t对应的评估结果。Output the evaluation result corresponding to the time point t.
在一个可选的实现方式中,所述装置还包括显示器和输入模块,所述显示器耦合所述处理器,所述待评估数据包括心理特征得分,所述处理器执行所述获取用户的M个待评估数据,包括执行:In an optional implementation manner, the device further includes a display and an input module, the display is coupled to the processor, the data to be evaluated includes a psychological feature score, and the processor executes the acquisition of the M data of the user Data to be evaluated, including implementation:
通过所述显示器显示量表问卷,所述量表问卷包括至少一个问题;Displaying a scale questionnaire on the display, the scale questionnaire including at least one question;
通过所述输入装置接收针对所述至少一个问题中每一个问题输入的选项;Receiving an input option for each of the at least one question through the input device;
根据所述每一个问题输入的选项确定所述用户的心理特征得分,所述心理特征得分包括神经质得分、责任心得分和随和性得分中的至少一种。The psychological feature score of the user is determined according to the input options of each question, and the psychological feature score includes at least one of a neuroticism score, a conscientiousness score, and an easygoing score.
在一个可选的实现方式中,所述装置还包括定位模块,所述待评估数据包括所述用户在所述时间点t所处的场所类型,所述处理器执行所述获取用户的M个待评估数据,包括执行:In an optional implementation manner, the device further includes a positioning module, the data to be assessed includes the type of place where the user is located at the time point t, and the processor executes the acquisition of M data of the user Data to be evaluated, including implementation:
通过所述定位模块获取所述用户在所述时间点t时的位置信息;Obtaining the location information of the user at the time point t through the positioning module;
根据所述位置信息确定所述用户在所述时间点t时所处的场所类型。The type of place where the user is located at the time point t is determined according to the location information.
在一个可选的实现方式中,所述装置还包括输入模块,所述输入模块耦合所述处理器,所述待评估数据包括所述用户的年龄、性别和体重,所述处理器执行所述获取用户的M个待评估数据,包括执行:In an optional implementation manner, the device further includes an input module coupled to the processor, the data to be evaluated includes the age, gender, and weight of the user, and the processor executes the Obtain the user's M data to be evaluated, including execution:
接收输入的所述用户的基本信息,所述基本信息包括年龄、性别和体重。Receive input of basic information of the user, where the basic information includes age, gender, and weight.
在一个可选的实现方式中,所述待评估数据还包括用户所在生理周期阶段、生理周期时长、距离排卵日的时长、距离经期的时长、光强度中的至少一种。In an optional implementation manner, the data to be evaluated further includes at least one of the user's menstrual cycle stage, menstrual cycle duration, duration from ovulation day, duration from menstruation, and light intensity.
在一个可选的实现方式中,所述第一模型为循环神经网络,所述第一模型包括M个网络单元,所述处理器执行将所述M个待评估数据输入到第一模型,包括执行:In an optional implementation manner, the first model is a recurrent neural network, the first model includes M network units, and the processor executes the input of the M to-be-assessed data into the first model, including implement:
将所述M个待评估数据中的第i个待评估数据和所述第i-1个网络单元的输出数据输入到所述M个网络单元中的第i个网络单元,所述i为大于等于2且小于等于M的整数。Input the i-th data to be evaluated among the M data to be evaluated and the output data of the i-1th network unit into the i-th network unit of the M network units, where i is greater than An integer equal to 2 and less than or equal to M.
在一个可选的实现方式中,所述第一模型为卷积神经网络,所述M个待评估数据形成数据矩阵,所述数据矩阵包括M行,所述第j行的数据为所述M个待评估数据中的第j个待评估数据,所述j为大于等于1且小于等于M的整数。In an optional implementation manner, the first model is a convolutional neural network, the M pieces of data to be evaluated form a data matrix, the data matrix includes M rows, and the data in the jth row is the M The j-th data to be evaluated among the data to be evaluated, where j is an integer greater than or equal to 1 and less than or equal to M.
在一个可选的实现方式中,所述第一模型包括第一子模型和第二子模型,所述处理器执行将所述M个待评估数据输入到第一模型,得到所述时间点t对应的评估结果,包括执行:In an optional implementation manner, the first model includes a first sub-model and a second sub-model, and the processor executes the input of the M data to be evaluated into the first model to obtain the time point t Corresponding assessment results, including execution:
将所述M个待评估数据输入到所述第一子模型,得到第一评估结果,所述第一评估结果用于指示所述用户在所述时间点t的情绪为P个情绪类型中每一个情绪类型的概率,所述第一子模型是通过所述多个样本中标签为所述P个情绪类型的样本训练得到的深度神经网络;The M to-be-evaluated data are input into the first sub-model to obtain a first evaluation result. The first evaluation result is used to indicate that the user’s emotion at the time point t is each of the P emotion types. A probability of an emotion type, the first sub-model is a deep neural network obtained by training of samples labeled as the P emotion types in the plurality of samples;
将所述M个待评估数据输入到所述第二子模型,得到第二评估结果,所述第二评估结果用于指示所述用户在所述时间点t的情绪为Q个情绪类型中每一个情绪类型的概率,所述第二子模型是通过所述多个样本中标签为所述Q个情绪类型的样本训练得到的深度神经网络;The M to-be-evaluated data are input into the second sub-model to obtain a second evaluation result, and the second evaluation result is used to indicate that the emotion of the user at the time point t is each of the Q emotion types A probability of one emotion type, the second sub-model is a deep neural network obtained through training of samples labeled as the Q emotion types in the plurality of samples;
所述时间点t对应的评估结果包括所述第一评估结果和所述第二评估结果,N=P+Q,P、Q为正整数。The evaluation result corresponding to the time point t includes the first evaluation result and the second evaluation result, N=P+Q, and P and Q are positive integers.
在一个可选的实现方式中,所述处理器还包括执行:In an optional implementation manner, the processor further includes executing:
获取时间点T0至所述时间点t内每一个采样点时间点对应的评估结果,所述时间点T0为所述时间点t之前的一个时间点;Acquiring an evaluation result corresponding to each sampling point time point within the time point T0 to the time point t, where the time point T0 is a time point before the time point t;
所述输出所述时间点t对应的评估结果,包括:The outputting the evaluation result corresponding to the time point t includes:
根据所述时间点T0至所述时间点t内每一个待评估数据对应的评估结果生成情绪变化趋势图;Generating an emotion change trend graph according to the evaluation result corresponding to each data to be evaluated from the time point T0 to the time point t;
输出所述情绪变化趋势图。Output the mood change trend graph.
在一个可选的实现方式中,所述装置还包括通信模块,所述处理器执行输出所述时间点t对应的评估结果之后,还包括执行:In an optional implementation manner, the device further includes a communication module, and after the processor executes and outputs the evaluation result corresponding to the time point t, it further includes executing:
通过通信模块向服务器发送所述时间点t对应的评估结果,以使所述服务器根据所述时间点t对应的评估结果获取对应的推送信息,所述推送信息用于指示用户管理所述时间点t的情绪;The evaluation result corresponding to the time point t is sent to the server through the communication module, so that the server obtains corresponding push information according to the evaluation result corresponding to the time point t, and the push information is used to instruct the user to manage the time point t's emotions;
通过通信模块接收所述服务器发送的推送信息,并输出所述服务器发送的推送信息。The push information sent by the server is received through the communication module, and the push information sent by the server is output.
在一个可选的实现方式中,所述处理器执行获取时间点T0至所述时间点t内每一个待评估数据对应的评估结果之后,还包括执行:In an optional implementation manner, after the processor executes to obtain the evaluation result corresponding to each data to be evaluated from the time point T0 to the time point t, the method further includes executing:
在检测到时间点t1至所述时间点t的每一个采样时间点分别对应的第一情绪的概率小于第一阈值时,通过通信模块向设定的所述用户的联系人发送提示信息,所述提示信息用于提示所述用户的联系人所述用户在所述时间点t1至所述时间点t内所述用户的情绪状况,所述第一情绪为所述N个情绪类型中的一个情绪类型,所述时间点t1为所述时间点T0至所述时间点t内的一个时间点。When the probability of the first emotion corresponding to each sampling time point from the time point t1 to the time point t is detected to be less than the first threshold, the communication module sends prompt information to the set contact of the user, so The prompt information is used to prompt the user's contacts of the user's emotional state of the user from the time point t1 to the time point t, and the first emotion is one of the N emotion types Emotion type, the time point t1 is a time point from the time point T0 to the time point t.
在一个可选的实现方式中,所述处理器执行输出所述时间点t对应的评估结果,包括执行:确定所述N个情绪类型中最大概率对应的情绪类型为所述用户在所述时间点t对应的目标情绪类型;输出所述目标情绪类型。在一个可选的实现方式中,所述情绪类型包括高兴、低落、积极和消极。In an optional implementation manner, the processor executes and outputs the evaluation result corresponding to the time point t, including executing: determining that the emotion type corresponding to the greatest probability among the N emotion types is that the user is at the time The target emotion type corresponding to point t; output the target emotion type. In an optional implementation manner, the emotion types include happy, down, positive, and negative.
第三方面,本申请实施例提供一种计算机可读存储介质,其特征在于,所述计算机可读介质用于存储程序代码,所述程序代码包括用于执行第一方面所述的方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable medium is used to store program code, and the program code includes a method for executing the method described in the first aspect.
第四方面,本申请实施例提供一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述第一方面中的方法。In a fourth aspect, an embodiment of the present application provides a computer program product containing instructions, which when the computer program product runs on a computer, causes the computer to execute the method in the above-mentioned first aspect.
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will describe the drawings that need to be used in the embodiments of the present application or the background art.
图1a是本申请实施例提供的一种评估女性情绪的方法的网络架构示意图;FIG. 1a is a schematic diagram of a network architecture of a method for evaluating female emotions provided by an embodiment of the present application;
图1b是本申请实施例提供的一种LSTM的结构示意图;Fig. 1b is a schematic structural diagram of an LSTM provided by an embodiment of the present application;
图1c是本申请实施例提供的一种LSTM模型架构图;Fig. 1c is an LSTM model architecture diagram provided by an embodiment of the present application;
图1d是本申请实施例提供的一种CNN的结构示意图;Figure 1d is a schematic structural diagram of a CNN provided by an embodiment of the present application;
图1e是本申请实施例提供的另一种CNN的结构示意图;Figure 1e is a schematic structural diagram of another CNN provided by an embodiment of the present application;
图2是本申请实施例提供的一种评估女性情绪的方法流程示意图;FIG. 2 is a schematic flowchart of a method for evaluating female emotions according to an embodiment of the present application;
图3a是本申请实施例提供的一种执行设备执行评估女性情绪的方法的流程图;FIG. 3a is a flowchart of a method for evaluating female emotions performed by an execution device according to an embodiment of the present application;
图3b是本申请实施例示例性的提供的一种待评估数据的示意图;FIG. 3b is a schematic diagram of data to be evaluated provided by an embodiment of the present application;
图4a是本申请实施例示例性提供的一种评估结果示意图;Fig. 4a is a schematic diagram of an evaluation result exemplarily provided by an embodiment of the present application;
图4b是本申请实施例示例性提供的又一种评估结果示意图;FIG. 4b is a schematic diagram of another evaluation result exemplarily provided by an embodiment of the present application;
图5a是本申请实施例提供的一种输出时间点t对应的评估结果的示意图;FIG. 5a is a schematic diagram of an evaluation result corresponding to an output time point t provided by an embodiment of the present application;
图5b是本申请实施例示例性提供的一种用户情绪变化趋势的示意图;FIG. 5b is a schematic diagram of a user emotion change trend provided by an exemplary embodiment of the present application; FIG.
图6是本申请实施例提供的一种评估女性情绪方法的流程示意图;FIG. 6 is a schematic flowchart of a method for evaluating female emotions provided by an embodiment of the present application;
图7是本申请实施例提供的一种电子设备的结构示意图;FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图8是本申请实施例提供的另一种电子设备的结构示意图。FIG. 8 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
下面将结合本申请实施例中的附图,对本申请实施例进行描述。The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请实施例的限制。如在本申请实施例的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请实施例中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. As used in the description of the embodiments of this application and the appended claims, the singular expression forms "a", "an", "said", "above", "the" and "this" mean It also includes plural expressions, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" used in the embodiments of the present application refers to and includes any or all possible combinations of one or more of the listed items.
还用理解,本申请以下实施例中所使用的“多个”是指两个或两个以上。It should also be understood that the "plurality" used in the following embodiments of the present application refers to two or more.
为了更好地理解本申请实施例提供的一种评估女性情绪的方法、装置及计算机可读存储介质,下面先对本申请实施例使用的网络架构进行描述。请参阅图1a,是本申请实施例提供的一种评估女性情绪的方法的网络架构示意图,该网络架构示意图可以包括采集设备101、训练设备102、执行设备103和服务器104。其中:In order to better understand the method, device, and computer-readable storage medium for evaluating female emotions provided by the embodiments of the present application, the following describes the network architecture used in the embodiments of the present application. Please refer to FIG. 1a, which is a schematic diagram of a network architecture of a method for evaluating female emotions provided by an embodiment of the present application. The schematic diagram of the network architecture may include a collection device 101, a training device 102, an execution device 103, and a server 104. in:
采集设备101可以采集样本数据,并将样本数据发送至训练设备102。其中,样本数据中的每一个样本包括输入数据和标签,其中,输入数据可以包括用户在一个生理周期的生理数据,如输入数据包括时间点t’-T’至时间点t’内的生理数据,标签可以是用于指示时间点t’的情绪类型。其中,生理数据可以包括心率、呼吸率、心率变异性、体温、运动量等。除此之外,输入数据还可以包括用户的生理周期特征(生理周期特性可以包括所在生理周期阶段、生理周期长度、距离排卵日时长、距离经期时长等)、用户的基本信息(基本信息可以包括年龄、性别、体重)、用户的环境信息(环境信息可以包括光强度、所处场所的类型等)、用户的心理特征得分(心理特征得分可以包括神经质得分、责任心得分、随和 性得分等)等。采集设备101可以是智能穿戴设备,例如,智能手表、智能手环、智能眼镜等;训练设备102可以是服务器,也可以是手机、计算机等终端。The collection device 101 can collect sample data and send the sample data to the training device 102. Wherein, each sample in the sample data includes input data and a label, where the input data may include physiological data of the user during a physiological cycle, for example, the input data includes physiological data from time point t'-T' to time point t' , The label can be used to indicate the emotion type at the time point t'. Among them, the physiological data may include heart rate, respiration rate, heart rate variability, body temperature, exercise volume, and so on. In addition, the input data can also include the user's menstrual cycle characteristics (the menstrual cycle characteristics can include the menstrual cycle stage, the length of the menstrual cycle, the length of time from the ovulation day, the length of the menstrual period, etc.), the user's basic information (the basic information can include (Age, gender, weight), user's environmental information (environmental information can include light intensity, type of place, etc.), user's psychological feature score (psychological feature score can include neuroticism score, conscientiousness score, easygoing score, etc.) Wait. The collection device 101 may be a smart wearable device, for example, a smart watch, a smart bracelet, smart glasses, etc.; the training device 102 may be a server, or a terminal such as a mobile phone or a computer.
训练设备102可以接收由多个采集设备101发送的样本数据,进而,通过该样本数据训练初始化的模型,得到训练后的模型,即为第一模型。该第一模型可以基于用户的在一个生理周期内的待评估数据,预测用户的情绪类型。进一步地,训练设备102可以将第一模型发送至执行设备103。其中,第一模型可以是卷积神经网络,也可以是循环神经网络,还可以是其它神经网络,第一模型可以是单个多分类模型,第一模型也可以包括多个多分类模型。The training device 102 may receive sample data sent by multiple collection devices 101, and further, train an initialized model through the sample data to obtain a trained model, which is the first model. The first model can predict the user's emotion type based on the user's data to be evaluated in a physiological cycle. Further, the training device 102 may send the first model to the execution device 103. The first model may be a convolutional neural network, a cyclic neural network, or other neural networks. The first model may be a single multi-classification model, and the first model may also include multiple multi-classification models.
执行设备103可以是智能穿戴设备、智能终端(手机、计算机等)、服务器等。执行设备103在获取到第一模型之后,可以通过该第一模型来评估用户的情绪类型。The execution device 103 may be a smart wearable device, a smart terminal (mobile phone, computer, etc.), a server, and the like. After the execution device 103 obtains the first model, the first model can be used to evaluate the emotion type of the user.
在一种具体实现中,执行设备103可以是智能手表、智能手环等具备生理数据采集功能的可穿戴设备,执行设备103可以以一定采样频率采集用户的生理数据。In a specific implementation, the execution device 103 may be a wearable device with a physiological data collection function, such as a smart watch or a smart bracelet, and the execution device 103 may collect physiological data of the user at a certain sampling frequency.
在另一种具体实现中,执行设备103可以是手机、平板电脑、计算机、服务器等不具备生理数据采集功能的设备,此时,采集设备101可以以以一定采样频率采集用户的生理数据,并将其发送至执行设备103。In another specific implementation, the execution device 103 may be a device that does not have a physiological data collection function such as a mobile phone, a tablet computer, a computer, or a server. In this case, the collection device 101 can collect the user's physiological data at a certain sampling frequency, and Send it to the execution device 103.
在一种具体实现方式中,采集设备101可以以以一定采样频率采集用户的生理数据,并将其发送至执行设备103,执行设备103根据用户的生理数据生成待评估数据,即待评估数据与生理数据一一对应。应理解,每一个待评估数据还可以包括用户的生理周期特征(生理周期特性可以包括所在生理周期阶段、生理周期长度、距离排卵日时长、距离经期时长等)、用户的基本信息(基本信息可以包括年龄、性别、体重)、用户的环境信息(环境信息可以包括光强度、所处场所的类型等)、用户的心理特征得分(心理特征得分可以包括神经质得分、责任心得分、随和性得分等)等。因此,采集设备101或执行设备103还可以用于获取用户的上述特征信息,以使执行设备103根据用户的生理数据和上述特征信息生成待评估数据。In a specific implementation, the collection device 101 may collect the physiological data of the user at a certain sampling frequency and send it to the execution device 103, and the execution device 103 generates the data to be evaluated according to the physiological data of the user, that is, the data to be evaluated and the One-to-one correspondence with physiological data. It should be understood that each piece of data to be evaluated may also include the user's menstrual cycle characteristics (the menstrual cycle characteristics may include the menstrual cycle phase, the length of the menstrual cycle, the length of time from ovulation day, the length of time from menstruation, etc.), the user's basic information (basic information can be Including age, gender, weight), user's environmental information (environmental information can include light intensity, type of place, etc.), user's psychological feature score (psychological feature score can include neuroticism score, conscientious score, easy-going score, etc. )Wait. Therefore, the collection device 101 or the execution device 103 may also be used to obtain the above-mentioned characteristic information of the user, so that the execution device 103 generates the data to be evaluated according to the user's physiological data and the above-mentioned characteristic information.
进一步地,在评估时间点t的情绪类型时,执行设备103可以将时间点t-T至时间点t内获取的待评估数据输入到第一模型,得到时间点t对应的评估结果,该评估结果用于指示用户在时间点t时在N个情绪类型中每一个情绪类型的概率。其中,T为一个生理周期,情绪类型可以是高兴、积极、消极、低沉等。Further, when evaluating the emotion type at the time point t, the execution device 103 may input the data to be evaluated obtained from the time point tT to the time point t into the first model to obtain the evaluation result corresponding to the time point t, and the evaluation result is used To indicate the probability of the user in each of the N emotion types at the time point t. Among them, T is a menstrual cycle, and the emotion type can be happy, positive, negative, low, etc.
执行设备103在获取到时间点t对应的评估结果之后,可以向用户输出时间点t对应的评估结果,也可以将时间点t对应的评估结果发送至采集设备101,以使采集设备101向用户输出时间点t对应的评估结果。After the execution device 103 obtains the evaluation result corresponding to the time point t, it can output the evaluation result corresponding to the time point t to the user, or it can send the evaluation result corresponding to the time point t to the collection device 101, so that the collection device 101 tells the user Output the evaluation result corresponding to time t.
采集设备101或执行设备103在获取到时间点t对应的评估结果之后,还可以将时间点t对应的评估结果发送至服务器104。服务器104根据时间点t对应的评估结果,可以在数据库中查找该评估结果对应的推送信息,进而,服务器104将该推送信息发送至采集设备101或执行设备103,以使采集设备101或执行设备103向用户输出该推送信息。例如,时间点t对应的评估结果为:高兴40%,低落60%,积极46%,消极54%,服务器104在数据库中查找到该评估结果对应的推送信息为“不开心会变丑哦,试着微笑一下~”,进而,服务器104将该推送消息发送至执行设备103,以使执行设备103向用户输出并显示该推 送信息。After the acquisition device 101 or the execution device 103 obtains the evaluation result corresponding to the time point t, it may also send the evaluation result corresponding to the time point t to the server 104. The server 104 can find the push information corresponding to the evaluation result in the database according to the evaluation result corresponding to the time point t, and then the server 104 sends the push information to the collection device 101 or the execution device 103, so that the collection device 101 or the execution device 103 outputs the push information to the user. For example, the evaluation result corresponding to time t is: happy 40%, low 60%, positive 46%, and negative 54%. The server 104 finds the push message corresponding to the evaluation result in the database as "Unhappy will become ugly," Try to smile~", and then, the server 104 sends the push message to the execution device 103, so that the execution device 103 outputs and displays the push information to the user.
执行设备103可以获取时间点t-T0至时间点t内每一个采样时间点对应的评估结果,进而,向用户输出情绪变化趋势图。本申请实施例中,情绪变化趋势图是以情绪变化曲线的形式展示用户在一段时间的情绪变化,以使用户可以直观的了解自己的情绪变化,便于更好的管理自己的情绪。一般情绪变化趋势图以时间为横轴,情绪值为纵轴,横轴上的每一个采样时间点在纵轴上都有对应的情绪值,连接每一个采样时间点对应的情绪值,形成连续的情绪变化曲线。The execution device 103 may obtain the evaluation result corresponding to each sampling time point from the time point t-T0 to the time point t, and then output the mood change trend graph to the user. In the embodiment of the present application, the mood change trend graph displays the user's mood change over a period of time in the form of a mood change curve, so that the user can intuitively understand his own mood change and facilitate better management of his mood. Generally, the emotion change trend graph uses time as the horizontal axis and emotion value on the vertical axis. Each sampling time point on the horizontal axis has a corresponding emotion value on the vertical axis. Connect the emotion value corresponding to each sampling time point to form a continuous Curve of emotional change.
应理解,执行设备103也可以将时间点t-T0至时间点t内每一个采样时间点对应的评估结果发送至采集设备101,以使采集设备101输出并显示该情绪变化趋势图。It should be understood that the execution device 103 may also send the evaluation result corresponding to each sampling time point from the time point t-T0 to the time point t to the collection device 101, so that the collection device 101 can output and display the mood change trend graph.
采集设备101或执行设备103在获取到时间点t-T0至时间点t内每一个采样时间点对应的评估结果之后,还可以用于自动检测在时间段t1-t之间用户的情绪状况,进而,在用户的情绪状况满足设定条件的情况下,采集设备101或执行设备103向设定的联系人发送提示信息,该提示信息用于提示设定的联系人用户的情绪状况。例如,执行设备103在检测到用户在时间段t1-t内每一个采样时间点对应的高兴的概率均小于第一阈值,执行设备103向设定的联系人发送用于提示用户一直处于低沉的提示信息。其中,时间点t1为时间点T0至时间点t内的一个时间点。After the acquisition device 101 or the execution device 103 obtains the evaluation result corresponding to each sampling time point from the time point t-T0 to the time point t, it can also be used to automatically detect the emotional state of the user during the time period t1-t, Furthermore, when the user's emotional state meets the set condition, the collection device 101 or the execution device 103 sends prompt information to the set contact person, and the prompt information is used to prompt the set emotional state of the contact user. For example, when the execution device 103 detects that the probability that the user is happy at each sampling time point in the time period t1-t is less than the first threshold, the execution device 103 sends a message to the set contact to remind the user that the user has been in depression. Prompt information. Among them, the time point t1 is a time point from the time point T0 to the time point t.
可选地,执行设备103可以包括采集设备102。Optionally, the execution device 103 may include a collection device 102.
可以理解的是,图1a中的评估女性情绪的方法的网络架构图只是本申请实施例中一种示例性的实施方式,本申请实施例中评估女性情绪的网络架构不仅限于以上结构。It is understandable that the network architecture diagram of the method for evaluating female emotions in FIG. 1a is only an exemplary implementation in the embodiment of the present application, and the network architecture for evaluating female emotions in the embodiment of the present application is not limited to the above structure.
上述第一模型是通过多个样本训练得到的深度神经网络,如循环神经网络或卷积神经网络等,下面介绍本申请实施例中提及的两种神经网络模型。The above-mentioned first model is a deep neural network obtained by training with multiple samples, such as a recurrent neural network or a convolutional neural network. The two neural network models mentioned in the embodiments of the present application are introduced below.
(1)循环神经网络(RNN,Recurrent Neural Networks)(1) Recurrent Neural Networks (RNN, Recurrent Neural Networks)
RNNs的目的是用来处理序列数据。在传统的神经网络模型中,是从输入层到隐含层再到输出层,层与层之间是全连接的,每层之间的节点是无连接的。但是这种普通的神经网络对于很多问题却无能无力。例如,你要预测句子的下一个单词是什么,一般需要用到前面的单词,因为一个句子中前后单词并不是独立的。RNNs之所以称为循环神经网路,即一个序列当前的输出与前面的输出也有关。具体的表现形式为网络会对前面的信息进行记忆并应用于当前输出的计算中,即隐藏层之间的节点不再无连接而是有连接的,并且隐藏层的输入不仅包括输入层的输出还包括上一时刻隐藏层的输出。理论上,RNNs能够对任何长度的序列数据进行处理。本申请主要使用到循环神经网络中的长短时记忆神经网络,下面对长短时记忆网络进行介绍。The purpose of RNNs is to process sequence data. In the traditional neural network model, from the input layer to the hidden layer and then to the output layer, the layers are fully connected, and the nodes between each layer are not connected. But this ordinary neural network is powerless for many problems. For example, if you want to predict what the next word of a sentence will be, you generally need to use the previous word, because the preceding and following words in a sentence are not independent. The reason why RNNs are called recurrent neural networks is that the current output of a sequence is also related to the previous output. The specific form of expression is that the network will memorize the previous information and apply it to the calculation of the current output, that is, the nodes between the hidden layers are no longer unconnected but connected, and the input of the hidden layer not only includes the output of the input layer It also includes the output of the hidden layer at the previous moment. In theory, RNNs can process sequence data of any length. This application mainly uses the long and short-term memory neural network in the cyclic neural network, and the long and short-term memory network is introduced below.
长短时记忆神经网络(LSTM,Long Short-Term Memory)模型是将输入门、输出门、遗忘门以及网络单元(cell)结构,用于控制对历史信息的学习和遗忘,使模型适合处理长序列问题。请参见图1b,是本申请实施例提供的一种LSTM的结构示意图。如图1b所示,设时刻t,LSTM模型更新和传播细胞状态c
t和隐藏状态h
t。遗忘门的输出表示为f
t,输入门的输出表示为i
t,输出门的输出表示为o
t,三个门的元素值都在区间[0,1]。
The Long Short-Term Memory (LSTM, Long Short-Term Memory) model is a structure of input gates, output gates, forget gates and network units (cell) to control the learning and forgetting of historical information, making the model suitable for processing long sequences problem. Please refer to FIG. 1b, which is a schematic structural diagram of an LSTM provided by an embodiment of the present application. As shown in Figure 1b, suppose that at time t, the LSTM model updates and propagates the cell state c t and the hidden state h t . Forgotten gate output is represented as f t, the output of the input gate is represented as i t, is expressed as output gate o t, the element values of three gates in the interval [0,1].
具体地,遗忘门是控制是否遗忘的,即以一定的概率控制是否遗忘上一层的隐藏状态。 在时刻t,对于遗忘门来说,其输入为上一序列的隐藏状态h
t-1和本序列数据x
t,在激活函数的作用下,得到遗忘门的输出f
t。可选地,这里的激活函数可以为sigmoid。
Specifically, the forget gate is to control whether to forget, that is, to control whether to forget the hidden state of the upper layer with a certain probability. At time t, for the forgetting gate, its input is the hidden state h t-1 of the previous sequence and the data x t of this sequence. Under the action of the activation function, the output f t of the forgetting gate is obtained. Optionally, the activation function here can be sigmoid.
在实际应用中,遗忘门的处理逻辑可以表示为如下数学表达式(1):In practical applications, the processing logic of the forget gate can be expressed as the following mathematical expression (1):
f
t=σ(w
f[h
t-1,x
t]+b
f)
f t =σ(w f [h t-1 ,x t ]+b f )
其中,w
f为线性关系的系数,b
f为偏置,σ表示激活函数sigmoid。
Among them, w f is the coefficient of the linear relationship, b f is the bias, and σ is the activation function sigmoid.
具体地,输入门负责处理当前序列位置的输入,决定放什么新信息到网络单元中,从图1b中可以看出,输入门由两部分组成,第一部分在激活函数sigmoid的作用下,输出为i
t,第二部分在激活函数tanh的作用下,输出为a
t,这两部分结果进行相乘再去更新网络单元的状态。总的来说,输入门的作用是为了网络单元的状态更新做准备。
Specifically, the input gate is responsible for processing the input of the current sequence position and deciding what new information to put into the network unit. As can be seen from Figure 1b, the input gate consists of two parts. The first part is under the action of the activation function sigmoid, and the output is i t, the second portion tanh function in the active role, the output is a t, the two parts have to update the status result of multiplication of the network element. In general, the role of the input gate is to prepare for the status update of the network unit.
在实际应用中,输入门的处理逻辑可以表示为如下数学表达式(2):In practical applications, the processing logic of the input gate can be expressed as the following mathematical expression (2):
i
t=σ(w
i[h
t-1,x
t]+b
i)
i t =σ(w i [h t-1 ,x t ]+b i )
a
t=tanh(w
a[h
t-1,x
t]+b
a)
a t =tanh(w a [h t-1 ,x t ]+b a )
其中,w
i、w
a为线性关系的系数,b
i、b
a为偏置,σ表示激活函数sigmoid。
Wherein, w i, w a is the coefficient of linear relationship, b i, b a bias, σ represents the activation function sigmoid.
在经过遗忘门和输入门后,可以确定传递信息的删除和增加,也即可以进行网络单元的更新,由图1b可以知道,状态c
t由两部分组成,第一部分是c
t-1和遗忘门输出f
t的乘积,第二部分是输入门i
t和a
t的乘积,也即可以表示为如下数学表达式(3):
After passing through the forget gate and the input gate, the deletion and addition of the transmitted information can be determined, that is, the network unit can be updated. As shown in Figure 1b, the state c t consists of two parts, the first part is c t-1 and forgetting f t the gate outputs the product, and the second part is the product of a t i t input gate, i.e., it can be expressed as the following mathematical expression (3):
c
t=c
t-1*f
t+i
t*a
t
c t =c t-1 *f t +i t *a t
其中,*表示哈达玛积(Hadamard product),即矩阵对应元素相乘。Among them, * means Hadamard product, that is, the corresponding elements of the matrix are multiplied.
从图1b中可以看出,隐藏状态h
t的更新由两部分组成,第一部分是o
t,它由上一序列的隐藏状态h
t-1和本序列数据x
t,以及激活函数sigmoid得到,第二部分由隐藏状态c
t和激活函数tanh组成,其处理逻辑可以表示为如下数学表达式(4):
It can be seen from Figure 1b that the update of the hidden state h t consists of two parts. The first part is o t , which is obtained from the hidden state h t-1 of the previous sequence and the data x t of this sequence, as well as the activation function sigmoid. The second part consists of the hidden state c t and the activation function tanh, and its processing logic can be expressed as the following mathematical expression (4):
o
t=σ(w
o[h
t-1,x
t]+b
o)
o t =σ(w o [h t-1 ,x t ]+b o )
h
t=o
t*tanh(c
t)
h t =o t *tanh(c t )
其中,w
o为线性关系系数,b
o为偏置,σ表示激活函数sigmoid。
Among them, w o is the linear relationship coefficient, b o is the bias, and σ is the activation function sigmoid.
每一个网络单元的状态的输出结果y
t是经过h
t变化得到的,其处理逻辑可以表示为如下数学表达式(5):
The output result y t of the state of each network unit is obtained through the change of h t , and its processing logic can be expressed as the following mathematical expression (5):
y
t=σ(w′h
t)
y t =σ(w′h t )
其中,w′为线性关系系数,σ表示激活函数sigmoid。Among them, w'is the linear relationship coefficient, and σ represents the activation function sigmoid.
在本申请实施例中,第一模型可以包括但不限于LSTM模型。具体地,请参阅图1c,是本申请实施例提供的一种LSTM模型架构图,如图1c所示,在该LSTM模型中,级联多个网络单元(图1c中为M个)。在一种实现方式中,可以将在一个生理周期T内(若为时间点t-T至时间点t)获取的M个待评估数据输入到该模型,其中,M个待评估数据为按照时间顺序排序的序列,第M个待评估数据对应的采样时间点为t。如图1c所示,LSTM 模型的第一个网络单元执行输入的第一个待评估数据,得到用户在第一个采样时间点对应的评估结果;进而,将第一个网络单元输出的评估结果和第二个待评估数据输入到第二个网络单元,得到第二个采样时间点对应的待评估结果……LSTM结构中的每一个网络单元通过连续不断关联前一个网络单元输出的用户在上一个采样时间点对应的评估结果,即对前面的评估结果进行记忆和应用当前输入的待评估数据,从而,能够更加准确的得到用户在时间点t时(第M个待评估数据对应的采样时间点为t)的评估结果,因此,能够有效提高获取用户情绪的准确度。In the embodiment of the present application, the first model may include, but is not limited to, an LSTM model. Specifically, please refer to FIG. 1c, which is an LSTM model architecture diagram provided by an embodiment of the present application. As shown in FIG. 1c, in the LSTM model, multiple network units (M in FIG. 1c) are cascaded. In an implementation manner, M data to be evaluated acquired during a physiological cycle T (if it is from time point tT to time point t) can be input into the model, where the M data to be evaluated are sorted in chronological order The sampling time point corresponding to the M-th data to be evaluated is t. As shown in Figure 1c, the first network unit of the LSTM model executes the first input data to be evaluated, and obtains the evaluation result corresponding to the user at the first sampling time point; further, the evaluation result output by the first network unit And the second to-be-evaluated data is input to the second network unit to obtain the to-be-evaluated result corresponding to the second sampling time point... Each network unit in the LSTM structure continuously associates the user output by the previous network unit on it The evaluation result corresponding to a sampling time point is to memorize the previous evaluation results and apply the current input data to be evaluated, so that the user can be more accurately obtained at the time point t (the sampling time corresponding to the Mth data to be evaluated) The point is the evaluation result of t), therefore, the accuracy of obtaining user emotions can be effectively improved.
(2)卷积神经网络(2) Convolutional neural network
卷积神经网络(CNN,convolutional neuron network)是一种带有卷积结构的深度神经网络。卷积神经网络包含了一个由卷积层和子采样层构成的特征抽取器。该特征抽取器可以看作是滤波器,卷积过程可以看作是使用一个可训练的滤波器与一个输入的图像或者卷积特征平面(feature map)做卷积。Convolutional neural network (CNN, convolutional neuron network) is a deep neural network with a convolutional structure. The convolutional neural network contains a feature extractor composed of a convolutional layer and a sub-sampling layer. The feature extractor can be seen as a filter, and the convolution process can be seen as using a trainable filter to convolve with an input image or convolution feature map.
请参见图1d,是本申请实施例提供的一种CNN的结构示意图。如图1d所示,卷积神经网络(CNN)100可以包括输入层110,卷积层/池化层120,其中池化层为可选的,以及神经网络层130。Please refer to FIG. 1d, which is a schematic structural diagram of a CNN provided in an embodiment of the present application. As shown in FIG. 1d, a convolutional neural network (CNN) 100 may include an input layer 110, a convolutional layer/pooling layer 120, where the pooling layer is optional, and a neural network layer 130.
卷积层:Convolutional layer:
具体地,卷积层/池化层120可以包括如示例121-126层,在一种实现中,121层为卷积层,122层为池化层,123层为卷积层,124层为池化层,125为卷积层,126为池化层;在另一种实现方式中,121、122为卷积层,123为池化层,124、125为卷积层,126为池化层。即卷积层的输出可以作为随后的池化层的输入,也可以作为另一个卷积层的输入以继续进行卷积操作。Specifically, the convolutional layer/pooling layer 120 may include layers 121-126 as in the examples. In one implementation, layer 121 is a convolutional layer, layer 122 is a pooling layer, layer 123 is a convolutional layer, and layer 124 is a convolutional layer. Pooling layer, 125 is a convolutional layer, 126 is a pooling layer; in another implementation, 121 and 122 are convolutional layers, 123 is a pooling layer, 124 and 125 are convolutional layers, and 126 is a pooling layer Floor. That is, the output of the convolutional layer can be used as the input of the subsequent pooling layer, or as the input of another convolutional layer to continue the convolution operation.
以卷积层121为例,卷积层121可以包括很多个卷积算子,卷积算子也称为核,其在图像处理中的作用相当于一个从输入图像矩阵中提取特定信息的过滤器,卷积算子本质上可以是一个权重矩阵,这个权重矩阵通常被预先定义,在对图像进行卷积操作的过程中,权重矩阵通常在输入图像上沿着水平方向一个像素接着一个像素(或两个像素接着两个像素……这取决于步长stride的取值)的进行处理,从而完成从图像中提取特定特征的工作。该权重矩阵的大小应该与图像的大小相关,需要注意的是,权重矩阵的纵深维度(depth dimension)和输入图像的纵深维度是相同的,在进行卷积运算的过程中,权重矩阵会延伸到输入图像的整个深度。因此,和一个单一的权重矩阵进行卷积会产生一个单一纵深维度的卷积化输出,但是大多数情况下不使用单一权重矩阵,而是应用维度相同的多个权重矩阵。每个权重矩阵的输出被堆叠起来形成卷积图像的纵深维度。不同的权重矩阵可以用来提取图像中不同的特征,例如一个权重矩阵用来提取图像边缘信息,另一个权重矩阵用来提取图像的特定颜色,又一个权重矩阵用来对图像中不需要的噪点进行模糊化……该多个权重矩阵维度相同,经过该多个维度相同的权重矩阵提取后的特征图维度也相同,再将提取到的多个维度相同的特征图合并形成卷积运算的输出。Take the convolutional layer 121 as an example. The convolutional layer 121 can include many convolution operators. The convolution operator is also called a kernel. Its role in image processing is equivalent to a filter that extracts specific information from the input image matrix. In essence, the convolution operator can be a weight matrix. This weight matrix is usually predefined. In the process of convolution on the image, the weight matrix is usually one pixel after another pixel in the horizontal direction on the input image ( Or two pixels followed by two pixels...It depends on the value of stride) to complete the work of extracting specific features from the image. The size of the weight matrix should be related to the size of the image. It should be noted that the depth dimension of the weight matrix and the depth dimension of the input image are the same. During the convolution operation, the weight matrix will extend to Enter the entire depth of the image. Therefore, convolution with a single weight matrix will produce a convolution output of a single depth dimension, but in most cases, a single weight matrix is not used, but multiple weight matrices with the same dimension are applied. The output of each weight matrix is stacked to form the depth dimension of the convolutional image. Different weight matrices can be used to extract different features in the image. For example, one weight matrix is used to extract edge information of the image, another weight matrix is used to extract specific colors of the image, and another weight matrix is used to eliminate unwanted noise in the image. Fuzzy... the dimensions of the multiple weight matrices are the same, the dimension of the feature map extracted by the weight matrix of the same dimension is also the same, and then the extracted feature maps of the same dimension are merged to form the output of the convolution operation .
这些权重矩阵中的权重值在实际应用中需要经过大量的训练得到,通过训练得到的权重值形成的各个权重矩阵可以从输入图像中提取信息,从而帮助卷积神经网络100进行正确的预测。The weight values in these weight matrices need to be obtained through a lot of training in practical applications, and each weight matrix formed by the weight values obtained through training can extract information from the input image, thereby helping the convolutional neural network 100 to make correct predictions.
当卷积神经网络100有多个卷积层的时候,初始的卷积层(例如121)往往提取较多的一般特征,该一般特征也可以称之为低级别的特征;随着卷积神经网络100深度的加深,越往后的卷积层(例如126)提取到的特征越来越复杂,比如高级别的语义之类的特征,语义越高的特征越适用于待解决的问题。When the convolutional neural network 100 has multiple convolutional layers, the initial convolutional layer (such as 121) often extracts more general features, which can also be called low-level features; with the convolutional neural network The deeper the network 100, the more complex the features extracted by the subsequent convolutional layers (for example, 126), such as features such as high-level semantics, the features with higher semantics are more suitable for the problem to be solved.
池化层:Pooling layer:
由于常常需要减少训练参数的数量,因此卷积层之后常常需要周期性的引入池化层,即如图1d中120所示例的121-126各层,可以是一层卷积层后面跟一层池化层,也可以是多层卷积层后面接一层或多层池化层。在图像处理过程中,池化层的唯一目的就是减少图像的空间大小。池化层可以包括平均池化算子和/或最大池化算子,以用于对输入图像进行采样得到较小尺寸的图像。平均池化算子可以在特定范围内对图像中的像素值进行计算产生平均值。最大池化算子可以在特定范围内取该范围内值最大的像素作为最大池化的结果。另外,就像卷积层中用权重矩阵的大小应该与图像大小相关一样,池化层中的运算符也应该与图像的大小相关。通过池化层处理后输出的图像尺寸可以小于输入池化层的图像的尺寸,池化层输出的图像中每个像素点表示输入池化层的图像的对应子区域的平均值或最大值。Since it is often necessary to reduce the number of training parameters, it is often necessary to periodically introduce a pooling layer after the convolutional layer, that is, the 121-126 layers as illustrated by 120 in Figure 1d, which can be a convolutional layer followed by a layer The pooling layer can also be a multi-layer convolutional layer followed by one or more pooling layers. In the image processing process, the sole purpose of the pooling layer is to reduce the size of the image space. The pooling layer may include an average pooling operator and/or a maximum pooling operator for sampling the input image to obtain an image with a smaller size. The average pooling operator can calculate the pixel values in the image within a specific range to generate an average value. The maximum pooling operator can take the pixel with the largest value within a specific range as the result of the maximum pooling. In addition, just as the size of the weight matrix used in the convolutional layer should be related to the image size, the operators in the pooling layer should also be related to the image size. The size of the image output after processing by the pooling layer can be smaller than the size of the image of the input pooling layer, and each pixel in the image output by the pooling layer represents the average value or the maximum value of the corresponding sub-region of the image input to the pooling layer.
神经网络层:Neural network layer:
在经过卷积层/池化层120的处理后,卷积神经网络100还不足以输出所需要的输出信息。因为如前所述,卷积层/池化层120只会提取特征,并减少输入图像带来的参数。然而为了生成最终的输出信息(所需要的类信息或别的相关信息),卷积神经网络100需要利用神经网络层130来生成一个或者一组所需要的类的数量的输出。因此,在神经网络层130中可以包括多层隐含层(如图1d所示的131、132至13n)以及输出层140,该多层隐含层中所包含的参数可以根据具体的任务类型的相关训练数据进行预先训练得到,例如该任务类型可以包括图像识别,图像分类,图像超分辨率重建等等……After processing by the convolutional layer/pooling layer 120, the convolutional neural network 100 is not enough to output the required output information. Because as mentioned above, the convolutional layer/pooling layer 120 only extracts features and reduces the parameters brought by the input image. However, in order to generate the final output information (required class information or other related information), the convolutional neural network 100 needs to use the neural network layer 130 to generate one or a group of required classes of output. Therefore, the neural network layer 130 may include multiple hidden layers (131, 132 to 13n as shown in FIG. 1d) and an output layer 140. The parameters contained in the multiple hidden layers can be based on specific task types. Relevant training data of, for example, the task type can include image recognition, image classification, image super-resolution reconstruction, etc...
在神经网络层130中的多层隐含层之后,也就是整个卷积神经网络100的最后层为输出层140,该输出层140具有类似分类交叉熵的损失函数,具体用于计算预测误差,一旦整个卷积神经网络100的前向传播(如图1d由110至140的传播为前向传播)完成,反向传播(如图1d由140至110的传播为反向传播)就会开始更新前面提到的各层的权重值以及偏差,以减少卷积神经网络100的损失及卷积神经网络100通过输出层输出的结果和理想结果之间的误差。After the multiple hidden layers in the neural network layer 130, that is, the final layer of the entire convolutional neural network 100 is the output layer 140. The output layer 140 has a loss function similar to the classification cross entropy, which is specifically used to calculate the prediction error. Once the forward propagation of the entire convolutional neural network 100 (as shown in Figure 1d, the propagation from 110 to 140 is forward) is completed, the back propagation (as shown in Figure 1d, the propagation from 140 to 110 is back propagation) will start to update The aforementioned weight values and deviations of each layer are used to reduce the loss of the convolutional neural network 100 and the error between the output result of the convolutional neural network 100 through the output layer and the ideal result.
需要说明的是,如图1d所示的卷积神经网络100仅作为一种卷积神经网络的示例,在具体的应用中,卷积神经网络还可以以其他网络模型的形式存在,例如,如图1e所示的多个卷积层/池化层并行,将分别提取的特征均输入给全神经网络层130进行处理。It should be noted that the convolutional neural network 100 shown in FIG. 1d is only used as an example of a convolutional neural network. In specific applications, the convolutional neural network may also exist in the form of other network models, for example, such as The multiple convolutional layers/pooling layers shown in FIG. 1e are parallel, and the respectively extracted features are input to the full neural network layer 130 for processing.
在本申请实施例中,第一模型还可以是CNN。具体地,在一种实现方式中,M个待评估数据可以形成待评估矩阵A,待评估矩阵A包括M行,待评估矩阵A中的第i行的数据为M个待评估数据中第i个待评估数据,i大于等于1且小于等于M。将待评估矩阵A输入到训练好的CNN模型中,CNN模型对待评估矩阵A进行多次卷积操作和池化操作,以提取待评估矩阵A中的特征,进一步地,通过输出层输出对应的评估结果。可以知道,待评估矩阵A包括用户在一个在生理周期内(时间点t-T至时间点t)的M个待评估数据, CNN模型通过提取一个生理周期的待评估数据所表现出的特征,从而确定用户在时间点t时的情绪,可以有效提高评估用户情绪的准确性。In this embodiment of the application, the first model may also be CNN. Specifically, in an implementation manner, the M data to be evaluated may form a matrix A to be evaluated, the matrix A to be evaluated includes M rows, and the data in the i-th row in the matrix A to be evaluated is the i-th row among the M data to be evaluated Pieces of data to be evaluated, i is greater than or equal to 1 and less than or equal to M. Input the matrix A to be evaluated into the trained CNN model. The CNN model performs multiple convolution operations and pooling operations on the matrix A to be evaluated to extract the features in the matrix A to be evaluated. Further, the corresponding output layer evaluation result. It can be known that the matrix A to be evaluated includes the user's M data to be evaluated in a physiological cycle (time point tT to time point t). The CNN model extracts the characteristics of the data to be evaluated in a physiological cycle to determine The user's emotion at time t can effectively improve the accuracy of evaluating the user's emotion.
下面介绍本申请实施例中涉及的一种神经网络的训练方法。The following describes a neural network training method involved in the embodiments of the present application.
S101:获取多个样本,样本包括输入数据和标签,该数据数据包括在时间点t’-T’至时间点t’内采样的M’个采样点的生理数据,M’=Z*T’,Z为生理数据的采样频率。S101: Obtain a plurality of samples, the samples include input data and tags, and the data data includes the physiological data of M'sampling points sampled from time point t'-T' to time point t', M'=Z*T' , Z is the sampling frequency of physiological data.
应理解,不同样本对应采样时间点t’可以不相同,每一个样本包括的M’个训练数据为用户在一个生理周期T’内的数据,不同用户的生理周期T’也可以不相同。关于样本可以参见上述网络架构图中对于样本的相关描述。It should be understood that the sampling time points t'corresponding to different samples may be different, and the M'training data included in each sample is the user's data in one physiological period T', and the physiological period T'of different users may also be different. For the sample, please refer to the relevant description of the sample in the above network architecture diagram.
S102:通过多个样本对初始化的模型进行训练,得到第一模型。S102: Train the initialized model through multiple samples to obtain the first model.
在一种实现方式中,将样本的输入数据分别输入到初始化的模型(例如,卷积神经网络),得到预测的评估结果,进而,根据预测的评估结果与真实的结果(即样本的标签)之间的误差,通过反向传播算法,调整初始化的神经网络的模型参数。通过迭代调整神经网络的模型参数,使得这个误差越来越小。误差越小,则说明预测的评估结果越接近真实的结果,模型越能准确评估女性的情绪类型。In one implementation, the input data of the sample is respectively input to the initialized model (for example, convolutional neural network) to obtain the predicted evaluation result, and then, according to the predicted evaluation result and the real result (ie the label of the sample) The error between, through the back propagation algorithm, adjust the model parameters of the initialized neural network. By iteratively adjusting the model parameters of the neural network, the error becomes smaller and smaller. The smaller the error, the closer the predicted evaluation result is to the real result, and the more accurately the model can evaluate the emotional type of women.
应理解,本申请实施例中的第一模型可以是单个的神经网络。在一种实现方式中,可以通过上述步骤S101-S102的训练方式训练初始化的模型,得到第一模型。每一个样本的输入数据包括在时间点t’-T’至时间点t’内采样的M’个采样点的生理数据,每一个样本的标签为在时间点t’的情绪类型,t’的情绪类型为N个情绪类型中的一种,M’=Z*T’,T’为一个生理周期。It should be understood that the first model in the embodiment of the present application may be a single neural network. In an implementation manner, the initialized model may be trained through the training manner of the above steps S101-S102 to obtain the first model. The input data of each sample includes the physiological data of M'sampling points sampled from time point t'-T' to time point t', and the label of each sample is the emotion type at time point t', and the value of t' The emotion type is one of N emotion types, M'=Z*T', and T'is a menstrual cycle.
应理解,本申请实施例中的第一模型也可以包括多个子模型。例如,第一模型包括第一子模型和第二子模型,第一子模型或第二子模型可以分别是卷积神经网络或循环神经网络。在一种实现方式中,第一子模型或第二子模型也可以通过上述步骤S101-S102的训练方式分别训练初始化的模型,得到第一模型。第一子模型是通过上述样本中标签为P个情绪类型的样本训练得到的深度神经网络;第二子模型是通过上述样本中标签为Q个情绪类型的样本训练得到的深度神经网络。N=P+Q。It should be understood that the first model in the embodiment of the present application may also include multiple sub-models. For example, the first model includes a first sub-model and a second sub-model, and the first sub-model or the second sub-model may be a convolutional neural network or a recurrent neural network, respectively. In an implementation manner, the first sub-model or the second sub-model may also be trained separately through the training methods of the above steps S101-S102 to obtain the first model. The first sub-model is a deep neural network obtained through training of samples labeled with P emotion types in the above samples; the second sub-model is a deep neural network obtained through training of samples labeled with Q emotion types in the above samples. N=P+Q.
应理解,M’应大于等于M,采样频率Z与上述M个待评估数据的采样频率Z应当一致。It should be understood that M'should be greater than or equal to M, and the sampling frequency Z should be consistent with the sampling frequency Z of the M data to be evaluated.
下面,结合图1a中所示出的评估女性情绪的网络架构图,具体介绍本申请实施例提供的一种评估女性情绪的方法。其中,该方法可以由上述图1a中的执行设备103来实现/执行。请参阅图2,是本申请实施例提供的一种评估女性情绪的方法流程示意图,该方法可以包括如下步骤中的部分或全部步骤:In the following, in conjunction with the network architecture diagram for evaluating female emotions shown in FIG. 1a, a method for evaluating female emotions provided in an embodiment of the present application is specifically introduced. Wherein, the method can be implemented/executed by the execution device 103 in FIG. 1a. Please refer to FIG. 2, which is a schematic flowchart of a method for evaluating female emotions provided by an embodiment of the present application. The method may include some or all of the following steps:
S202:执行设备获取用户的M个待评估数据,该M个待评估数据包括在时间点t-T至时间点t内采样的M个采样点的生理数据,该M个待评估数据按照时间先后顺序排列,该M个待评估数据与该M个采样点一一对应,M=Z*T,T为一个生理周期,Z为生理数据的采样频率。S202: The execution device acquires M pieces of data to be evaluated from the user, the M pieces of data to be evaluated include physiological data of M sampling points sampled from time point tT to time point t, and the M pieces of data to be evaluated are arranged in chronological order , The M to-be-assessed data correspond to the M sampling points one-to-one, M=Z*T, T is a physiological cycle, and Z is the sampling frequency of physiological data.
M、T、Z均为正整数,T为用户的一个生理周期,个人特征不同,生理周期T可以不 一样,Z为生理数据的采样频率,采样频率Z可以基于实际情况设定。M, T, and Z are all positive integers, T is a physiological cycle of the user, the physiological cycle T can be different for different personal characteristics, Z is the sampling frequency of physiological data, and the sampling frequency Z can be set based on the actual situation.
在一种实现方式中,执行设备可以是智能手表、智能手环等具备生理数据采集功能的可穿戴设备,执行设备103可以以一定采样频率采集用户的生理数据。In an implementation manner, the execution device may be a wearable device with a physiological data collection function, such as a smart watch or a smart bracelet, and the execution device 103 may collect the physiological data of the user at a certain sampling frequency.
其中,生理数据可以是呼吸率、心率、心率变异率、体温、血流灌注、生物电阻抗、运动量等。对于在采样时间点t获取的待评估数据而言,执行设备获取用户在时间点t时的生理数据,在一种实现方式中,执行设备可以利用光电容积扫描技术(photoplethysmography,PPG)对用户进行数据采集,获取脉搏波信号,进而分析得出用户在该时间点时的心率、呼吸率、心率变异率等;本申请实施例中,运动量是指用户在时间点t时已有的运动量,一般使用“步数”来表示用户每天的运动量,在一种实现方式中,执行设备可以通过GPS获取用户的位置信息,进而,分析计算用户在时间点t时的运动量。Among them, the physiological data may be respiratory rate, heart rate, heart rate variability, body temperature, blood perfusion, bioelectrical impedance, exercise volume, and the like. For the data to be evaluated acquired at the sampling time point t, the execution device acquires the physiological data of the user at the time point t. In an implementation manner, the execution device may use photoplethysmography (PPG) to perform the measurement on the user. Data collection, obtain pulse wave signals, and then analyze the user’s heart rate, respiration rate, heart rate variability, etc. at that time point; in the embodiment of the application, the amount of exercise refers to the amount of exercise the user has at time t, generally The “number of steps” is used to indicate the user's daily exercise volume. In one implementation, the execution device can obtain the user's location information through GPS, and then analyze and calculate the user's exercise volume at time t.
请参阅图3a,是本申请实施例提供的一种执行设备执行评估女性情绪的方法的流程图。如图3a所示,用户每次使用本申请实施例提供的评估女性情绪的方法时:首先,执行设备判断用户是否首次使用该评估女性情绪的方法(例如,执行设备通过判断用户的账号是否存在历史评估记录来确定用户是否首次使用该评估女性情绪的方法),在首次使用该方法的情况下,执行设备向用户输出量表问卷,以使用户输入量表问卷的选项,进而,执行设备根据用户输出的量表问卷中每一个问题的选项,分析计算用户的心理特征得分。进一步地,执行设备接收用户输入的基本信息,包括年龄、性别、体重等。其次,执行设备向用户输出是否自动采集生理数据的提示信息,在用户选择开启自动采集生理数据的情况下,执行设备以一定频率自动采集用户的生理数据,形成待评估数据,进而,可以向用户输出最新的待评估数据对应的采样时间点时的评估结果。相反地,在用户选择不进行自动采集生理数据的情况下,执行设备向用户输出用户的历史评估结果。Please refer to FIG. 3a, which is a flowchart of a method for evaluating female emotions performed by an execution device according to an embodiment of the present application. As shown in Figure 3a, every time a user uses the method for evaluating female emotions provided in an embodiment of the present application: First, the execution device determines whether the user uses the method for evaluating female emotions for the first time (for example, the execution device determines whether the user's account exists Historical evaluation records are used to determine whether the user uses the method for evaluating female emotions for the first time). In the case of using this method for the first time, the execution device outputs the scale questionnaire to the user so that the user can input the options of the scale questionnaire. The options of each question in the scale questionnaire output by the user are analyzed and calculated the psychological characteristic score of the user. Further, the execution device receives basic information input by the user, including age, gender, weight, and so on. Secondly, the execution device outputs prompt information to the user whether to automatically collect physiological data. In the case that the user chooses to enable automatic physiological data collection, the execution device automatically collects the user's physiological data at a certain frequency to form the data to be evaluated, which can then be reported to the user Output the evaluation result at the sampling time point corresponding to the latest data to be evaluated. Conversely, when the user chooses not to automatically collect physiological data, the execution device outputs the user's historical evaluation result to the user.
请参阅图3b,是本申请实施例示例性的提供的一种待评估数据的示意图。如图3b所示,该待评估数据对应的采样时间点为t,待评估数据还可以包括用户的基本信息、心理特征得分、生理周期特征、以及环境参数等,下面一一介绍:Please refer to FIG. 3b, which is a schematic diagram of data to be evaluated provided by an embodiment of the present application. As shown in Figure 3b, the sampling time point corresponding to the data to be evaluated is t, and the data to be evaluated may also include the user's basic information, psychological feature scores, physiological cycle features, and environmental parameters, etc., as described below:
(1)用户的基本信息(1) Basic information of the user
本申请实施例中,用户的基本参数可以包括年龄、性别、体重等。In the embodiment of the present application, the basic parameters of the user may include age, gender, weight, and so on.
在一种获取用户的基本参数的实现方式中,可以参见上述图3a中的相关描述,用户在首次使用该评估女性情绪的方法之前,执行设备可以接收用户输入的基本信息,进一步地,执行设备可以存储用户的基本信息。In an implementation manner of obtaining the user's basic parameters, refer to the related description in FIG. 3a above. Before the user uses the method for evaluating female emotions for the first time, the execution device can receive the basic information input by the user, and further, the execution device You can store basic user information.
(2)用户的心里特征得分(2) The user's psychological characteristics score
本申请实施例中,用户的心里特征得分可以包括神经质得分、责任心得分、随和性得分等。In the embodiment of the present application, the user's psychological feature score may include a neuroticism score, a conscientiousness score, an easygoing score, and the like.
在一种实现方式中,可以参见上述图3a中的相关描述,用户在首次使用该评估女性情绪的方法之前,执行设备可以显示量表问卷,该量表问卷包括至少一个问题;进而,接收针对至少一个问题中每一个问题输入的选项;最后,根据每一个问题输入的选项确定用户的心理特征得分。In an implementation manner, referring to the related description in Figure 3a above, before the user uses the method for evaluating female emotions for the first time, the execution device can display a scale questionnaire, the scale questionnaire includes at least one question; At least one question is the input options for each question; finally, the user's psychological characteristic score is determined according to the options input for each question.
应理解,用户的心里特征得分会随着阅历、生活环境等的变化有所改变,因此,执行设备还可以周期性的向用户输出量表问卷,以不断获取、更新用户的心里特征得分。It should be understood that the user's psychological feature score will change with changes in experience, living environment, etc. Therefore, the execution device may also periodically output a scale questionnaire to the user to continuously obtain and update the user's psychological feature score.
(3)用户的生理周期特征(3) The user's menstrual cycle characteristics
本申请实施例中,用户的生理周期特征可以包括用户所在的生理周期阶段、生理周期时长、距离排卵日的时长、距离经期的时长等。其中,一个完整的生理周期阶段包括黄体期、经期、卵泡期和排卵期。In the embodiment of the present application, the physiological cycle characteristics of the user may include the physiological cycle stage of the user, the length of the physiological cycle, the length of time from the day of ovulation, the length of time from the menstrual period, and the like. Among them, a complete menstrual cycle phase includes the luteal phase, menstrual period, follicular phase and ovulation phase.
在一种实现方式中,用户在使用该评估女性情绪的方法时,执行设备可以以一定频率接收用户输入的生理周期特征。在另一种实现方式中,执行设备也可以接收用户每个月输入的经期开始时间和经期结束时间,通过机器学习等方式分析计算用户的上述生理周期特征。In an implementation manner, when the user uses the method for evaluating female emotions, the execution device may receive the physiological cycle characteristics input by the user at a certain frequency. In another implementation manner, the execution device may also receive the menstrual start time and menstrual end time input by the user every month, and analyze and calculate the above-mentioned menstrual cycle characteristics of the user by means such as machine learning.
(4)用户的环境参数(4) User's environmental parameters
本申请实施例中,用户的环境参数可以包括用户所处场所类型、光强度等。In the embodiment of the present application, the user's environmental parameters may include the type of place where the user is located, light intensity, and the like.
执行设备可以包括光传感器。如图3b所示的时间点t,执行设备可以通过光传感器获取到用户在时间点t时的光强度;场所类型是指用户在时间点t时所处场所类型,可以通过GPS定位用户在时间点t时所处的位置,进而,判断该位置所属的场所类型。The execution device may include a light sensor. At time t as shown in Figure 3b, the execution device can obtain the user's light intensity at time t through the light sensor; the type of place refers to the type of place the user is at at time t, and the user can be located at time through GPS. The location at point t, and then determine the type of place the location belongs to.
应理解,本申请实施例中所提及的待评估数据还可以包括用户的其它特征参数,以上提供的待评估数据的形式仅是本申请实施例中的示例性说明。It should be understood that the data to be evaluated mentioned in the embodiments of the present application may also include other characteristic parameters of the user, and the form of the data to be evaluated provided above is only an exemplary description in the embodiments of the present application.
应理解,执行设备还可以是手机、平板电脑、计算机、服务器等不具备生理数据采集功能的设备,此时,执行设备通过通信接口获取待评估数据。It should be understood that the execution device may also be a device that does not have a physiological data collection function, such as a mobile phone, a tablet computer, a computer, or a server. In this case, the execution device obtains the data to be evaluated through a communication interface.
S204:执行设备将M个待评估数据输入到第一模型,得到时间点t对应的评估结果,时间点t对应的评估结果用于指示该用户在时间点t的情绪为N个情绪类型中每一个情绪类型的概率。S204: The execution device inputs M to-be-evaluated data into the first model, and obtains the evaluation result corresponding to time point t. The evaluation result corresponding to time point t is used to indicate that the user’s emotion at time point t is each of the N emotion types. The probability of an emotion type.
其中,第一模型是通过多个样本训练得到的深度神经网络,第一模型的训练方法可以参见上述神经网络的训练方法的相关描述。Wherein, the first model is a deep neural network obtained by training with multiple samples, and the training method of the first model can be referred to the related description of the training method of the neural network.
第一模型可以是训练得到的一个多分类模型,也可以是多个多分类模型。The first model may be a multi-class model obtained by training, or multiple multi-class models.
请参阅图4a,是本申请实施例示例性提供的一种评估结果示意图。如图4a所示,第一模型为一个多分类模型,情绪类型包括高兴、积极、消极和低落。将上述M个待评估数据输入到第一模型,输出的时间点t对应的评估结果为:高兴15%,低落30%,消极35%,积极20%。Please refer to FIG. 4a, which is a schematic diagram of an evaluation result exemplarily provided by an embodiment of the present application. As shown in Figure 4a, the first model is a multi-class model, and the emotion types include happy, positive, negative, and low. Input the above M data to be evaluated into the first model, and the output time point t corresponds to the evaluation result: happy 15%, low 30%, negative 35%, positive 20%.
请参阅图4b,是本申请实施例示例性提供的又一种评估结果示意图。如图4b所示,第一模型包括两个子模型:第一子模型和第二子模型。若情绪类型包括高兴、积极、消极和低落,第一子模型用于判断用户的情绪为高兴或低落的概率,第二子模型用于判断用户的情绪为积极或消极的概率。将M待评估数据分别输入到第一子模型和第二子模型,如图4b所示,第一子模型输出的评估结果为:高兴40%,低落60%;第二子模型输出的评估结果为:积极46%,消极54%。可以知道,将M个待评估数据输入到如图4b所示的第一模型,得到时间点t对应的苹果结果为:高兴40%,低落60%,积极46%,消极54%。Please refer to FIG. 4b, which is another schematic diagram of an evaluation result exemplarily provided by an embodiment of the present application. As shown in Figure 4b, the first model includes two sub-models: a first sub-model and a second sub-model. If the emotion types include happy, positive, negative, and low, the first sub-model is used to determine the probability that the user's emotion is happy or low, and the second sub-model is used to determine the probability that the user's emotion is positive or negative. Input the M data to be evaluated into the first sub-model and the second sub-model respectively, as shown in Figure 4b, the evaluation result output by the first sub-model is: happy 40%, down 60%; evaluation result output by the second sub-model It is: positive 46%, negative 54%. It can be known that inputting M data to be evaluated into the first model shown in Fig. 4b, the apple results corresponding to time point t are: happy 40%, low 60%, positive 46%, and negative 54%.
具体地,执行设备将M个待评估数据输入到第一模型,得到时间点t对应的评估结果的实现,可以具体参见下述实现方式(一)、实现方式(二)、实现方式(三)的详细描述。Specifically, the execution device inputs M to-be-evaluated data into the first model to obtain the realization of the evaluation result corresponding to the time point t. For details, please refer to the following realization mode (1), realization mode (2), and realization mode (3) The detailed description.
S206:执行设备输出时间点t对应的评估结果。S206: The execution device outputs the evaluation result corresponding to the time point t.
执行设备输出时间点t对应的评估结果,可以包括如下三种实例。The evaluation result corresponding to the output time point t of the execution device may include the following three examples.
实例(1):Example (1):
执行设备可以输出能够表现用户在时间点t时的情绪的一种情绪类型。在一种实现方式中:执行设备确定N个情绪类型中最大概率对应的情绪类型为该用户在时间点t对应的目标情绪类型;其次,执行设备输出该目标情绪类型。The execution device may output an emotion type that can express the emotion of the user at the time point t. In an implementation manner: the execution device determines that the emotion type corresponding to the greatest probability among the N emotion types is the target emotion type corresponding to the user at the time point t; secondly, the execution device outputs the target emotion type.
例如,在一种实现方式中,N个情绪类型可以包括高兴、低落、积极和消极,此时,N为4。若第一模型为一个四分类模型,将M个待评估数据输入到第一模型,第一模型输出时间点t对应的评估结果为:高兴40%、低落20%、积极30%和消极10%。执行设备确定最大概率对应的情绪类型为“高兴”,进一步地,执行设备输出用户在时间点t对应对应的情绪类型为“高兴”。For example, in an implementation manner, the N emotion types may include happy, down, positive, and negative. In this case, N is 4. If the first model is a four-category model, input M data to be evaluated into the first model, and the evaluation results corresponding to the output time point t of the first model are: happy 40%, low 20%, positive 30%, and negative 10% . The execution device determines that the emotion type corresponding to the maximum probability is "happy", and further, the execution device outputs the corresponding emotion type of the user at the time point t as "happy".
实例(2):Example (2):
时间点t对应的评估结果用于指示该用户在时间点t的情绪为N个情绪类型中每一个情绪类型的概率,因此,执行设备还可以输出用户在时间点t时每一个情绪类型的概率。The evaluation result corresponding to time t is used to indicate the probability that the user’s emotion at time t is each of the N emotion types. Therefore, the execution device can also output the probability of each emotion type of the user at time t .
例如,在一种实现方式中,N个情绪类型可以包括高兴、低落、积极和消极,此时,N为4。若第一模型包括第一子模型和第二子模型,两个子模型均为二分类模型,第一子模型用于判断高兴的概率和低落的概率,第二子模型用于判断积极的概率和消极的概率。执行设备将M个待评估数据输入到第一子模型,第一子模型输出时间点t对应的评估结果包括:高兴60%、低落40%;执行设备将M个待评估数据输入到第二子模型,第二子模型输出时间点t对应的评估结果包括积极80%和消极20%。此时,时间点t对应的评估结果为:高兴60%、低落40%、积极80%和消极20%。For example, in an implementation manner, the N emotion types may include happy, down, positive, and negative. In this case, N is 4. If the first model includes the first sub-model and the second sub-model, the two sub-models are both two-class models. The first sub-model is used to judge the probability of happy and low, and the second sub-model is used to judge the positive probability and Negative probability. The execution device inputs M to-be-evaluated data into the first sub-model, and the evaluation results corresponding to the output time point t of the first sub-model include: happy 60%, down 40%; the execution device inputs M to-be-evaluated data into the second sub-model In the model, the evaluation result corresponding to the output time point t of the second sub-model includes positive 80% and negative 20%. At this time, the evaluation results corresponding to time point t are: happy 60%, low 40%, positive 80%, and negative 20%.
请参阅图5a,是本申请实施例提供的一种输出时间点t对应的评估结果的示意图。如图5a所示,执行设备可以通过雷达图和Russell环状模型结合的方式输出上述时间点t时每一种情绪类型的概率。Please refer to FIG. 5a, which is a schematic diagram of an evaluation result corresponding to an output time point t provided in an embodiment of the present application. As shown in Figure 5a, the execution device can output the probability of each emotion type at the above time point t through the combination of the radar chart and the Russell ring model.
实例(3):Example (3):
执行设备还可以输出时间点T0至时间点t内每一个采样时间点对应的评估结果,形成情绪变化趋势图,时间点T0是时间点t之前的一个时间点。在一种实现方式中:The execution device may also output the evaluation result corresponding to each sampling time point from the time point T0 to the time point t to form a trend graph of mood changes. The time point T0 is a time point before the time point t. In one implementation:
执行设备获取时间点T0至时间点t内每一个采样时间点对应的评估结果,时间点T0为时间点t之前的一个时间点;进而,执行设备输出时间点t对应的评估结果,包括:执行设备根据时间点T0至时间点t内每一个待评估数据对应的评估结果生成情绪变化趋势图;执行设备输出该情绪变化趋势图。The execution device obtains the evaluation result corresponding to each sampling time point from time point T0 to time point t, and the time point T0 is a time point before time point t; further, the execution device outputs the evaluation result corresponding to time point t, including: execution The device generates an emotion change trend graph according to the evaluation result corresponding to each data to be evaluated from the time point T0 to the time point t; the execution device outputs the emotion change trend graph.
例如,在一种实现方式中,N个情绪类型可以包括高兴、低落、积极和消极,此时,N为4。若第一模型包括第一子模型和第二子模型,两个子模型均为二分类模型,第一子模型用于判断高兴的概率和低落的概率,第二子模型用于判断积极的概率和消极的概率。时间点T0至时间点t内每一个采样点的评估结果均通过该第一模型得到。For example, in an implementation manner, the N emotion types may include happy, down, positive, and negative. In this case, N is 4. If the first model includes the first sub-model and the second sub-model, the two sub-models are both two-class models. The first sub-model is used to judge the probability of happy and low, and the second sub-model is used to judge the positive probability and Negative probability. The evaluation result of each sampling point from time point T0 to time point t is obtained through the first model.
请参阅图5b,是本申请实施例示例性提供的一种用户情绪变化趋势的示意图。如图5b所示,情绪变化趋势图显示用户在时间点T0至时间点t内情绪的变化,该情绪变化趋势图包括:高兴低落曲线(如图5b所示的虚线部分)和积极消极曲线(如图5b所示的实线部分)。具体地,执行设备获取到用户在时间点T0至时间点t内每一个采样点对应的评估结果之后,确定每一个采样点对应的评估结果在情绪变化趋势图中的位置,包括高兴概率与 低落概率确定的第一类型位置、积极概率与消极概率确定的第二类型位置。进而,连接每一个第一类型位置形成高兴低落曲线;连接每一个第二类型位置确定积极消极曲线。例如,时间点t对应的评估结果:高兴46%,低落54%,积极40%,消极60%,在情绪变化趋势图中的分别对应的位置如图5b所示。Please refer to FIG. 5b, which is a schematic diagram of a trend of user emotions exemplarily provided in an embodiment of the present application. As shown in Figure 5b, the mood change trend graph shows the user's mood change from time point T0 to time point t. The mood change trend graph includes: a happy and low curve (the dotted line shown in Fig. 5b) and a positive and negative curve ( The solid line shown in Figure 5b). Specifically, after the execution device obtains the evaluation result corresponding to each sampling point of the user from time point T0 to time point t, it determines the position of the evaluation result corresponding to each sampling point in the mood change trend graph, including happy probability and low The first type of location determined by probability, the second type of location determined by the positive probability and the negative probability. Furthermore, connecting each position of the first type to form a happy and low curve; connecting each position of the second type to determine a positive and negative curve. For example, the evaluation results corresponding to time point t: happy 46%, low 54%, positive 40%, negative 60%, and the corresponding positions in the mood change trend graph are shown in Figure 5b.
应理解,不限于上述实例(1)、实例(2)和实例(3)所提出的执行设备输出时间点t对应的评估结果的实现方式,执行设备输出时间点t对应的评估结果还可以是其它实现方式,此处不做限定。It should be understood that it is not limited to the implementation of the evaluation result corresponding to the output time t of the execution device proposed in the foregoing examples (1), (2) and (3), and the evaluation result corresponding to the output time t of the execution device may also be Other implementations are not limited here.
可选地,请参阅图6,是本申请实施例提供的一种评估女性情绪方法的流程示意图,执行设备在输出时间点t对应的评估结果之后,该评估女性情绪的方法还可以包括:Optionally, please refer to FIG. 6, which is a schematic flowchart of a method for evaluating female emotions provided by an embodiment of the present application. After the execution device outputs the evaluation result corresponding to time t, the method for evaluating female emotions may further include:
S208:执行设备向服务器发送时间点t对应的评估结果。S208: The execution device sends the evaluation result corresponding to the time point t to the server.
S210:服务器接收执行设备发送时间点t对应的评估结果,并根据该评估结果获取对应的推送信息,该推送信息用于指示用户管理时间点t时的情绪。S210: The server receives the evaluation result corresponding to the time point t sent by the execution device, and obtains corresponding push information according to the evaluation result, where the push information is used to instruct the user to manage the emotion at the time point t.
S212:服务器向执行设备发送该推送信息。S212: The server sends the push information to the execution device.
S214:执行设备接收并输出服务器发送的推送信息。S214: The execution device receives and outputs the push information sent by the server.
本申请实施例中,推送信息可以是文字、图片、音频、视频等形式的信息,此处不做限定。In the embodiments of the present application, the push information may be information in the form of text, picture, audio, video, etc., which is not limited here.
例如,如图5b所示,时间点t对应的评估结果为:高兴46%,低落54%,积极40%,消极60%。执行设备将时间点t对应的评估结果发送至服务器。在一种实现方式中,数据库中预先存储评估结果与推送信息的对应关系,服务器在接收到评估结果时,可以在数据库中查找该评估结果对应的推送信息,进而,服务器将该推送信息发送至执行设备。执行设备在接收到服务器发送的推送信息后,输出该推送信息。如图5b所示,执行设备输出的推送信息为:“不开心会变丑哦,试着微笑一下~”。For example, as shown in Figure 5b, the evaluation results corresponding to time point t are: happy 46%, low 54%, positive 40%, and negative 60%. The execution device sends the evaluation result corresponding to the time point t to the server. In one implementation manner, the corresponding relationship between the evaluation result and the push information is pre-stored in the database. When the server receives the evaluation result, it can look up the push information corresponding to the evaluation result in the database, and then the server sends the push information to Execution equipment. After receiving the push information sent by the server, the execution device outputs the push information. As shown in Figure 5b, the push message output by the execution device is: "Unhappy will become ugly, try to smile~".
应理解,不限于上述提供的执行设备输出推送信息的方式,上述执行设备输出推送信息的方式仅是本申请实施例的示例性说明,还可以包括其它实现方式,例如,执行设备还可以将该推送信息发送至其它设备,以使其它设备向用户输出该推送信息。It should be understood that it is not limited to the manner in which the execution device outputs push information provided above. The manner in which the execution device outputs push information is only an exemplary description of the embodiment of the present application, and other implementation manners may also be included. For example, the execution device may also The push information is sent to other devices, so that the other devices output the push information to the user.
可选地,执行设备获取时间点T0至时间点t内每一个采样点对应的评估结果之后,该评估女性情绪的方法还可以包括:Optionally, after the execution device obtains the evaluation result corresponding to each sampling point from time point T0 to time point t, the method for evaluating female emotions may further include:
执行设备向服务器发送时间点T0至时间点t内每一个采样点对应的评估结果,以使服务器在检测到时间点t1到时间点t内的每一个采样点分别对应的第一情绪类型的概率均小于第一阈值时,向设定的该用户的联系人发送提示信息,该提示信息用于提示该用户的联系人该用户在时间点t1至时间点t内的情绪状况,第一情绪类型为N个情绪类型中的一个情绪类型,时间点t1为时间点T0至时间点t内的一个时间点。The execution device sends the evaluation result corresponding to each sampling point from time point T0 to time point t to the server, so that the server detects the probability of the first emotion type corresponding to each sampling point from time point t1 to time point t When both are less than the first threshold, send reminder information to the set contact of the user, the reminder information is used to remind the user’s contact of the user’s emotional state from time t1 to time t, the first emotion type It is an emotion type among N emotion types, and the time point t1 is a time point from the time point T0 to the time point t.
在一种实现方式中,若第一情绪类型为高兴,第一阈值为50%,当执行设备检测到在时间点t1至时间点t内每一个采样点对应的高兴程度均小于50%时,执行设备向设定的该用户的联系人发送提示信息,此时,该提示信息指示该用户持续处于低落状态。In an implementation manner, if the first emotion type is happiness, the first threshold is 50%. When the execution device detects that the happiness level corresponding to each sampling point from time t1 to time t is less than 50%, The execution device sends a prompt message to the set contact of the user. At this time, the prompt message indicates that the user is continuously in a low state.
应理解,执行设备向用户的联系人发送提示信息的触发条件不限于上述提及的条件,还可以设定其它触发条件,例如,在时间点t时的第一情绪类型与上一个采样时间点对应的第一情绪类型的差值大于第二阈值,执行设备也可以向用户的联系人发送提示信息,此 时,该提示信息可以用于指示用户的情绪发生突变。本生情实施例中,触发执行设备执行向用户的联系人发送提示信息的条件,此处不做限定。It should be understood that the triggering condition for the execution device to send the prompt information to the user's contact is not limited to the above-mentioned conditions, and other triggering conditions can also be set, for example, the first emotion type at time t and the previous sampling time point. The corresponding difference of the first emotion type is greater than the second threshold, and the execution device may also send prompt information to the user's contact. At this time, the prompt information may be used to indicate that the user's emotion has a sudden change. In the embodiment of the natural condition, the condition for triggering the execution device to send the prompt information to the user's contact is not limited here.
下面介绍步骤S204中将M个待评估数据输入到第一模型,得到时间点t对应的评估结果的具体实现方式,可以包括但不限于如下三种实现方式。The following describes a specific implementation manner of inputting M to-be-evaluated data into the first model in step S204 to obtain the evaluation result corresponding to the time point t, which may include, but is not limited to, the following three implementation manners.
实现方式(一):Implementation method (1):
第一模型是单个的循环神经网络,该该循环神经网路包括M个网络单元,将M个待评估数据输入到第一模型包括:将M个待评估数据中的第i个待评估数据和第i-1个网络单元的输出数据输入到M个网络单元中的第i个网络单元,i为大于等于2且小于等于M的整数。The first model is a single cyclic neural network. The cyclic neural network includes M network units. Inputting M data to be evaluated into the first model includes: inputting the i-th data to be evaluated among the M data to be evaluated and The output data of the i-1th network unit is input to the i-th network unit among the M network units, and i is an integer greater than or equal to 2 and less than or equal to M.
具体地,例如,第一模型为循环神经网络中的长短期记忆模型,第i个网络单元执行:接收第i-1个网络单元的输出数据和第i个待评估数据,输出数据包括隐藏状态和细胞状态;确定第i个网络单元的细胞状态为第i-1个网络单元的细胞状态通过遗忘门和输入门处理之后得到的,遗忘门用于选择遗忘第i-1个网络单元的隐藏状态和第i个待评估数据,输入门用于选择输入第i-1个网络单元的隐藏状态和第i个待评估数据;输出第i个网络单元的输出数据。Specifically, for example, the first model is a long and short-term memory model in a cyclic neural network, and the i-th network unit executes: receiving the output data of the i-1th network unit and the i-th data to be evaluated, and the output data includes the hidden state And the cell state; it is determined that the cell state of the i-th network unit is the cell state of the i-1th network unit through the forgetting gate and the input gate. The forgetting gate is used to select the hiding of the i-1th network unit. The state and the i-th data to be evaluated, the input gate is used to select the hidden state of the i-1th network unit and the i-th data to be evaluated; output the output data of the i-th network unit.
当i等于M时,从第M个网络单元的输出状态中获取时间点t对应的评估结果。例如,若在时间点t时,第M个网络单元的输出状态为h
t,那么时间点t对应的评估结果可以表示为:
When i is equal to M, the evaluation result corresponding to the time point t is obtained from the output state of the Mth network unit. For example, if at time t, the output state of the M-th network unit is h t , then the evaluation result corresponding to time t can be expressed as:
y
t=σ(w′h
t)
y t =σ(w′h t )
其中,w′为线性关系系数,σ表示激活函数sigmoid。Among them, w'is the linear relationship coefficient, and σ represents the activation function sigmoid.
实现方式(二):Implementation method (two):
第一模型可以是卷积神经网络,M个待评估数据形成数据矩阵,该数据矩阵包括M行,第j行的数据为M个待评估数据中的第j个待评估数据,j为大于等于1且小于等于M的整数。The first model can be a convolutional neural network. The M data to be evaluated form a data matrix. The data matrix includes M rows. The data in the jth row is the jth data to be evaluated among the M data to be evaluated, and j is greater than or equal to An integer of 1 and less than or equal to M.
此时,将M个待评估数据输入到第一模型,得到时间点t对应的评估结果,包括:At this time, input the M data to be evaluated into the first model, and obtain the evaluation result corresponding to the time point t, including:
对待评估矩阵进行多次卷积操作和池化操作,以分别提取该待评估矩阵拥有的N个情绪类型的特征,N个情绪类型中每一个情绪类型包括至少一个特征;全连接层对最后一次卷积层或池化层提取的特征进行组合,以使N个情绪类型中每一个情绪类型对应的特征整合到一起,组合是指通过激活函数输出N个情绪类型中每一个情绪类型的输出值;输出层连接softmax函数,根据N个情绪类型中每一个情绪类型的输出值确定并输出N个情绪类型中每一个情绪类型的概率。Perform multiple convolution operations and pooling operations on the matrix to be evaluated to extract the features of the N emotion types of the matrix to be evaluated. Each emotion type of the N emotion types includes at least one feature; the fully connected layer performs the last time The features extracted by the convolutional layer or the pooling layer are combined to integrate the features corresponding to each of the N emotion types. The combination refers to outputting the output value of each emotion type of the N emotion types through the activation function ; The output layer is connected with the softmax function, and the probability of each emotion type in the N emotion types is determined and output according to the output value of each emotion type in the N emotion types.
实现方式(三):Implementation method (three):
第一模型包括包括多个子模型,每个子模型分别可以是卷积神经网络或循环神经网络。例如,第一模型包括第一子模型和第二子模型,第一子模型或第二子模型的训练方式可以参见上述神经网络的训练方法中第一模型包括多个子模型的相关描述。第一子模型可以用于判断高兴的概率和低落的概率,第二子模型可以用于判断积极的概率和消极的概率。第一子模型或第二子模型可以是循环神经网络,或卷积神经网络,或分别为循环神经网络或 卷积神经网络,或为其它类型的神经网络,此处不做限定。将M个待评估数据输入到第一模型,得到所述时间点t对应的评估结果,包括但不限于S302、S304:The first model includes a plurality of sub-models, and each sub-model may be a convolutional neural network or a recurrent neural network. For example, the first model includes a first sub-model and a second sub-model, and the training method of the first sub-model or the second sub-model can refer to the related description of the first model including multiple sub-models in the above-mentioned neural network training method. The first sub-model can be used to judge the happy probability and the low probability, and the second sub-model can be used to judge the positive probability and the negative probability. The first sub-model or the second sub-model may be a recurrent neural network, or a convolutional neural network, or a recurrent neural network or a convolutional neural network, or another type of neural network, which is not limited here. Input M to-be-evaluated data into the first model to obtain the evaluation result corresponding to the time point t, including but not limited to S302 and S304:
S302:执行设备将M个待评估数据输入到第一子模型,得到第一评估结果,该第一评估结果用于指示用户在时间点t时的情绪为P个情绪类型中每一个情绪类型的概率,第一子模型是通过多个样本中标签为P个情绪类型的样本训练得到的深度神经网络。S302: The execution device inputs M to-be-evaluated data into the first sub-model to obtain a first evaluation result. The first evaluation result is used to indicate that the user's emotion at time point t is of each emotion type among the P emotion types. Probability, the first sub-model is a deep neural network trained by samples labeled P emotion types in multiple samples.
S304:执行设备将M个待评估数据输入到所述第二子模型,得到第二评估结果,该第二评估结果用于指示该用户在时间点t的情绪为Q个情绪类型中每一个情绪类型的概率,第二子模型是通过多个样本中标签为Q个情绪类型的样本训练得到的深度。S304: The execution device inputs M to-be-evaluated data into the second sub-model to obtain a second evaluation result, which is used to indicate that the emotion of the user at time t is each emotion of the Q emotion types The probability of the type, the second sub-model is the depth obtained by training samples with Q emotion types in multiple samples.
此时,时间点t对应的评估结果包括该第一评估结果和该第二评估结果,N=P+Q,P、Q均为正整数。At this time, the evaluation result corresponding to the time point t includes the first evaluation result and the second evaluation result, N=P+Q, and both P and Q are positive integers.
应理解,不限于上述实现方式(一)、实现方式(二)和实现方式(三)所提及的获取时间点t对应的评估结果的实现方式,实现方式(一)、实现方式(二)和实现方式(三)仅是本申请的示例性说明,还应包括其它获取获取时间点t对应的评估结果的实现方式,此处不做限定。It should be understood that it is not limited to the above-mentioned realization method (1), realization method (2) and realization method (3). And the implementation manner (3) is only an exemplary description of this application, and should also include other implementation manners for obtaining the evaluation result corresponding to the acquisition time point t, which is not limited here.
本申请实施例中,执行设备获取用户的M个待评估数据,所述M个待评估数据包括在时间点t-T至时间点t内采样的M个采样点的生理数据,所述M个待评估数据按照时间先后顺序排列,所述M个待评估数据与所述M个采样点一一对应,所述M=Z*T,所述T为一个生理周期,所述Z为所述生理数据的采样频率;将所述M个待评估数据输入到第一模型,得到所述时间点t对应的评估结果,所述时间点t对应的评估结果用于指示所述用户在所述时间点t的情绪为N个情绪类型中每一个情绪类型的概率,所述第一模型是通过多个样本训练得到的深度神经网络,所述多个样本中每一个样本的输入数据包括在时间点t’-T’至时间点t’内采样的M’个采样点的生理数据,所述每一个样本的标签为在所述时间点t’的情绪类型,M’=Z*T’,所述T’为一个生理周期;输出所述时间点t对应的评估结果。由此可知,一方面,因为女性在生理周期的不同阶段,情绪变化与生理数据的关联性会发生变化,例如,在生理数据完全相同的情况下,因为情绪与生理数据的关联性不同,女性处在“经期”与处在“黄体期”所表现出的情绪可能不同。因此,仅通过一个时间点的生理数据评估女性在该时间点的情绪难免准确度低,因此,本申请实施例通过结合女性整个生理周期的特性,获取用户在时间点之前的一个生理周期内的生理数据来评估用户在该时间点时的情绪。第二方面,情绪在时间上是连续的,仅通过一个时间点的生理数据来评估用户在该时间点的情绪,忽略了历史情绪对当前情绪的影响,因此,本申请实施例获取时间点之前一个生理周期的生理数据来评估该时间点的情绪,加入历史生理数据对该时间点的情绪的影响。综上,实施申请实施例,可以提高评估女性情绪的准确度。In the embodiment of the present application, the execution device acquires M data to be evaluated from the user, and the M data to be evaluated include physiological data of M sampling points sampled from a time point tT to a time point t, and the M data to be evaluated The data are arranged in chronological order, the M to-be-assessed data correspond to the M sampling points one-to-one, the M=Z*T, the T is a physiological cycle, and the Z is the value of the physiological data Sampling frequency; input the M to-be-evaluated data into the first model to obtain the evaluation result corresponding to the time point t, and the evaluation result corresponding to the time point t is used to indicate the user’s performance at the time point t Emotion is the probability of each of the N emotion types. The first model is a deep neural network trained through multiple samples. The input data of each sample in the multiple samples includes the time point t'- The physiological data of M'sampling points sampled from T'to the time point t', the label of each sample is the emotion type at the time point t', M'=Z*T', the T' Is a physiological cycle; output the evaluation result corresponding to the time point t. It can be seen that, on the one hand, because women are in different stages of the menstrual cycle, the relationship between emotional changes and physiological data will change. For example, when the physiological data is exactly the same, because the relationship between emotion and physiological data is different, women The emotions shown during the "menstrual period" and the "luteal phase" may be different. Therefore, it is inevitable that the accuracy of evaluating women’s emotions at that time point by only using physiological data at one point in time is low. Therefore, the embodiment of the present application combines the characteristics of the female's entire menstrual cycle to obtain the user’s information in a menstrual cycle before the time point. Physiological data to evaluate the user’s emotions at that point in time. In the second aspect, emotions are continuous in time, and the user’s emotions at that time point are evaluated only through physiological data at one point in time, ignoring the influence of historical emotions on the current emotions. Therefore, the embodiment of the present application obtains the time point before The physiological data of a menstrual cycle is used to evaluate the emotion at that time point, and the influence of historical physiological data on the emotion at that time point is added. In summary, implementing the application examples can improve the accuracy of evaluating women's emotions.
基于上述描述,下面介绍本申请实施例提供的一种电子设备700,图7示出了电子设备700的结构示意图。如图7所示,电子设备700可以包括处理器710,外部存储器接口720,内部存储器721,通用串行总线(universal serial bus,USB)接口730,充电管理模块740,电源管理模块741,电池742,天线1,天线2,移动通信模块750,无线通信模块760,音频模块770(包括扬声器770A,受话器770B,麦克风770C,耳机接口770D)传感器模 块780,按键790,马达791,指示器792,摄像头793,显示屏794,以及用户标识模块(subscriber identification module,SIM)卡接口795等。其中传感器模块780可以包括压力传感器780A,陀螺仪传感器780B,气压传感器780C,磁传感器780D,加速度传感器780E,距离传感器780F,接近光传感器780G,指纹传感器780H,温度传感器780J,触摸传感器780K,环境光传感器780L,骨传导传感器780M等。Based on the foregoing description, the following introduces an electronic device 700 provided by an embodiment of the present application. FIG. 7 shows a schematic structural diagram of the electronic device 700. As shown in FIG. 7, the electronic device 700 may include a processor 710, an external memory interface 720, an internal memory 721, a universal serial bus (USB) interface 730, a charging management module 740, a power management module 741, and a battery 742 , Antenna 1, antenna 2, mobile communication module 750, wireless communication module 760, audio module 770 (including speaker 770A, receiver 770B, microphone 770C, earphone interface 770D) sensor module 780, button 790, motor 791, indicator 792, camera 793, a display screen 794, and a subscriber identification module (SIM) card interface 795, etc. The sensor module 780 may include pressure sensor 780A, gyroscope sensor 780B, air pressure sensor 780C, magnetic sensor 780D, acceleration sensor 780E, distance sensor 780F, proximity light sensor 780G, fingerprint sensor 780H, temperature sensor 780J, touch sensor 780K, ambient light Sensor 780L, bone conduction sensor 780M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备700的具体限定。在本申请另一些实施例中,电子设备700可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 700. In other embodiments of the present application, the electronic device 700 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
应理解,本申请实施例中,电子设备700可以是上述图1a中的执行设备103,也可以是采集设备101。It should be understood that, in the embodiment of the present application, the electronic device 700 may be the execution device 103 in FIG. 1a, or the collection device 101.
处理器710可以包括一个或多个处理单元,例如:处理器710可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 710 may include one or more processing units. For example, the processor 710 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备700的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 700. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
处理器710中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器710中的存储器为高速缓冲存储器。该存储器可以保存处理器710刚用过或循环使用的指令或数据。如果处理器710需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器710的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 710 for storing instructions and data. In some embodiments, the memory in the processor 710 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 710. If the processor 710 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 710 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器710可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 710 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
应理解,处理器可以通过调用存储器中的程序代码,执行本申请实施例提供的一种评估女性情绪的方法,包括执行:It should be understood that the processor can execute the method for evaluating female emotions provided by the embodiment of the present application by calling the program code in the memory, including executing:
获取用户的M个待评估数据,M个待评估数据包括在时间点t-T至时间点t内采样的M个采样点的生理数据,该M个待评估数据按照时间先后顺序排列,该M个待评估数据与M个采样点一一对应,M=Z*T,T为一个生理周期,Z为生理数据的采样频率;将M个待评估数据输入到第一模型,得到时间点t对应的评估结果,时间点t对应的评估结果用于指示用户在时间点t的情绪为N个情绪类型中每一个情绪类型的概率,第一模型是通过多个样本训练得到的深度神经网络,多个样本中每一个样本的输入数据包括在时间点t’-T’ 至时间点t’内采样的M’个采样点的生理数据,每一个样本的标签为在时间点t’的情绪类型,M’=Z*T’,T’为一个生理周期;输出时间点t对应的评估结果。Acquire M data to be evaluated from the user. The M data to be evaluated include physiological data of M sampling points sampled from time tT to time t. The M data to be evaluated are arranged in chronological order, and the M data to be evaluated are arranged in chronological order. The evaluation data corresponds to M sampling points one-to-one, M=Z*T, T is a physiological cycle, Z is the sampling frequency of physiological data; input the M data to be evaluated into the first model to obtain the evaluation corresponding to time t As a result, the evaluation result corresponding to time point t is used to indicate the probability that the user’s emotion at time point t is each of the N emotion types. The first model is a deep neural network trained through multiple samples. The input data of each sample in includes the physiological data of M'sampling points sampled from time point t'-T' to time point t', and the label of each sample is the emotion type at time point t', M' =Z*T', T'is a physiological cycle; output the evaluation result corresponding to the time point t.
处理器710执行上述评估女性情绪的方法,具体描述可以参见上述图2中实施评估女性情绪的相关描述,此处不再赘述。The processor 710 executes the foregoing method for evaluating female emotions. For a specific description, please refer to the related description of implementing the evaluation of female emotions in FIG. 2, which will not be repeated here.
USB接口730是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口730可以用于连接充电器为电子设备700充电,也可以用于电子设备700与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 730 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 730 can be used to connect a charger to charge the electronic device 700, and can also be used to transfer data between the electronic device 700 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备700的结构限定。在本申请另一些实施例中,电子设备700也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 700. In some other embodiments of the present application, the electronic device 700 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块740用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块740可以通过USB接口730接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块740可以通过电子设备700的无线充电线圈接收无线充电输入。充电管理模块740为电池742充电的同时,还可以通过电源管理模块741为电子设备供电。The charging management module 740 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 740 may receive the charging input of the wired charger through the USB interface 730. In some embodiments of wireless charging, the charging management module 740 may receive the wireless charging input through the wireless charging coil of the electronic device 700. While the charging management module 740 charges the battery 742, it can also supply power to the electronic device through the power management module 741.
电源管理模块741用于连接电池742,充电管理模块740与处理器710。电源管理模块741接收电池742和/或充电管理模块740的输入,为处理器710,内部存储器721,外部存储器,显示屏794,摄像头793,和无线通信模块760等供电。电源管理模块741还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块741也可以设置于处理器710中。在另一些实施例中,电源管理模块741和充电管理模块740也可以设置于同一个器件中。The power management module 741 is used to connect the battery 742, the charging management module 740 and the processor 710. The power management module 741 receives input from the battery 742 and/or the charge management module 740, and supplies power to the processor 710, the internal memory 721, the external memory, the display screen 794, the camera 793, and the wireless communication module 760. The power management module 741 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, the power management module 741 may also be provided in the processor 710. In other embodiments, the power management module 741 and the charging management module 740 may also be provided in the same device.
电子设备700的无线通信功能可以通过天线1,天线2,移动通信模块750,无线通信模块760,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 700 can be implemented by the antenna 1, the antenna 2, the mobile communication module 750, the wireless communication module 760, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备700中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 700 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块750可以提供应用在电子设备700上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块750可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块750可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块750还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块750的至少部分功能模块可以被设置于处理器710中。在一些实施例中,移动通信模块750的至少部分功能模块可以与处理器710的至少部分模块被设置在同一个器件中。The mobile communication module 750 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 700. The mobile communication module 750 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 750 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 750 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 750 may be provided in the processor 710. In some embodiments, at least part of the functional modules of the mobile communication module 750 and at least part of the modules of the processor 710 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后, 被传递给应用处理器。应用处理器通过音频设备(不限于扬声器770A,受话器770B等)输出声音信号,或通过显示屏794显示图片或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器710,与移动通信模块750或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs sound signals through audio equipment (not limited to the speaker 770A, the receiver 770B, etc.), or displays pictures or videos through the display screen 794. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 710 and be provided in the same device as the mobile communication module 750 or other functional modules.
无线通信模块760可以提供应用在电子设备700上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块760可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块760经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器710。无线通信模块760还可以从处理器710接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 760 can provide applications on the electronic device 700 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 760 may be one or more devices integrating at least one communication processing module. The wireless communication module 760 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 710. The wireless communication module 760 may also receive the signal to be sent from the processor 710, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
在一些实施例中,电子设备700的天线1和移动通信模块750耦合,天线2和无线通信模块760耦合,使得电子设备700可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 700 is coupled with the mobile communication module 750, and the antenna 2 is coupled with the wireless communication module 760, so that the electronic device 700 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
应理解,本申请实施例中,通信模块用于接收和发送信息,可以执行:It should be understood that, in the embodiments of the present application, the communication module is used to receive and send information, and can execute:
通过通信模块向服务器发送时间点t对应的评估结果,以使服务器根据时间点t对应的评估结果获取对应的推送信息,推送信息用于指示用户管理时间点t的情绪;通过通信模块接收服务器发送的推送信息,并输出服务器发送的推送信息。Send the evaluation result corresponding to the time point t to the server through the communication module, so that the server obtains corresponding push information according to the evaluation result corresponding to the time point t, the push information is used to instruct the user to manage the emotions at the time point t; receive the server sent through the communication module And output the push information sent by the server.
具体实现可以参见上述步骤S208-S214中的相关描述,此处不再赘述。For specific implementation, please refer to the relevant descriptions in the above steps S208-S214, which will not be repeated here.
通信模块还用于执行:在检测到时间点t1至时间点t的每一个采样时间点分别对应的第一情绪的概率小于第一阈值时,通过通信模块向设定的用户的联系人发送提示信息,该提示信息用于提示用户的联系人该用户在时间点t1至时间点t内该用户的情绪状况,第一情绪为N个情绪类型中的一个情绪类型,时间点t1为时间点T0至时间点t内的一个时间点。The communication module is also used to execute: when the probability of the first emotion corresponding to each sampling time point from time t1 to time t is detected to be less than the first threshold, the communication module sends a reminder to the set contact of the user Information, the prompt information is used to remind the user’s contacts of the user’s emotional state of the user from time t1 to time t, the first emotion is one of the N emotion types, and the time point t1 is the time point T0 To a point in time t.
具体实现可以参见上述评估女性的方法中的相关描述,此处不再赘述。For specific implementation, please refer to the relevant description in the above method for evaluating women, which will not be repeated here.
电子设备700通过GPU,显示屏794,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏794和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器710可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 700 implements a display function through a GPU, a display screen 794, and an application processor. The GPU is an image processing microprocessor, which connects the display screen 794 and the application processor. The GPU is used to perform mathematical and geometric calculations and is used for graphics rendering. The processor 710 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏794用于显示图片,视频等。显示屏794包括显示面板。显示面板可以采用液 晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备700可以包括1个或N个显示屏794,N为大于1的正整数。显示屏可以包括软键盘等输入模块。The display screen 794 is used to display pictures, videos, etc. The display screen 794 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 700 may include one or N display screens 794, and N is a positive integer greater than one. The display screen may include input modules such as a soft keyboard.
本申请实施例中,可以通过显示器(如上述显示屏794)和输入模块,执行:In this embodiment of the application, the following can be performed through a display (such as the above-mentioned display screen 794) and an input module:
通过显示器显示量表问卷,量表问卷包括至少一个问题;通过输入模块接收针对至少一个问题中每一个问题输入的选项;根据每一个问题输入的选项确定用户的心理特征得分,心理特征得分包括神经质得分、责任心得分和随和性得分中的至少一种。Display the scale questionnaire on the display, the scale questionnaire includes at least one question; receive input options for each of the at least one question through the input module; determine the user’s psychological feature score according to the input options for each question, and the psychological feature score includes neuroticism At least one of score, conscientiousness score, and easy-going score.
在一些实施方式中,可以通过显示屏794接收用户输入的基本信息、用户的生理周期特征等特征参数,具体可以参见步骤S202中的相关描述,此处不在赘述。In some embodiments, the basic information input by the user, the physiological cycle characteristics of the user and other characteristic parameters can be received through the display screen 794. For details, please refer to the relevant description in step S202, which will not be repeated here.
电子设备700可以通过ISP,摄像头793,视频编解码器,GPU,显示屏794以及应用处理器等实现采集功能。The electronic device 700 can realize the collection function through an ISP, a camera 793, a video codec, a GPU, a display screen 794, and an application processor.
ISP用于处理摄像头793反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图片或视频。ISP还可以对图片的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头793中。The ISP is used to process the data fed back from the camera 793. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing, which is converted into a picture or video visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 793.
摄像头793用于捕获静态图片或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图片或视频信号。ISP将数字图片或视频信号输出到DSP加工处理。DSP将数字图片或视频信号转换成标准的RGB,YUV等格式的图片或视频信号。在一些实施例中,电子设备700可以包括1个或N个摄像头793,N为大于1的正整数。The camera 793 is used to capture still pictures or videos. The object generates an optical image through the lens and is projected to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital picture or video signal. ISP outputs digital pictures or video signals to DSP for processing. DSP converts digital pictures or video signals into standard RGB, YUV and other formats of pictures or video signals. In some embodiments, the electronic device 700 may include one or N cameras 793, and N is a positive integer greater than one.
数字信号处理器用于处理数字信号,除了可以处理数字图片或视频信号,还可以处理其他数字信号。例如,当电子设备700在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。The digital signal processor is used to process digital signals. In addition to processing digital pictures or video signals, it can also process other digital signals. For example, when the electronic device 700 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备700可以支持一种或多种视频编解码器。这样,电子设备700可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 700 may support one or more video codecs. In this way, the electronic device 700 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备700的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information, and it can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 700 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口720可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口720与处理器710通信,实现数据存储 功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 720 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 710 through the external memory interface 720 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器721可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器710通过运行存储在内部存储器721的指令,从而执行电子设备700的各种功能应用以及数据处理。内部存储器721可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图片或视频播放功能等)等。存储数据区可存储电子设备700使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器721可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 721 may be used to store computer executable program code, where the executable program code includes instructions. The processor 710 executes various functional applications and data processing of the electronic device 700 by running instructions stored in the internal memory 721. The internal memory 721 may include a program storage area and a data storage area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, a picture or video playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 700. In addition, the internal memory 721 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
电子设备100可以通过音频模块770,扬声器770A,受话器770B,麦克风770C,耳机接口770D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through an audio module 770, a speaker 770A, a receiver 770B, a microphone 770C, a headphone interface 770D, and an application processor. For example, music playback, recording, etc.
音频模块770用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块770还可以用于对音频信号编码和解码。在一些实施例中,音频模块770可以设置于处理器710中,或将音频模块770的部分功能模块设置于处理器710中。The audio module 770 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 770 can also be used to encode and decode audio signals. In some embodiments, the audio module 770 may be provided in the processor 710, or part of the functional modules of the audio module 770 may be provided in the processor 710.
扬声器770A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备700可以通过扬声器770A收听音乐,或收听免提通话。The speaker 770A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 700 can listen to music through the speaker 770A, or listen to a hands-free call.
受话器770B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备700接听电话或语音信息时,可以通过将受话器770B靠近人耳接听语音。The receiver 770B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 700 answers a call or voice message, it can receive the voice by bringing the receiver 770B close to the human ear.
麦克风770C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风770C发声,将声音信号输入到麦克风770C。电子设备100可以设置至少一个麦克风770C。在另一些实施例中,电子设备700可以设置两个麦克风770C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备700还可以设置三个,四个或更多麦克风770C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。 Microphone 770C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 770C through the human mouth, and input the sound signal into the microphone 770C. The electronic device 100 may be provided with at least one microphone 770C. In some other embodiments, the electronic device 700 can be provided with two microphones 770C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 700 may also be provided with three, four or more microphones 770C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口770D用于连接有线耳机。耳机接口770D可以是USB接口730,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 770D is used to connect wired earphones. The earphone interface 770D may be a USB interface 730, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器780A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器780A可以设置于显示屏794。压力传感器780A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器780A,电极之间的电容改变。电子设备700根据电容的变化确定压力的强度。当有触摸操作作用于显示屏794,电子设备700根据压力传感器780A检测所述触摸操作强度。电子设备700也可以根据压力传感器780A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等 于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 780A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 780A may be provided on the display screen 794. There are many types of pressure sensors 780A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force is applied to the pressure sensor 780A, the capacitance between the electrodes changes. The electronic device 700 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 794, the electronic device 700 detects the intensity of the touch operation according to the pressure sensor 780A. The electronic device 700 may also calculate the touched position according to the detection signal of the pressure sensor 780A. In some embodiments, touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器780B可以用于确定电子设备700的运动姿态。在一些实施例中,可以通过陀螺仪传感器780B确定电子设备700围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器780B可以用于拍摄防抖。陀螺仪传感器780B还可以用于导航,体感游戏场景。The gyro sensor 780B may be used to determine the movement posture of the electronic device 700. In some embodiments, the angular velocity of the electronic device 700 around three axes (ie, x, y, and z axes) can be determined by the gyroscope sensor 780B. The gyro sensor 780B can be used for image stabilization. The gyro sensor 780B can also be used for navigation and somatosensory game scenes.
气压传感器780C用于测量气压。在一些实施例中,电子设备700通过气压传感器780C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 780C is used to measure air pressure. In some embodiments, the electronic device 700 calculates the altitude based on the air pressure value measured by the air pressure sensor 780C to assist positioning and navigation.
磁传感器780D包括霍尔传感器。电子设备700可以利用磁传感器780D检测翻盖皮套的开合。The magnetic sensor 780D includes a Hall sensor. The electronic device 700 can use the magnetic sensor 780D to detect the opening and closing of the flip holster.
加速度传感器780E可检测电子设备700在各个方向上(一般为三轴)加速度的大小。当电子设备700静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 780E can detect the magnitude of the acceleration of the electronic device 700 in various directions (generally three axes). When the electronic device 700 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on.
距离传感器780F,用于测量距离。电子设备700可以通过红外或激光测量距离。Distance sensor 780F, used to measure distance. The electronic device 700 can measure the distance by infrared or laser.
本申请实施例中,定位模块可以包括距离传感器780F、加速度传感器780E等,定位模块用于定位用户的位置,以使处理器执行:通过定位模块获取用户在时间点t时的位置信息;根据位置信息确定用户在时间点t时所处的场所类型。In the embodiment of the present application, the positioning module may include a distance sensor 780F, an acceleration sensor 780E, etc. The positioning module is used to locate the position of the user, so that the processor executes: obtain the user's position information at time t through the positioning module; The information determines the type of place the user is in at time t.
应理解,还可以通过传感器780F、加速度传感器780E获取用户的位置信息,从而分析计算用户的运动量。具体实现可以参见上述获取用户运动量的相关描述,此处不再赘述。It should be understood that the position information of the user may also be obtained through the sensor 780F and the acceleration sensor 780E, so as to analyze and calculate the amount of exercise of the user. For specific implementation, please refer to the above-mentioned related description of obtaining the user's exercise volume, which will not be repeated here.
接近光传感器780G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备700通过发光二极管向外发射红外光。电子设备700使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备700附近有物体。当检测到不充分的反射光时,电子设备700可以确定电子设备700附近没有物体。电子设备700可以利用接近光传感器780G检测用户手持电子设备700贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器780G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 780G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 700 emits infrared light to the outside through the light emitting diode. The electronic device 700 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 700. When insufficient reflected light is detected, the electronic device 700 can determine that there is no object near the electronic device 700. The electronic device 700 can use the proximity light sensor 780G to detect that the user holds the electronic device 700 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 780G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器780L用于感知环境光亮度。电子设备700可以根据感知的环境光亮度自适应调节显示屏794亮度。环境光传感器780L也可用于拍照时自动调节白平衡。环境光传感器780L还可以与接近光传感器780G配合,检测电子设备700是否在口袋里,以防误触。The ambient light sensor 780L is used to sense the brightness of the ambient light. The electronic device 700 can adaptively adjust the brightness of the display screen 794 according to the perceived brightness of the ambient light. The ambient light sensor 780L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 780L can also cooperate with the proximity light sensor 780G to detect whether the electronic device 700 is in the pocket to prevent accidental touch.
本神奇实施例中,可以通过光传感器获取用户的光强度,具体实现可以参见上述获取用户的光强度的相关描述,此处不再赘述。In this magical embodiment, the light intensity of the user can be obtained through the light sensor. For specific implementation, please refer to the above description of obtaining the light intensity of the user, which will not be repeated here.
指纹传感器780H用于采集指纹。电子设备700可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 780H is used to collect fingerprints. The electronic device 700 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
温度传感器780J用于检测温度。在一些实施例中,电子设备700利用温度传感器780J检测的温度,执行温度处理策略。例如,当温度传感器780J上报的温度超过阈值,电子设备700执行降低位于温度传感器780J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备700对电池742加热,以避免低温导致电子设备700异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备700对电池742的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 780J is used to detect temperature. In some embodiments, the electronic device 700 uses the temperature detected by the temperature sensor 780J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 780J exceeds a threshold value, the electronic device 700 performs a reduction in the performance of the processor located near the temperature sensor 780J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 700 heats the battery 742 to avoid abnormal shutdown of the electronic device 700 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 700 boosts the output voltage of the battery 742 to avoid abnormal shutdown caused by low temperature.
本身实施例中,可以通过温度传感器获取用户的温度。In its own embodiment, the user's temperature can be obtained through a temperature sensor.
触摸传感器780K,也称“触控面板”。触摸传感器780K可以设置于显示屏794,由触摸传感器780K与显示屏794组成触摸屏,也称“触控屏”。触摸传感器780K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏794提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器780K也可以设置于电子设备700的表面,与显示屏794所处的位置不同。The touch sensor 780K is also called "touch panel". The touch sensor 780K can be set on the display screen 794, and the touch screen is composed of the touch sensor 780K and the display screen 794, which is also called a “touch screen”. The touch sensor 780K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 794. In other embodiments, the touch sensor 780K may also be disposed on the surface of the electronic device 700, which is different from the position of the display screen 794.
骨传导传感器780M可以获取振动信号。在一些实施例中,骨传导传感器780M可以获取人体声部振动骨块的振动信号。骨传导传感器780M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器780M也可以设置于耳机中,结合成骨传导耳机。音频模块770可以基于所述骨传导传感器780M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器780M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 780M can acquire vibration signals. In some embodiments, the bone conduction sensor 780M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 780M can also contact the human pulse and receive blood pressure beating signals. In some embodiments, the bone conduction sensor 780M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 770 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 780M, and realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 780M, and realize the heart rate detection function.
本申请实施例中,可以通过上述骨传导传感器获取用户的血压跳动信息,从而获取心率、呼吸率等信息。在另一种实现方式中,电子设备700还可以包括光学心率传感器780N,通过光学心率传感器获取用户的心率、呼吸率、心率变异性等特征参数。具体实现可以参见上述步骤S202中关于获取用户的生理参数信息的相关描述。In the embodiment of the present application, the user's blood pressure beat information can be obtained through the above-mentioned bone conduction sensor, so as to obtain information such as heart rate and respiration rate. In another implementation manner, the electronic device 700 may further include an optical heart rate sensor 780N, through which characteristic parameters such as the user's heart rate, respiration rate, and heart rate variability are acquired. For specific implementation, please refer to the related description of obtaining the physiological parameter information of the user in the above step S202.
按键790包括开机键,音量键等。按键790可以是机械按键。也可以是触摸式按键。电子设备700可以接收按键输入,产生与电子设备700的用户设置以及功能控制有关的键信号输入。The button 790 includes a power button, a volume button, and so on. The button 790 may be a mechanical button. It can also be a touch button. The electronic device 700 may receive key input, and generate key signal input related to user settings and function control of the electronic device 700.
马达791可以产生振动提示。马达791可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏794不同区域的触摸操作,马达791也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 791 can generate vibration prompts. The motor 791 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 794, the motor 791 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器792可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 792 can be an indicator light, which can be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口795用于连接SIM卡。SIM卡可以通过插入SIM卡接口795,或从SIM卡接口795拔出,实现和电子设备700的接触和分离。电子设备700可以支持1个或N个SIM卡接口,N为大于7的正整数。SIM卡接口795可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口795可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口795也可以兼容不同类型的SIM卡。SIM卡接口795也可以兼容外部存储卡。电子设备700通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备700采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备700中,不能和电子设备700分离。The SIM card interface 795 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 795 or pulled out from the SIM card interface 795 to achieve contact and separation with the electronic device 700. The electronic device 700 may support 1 or N SIM card interfaces, and N is a positive integer greater than 7. The SIM card interface 795 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 795 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 795 can also be compatible with different types of SIM cards. The SIM card interface 795 can also be compatible with external memory cards. The electronic device 700 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 700 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 700 and cannot be separated from the electronic device 700.
图8是本申请实施例提供的另一种评估女性情绪的电子设备的结构示意图。图8所示的电子设备800(该电子设备800具体可以是一种计算机设备)包括存储器801、处理器802、通信接口803以及总线804。其中,存储器801、处理器802、通信接口803通过总线804实现彼此之间的通信连接。FIG. 8 is a schematic structural diagram of another electronic device for evaluating female emotions provided by an embodiment of the present application. The electronic device 800 shown in FIG. 8 (the electronic device 800 may specifically be a computer device) includes a memory 801, a processor 802, a communication interface 803, and a bus 804. Among them, the memory 801, the processor 802, and the communication interface 803 realize the communication connection between each other through the bus 804.
存储器801可以是只读存储器(Read Only Memory,ROM),静态存储设备,动态存 储设备或者随机存取存储器(Random Access Memory,RAM)。存储器801可以存储程序,当存储器801中存储的程序被处理器802执行时,处理器802和通信接口803用于执行本申请实施例的评估女性情绪的方法的各个步骤。The memory 801 may be a read only memory (Read Only Memory, ROM), a static storage device, a dynamic storage device, or a random access memory (Random Access Memory, RAM). The memory 801 may store a program. When the program stored in the memory 801 is executed by the processor 802, the processor 802 and the communication interface 803 are used to execute each step of the method for evaluating female emotions in the embodiment of the present application.
处理器802可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),图形处理器(graphics processing unit,GPU)或者一个或多个集成电路,用于执行相关程序,以实现本申请实施例的评估女性情绪的方法中所需执行的功能。The processor 802 may adopt a general central processing unit (Central Processing Unit, CPU), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a graphics processing unit (graphics processing unit, GPU), or one or more The integrated circuit is used to execute related programs to realize the functions required in the method for evaluating female emotions in the embodiments of the present application.
处理器802还可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,本申请的评估女性情绪的方法的各个步骤可以通过处理器802中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器802还可以是通用处理器、数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器801,处理器802读取存储器801中的信息,结合其硬件完成本申请实施例的评估女性情绪的方法。The processor 802 may also be an integrated circuit chip with signal processing capability. In the implementation process, each step of the method for evaluating female emotions of the present application can be completed by the integrated logic circuit of hardware in the processor 802 or instructions in the form of software. The aforementioned processor 802 may also be a general-purpose processor, a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices , Discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers. The storage medium is located in the memory 801, and the processor 802 reads the information in the memory 801 and completes the method for evaluating female emotions in the embodiment of the present application in combination with its hardware.
通信接口803使用例如但不限于收发器一类的收发装置,来实现装置800与其他设备或通信网络之间的通信。例如,可以通过通信接口803获取待评估数据。The communication interface 803 uses a transceiving device such as but not limited to a transceiver to implement communication between the device 800 and other devices or a communication network. For example, the data to be evaluated can be obtained through the communication interface 803.
总线804可包括在装置800各个部件(例如,存储器801、处理器802、通信接口803)之间传送信息的通路。The bus 804 may include a path for transferring information between various components of the device 800 (for example, the memory 801, the processor 802, and the communication interface 803).
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the embodiments are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (27)
- 一种评估女性情绪的方法,其特征在于,包括:A method for assessing female emotions, which is characterized in that it includes:获取用户的M个待评估数据,所述M个待评估数据包括在时间点t-T至时间点t内采样的M个采样点的生理数据,所述M个待评估数据按照时间先后顺序排列,所述M个待评估数据与所述M个采样点一一对应,所述M=Z*T,所述T为一个生理周期,所述Z为所述生理数据的采样频率;Acquire M to-be-assessed data of the user, the M to-be-assessed data include physiological data of M sampling points sampled from time point tT to time point t, and the M to-be-assessed data are arranged in chronological order, so The M to-be-assessed data correspond to the M sampling points one-to-one, the M=Z*T, the T is a physiological cycle, and the Z is the sampling frequency of the physiological data;将所述M个待评估数据输入到第一模型,得到所述时间点t对应的评估结果,所述时间点t对应的评估结果用于指示所述用户在所述时间点t的情绪为N个情绪类型中每一个情绪类型的概率,所述第一模型是通过多个样本训练得到的深度神经网络,所述多个样本中每一个样本的输入数据包括在时间点t’-T’至时间点t’内采样的M’个采样点的生理数据,所述每一个样本的标签为在所述时间点t’的情绪类型,M’=Z*T’,所述T’为一个生理周期;Input the M data to be evaluated into the first model to obtain the evaluation result corresponding to the time point t, and the evaluation result corresponding to the time point t is used to indicate that the user's emotion at the time point t is N The first model is a deep neural network trained through a plurality of samples, and the input data of each sample in the plurality of samples includes the time point t'-T' to the probability of each emotion type. The physiological data of M'sampling points sampled within the time point t', the label of each sample is the emotion type at the time point t', M'=Z*T', and the T'is a physiological data cycle;输出所述时间点t对应的评估结果。Output the evaluation result corresponding to the time point t.
- 根据权利要求1所述的方法,其特征在于,所述待评估数据包括心理特征得分,所述获取用户的M个待评估数据,包括:The method according to claim 1, wherein the data to be evaluated includes a psychological feature score, and the acquiring M data to be evaluated of the user comprises:显示量表问卷,所述量表问卷包括至少一个问题;Displaying a scale questionnaire, the scale questionnaire including at least one question;接收针对所述至少一个问题中每一个问题输入的选项;Receiving options entered for each of the at least one question;根据所述每一个问题输入的选项确定所述用户的心理特征得分,所述心理特征得分包括神经质得分、责任心得分和随和性得分中的至少一种。The psychological feature score of the user is determined according to the input options of each question, and the psychological feature score includes at least one of a neuroticism score, a conscientiousness score, and an easygoing score.
- 根据权利要求1所述的方法,其特征在于,所述待评估数据包括所述用户在所述时间点t所处的场所类型,所述获取用户的M个待评估数据,包括:The method according to claim 1, wherein the data to be evaluated includes the type of place where the user is located at the time point t, and the acquiring M data to be evaluated of the user includes:获取所述用户在所述时间点t时的位置信息;Acquiring location information of the user at the time point t;根据所述位置信息确定所述用户在所述时间点t时所处的场所类型。The type of place where the user is located at the time point t is determined according to the location information.
- 根据权利要求1所述的方法,其特征在于,所述待评估数据包括所述用户的年龄、性别和体重,所述获取用户的M个待评估数据,包括:The method according to claim 1, wherein the data to be evaluated includes the age, gender, and weight of the user, and the acquiring M data to be evaluated of the user includes:接收输入的所述用户的基本信息,所述基本信息包括年龄、性别和体重。Receive input of basic information of the user, where the basic information includes age, gender, and weight.
- 根据权利要求1所述的方法,其特征在于,所述待评估数据还包括用户所在生理周期阶段、生理周期时长、距离排卵日的时长、距离经期的时长、光强度中的至少一种。The method according to claim 1, wherein the data to be evaluated further includes at least one of the user's menstrual cycle stage, menstrual cycle duration, duration from ovulation day, duration from menstruation, and light intensity.
- 根据权利要求1-5任一项所述的方法,其特征在于,所述第一模型为循环神经网络,所述第一模型包括M个网络单元,所述将所述M个待评估数据输入到第一模型,具体包括:The method according to any one of claims 1 to 5, wherein the first model is a cyclic neural network, the first model includes M network units, and the M data to be evaluated are input To the first model, it specifically includes:将所述M个待评估数据中的第i个待评估数据和所述第i-1个网络单元的输出数据输入到所述M个网络单元中的第i个网络单元,所述i为大于等于2且小于等于M的整数。Input the i-th data to be evaluated among the M data to be evaluated and the output data of the i-1th network unit into the i-th network unit of the M network units, where i is greater than An integer equal to 2 and less than or equal to M.
- 根据权利要求1-5任一项所述的方法,其特征在于,所述第一模型为卷积神经网络,所述M个待评估数据形成数据矩阵,所述数据矩阵包括M行,所述第j行的数据为所述M个待评估数据中的第j个待评估数据,所述j为大于等于1且小于等于M的整数。The method according to any one of claims 1 to 5, wherein the first model is a convolutional neural network, the M pieces of data to be evaluated form a data matrix, the data matrix includes M rows, and the The data in the jth row is the jth data to be evaluated among the M data to be evaluated, and the j is an integer greater than or equal to 1 and less than or equal to M.
- 根据权利要求1所述的方法,其特征在于,所述第一模型包括第一子模型和第二子模型,所述将所述M个待评估数据输入到第一模型,得到所述时间点t对应的评估结果,包括:The method according to claim 1, wherein the first model includes a first sub-model and a second sub-model, and the M data to be evaluated are input into the first model to obtain the time point The evaluation results corresponding to t, including:将所述M个待评估数据输入到所述第一子模型,得到第一评估结果,所述第一评估结果用于指示所述用户在所述时间点t的情绪为P个情绪类型中每一个情绪类型的概率,所述第一子模型是通过所述多个样本中标签为所述P个情绪类型的样本训练得到的深度神经网络;The M to-be-evaluated data are input into the first sub-model to obtain a first evaluation result. The first evaluation result is used to indicate that the user’s emotion at the time point t is each of the P emotion types. A probability of an emotion type, the first sub-model is a deep neural network obtained by training of samples labeled as the P emotion types in the plurality of samples;将所述M个待评估数据输入到所述第二子模型,得到第二评估结果,所述第二评估结果用于指示所述用户在所述时间点t的情绪为Q个情绪类型中每一个情绪类型的概率,所述第二子模型是通过所述多个样本中标签为所述Q个情绪类型的样本训练得到的深度神经网络;The M to-be-evaluated data are input into the second sub-model to obtain a second evaluation result, and the second evaluation result is used to indicate that the emotion of the user at the time point t is each of the Q emotion types A probability of one emotion type, the second sub-model is a deep neural network obtained through training of samples labeled as the Q emotion types in the plurality of samples;所述时间点t对应的评估结果包括所述第一评估结果和所述第二评估结果,N=P+Q,P、Q为正整数。The evaluation result corresponding to the time point t includes the first evaluation result and the second evaluation result, N=P+Q, and P and Q are positive integers.
- 根据权利要求1-8任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-8, wherein the method further comprises:获取时间点T0至所述时间点t内每一个采样点时间点对应的评估结果,所述时间点T0为所述时间点t之前的一个时间点;Acquiring an evaluation result corresponding to each sampling point time point within the time point T0 to the time point t, where the time point T0 is a time point before the time point t;所述输出所述时间点t对应的评估结果,包括:The outputting the evaluation result corresponding to the time point t includes:根据所述时间点T0至所述时间点t内每一个待评估数据对应的评估结果生成情绪变化趋势图;Generating an emotion change trend graph according to the evaluation result corresponding to each data to be evaluated from the time point T0 to the time point t;输出所述情绪变化趋势图。Output the mood change trend graph.
- 根据权利要求1-9任一项所述的方法,其特征在于,所述在输出所述时间点t对应的评估结果之后,所述方法还包括:The method according to any one of claims 1-9, wherein after outputting the evaluation result corresponding to the time point t, the method further comprises:向服务器发送所述时间点t对应的评估结果,以使所述服务器根据所述时间点t对应的评估结果获取对应的推送信息,所述推送信息用于指示用户管理所述时间点t的情绪;Send the evaluation result corresponding to the time point t to the server, so that the server obtains corresponding push information according to the evaluation result corresponding to the time point t, and the push information is used to instruct the user to manage the emotions at the time point t ;接收并输出所述服务器发送的推送信息。Receive and output the push information sent by the server.
- 根据权利要求1-9任一项所述的方法,其特征在于,所述获取时间点T0至所述时间点t内每一个待评估数据对应的评估结果之后,所述方法还包括:The method according to any one of claims 1-9, wherein after the obtaining the evaluation result corresponding to each data to be evaluated from the time point T0 to the time point t, the method further comprises:在检测到时间点t1至所述时间点t的每一个采样时间点分别对应的第一情绪的概率小于第一阈值时,向设定的所述用户的联系人发送提示信息,所述提示信息用于提示所述用户的联系人所述用户在所述时间点t1至所述时间点t内所述用户的情绪状况,所述第一情 绪为所述N个情绪类型中的一个情绪类型,所述时间点t1为所述时间点T0至所述时间点t内的一个时间点。When it is detected that the probability of the first emotion corresponding to each sampling time point from the time point t1 to the time point t is less than the first threshold, a prompt message is sent to the set contact of the user, the prompt message For prompting the user's contact person of the user's emotional state of the user from the time point t1 to the time point t, the first emotion is one of the N emotion types, The time point t1 is a time point from the time point T0 to the time point t.
- 根据权利要求1-9任一项所述的方法,其特征在于,所述输出所述时间点t对应的评估结果,包括:The method according to any one of claims 1-9, wherein the outputting the evaluation result corresponding to the time point t comprises:确定所述N个情绪类型中最大概率对应的情绪类型为所述用户在所述时间点t对应的目标情绪类型;Determining that the emotion type corresponding to the greatest probability among the N emotion types is the target emotion type corresponding to the user at the time point t;输出所述目标情绪类型。Output the target emotion type.
- 根据权利要求1-12任一项所述的方法,其特征在于,所述情绪类型包括高兴、低落、积极和消极。The method according to any one of claims 1-12, wherein the emotion types include happy, down, positive, and negative.
- 一种评估女性情绪的装置,其特征在于,包括处理器和存储器,所述存储器用于存储程序指令,所述处理器用于调用所述存储器用于存储程序指令执行如下操作:A device for evaluating female emotions, characterized by comprising a processor and a memory, the memory is used to store program instructions, and the processor is used to call the memory to store the program instructions to perform the following operations:获取用户的M个待评估数据,所述M个待评估数据包括在时间点t-T至时间点t内采样的M个采样点的生理数据,所述M个待评估数据按照时间先后顺序排列,所述M个待评估数据与所述M个采样点一一对应,所述M=Z*T,所述T为一个生理周期,所述Z为所述生理数据的采样频率;Acquire M to-be-assessed data of the user, the M to-be-assessed data include physiological data of M sampling points sampled from time point tT to time point t, and the M to-be-assessed data are arranged in chronological order, so The M to-be-assessed data correspond to the M sampling points one-to-one, the M=Z*T, the T is a physiological cycle, and the Z is the sampling frequency of the physiological data;将所述M个待评估数据输入到第一模型,得到所述时间点t对应的评估结果,所述时间点t对应的评估结果用于指示所述用户在所述时间点t的情绪为N个情绪类型中每一个情绪类型的概率,所述第一模型是通过多个样本训练得到的深度神经网络,所述多个样本中每一个样本的输入数据包括在时间点t’-T’至时间点t’内采样的M’个采样点的生理数据,所述每一个样本的标签为在所述时间点t’的情绪类型,M’=Z*T’,所述T’为一个生理周期;Input the M data to be evaluated into the first model to obtain the evaluation result corresponding to the time point t, and the evaluation result corresponding to the time point t is used to indicate that the user's emotion at the time point t is N The first model is a deep neural network trained through a plurality of samples, and the input data of each sample in the plurality of samples includes the time point t'-T' to the probability of each emotion type. The physiological data of M'sampling points sampled within the time point t', the label of each sample is the emotion type at the time point t', M'=Z*T', and the T'is a physiological data cycle;输出所述时间点t对应的评估结果。Output the evaluation result corresponding to the time point t.
- 根据权利要求14所述的装置,其特征在于,所述装置还包括显示器和输入模块,所述显示器耦合所述处理器,所述待评估数据包括心理特征得分,所述处理器执行所述获取用户的M个待评估数据,包括执行:The device according to claim 14, wherein the device further comprises a display and an input module, the display is coupled to the processor, the data to be evaluated includes a score of psychological characteristics, and the processor executes the acquisition User's M data to be evaluated, including execution:通过所述显示器显示量表问卷,所述量表问卷包括至少一个问题;Displaying a scale questionnaire on the display, the scale questionnaire including at least one question;通过所述输入模块接收针对所述至少一个问题中每一个问题输入的选项;Receiving an input option for each of the at least one question through the input module;根据所述每一个问题输入的选项确定所述用户的心理特征得分,所述心理特征得分包括神经质得分、责任心得分和随和性得分中的至少一种。The psychological feature score of the user is determined according to the input options of each question, and the psychological feature score includes at least one of a neuroticism score, a conscientiousness score, and an easygoing score.
- 根据权利要求14所述的装置,其特征在于,所述装置还包括定位模块,所述待评估数据包括所述用户在所述时间点t所处的场所类型,所述处理器执行所述获取用户的M个待评估数据,包括执行:The device according to claim 14, wherein the device further comprises a positioning module, the data to be evaluated includes the type of place the user is at at the time point t, and the processor executes the acquisition User's M data to be evaluated, including execution:通过所述定位模块获取所述用户在所述时间点t时的位置信息;Obtaining the location information of the user at the time point t through the positioning module;根据所述位置信息确定所述用户在所述时间点t时所处的场所类型。The type of place where the user is located at the time point t is determined according to the location information.
- 根据权利要求14所述的装置,其特征在于,所述装置还包括输入模块,所述输入模块耦合所述处理器,所述待评估数据包括所述用户基本信息,所述处理器执行所述获取用户的M个待评估数据,包括执行:The device according to claim 14, wherein the device further comprises an input module coupled to the processor, the data to be evaluated includes the basic user information, and the processor executes the Obtain the user's M data to be evaluated, including execution:通过所述输入模块接收输入的所述用户的基本信息,所述基本信息包括年龄、性别和体重。The input basic information of the user is received through the input module, and the basic information includes age, gender, and weight.
- 根据权利要求14所述的装置,其特征在于,所述待评估数据还包括用户所在生理周期阶段、生理周期时长、距离排卵日的时长、距离经期的时长、光强度中的至少一种。The device according to claim 14, wherein the data to be evaluated further comprises at least one of the user's menstrual cycle stage, the length of the menstrual cycle, the length of time from the ovulation day, the length of time from the menstrual period, and the light intensity.
- 根据权利要求14-18任一项所述的装置,其特征在于,所述第一模型为循环神经网络,所述第一模型包括M个网络单元,所述处理器执行将所述M个待评估数据输入到第一模型,包括执行:The device according to any one of claims 14-18, wherein the first model is a cyclic neural network, the first model includes M network units, and the processor executes the processing of the M waiting The evaluation data is input to the first model, including the execution of:将所述M个待评估数据中的第i个待评估数据和所述第i-1个网络单元的输出数据输入到所述M个网络单元中的第i个网络单元,所述i为大于等于2且小于等于M的整数。Input the i-th data to be evaluated among the M data to be evaluated and the output data of the i-1th network unit into the i-th network unit of the M network units, where i is greater than An integer equal to 2 and less than or equal to M.
- 根据权利要求14-18任一项所述的装置,其特征在于,所述第一模型为卷积神经网络,所述M个待评估数据形成数据矩阵,所述数据矩阵包括M行,所述第j行的数据为所述M个待评估数据中的第j个待评估数据,所述j为大于等于1且小于等于M的整数。The device according to any one of claims 14-18, wherein the first model is a convolutional neural network, the M pieces of data to be evaluated form a data matrix, and the data matrix includes M rows, and The data in the jth row is the jth data to be evaluated among the M data to be evaluated, and the j is an integer greater than or equal to 1 and less than or equal to M.
- 根据权利要求14所述的装置,其特征在于,所述第一模型包括第一子模型和第二子模型,所述处理器执行将所述M个待评估数据输入到第一模型,得到所述时间点t对应的评估结果,包括执行:The apparatus according to claim 14, wherein the first model includes a first sub-model and a second sub-model, and the processor executes the input of the M data to be evaluated into the first model to obtain the The evaluation result corresponding to the time point t, including execution:将所述M个待评估数据输入到所述第一子模型,得到第一评估结果,所述第一评估结果用于指示所述用户在所述时间点t的情绪为P个情绪类型中每一个情绪类型的概率,所述第一子模型是通过所述多个样本中标签为所述P个情绪类型的样本训练得到的深度神经网络;The M to-be-evaluated data are input into the first sub-model to obtain a first evaluation result. The first evaluation result is used to indicate that the user’s emotion at the time point t is each of the P emotion types. A probability of an emotion type, the first sub-model is a deep neural network obtained by training of samples labeled as the P emotion types in the plurality of samples;将所述M个待评估数据输入到所述第二子模型,得到第二评估结果,所述第二评估结果用于指示所述用户在所述时间点t的情绪为Q个情绪类型中每一个情绪类型的概率,所述第二子模型是通过所述多个样本中标签为所述Q个情绪类型的样本训练得到的深度神经网络;The M to-be-evaluated data are input into the second sub-model to obtain a second evaluation result, and the second evaluation result is used to indicate that the emotion of the user at the time point t is each of the Q emotion types A probability of one emotion type, the second sub-model is a deep neural network obtained through training of samples labeled as the Q emotion types in the plurality of samples;所述时间点t对应的评估结果包括所述第一评估结果和所述第二评估结果,N=P+Q,P、Q为正整数。The evaluation result corresponding to the time point t includes the first evaluation result and the second evaluation result, N=P+Q, and P and Q are positive integers.
- 根据权利要求14-21任一项所述的装置,其特征在于,所述处理器还包括执行:The device according to any one of claims 14-21, wherein the processor further comprises executing:获取时间点T0至所述时间点t内每一个采样点时间点对应的评估结果,所述时间点T0为所述时间点t之前的一个时间点;Acquiring an evaluation result corresponding to each sampling point time point within the time point T0 to the time point t, where the time point T0 is a time point before the time point t;所述输出所述时间点t对应的评估结果,包括:The outputting the evaluation result corresponding to the time point t includes:根据所述时间点T0至所述时间点t内每一个待评估数据对应的评估结果生成情绪变化趋势图;Generating an emotion change trend graph according to the evaluation result corresponding to each data to be evaluated from the time point T0 to the time point t;输出所述情绪变化趋势图。Output the mood change trend graph.
- 根据权利要求14-22任一项所述的装置,其特征在于,所述装置还包括通信模块,所述处理器执行输出所述时间点t对应的评估结果之后,还包括执行:The device according to any one of claims 14-22, wherein the device further comprises a communication module, and after the processor executes and outputs the evaluation result corresponding to the time point t, it further comprises executing:通过通信模块向服务器发送所述时间点t对应的评估结果,以使所述服务器根据所述时间点t对应的评估结果获取对应的推送信息,所述推送信息用于指示用户管理所述时间点t的情绪;The evaluation result corresponding to the time point t is sent to the server through the communication module, so that the server obtains corresponding push information according to the evaluation result corresponding to the time point t, and the push information is used to instruct the user to manage the time point t's emotions;通过通信模块接收所述服务器发送的推送信息,并输出所述服务器发送的推送信息。The push information sent by the server is received through the communication module, and the push information sent by the server is output.
- 根据权利要求14-22任一项所述的装置,其特征在于,所述处理器执行获取时间点T0至所述时间点t内每一个待评估数据对应的评估结果之后,还包括执行:The device according to any one of claims 14-22, wherein after the processor executes to obtain the evaluation result corresponding to each data to be evaluated from the time point T0 to the time point t, further comprising executing:在检测到时间点t1至所述时间点t的每一个采样时间点分别对应的第一情绪的概率小于第一阈值时,通过通信模块向设定的所述用户的联系人发送提示信息,所述提示信息用于提示所述用户的联系人所述用户在所述时间点t1至所述时间点t内所述用户的情绪状况,所述第一情绪为所述N个情绪类型中的一个情绪类型,所述时间点t1为所述时间点T0至所述时间点t内的一个时间点。When the probability of the first emotion corresponding to each sampling time point from the time point t1 to the time point t is detected to be less than the first threshold, the communication module sends prompt information to the set contact of the user, so The prompt information is used to prompt the user's contacts of the user's emotional state of the user from the time point t1 to the time point t, and the first emotion is one of the N emotion types Emotion type, the time point t1 is a time point from the time point T0 to the time point t.
- 根据权利要求14-22任一项所述的装置,其特征在于,所述处理器执行输出所述时间点t对应的评估结果,包括执行:The device according to any one of claims 14-22, wherein the processor executing the output of the evaluation result corresponding to the time point t comprises executing:确定所述N个情绪类型中最大概率对应的情绪类型为所述用户在所述时间点t对应的目标情绪类型;Determining that the emotion type corresponding to the greatest probability among the N emotion types is the target emotion type corresponding to the user at the time point t;输出所述目标情绪类型。Output the target emotion type.
- 根据权利要求14-25任一项所述的装置,其特征在于,所述情绪类型包括高兴、低落、积极和消极。The device according to any one of claims 14-25, wherein the emotion type includes happy, down, positive, and negative.
- 一种计算机可读存储介质,其特征在于,所述计算机可读介质用于存储程序代码,所述程序代码包括用于执行如权利要求1-13任一项所述的方法。A computer-readable storage medium, wherein the computer-readable medium is used to store program code, and the program code includes a method for executing the method according to any one of claims 1-13.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010437492.6 | 2020-05-21 | ||
CN202010437492.6A CN113780546B (en) | 2020-05-21 | 2020-05-21 | Method for evaluating female emotion, related device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021233259A1 true WO2021233259A1 (en) | 2021-11-25 |
Family
ID=78708120
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/094165 WO2021233259A1 (en) | 2020-05-21 | 2021-05-17 | Method for evaluating female emotion and related apparatus, and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113780546B (en) |
WO (1) | WO2021233259A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115778389A (en) * | 2022-12-02 | 2023-03-14 | 复旦大学 | Birth fear detection method and system based on electrocardio and electrodermal joint analysis |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012025622A2 (en) * | 2010-08-27 | 2012-03-01 | Smartex S.R.L. | Monitoring method and system for assessment of prediction of mood trends |
UA99669U (en) * | 2015-02-24 | 2015-06-10 | Державна Установа "Інститут Педіатрії, Акушерства І Гінекології Національної Академії Медичних Наук України" | Method for diagnosing mental and emotional state of women of childbearing age |
RU2644291C2 (en) * | 2016-02-01 | 2018-02-08 | Никита Олегович Назаров | Method for prediction of emotional background in women in ovarian-menstrual cycle dynamics |
CN108938011A (en) * | 2018-06-28 | 2018-12-07 | 军事科学院军事医学研究院环境医学与作业医学研究所 | A kind of test of multi-environment lower determining female physiological periodicity and guidance method and system |
CN109620262A (en) * | 2018-12-12 | 2019-04-16 | 华南理工大学 | A kind of Emotion identification system and method based on wearable bracelet |
CN110288974A (en) * | 2018-03-19 | 2019-09-27 | 北京京东尚科信息技术有限公司 | Voice-based Emotion identification method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150118663A1 (en) * | 2013-10-28 | 2015-04-30 | Revnc, Inc. | System and Method for Predicting and Communicating Data Relating to a Partner's Mood and Sensitivity |
CN104305561B (en) * | 2014-09-30 | 2015-11-18 | 肖南 | The determination methods of emotion wearable system and emotion |
US11291796B2 (en) * | 2016-12-29 | 2022-04-05 | Huawei Technologies Co., Ltd | Method and apparatus for adjusting user emotion |
CN109394209B (en) * | 2018-10-15 | 2021-07-06 | 汕头大学 | Personalized emotion adjusting system and method for pregnant woman music treatment |
CN110121026A (en) * | 2019-04-24 | 2019-08-13 | 深圳传音控股股份有限公司 | Intelligent capture apparatus and its scene generating method based on living things feature recognition |
-
2020
- 2020-05-21 CN CN202010437492.6A patent/CN113780546B/en active Active
-
2021
- 2021-05-17 WO PCT/CN2021/094165 patent/WO2021233259A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012025622A2 (en) * | 2010-08-27 | 2012-03-01 | Smartex S.R.L. | Monitoring method and system for assessment of prediction of mood trends |
UA99669U (en) * | 2015-02-24 | 2015-06-10 | Державна Установа "Інститут Педіатрії, Акушерства І Гінекології Національної Академії Медичних Наук України" | Method for diagnosing mental and emotional state of women of childbearing age |
RU2644291C2 (en) * | 2016-02-01 | 2018-02-08 | Никита Олегович Назаров | Method for prediction of emotional background in women in ovarian-menstrual cycle dynamics |
CN110288974A (en) * | 2018-03-19 | 2019-09-27 | 北京京东尚科信息技术有限公司 | Voice-based Emotion identification method and device |
CN108938011A (en) * | 2018-06-28 | 2018-12-07 | 军事科学院军事医学研究院环境医学与作业医学研究所 | A kind of test of multi-environment lower determining female physiological periodicity and guidance method and system |
CN109620262A (en) * | 2018-12-12 | 2019-04-16 | 华南理工大学 | A kind of Emotion identification system and method based on wearable bracelet |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115778389A (en) * | 2022-12-02 | 2023-03-14 | 复旦大学 | Birth fear detection method and system based on electrocardio and electrodermal joint analysis |
CN115778389B (en) * | 2022-12-02 | 2024-05-28 | 复旦大学 | Method and system for detecting fear of delivery based on electrocardio and skin electricity combination analysis |
Also Published As
Publication number | Publication date |
---|---|
CN113780546B (en) | 2024-08-13 |
CN113780546A (en) | 2021-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021244457A1 (en) | Video generation method and related apparatus | |
WO2021036853A1 (en) | Image processing method and electronic apparatus | |
CN112215802B (en) | Skin detection method and electronic equipment | |
CN110035141A (en) | A kind of image pickup method and equipment | |
WO2021052139A1 (en) | Gesture input method and electronic device | |
WO2022193989A1 (en) | Operation method and apparatus for electronic device and electronic device | |
CN111147667A (en) | Screen-off control method and electronic equipment | |
WO2022160958A1 (en) | Page classification method, page classification apparatus, and terminal device | |
CN114242037A (en) | Virtual character generation method and device | |
WO2020173152A1 (en) | Facial appearance prediction method and electronic device | |
CN113572956A (en) | Focusing method and related equipment | |
CN114005016A (en) | Image processing method, electronic equipment, image processing system and chip system | |
CN113468929A (en) | Motion state identification method and device, electronic equipment and storage medium | |
WO2021233259A1 (en) | Method for evaluating female emotion and related apparatus, and device | |
CN111191018A (en) | Response method and device of dialog system, electronic equipment and intelligent equipment | |
CN114241347A (en) | Skin sensitivity display method and device, electronic equipment and readable storage medium | |
CN111557007B (en) | Method for detecting opening and closing states of eyes and electronic equipment | |
CN112308202A (en) | Method for determining decision factors of convolutional neural network and electronic equipment | |
WO2022214004A1 (en) | Target user determination method, electronic device and computer-readable storage medium | |
US20230402150A1 (en) | Adaptive Action Evaluation Method, Electronic Device, and Storage Medium | |
WO2021254091A1 (en) | Method for determining number of motions and terminal | |
CN116861066A (en) | Application recommendation method and electronic equipment | |
CN111310701B (en) | Gesture recognition method, device, equipment and storage medium | |
CN115546248A (en) | Event data processing method, device and system | |
CN115393676A (en) | Gesture control optimization method and device, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21808236 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21808236 Country of ref document: EP Kind code of ref document: A1 |