CN117694892A - Emotion health state analysis method and electronic equipment - Google Patents
Emotion health state analysis method and electronic equipment Download PDFInfo
- Publication number
- CN117694892A CN117694892A CN202211097691.2A CN202211097691A CN117694892A CN 117694892 A CN117694892 A CN 117694892A CN 202211097691 A CN202211097691 A CN 202211097691A CN 117694892 A CN117694892 A CN 117694892A
- Authority
- CN
- China
- Prior art keywords
- user
- electronic device
- interface
- index
- emotional health
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- 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/02—Detecting, measuring or recording for evaluating the cardiovascular system, e.g. pulse, heart rate, blood pressure or blood flow
- 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/08—Measuring devices for evaluating the respiratory organs
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/08—Measuring 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/48—Other medical applications
- A61B5/4806—Sleep evaluation
- A61B5/4809—Sleep detection, i.e. determining whether a subject is asleep or not
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/48—Other medical applications
- A61B5/4806—Sleep evaluation
- A61B5/4812—Detecting sleep stages or cycles
-
- 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
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/74—Details of notification to user or communication with user or patient; User input means
- A61B5/742—Details of notification to user or communication with user or patient; User input means using visual displays
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B23/00—Exercising apparatus specially adapted for particular parts of the body
- A63B23/18—Exercising apparatus specially adapted for particular parts of the body for improving respiratory function
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H20/00—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
- G16H20/30—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to physical therapies or activities, e.g. physiotherapy, acupressure or exercising
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H20/00—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
- G16H20/70—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to mental therapies, e.g. psychological therapy or autogenous training
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H50/00—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
- G16H50/20—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for computer-aided diagnosis, e.g. based on medical expert systems
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B2560/00—Constructional details of operational features of apparatus; Accessories for medical measuring apparatus
- A61B2560/04—Constructional details of apparatus
- A61B2560/0462—Apparatus with built-in sensors
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Medical Informatics (AREA)
- Biomedical Technology (AREA)
- Pathology (AREA)
- Biophysics (AREA)
- Surgery (AREA)
- Physics & Mathematics (AREA)
- Veterinary Medicine (AREA)
- Animal Behavior & Ethology (AREA)
- Molecular Biology (AREA)
- Heart & Thoracic Surgery (AREA)
- Pulmonology (AREA)
- Physiology (AREA)
- Epidemiology (AREA)
- Primary Health Care (AREA)
- Psychiatry (AREA)
- Child & Adolescent Psychology (AREA)
- Physical Education & Sports Medicine (AREA)
- Developmental Disabilities (AREA)
- Psychology (AREA)
- Hospice & Palliative Care (AREA)
- Social Psychology (AREA)
- Cardiology (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Anesthesiology (AREA)
- Educational Technology (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
本申请提供一种情绪健康状态分析方法和电子设备。该方法包括:获取用户在预定时间段的睡眠过程中的传感器数据;根据传感器数据,得到用户的心跳间隔数据;根据用户的心跳间隔数据,得到用户的情绪健康指数,用户的情绪健康指数用于表示用户的情绪健康状态。从而,实现了情绪健康状态的无感分析,为用户提供数字化的情绪辅助工具。
This application provides an emotional health state analysis method and electronic device. The method includes: obtaining sensor data of the user during sleep in a predetermined time period; obtaining the user's heartbeat interval data based on the sensor data; obtaining the user's emotional health index based on the user's heartbeat interval data, and the user's emotional health index is used Indicates the user's emotional health state. As a result, non-sensory analysis of emotional health status is achieved and users are provided with digital emotional assistance tools.
Description
技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种情绪健康状态分析方法和电子设备。The present application relates to the field of terminal technology, and in particular to an emotional health state analysis method and electronic device.
背景技术Background technique
随着生活、学习和工作的节奏越来越快,情绪健康是各年龄段用户共同面临的心理困扰。情绪健康的危害已被大量科学研究证实,容易引发用户产生心理健康问题、情绪障碍和神经系统疾病,如焦虑症、抑郁症等。对此,如何获得情绪健康状态成为用户关注的问题。As the pace of life, study and work becomes faster and faster, emotional health is a common psychological problem faced by users of all ages. The harm to emotional health has been confirmed by a large number of scientific studies, and it can easily cause users to develop mental health problems, mood disorders and neurological diseases, such as anxiety, depression, etc. In this regard, how to obtain emotional health has become a concern for users.
目前,需要用户主动填写用于评价情绪健康的问卷,如抑郁、焦虑和压力量表(DASS-21量表),并基于问卷的填写内容可得到用户的情绪健康状态,如用户的情绪状态是抑郁中的轻度、中度、或重度中的哪一种。Currently, users are required to actively fill in questionnaires for evaluating emotional health, such as the Depression, Anxiety and Stress Scale (DASS-21 Scale), and based on the content of the questionnaire, the user's emotional health status can be obtained. For example, the user's emotional status is Which type of depression is mild, moderate, or severe.
然而,上述方式依赖于问卷的填写内容,无法自动得到用户的情绪健康状态。However, the above method relies on the content of the questionnaire and cannot automatically obtain the user's emotional health status.
发明内容Contents of the invention
本申请提供一种情绪健康状态分析方法和电子设备,可自动分析出用户的情绪健康状态,提升了用户的使用体验。This application provides an emotional health state analysis method and electronic device, which can automatically analyze the user's emotional health state and improve the user's experience.
第一方面,本申请提供一种情绪健康状态分析方法,该方法包括:In the first aspect, this application provides an emotional health state analysis method, which includes:
获取用户在预定时间段的睡眠过程中的传感器数据;Obtain sensor data during the user's sleep during a predetermined period of time;
根据传感器数据,得到用户的心跳间隔数据;According to the sensor data, the user's heartbeat interval data is obtained;
根据用户的心跳间隔数据,得到用户的情绪健康指数,用户的情绪健康指数用于表示用户的情绪健康状态。According to the user's heartbeat interval data, the user's emotional health index is obtained, and the user's emotional health index is used to represent the user's emotional health state.
通过第一方面提供的情绪健康状态分析方法,电子设备获取用户在预定时间段的睡眠过程中的传感器数据,能够通过传感器数据获知用户的生理特征信息。根据传感器数据,得到用户的心跳间隔数据,能够通过用户的心跳间隔数据获知与用户的情绪健康状态相关的指标。根据用户的心跳间隔数据,得到用户的情绪健康指数,用户的情绪健康指数用于表示用户的情绪健康状态。从而,基于用户的情绪健康状态的评估能力,实现了情绪健康状态的无感测量和分析,为用户提供数字化的情绪辅助工具,使得用户获得良好的使用体验。Through the emotional health state analysis method provided in the first aspect, the electronic device obtains the sensor data of the user during the predetermined period of sleep, and can obtain the user's physiological characteristic information through the sensor data. Based on the sensor data, the user's heartbeat interval data is obtained, and indicators related to the user's emotional health status can be obtained through the user's heartbeat interval data. According to the user's heartbeat interval data, the user's emotional health index is obtained, and the user's emotional health index is used to represent the user's emotional health state. Therefore, based on the ability to evaluate the user's emotional health state, the sensorless measurement and analysis of the emotional health state is realized, and digital emotional auxiliary tools are provided for the user, allowing the user to obtain a good user experience.
在一种可能的设计中,根据用户的心跳间隔数据,得到用户的情绪健康指数,包括:In one possible design, the user's emotional health index is obtained based on the user's heartbeat interval data, including:
根据用户的心跳间隔数据,得到目标睡眠期的心率变异性指标,目标睡眠期为用户在预定时间段的睡眠过程中进入的深度睡眠期和/或快速眼动期;According to the user's heartbeat interval data, the heart rate variability index of the target sleep period is obtained. The target sleep period is the deep sleep period and/or rapid eye movement period that the user enters during the predetermined period of sleep;
根据目标睡眠期的心率变异性指标,得到用户的情绪健康指数。Based on the heart rate variability index of the target sleep period, the user's emotional health index is obtained.
由此,电子设备基于用户在深度睡眠期和/或快速眼动期的心率变异性指标,可准确得到用户的情绪健康指数。As a result, the electronic device can accurately obtain the user's emotional health index based on the user's heart rate variability index during the deep sleep period and/or the rapid eye movement period.
在一种可能的设计中,该方法还包括:In one possible design, the method also includes:
根据用户的心跳间隔数据,得到目标睡眠期的碎片化程度指标;Based on the user's heartbeat interval data, the fragmentation degree index of the target sleep period is obtained;
根据目标睡眠期的心率变异性指标,得到用户的情绪健康指数,包括:根据目标睡眠期间的心率变异性指标和碎片化程度指标,得到用户的情绪健康指数。Obtaining the user's emotional health index based on the heart rate variability index of the target sleep period includes: obtaining the user's emotional health index based on the heart rate variability index and fragmentation index during the target sleep period.
由此,电子设备基于用户在深度睡眠期和/或快速眼动期的心率变异性指标和碎片化程度指标,可综合得到用户的情绪健康指数。Thus, the electronic device can comprehensively obtain the user's emotional health index based on the user's heart rate variability index and fragmentation index during the deep sleep period and/or rapid eye movement period.
在一种可能的设计中,根据目标睡眠期间的心率变异性指标和碎片化程度指标,得到用户的情绪健康指数,包括:In one possible design, the user's emotional health index is obtained based on the heart rate variability index and fragmentation index during the target sleep period, including:
将目标睡眠期间的心率变异性指标和碎片化程度指标输入到情绪健康状态模型中,输出用户的情绪健康指数,情绪健康状态模型用于指示不同的情绪健康状态对应的情绪健康指数与心率变异性指标和碎片化程度指标之间的关联关系。Input the heart rate variability index and fragmentation index during the target sleep period into the emotional health state model to output the user's emotional health index. The emotional health state model is used to indicate the emotional health index and heart rate variability corresponding to different emotional health states. The correlation between indicators and fragmentation indicators.
由此,电子设备利用情绪健康状态模型,基于用户在深度睡眠期和/或快速眼动期的心率变异性指标和碎片化程度指标,可准确地得到用户的情绪健康指数。Thus, the electronic device uses the emotional health state model to accurately obtain the user's emotional health index based on the user's heart rate variability index and fragmentation index during the deep sleep period and/or rapid eye movement period.
在一种可能的设计中,心率变异性指标包括:低频LF、高频HF、极低频VLF、低频的归一化值LFnu、高频的归一化值HFnu、极低频的归一化值VLFnu、低频与高频的比值LF/HFratio、全部窦性心搏RR间期的标准差SDNN、相邻窦性心搏RR间期差值的均方根rMSSD、每5分钟时间段窦性心搏RR间期的平均值标准差SDANN、相邻窦性心搏RR之差大于50毫秒的个数占总窦性心博个数的百分比pNN50、平均心率mean-HR、三角指数triangular、横轴SD1、纵轴SD2、或者、横轴与纵轴的比值SD1/SD2 ratio中的至少一项。In a possible design, the heart rate variability indicators include: low frequency LF, high frequency HF, very low frequency VLF, low frequency normalized value LFnu, high frequency normalized value HFnu, and very low frequency normalized value VLFnu , the ratio of low frequency to high frequency LF/HFratio, the standard deviation SDNN of the RR intervals of all sinus beats, the root mean square rMSSD of the difference between adjacent sinus beats RR intervals, and the average value of the RR intervals of sinus beats in each 5-minute period. Standard deviation SDANN, the number of adjacent sinus beats with a RR difference greater than 50 milliseconds as a percentage of the total number of sinus beats pNN50, mean heart rate mean-HR, triangular index triangular, horizontal axis SD1, vertical axis SD2, or, the horizontal axis and At least one of the vertical axis ratios SD1/SD2 ratio.
由此,为用户的心率变异性指标提供了丰富的实现方式,使得电子设备灵活选择上述的一项或多项,来得到用户的情绪健康指数。This provides a rich implementation method for the user's heart rate variability index, allowing the electronic device to flexibly select one or more of the above to obtain the user's emotional health index.
在一种可能的设计中,该方法还包括:In one possible design, the method also includes:
记录用户的情绪健康指数;Record the user’s emotional health index;
在第一界面中显示用户的情绪健康指数。The user's emotional health index is displayed in the first interface.
由此,电子设备可采用单次、一段时长、周期性、连续等方式,记录用户的情绪健康指数,并显示用户的情绪健康指数,方便按照时间维度向用户展示用户的情绪健康指数,实现情绪健康状态的无感记录和展示。Therefore, the electronic device can record the user's emotional health index and display the user's emotional health index in a single time, a period of time, periodically, continuously, etc., so as to conveniently display the user's emotional health index to the user according to the time dimension and realize the emotional health index. Insensitive recording and display of health status.
在一种可能的设计中,该方法还包括:In one possible design, the method also includes:
根据用户的情绪健康指数,得到推荐呼吸时长和推荐呼吸频率;According to the user's emotional health index, the recommended breathing duration and recommended breathing frequency are obtained;
显示第二界面,第二界面用于提示用户按照推荐呼吸频率进行推荐呼吸时长的呼吸训练。A second interface is displayed, and the second interface is used to prompt the user to perform breathing training for the recommended breathing duration according to the recommended breathing frequency.
由此,电子设备根据用户的情绪健康指数,可为用户个性化推荐呼吸训练方案。As a result, the electronic device can recommend personalized breathing training programs to the user based on the user's emotional health index.
在一种可能的设计中,该方法还包括:In one possible design, the method also includes:
在第二界面中显示第一控件;Display the first control in the second interface;
响应于第一控件上的操作,将第二曲线悬浮绘制在第一曲线上,第一曲线是根据推荐呼吸时长和推荐呼吸频率得到的,第二曲线是根据用户的实时呼吸频率得到的。In response to the operation on the first control, the second curve is drawn suspended on the first curve. The first curve is obtained based on the recommended breathing duration and recommended breathing frequency, and the second curve is obtained based on the user's real-time breathing frequency.
由此,电子设备直观地展示第一曲线和第二曲线之间的差异,引导用户保持良好的呼吸训练。Thus, the electronic device intuitively displays the difference between the first curve and the second curve, guiding the user to maintain good breathing training.
在一种可能的设计中,该方法还包括:In one possible design, the method also includes:
在实时呼吸频率大于推荐呼吸频率时,在第二界面中显示第一信息,第一信息用于提示用户放缓呼吸;When the real-time respiratory frequency is greater than the recommended respiratory frequency, the first information is displayed on the second interface, and the first information is used to prompt the user to slow down his breathing;
或者,在实时呼吸频率小于推荐呼吸频率时,在第二界面中显示第二信息,第二信息用于提示用户加快呼吸。Alternatively, when the real-time respiratory frequency is less than the recommended respiratory frequency, the second information is displayed in the second interface, and the second information is used to prompt the user to breathe faster.
由此,电子设备可在用户呼吸快了或慢了的情况下及时进行提示,引导用户顺利进行呼吸训练。As a result, the electronic device can prompt the user in time when the user's breathing is fast or slow, and guide the user to smoothly carry out breathing training.
在一种可能的设计中,该方法还包括:In one possible design, the method also includes:
响应于第一控件上的操作,记录用户的呼吸训练数据;In response to the operation on the first control, recording the user's breathing training data;
在用户呼吸训练结束后,根据用户的呼吸训练数据,在第二界面中显示用户的呼吸训练结果,用户的呼吸训练结果包括:呼气总时长、吸气总时长、实时呼吸频率、呼气次数、或者吸气次数中的至少一项。After the user's breathing training is completed, the user's breathing training results are displayed on the second interface according to the user's breathing training data. The user's breathing training results include: total exhalation time, total inhalation time, real-time breathing frequency, and number of exhalations. , or at least one of the number of inhalations.
由此,电子设备在用户训练结束后,可展示用户的呼吸训练结果,方便提醒用户。As a result, the electronic device can display the user's breathing training results after the user's training is completed to conveniently remind the user.
在一种可能的设计中,该方法还包括:In one possible design, the method also includes:
响应于第二界面中的第二控件上的操作或者根据用户的呼吸训练结果,调整推荐呼吸时长和/或推荐呼吸频率,并更新第一曲线。In response to the operation on the second control in the second interface or according to the user's breathing training results, the recommended breathing duration and/or the recommended breathing frequency are adjusted, and the first curve is updated.
由此,电子设备在用户训练开始前和/或在用户训练结束后,可基于用户意愿或自动化地调整呼吸训练方案,使得调整后的呼吸训练方案更加贴近用户的实际训练。Therefore, the electronic device can adjust the breathing training program based on the user's wishes or automatically before the user's training starts and/or after the user's training ends, so that the adjusted breathing training program is closer to the user's actual training.
在一种可能的设计中,该方法还包括:In one possible design, the method also includes:
根据用户的情绪健康指数,得到推荐运动类型和推荐运动时长;According to the user's emotional health index, the recommended exercise type and recommended exercise duration are obtained;
显示第三界面,第三界面用于提示用户采用推荐运动类型进行推荐运动时长的运动训练。A third interface is displayed, and the third interface is used to prompt the user to use the recommended exercise type to perform exercise training for the recommended exercise duration.
由此,电子设备根据用户的情绪健康指数,可为用户个性化推荐运动训练计划。As a result, the electronic device can recommend a personalized exercise training plan for the user based on the user's emotional health index.
在一种可能的设计中,该方法还包括:In one possible design, the method also includes:
在第三界面中显示第三控件;Display the third control in the third interface;
响应于第三控件上的操作,记录用户的运动训练数据;In response to the operation on the third control, record the user's sports training data;
在用户运动训练结束后,根据用户的运动训练数据,在第三界面中显示用户的运动执行情况。After the user's exercise training is completed, the user's exercise execution status is displayed in the third interface according to the user's exercise training data.
由此,电子设备在用户运动训练结束后,可展示用户的运动执行情况,方便提醒用户。Therefore, after the user's exercise training is completed, the electronic device can display the user's exercise execution status to conveniently remind the user.
在一种可能的设计中,该方法还包括:In one possible design, the method also includes:
在第三界面中显示第四控件;Display the fourth control in the third interface;
响应于第四控件上的操作,调整推荐运动类型和/或推荐运动时长。In response to the operation on the fourth control, the recommended exercise type and/or the recommended exercise duration is adjusted.
由此,电子设备在用户运动开始前和/或在用户运动结束后,可基于用户意愿或自动化地调整运动训练计划,使得调整后的运动训练计划更加贴近用户的实际训练。Therefore, the electronic device can adjust the exercise training plan based on the user's wishes or automatically before the user starts exercising and/or after the user ends the exercise, so that the adjusted exercise training plan is closer to the user's actual training.
第二方面,本申请提供一种情绪健康分析装置,该装置包括:用于实现第一方面及第一方面任一种可能的设计中的情绪健康状态分析方法的模块。In a second aspect, this application provides an emotional health analysis device, which includes: a module for implementing the emotional health state analysis method in the first aspect and any possible design of the first aspect.
第三方面,本申请提供一种电子设备,包括:存储器和处理器;存储器用于存储程序指令;处理器用于调用存储器中的程序指令使得电子设备执行第一方面及第一方面任一种可能的设计中的情绪健康状态分析方法。In a third aspect, this application provides an electronic device, including: a memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions in the memory so that the electronic device executes the first aspect and any possibility of the first aspect. Emotional health state analysis method in the design.
第四方面,本申请提供一种芯片系统,芯片系统应用于包括存储器、显示屏和传感器的电子设备;芯片系统包括:处理器;当处理器执行存储器中存储的计算机指令时,电子设备实现第一方面及第一方面任一种可能的设计中的情绪健康状态分析方法。In a fourth aspect, the present application provides a chip system, which is applied to an electronic device including a memory, a display screen, and a sensor; the chip system includes: a processor; when the processor executes the computer instructions stored in the memory, the electronic device implements the first Emotional health state analysis method in one aspect and any possible design of the first aspect.
第五方面,本申请提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器使得电子设备执行时实现第一方面及第一方面任一种可能的设计中的情绪健康状态分析方法。In a fifth aspect, the present application provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor so that when the electronic device is executed, the emotional health in the first aspect and any possible design of the first aspect can be realized. State analysis methods.
第六方面,本申请提供一种计算机程序产品,包括:执行指令,执行指令存储在可读存储介质中,电子设备的至少一个处理器可以从可读存储介质读取执行指令,至少一个处理器执行执行指令使得电子设备实现第一方面及第一方面任一种可能的设计中的情绪健康状态分析方法。In a sixth aspect, the present application provides a computer program product, including: execution instructions. The execution instructions are stored in a readable storage medium. At least one processor of the electronic device can read the execution instructions from the readable storage medium. The at least one processor Executing the execution instructions enables the electronic device to implement the emotional health state analysis method in the first aspect and any possible design of the first aspect.
附图说明Description of the drawings
图1为本申请一实施例提供的一种电子设备的结构示意图;Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图2为本申请一实施例提供的一种电子设备的软件结构框图;Figure 2 is a software structure block diagram of an electronic device provided by an embodiment of the present application;
图3为本申请一实施例提供的一种情绪健康状态分析方法的流程示意图;Figure 3 is a schematic flowchart of an emotional health state analysis method provided by an embodiment of the present application;
图4A-图4C为本申请一实施例提供的人机交互界面示意图;Figures 4A-4C are schematic diagrams of the human-computer interaction interface provided by an embodiment of the present application;
图5为本申请一实施例提供的人机交互界面示意图;Figure 5 is a schematic diagram of a human-computer interaction interface provided by an embodiment of the present application;
图6A-图6F为本申请一实施例提供的人机交互界面示意图;Figures 6A-6F are schematic diagrams of the human-computer interaction interface provided by an embodiment of the present application;
图7A-图7B为本申请一实施例提供的人机交互界面示意图。7A-7B are schematic diagrams of a human-computer interaction interface provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,单独a,单独b或单独c中的至少一项(个),可以表示:单独a,单独b,单独c,组合a和b,组合a和c,组合b和c,或组合a、b和c,其中a,b,c可以是单个,也可以是多个。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性。术语“中心”、“纵向”、“横向”、“上”、“下”、“左”、“右”、“前”、“后”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。In this application, "at least one" refers to one or more, and "plurality" refers to two or more. "And/or" describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. "At least one of the following" or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one of a alone, b alone, or c alone can mean: a alone, b alone, c alone, a combination of a and b, a combination of a and c, a combination of b and c, or a combination of a, b and c, where a, b, c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. The terms "center", "longitudinal", "horizontal", "upper", "lower", "left", "right", "front", "back", etc. indicate the orientation or positional relationship based on that shown in the drawings. The orientation or positional relationship is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present application.
本申请提供一种情绪健康状态分析方法、电子设备、芯片系统、计算机可读存储介质、以及计算机程序产品,可借助采集到的传感器数据分析出用户的心跳间隔数据,并根据用户的心跳间隔数据得到用户的情绪健康指数,可实现用户情绪健康状态的无感测量和分析,为用户提供数字化的情绪辅助工具。This application provides an emotional health status analysis method, electronic device, chip system, computer-readable storage medium, and computer program product, which can analyze the user's heartbeat interval data with the help of collected sensor data, and analyze the user's heartbeat interval data based on the user's heartbeat interval data. Obtaining the user's emotional health index can realize non-sensory measurement and analysis of the user's emotional health status, and provide users with digital emotional assistance tools.
其中,电子设备可以是可穿戴设备,如手表、手环、头戴式设备(如增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、可穿戴眼镜、耳机)等。Among them, the electronic device may be a wearable device, such as a watch, a bracelet, a head-mounted device (such as an augmented reality (AR) device, a virtual reality (VR) device, wearable glasses, headphones), etc.
另外,电子设备也可与可穿戴设备采用如蓝牙、移动热点、其他近距离通信等方式实现通信连接,电子设备可以是手机、其他的可穿戴设备、平板电脑、笔记本电脑、车载设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、智能电视、智慧屏、高清电视、4K电视、智能音箱、智能投影仪等设备,本申请对电子设备的具体类型不作限制。In addition, electronic devices can also communicate with wearable devices using methods such as Bluetooth, mobile hotspots, and other short-range communications. Electronic devices can be mobile phones, other wearable devices, tablets, laptops, vehicle-mounted devices, and super mobile devices. Personal computers (ultra-mobile personal computers, UMPCs), netbooks, personal digital assistants (personal digital assistants, PDAs), smart TVs, smart screens, high-definition TVs, 4K TVs, smart speakers, smart projectors and other equipment, this application applies to electronic The specific type of equipment is not limited.
下面以电子设备为手机为例,结合图1,介绍本申请涉及的电子设备。Taking the electronic device as a mobile phone as an example, the following describes the electronic device involved in this application with reference to Figure 1 .
图1为本申请一实施例提供的一种电子设备的结构示意图。如图1所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universalserial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in Figure 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142. Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, Display 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this application does not constitute a specific limitation on the electronic device 100 . In other embodiments, the electronic device 100 may include more or fewer components than illustrated, some components may be combined, some components may be separated, or components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), 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), etc. . Among them, different processing units can be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100 . The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 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 circuitsound, I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (displayserial interface, DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 . The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他设备,例如AR设备等。The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other devices, such as AR devices, etc.
可以理解的是,本申请示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in this application are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 . In other embodiments, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 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 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc. The power management module 141 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 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may 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 reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A 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-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. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellite system. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,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),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 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 (codedivision multiple access, CDMA), broadband code 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 satellite navigation system (beidounavigation satellite system, BDS), quasi-zenith satellite system (quasi- zenith satellitesystem (QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an 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 diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on 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 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto 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 passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself. Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can 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 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100 . The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, 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 speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface 170D may be a USB interface 130, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is performed on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity 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.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of electronic device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 180D includes a Hall sensor. The electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G 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 100 emits infrared light outwardly through the light emitting diode. Electronic device 100 uses photodiodes 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 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect when the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touching.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。Fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。Temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the low temperature from causing the electronic device 100 to shut down abnormally. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。Bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part. The bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals. In some embodiments, the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 . Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请以分层架构的Android系统为例,示例性说明电子设备100的软件结构。其中,本申请对电子设备的操作系统的类型不做限定。例如,Android系统、Linux系统、Windows系统、iOS系统、鸿蒙操作系统(harmony operating system,鸿蒙OS)等。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. This application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 . Among them, this application does not limit the type of operating system of the electronic device. For example, Android system, Linux system, Windows system, iOS system, Harmony operating system (harmony operating system, Hongmeng OS), etc.
图2为本申请一实施例提供的一种电子设备的软件结构框图。如图2所示,分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层(APP),应用程序框架层(APP framework),安卓运行时(Android runtime)和系统库(libraries),以及内核层(kernel)。Figure 2 is a software structure block diagram of an electronic device provided by an embodiment of the present application. As shown in Figure 2, the layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer (APP), application framework layer (APP framework), Android runtime (Android runtime) and system libraries (libraries). And the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,游戏,聊天,购物,出行,即时通信(如短信息),智能家居,设备控制等应用程序(application,APP)。As shown in Figure 2, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, game, chat, shopping, travel, instant messaging (such as short message), smart home, Device control and other applications (application, APP).
其中,智能家居应用可用于对具有联网功能的家居设备进行控制或管理。例如,家居设备可以包括电灯、电视和空调。又如,家居设备还可以包括防盗门锁、音箱、扫地机器人、插座、体脂秤、台灯、空气净化器、电冰箱、洗衣机、热水器、微波炉、电饭锅、窗帘、风扇、电视、机顶盒、门窗等。Among them, smart home applications can be used to control or manage home devices with networking capabilities. For example, home appliances may include lights, televisions, and air conditioners. As another example, home equipment can also include anti-theft door locks, speakers, sweeping robots, sockets, body fat scales, desk lamps, air purifiers, refrigerators, washing machines, water heaters, microwave ovens, rice cookers, curtains, fans, TVs, set-top boxes, Doors, windows, etc.
另外,应用程序包还可以包括:桌面(即主屏幕),负一屏,控制中心,通知中心等应用程序。In addition, the application package can also include: desktop (i.e. home screen), negative screen, control center, notification center and other applications.
其中,负一屏,又可称为“-1屏”,是指在电子设备的主屏幕向右滑动屏幕,直至滑动至最左侧分屏的用户界面(user interface,UI)。例如,负一屏可以用于放置一些快捷服务功能和通知消息,比如全局搜索、应用程序某个页面的快捷入口(付款码、微信等)、即时信息及提醒(快递信息、支出信息、通勤路况、打车出行信息、日程信息等)及关注动态(足球看台、篮球看台、股票信息等)等。控制中心为电子设备的上滑消息通知栏,即当用户在电子设备的底部开始进行向上滑动的操作时电子设备所显示出的用户界面。通知中心为电子设备的下拉消息通知栏,即当用户在电子设备的顶部开始进行向下操作时电子设备所显示出的用户界面。Among them, negative one screen, also known as "-1 screen", refers to sliding the screen to the right on the home screen of the electronic device until it slides to the leftmost split-screen user interface (UI). For example, the negative screen can be used to place some quick service functions and notification messages, such as global search, quick entry to a certain page of the application (payment code, WeChat, etc.), instant information and reminders (express delivery information, expenditure information, commute traffic conditions, etc.) , taxi travel information, schedule information, etc.) and follow updates (football stands, basketball stands, stock information, etc.), etc. The control center is the slide-up message notification bar of the electronic device, that is, the user interface displayed by the electronic device when the user starts to slide upward on the bottom of the electronic device. The notification center is the drop-down message notification bar of the electronic device, that is, the user interface displayed by the electronic device when the user starts to perform downward operations on the top of the electronic device.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2, the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
窗口管理器(window manager)用于管理窗口程序,如管理窗口状态、属性、视图(view)增加、删除、更新、窗口顺序、消息收集和处理等。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。并且,窗口管理器为外界访问窗口的入口。The window manager is used to manage window programs, such as managing window status, attributes, view addition, deletion, update, window order, message collection and processing, etc. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc. Moreover, the window manager is the entrance for the outside world to access the window.
内容提供器用于存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, call status management (including connected, hung up, etc.).
资源管理器(resource manager)为应用程序提供各种资源,比如本地化字符串,图标,图片,用户界面的布局文件(layout xml),视频文件,字体,颜色,用户界面组件(userinterface module,UI组件)的身份标识号码(identity document,ID)(也可称为序列号或账号)等。并且,资源管理器用于统一管理前述资源。The resource manager provides various resources for applications, such as localized strings, icons, pictures, user interface layout files (layout xml), video files, fonts, colors, user interface components (user interface module, UI) component)’s identity document (ID) (also known as serial number or account number), etc. Furthermore, the resource manager is used to uniformly manage the aforementioned resources.
通知管理器(notification manager)使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager allows the application to display notification information in the status bar, which can be used to convey notification-type messages. It can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
安卓运行时包括核心库和虚拟机。安卓运行时负责Android系统的调度和管理。The Android runtime includes core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是Android系统的核心库。The core library contains two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core library of the Android system.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGLES),2D图形引擎(例如:SGL),图像处理库和桌面启动器(launcher)等。System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (media libraries), 3D graphics processing libraries (for example: OpenGLES), 2D graphics engines (for example: SGL), image processing libraries and desktop launchers (launcher), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
下面结合利用智能音箱播放声音的场景,示例性说明电子设备100的软件和硬件的工作流程。The following exemplifies the workflow of the software and hardware of the electronic device 100 in conjunction with the scenario of using a smart speaker to play sound.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为智能音箱图标的控件为例,智能音箱应用调用应用框架层的接口,启动智能音箱应用,进而通过调用内核层启动音频驱动,通过扬声器170A将音频电信号转换成声音信号。When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation and the control corresponding to the click operation as a smart speaker icon control as an example, the smart speaker application calls the interface of the application framework layer to start the smart speaker application, and then starts the audio driver by calling the kernel layer. , converting the audio electrical signal into a sound signal through the speaker 170A.
可以理解的是,本申请示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this application does not constitute a specific limitation on the electronic device 100 . In other embodiments, the electronic device 100 may include more or fewer components than illustrated, some components may be combined, some components may be separated, or components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
基于前述描述,本申请以下实施例将以具有图1和图2所示结构的电子设备为例,结合附图和应用场景,对本申请提供的情绪健康状态分析方法进行详细阐述。Based on the foregoing description, the following embodiments of this application will take the electronic device with the structure shown in Figure 1 and Figure 2 as an example, and combine the drawings and application scenarios to elaborate on the emotional health state analysis method provided by this application.
为了便于说明,本申请中,以电子设备与可穿戴设备通信连接为例进行示意。For ease of explanation, in this application, the communication connection between an electronic device and a wearable device is taken as an example for illustration.
请参阅图3,图3示出了本申请一实施例提供的一种情绪健康状态分析方法的流程示意图。如图3所示,本申请的情绪健康状态分析方法可以包括:Please refer to FIG. 3 , which shows a schematic flowchart of an emotional health state analysis method provided by an embodiment of the present application. As shown in Figure 3, the emotional health state analysis method of this application may include:
S101、获取用户在预定时间段的睡眠过程中的传感器数据。S101. Obtain the sensor data of the user during the predetermined period of time.
用户可在如手腕、腹部、腿部等位置佩戴可穿戴设备。从而,用户在预定时间段的睡眠过程中,可穿戴设备可实时采集可穿戴设备中的如光电容积描记法(photoplethysmography,PPG)传感器的PPG信号。Users can wear wearable devices on their wrists, abdomen, legs, etc. Therefore, while the user is sleeping for a predetermined period of time, the wearable device can collect the PPG signal of a photoplethysmography (PPG) sensor in the wearable device in real time.
其中,PPG是一种借助光电手段在活体组织中检测血液容积变换的无创检测方法。当一定波长的光束照射到用户的皮肤表面时,光束将通过透射或反射方式传送到光感测器。在此过程中,由于血管内的血液容积在心脏收缩舒张作用下呈波动性变化。因此,在心脏舒张时,心脏的外周血管容量减少,光感测器检测到的光强度较大。在心脏收缩时,心脏的外周血容量增多,光感测器检测到的光强度较小,故光感测器检测到的光强度随之呈脉动性变化,可将此光强度变化信号转化成电信号,即PPG信号。Among them, PPG is a non-invasive detection method that uses photoelectric means to detect blood volume changes in living tissues. When a light beam of a certain wavelength strikes the user's skin surface, the light beam will be transmitted to the light sensor through transmission or reflection. During this process, the blood volume in the blood vessels fluctuates due to the contraction and relaxation of the heart. Therefore, during diastole, the peripheral vascular volume of the heart decreases, and the light intensity detected by the light sensor is greater. When the heart contracts, the peripheral blood volume of the heart increases, and the light intensity detected by the light sensor is smaller. Therefore, the light intensity detected by the light sensor changes pulsatingly, and this light intensity change signal can be converted into Electrical signal, namely PPG signal.
基于上述描述,PPG信号可表征出用户的如血压、血氧、脑氧、血糖、脉率、血氧饱和度、心率和呼吸率等生理特征信息。因此,可穿戴设备可将PPG信号作为传感器数据发送给电子设备。或者,可穿戴设备可对PPG信号进行如与噪声信号分离、滤波等处理,得到传感器数据,并将传感器数据发送给电子设备。Based on the above description, the PPG signal can represent the user's physiological characteristic information such as blood pressure, blood oxygen, brain oxygen, blood sugar, pulse rate, blood oxygen saturation, heart rate, and respiratory rate. Therefore, the wearable device can send the PPG signal as sensor data to the electronic device. Alternatively, the wearable device can perform processing such as separation and filtering on the PPG signal, obtain sensor data, and send the sensor data to the electronic device.
从而,电子设备借助可穿戴设备,可获取用户在预定时间段的睡眠过程中的传感器数据,使得电子设备通过传感器数据可获得用户的生理特征信息。Therefore, with the help of the wearable device, the electronic device can obtain the sensor data of the user during the predetermined period of sleep, so that the electronic device can obtain the user's physiological characteristic information through the sensor data.
其中,本申请对预定时间段的具体实现方式不做限定。在一些实施例中,预定时间段通常可设置为用户休息睡觉的时段,如夜间或白天。Among them, this application does not limit the specific implementation method of the predetermined time period. In some embodiments, the predetermined time period can usually be set to a period when the user rests and sleeps, such as at night or during the day.
S102、根据传感器数据,得到用户的心跳间隔数据。S102. Obtain the user's heartbeat interval data based on the sensor data.
其中,心跳间隔数据,即RR间期(RR interval,RRI)数据。RRI数据可用于表征出与用户的情绪健康状态相关的指标。RRI数据包括与RRI相关的数据。RRI是指PPG信号中两个P波之间的时间(或时长)。PPG信号中,P波为主波峰,P波为心脏收缩时心室所释放最大血液时造成的最大振幅波。从该主波峰到下一个主波峰所经历的时间(或时长)可称为RRI。Among them, the heartbeat interval data is RR interval (RRI) data. RRI data can be used to characterize indicators related to the user's emotional health state. RRI data includes data related to RRI. RRI refers to the time (or duration) between two P waves in the PPG signal. In the PPG signal, the P wave is the main peak, and the P wave is the maximum amplitude wave caused when the ventricle releases maximum blood during cardiac contraction. The time (or duration) elapsed from this main wave peak to the next main wave peak can be called RRI.
通常,正常的RRI在0.6秒-1.0秒之间。若小于0.6秒,则说明心跳过快;若大于1.0秒,则说明心跳过缓。另外,在RRI出现间距不相等的情况时,说明心律不齐。Usually, the normal RRI is between 0.6 seconds and 1.0 seconds. If it is less than 0.6 seconds, it means the heartbeat is too fast; if it is greater than 1.0 seconds, it means the heartbeat is too slow. In addition, when the RRI intervals are unequal, it indicates an irregular heartbeat.
从而,电子设备可对传感器数据指示的用户的生理特征信息进行分析,可得到用户的RRI数据。Therefore, the electronic device can analyze the user's physiological characteristic information indicated by the sensor data and obtain the user's RRI data.
S103、根据用户的心跳间隔数据,得到用户的情绪健康指数,用户的情绪健康指数用于表示用户的情绪健康状态。S103. Obtain the user's emotional health index according to the user's heartbeat interval data. The user's emotional health index is used to represent the user's emotional health state.
基于S102的描述,用户的心跳间隔数据可表征出与用户的情绪健康状态相关的指标。因此,电子设备根据用户的心跳间隔数据,可得到用户的情绪健康指数。Based on the description of S102, the user's heartbeat interval data can represent indicators related to the user's emotional health state. Therefore, the electronic device can obtain the user's emotional health index based on the user's heartbeat interval data.
其中,用户的情绪健康指数用于表示用户的情绪健康状态。一般情况下,情绪健康指数越高,情绪健康状态越好。Among them, the user's emotional health index is used to represent the user's emotional health state. Generally speaking, the higher the emotional health index, the better the emotional health state.
以抑郁症为例,用户的情绪健康指数高,则表示出用户的情绪健康状态可为轻度的抑郁症。用户的情绪健康指数适中,则表示出用户的情绪健康状态可为中度的抑郁症。用户的情绪健康指数低,则表示出用户的情绪健康状态可为重度的抑郁症。Taking depression as an example, if the user's emotional health index is high, it means that the user's emotional health state may be mild depression. If the user's emotional health index is moderate, it indicates that the user's emotional health state may be moderate depression. If the user's emotional health index is low, it indicates that the user's emotional health state may be severe depression.
另外,电子设备还可采用单次、一段时长、周期性、连续等方式,记录用户的情绪健康指数,并按照如日、周、月、年等时间维度。电子设备可在第一界面中显示用户的情绪健康指数。从而,方便及时向用户反馈每日的用户的情绪健康状态,还有利于统计出用户在一段时长内的情绪健康状态的变化趋势。In addition, electronic devices can also record the user's emotional health index in a single time, a period of time, periodically, continuously, etc., and according to time dimensions such as day, week, month, year, etc. The electronic device can display the user's emotional health index in the first interface. Therefore, it is convenient to provide timely feedback to the user's daily emotional health status, and it is also conducive to statistics on the changing trend of the user's emotional health status within a period of time.
其中,本申请对第一界面的具体实现方式不做限定。在一些实施例中,第一界面可为电子设备中已安装的应用程序的一个用户界面、电子设备中显示的一个网页、或者电子设备中显示的公众号的一个页面等中的至少一项。Among them, this application does not limit the specific implementation method of the first interface. In some embodiments, the first interface may be at least one of a user interface of an application installed in the electronic device, a web page displayed in the electronic device, or a page of a public account displayed in the electronic device.
例如,第一界面可为电子设备中的华为创新研究应用程序的一个用户界面。For example, the first interface may be a user interface of the Huawei Innovation Research application in the electronic device.
举例而言,以电子设备为手机,且手机与手表通信连接为例,用户佩戴手表睡觉休息一个晚上后,用户第二日便可在手机的应用程序中查看到自身的情绪健康指数,方便获知自身的情绪健康状态。For example, if the electronic device is a mobile phone and the mobile phone is connected to a watch, after the user wears the watch to sleep for a night, the user can view his/her emotional health index in the mobile phone application the next day, making it easier to know. own emotional health.
在用户连续佩戴手表睡觉休息多个晚上后,用户还可在手机的应用程序中的查看到自身在这段时间内的情绪健康指数以及对应的变化情况,方便获知自身的情绪健康状态以及对应的变化趋势。After the user wears the watch to sleep for many nights, the user can also view his/her emotional health index and corresponding changes in the mobile phone application during this period, so as to conveniently know his/her emotional health status and corresponding changes. Trend.
本申请的情绪健康状态分析方法,通过获取用户在预定时间段的睡眠过程中的传感器数据,能够通过传感器数据获知用户的生理特征信息。根据传感器数据,得到用户的心跳间隔数据,能够通过用户的心跳间隔数据获知与用户的情绪健康状态相关的指标。根据用户的心跳间隔数据,得到用户的情绪健康指数,用户的情绪健康指数用于表示用户的情绪健康状态。从而,基于用户的情绪健康状态的评估能力,实现了情绪健康状态的无感测量和分析,为用户提供数字化的情绪辅助工具,使得用户获得良好的使用体验。The emotional health state analysis method of this application can obtain the user's physiological characteristic information through the sensor data by acquiring the sensor data during the user's sleep during a predetermined time period. Based on the sensor data, the user's heartbeat interval data is obtained, and indicators related to the user's emotional health status can be obtained through the user's heartbeat interval data. According to the user's heartbeat interval data, the user's emotional health index is obtained, and the user's emotional health index is used to represent the user's emotional health state. Therefore, based on the ability to evaluate the user's emotional health state, the sensorless measurement and analysis of the emotional health state is realized, and digital emotional auxiliary tools are provided for the user, allowing the user to obtain a good user experience.
S103中的一种可能的实现方式中,通过队列研究(cohortstudy)发现,不同的情绪健康状态下,用户在深度睡眠期和快速眼动(rapid eye movement,REM)期的心率变异性(heart rate variability,HRV,又称为心率波动性)指标存在显著差异。In one possible implementation method in S103, it is found through cohort study that the heart rate variability (heart rate) of users in the deep sleep period and rapid eye movement (REM) period under different emotional health states. variability, HRV, also known as heart rate variability) indicators are significantly different.
因此,电子设备基于一个或多个睡眠阶段(如深度睡眠期和/或REM期)的HRV指标与用户的情绪健康状态之间的关联关系,可分析出用户的情绪健康指数。Therefore, the electronic device can analyze the user's emotional health index based on the correlation between the HRV index of one or more sleep stages (such as deep sleep period and/or REM period) and the user's emotional health state.
另外,预定时间段可看作为一个睡眠周期。该睡眠周期可以包括多个睡眠阶段。In addition, the predetermined period of time can be regarded as a sleep cycle. The sleep cycle may include multiple sleep stages.
其中,深度睡眠期指的是消除疲乏的一个睡眠阶段。Among them, the deep sleep period refers to a sleep stage that eliminates fatigue.
换句话说,在这一阶段的睡眠,用户的大脑和身体皆能够得到彻底的休息和放松,能够使得用户的精力和体力得到彻底的恢复。In other words, during this stage of sleep, the user's brain and body can get complete rest and relaxation, allowing the user's energy and physical strength to be completely restored.
其中,REM期,又称异相睡眠(para-sleep)期、快相睡眠期。REM期指的是做梦的一个睡眠阶段,是全部睡眠阶段中最浅的睡眠阶段。Among them, the REM period is also called the para-sleep period and the fast-phase sleep period. The REM stage refers to a stage of sleep during dreaming and is the lightest stage of sleep among all sleep stages.
换句话说,在这一阶段的睡眠,用户并没有深度睡眠,用户的眼球会呈现不由自主的快速移动。用户的大脑神经元的活动与清醒时的活动相同,在REM期醒过来后的用户会充满警觉心且精神饱满。In other words, during this stage of sleep, the user is not in deep sleep, and the user's eyeballs will move rapidly involuntarily. The activity of the neurons in the user's brain is the same as when awake. After waking up in the REM period, the user will be alert and full of energy.
其中,HRV是一个心电图(electrocardiogram,ECG)的检查结果。HRV是指逐次心跳周期差异的变化情况,或者说是指心跳快慢的变化情况。HRV是由两个相邻的RRI的时间长短决定的,即,从第一次心动周期至下一次心动周期间的微小差异。Among them, HRV is an electrocardiogram (ECG) examination result. HRV refers to the change in the difference between heartbeat cycles, or the change in heartbeat speed. HRV is determined by the length of time between two adjacent RRIs, that is, the small difference from the first cardiac cycle to the next.
其中,本申请对HRV指标的具体实现方式不做限定。例如,HRV指标可以包括但不限于:低频(low frequency,LF)、高频(high frequency,HF)、极低频(very low frequency,VLF)、低频的归一化值LFnu、高频的归一化值HFnu、极低频的归一化值VLFnu、低频与高频的比值LF/HF ratio、全部窦性心搏RR间期的标准差(standard deviation of normal tonormal RR intervals,SDNN)、相邻窦性心搏RR间期差值的均方根(root-mean square ofdifferences between adjacent normal RR intervals in a time interval,rMSSD)、每5分钟时间段窦性心搏RR间期的平均值标准差SDANN、相邻窦性心搏RR之差大于50毫秒的个数占总窦性心博个数的百分比(percentage of adjacent RR intervals with adifference of duration>50ms,pNN50)、平均心率mean-HR、三角指数triangular、横轴SD1、纵轴SD2、或者、横轴与纵轴的比值SD1/SD2ratio中的至少一项。Among them, this application does not limit the specific implementation method of the HRV indicator. For example, HRV indicators may include but are not limited to: low frequency (LF), high frequency (HF), very low frequency (VLF), low frequency normalized value LFnu, high frequency normalized value Normalized value HFnu, normalized value of very low frequency VLFnu, ratio of low frequency to high frequency LF/HF ratio, standard deviation of normal to normal RR intervals (SDNN) of all sinus beats, adjacent sinus beat RR The root-mean square of differences between adjacent normal RR intervals in a time interval (rMSSD), the mean standard deviation of the sinus beat RR intervals in each 5-minute period SDANN, the RR between adjacent sinus beats Percentage of adjacent RR intervals with adifference of duration>50ms, pNN50, mean heart rate mean-HR, triangular index triangular, horizontal axis SD1, vertical axis SD2, or , at least one of the ratios of the horizontal axis and the vertical axis SD1/SD2ratio.
采用Poincare-plot分析HRV指标的过程中,对于一段连续的心跳间隔,将第i个心跳间隔作为横坐标,将(i+1)个心跳间隔作为纵坐标,在二维平面中可画出一个图形,该图形可为看作为椭圆。i为正整数。其中,椭圆的中心位于(心跳间隔的平均值,心跳间隔的平均值)所确定的坐标点,SD1为该椭圆的半长轴,SD2为该椭圆的半短轴。In the process of analyzing the HRV indicator using Poincare-plot, for a continuous heartbeat interval, the i-th heartbeat interval is used as the abscissa, and the (i+1) heartbeat interval is used as the ordinate, and a two-dimensional plane can be drawn. Graph, which can be viewed as an ellipse. i is a positive integer. Among them, the center of the ellipse is located at the coordinate point determined by (average of heartbeat intervals, average of heartbeat intervals), SD1 is the semi-major axis of the ellipse, and SD2 is the semi-minor axis of the ellipse.
基于上述描述,电子设备根据用户的RRI数据,可得到RRI数据所表征出的与用户的情绪健康状态相关的指标可以包括目标睡眠期的HRV指标,即深度睡眠期的HRV指标,和/或,REM期的HRV指标。Based on the above description, based on the user's RRI data, the electronic device can obtain the indicators related to the user's emotional health state represented by the RRI data, which may include the HRV indicator of the target sleep period, that is, the HRV indicator of the deep sleep period, and/or, HRV indicator during REM period.
其中,目标睡眠期可包括该睡眠周期中的一个或多个睡眠阶段。目标睡眠期为用户在预定时间段的睡眠过程中进入的深度睡眠期、或者REM期、或者深度睡眠期或REM期。The target sleep period may include one or more sleep stages in the sleep cycle. The target sleep period is the deep sleep period, or the REM period, or the deep sleep period or the REM period that the user enters during the predetermined period of sleep.
从而,电子设备根据深度睡眠期的HRV指标,和/或,REM期的HRV指标,可得到用户的情绪健康指数。Therefore, the electronic device can obtain the user's emotional health index based on the HRV index in the deep sleep period and/or the HRV index in the REM period.
另外,除了基于一个或多个睡眠阶段的HRV指标与用户的情绪健康状态之间的关联关系之外,电子设备还可考虑用户在不同的用户的情绪健康状态中做梦所引起不同的睡眠碎片化程度,基于一个或多个睡眠阶段的HRV指标和碎片化程度指标与用户的情绪健康状态之间的关联关系,综合得出用户的情绪健康指数。In addition, in addition to the correlation between the HRV indicator based on one or more sleep stages and the user's emotional health state, the electronic device can also consider the different sleep fragmentation caused by the user's dreaming in different users' emotional health states. Degree, based on the correlation between the HRV index and fragmentation index of one or more sleep stages and the user's emotional health state, the user's emotional health index is comprehensively obtained.
其中,一个睡眠阶段的碎片化程度指标用于表示该睡眠阶段在用户在预定时间段的睡眠过程中的睡眠碎片化程度。睡眠碎片化程度可表征睡眠阶段的持续性(或连续性)。一般情况下,碎片化程度指标越长,情绪健康状态越好。Among them, the fragmentation degree indicator of a sleep stage is used to represent the sleep fragmentation degree of the sleep stage during the user's sleep process in the predetermined time period. The degree of sleep fragmentation can characterize the persistence (or continuity) of sleep stages. In general, the longer the fragmentation index, the better the emotional health.
以抑郁症为例,深度睡眠期的碎片化程度指标小,用户在深度睡眠期的睡眠碎片化程度低,说明用户在深度睡眠期的碎片化不严重,深度睡眠期的持续性高,则用户的情绪健康状态可为轻度的抑郁症。Taking depression as an example, the fragmentation index of the deep sleep period is small, and the user's sleep fragmentation degree in the deep sleep period is low, indicating that the user's fragmentation in the deep sleep period is not serious. If the persistence of the deep sleep period is high, the user The emotional health state can range from mild depression.
深度睡眠期的碎片化程度指标适中,用户在深度睡眠期的睡眠碎片化程度适中,说明用户在深度睡眠期的碎片化适中,深度睡眠期的持续性适中,则表示出用户的情绪健康状态可为中度的抑郁症。The fragmentation degree index of the deep sleep period is moderate. The user's sleep fragmentation degree in the deep sleep period is moderate, indicating that the user's fragmentation in the deep sleep period is moderate. The persistence of the deep sleep period is moderate, which indicates that the user's emotional health status can be For moderate depression.
深度睡眠期的碎片化程度指标大,用户在深度睡眠期的睡眠碎片化程度高,说明用户在深度睡眠期的碎片化严重,深度睡眠期的持续性地,则用户的情绪健康状态可为重度的抑郁症。The fragmentation degree index of the deep sleep period is large, and the user's sleep fragmentation degree in the deep sleep period is high, indicating that the user's fragmentation in the deep sleep period is serious. If the deep sleep period is continuous, the user's emotional health state can be severe. of depression.
基于上述描述,电子设备根据用户的心跳间隔数据,还可得到目标睡眠期的碎片化程度指标,即深度睡眠期的碎片化程度指标,和/或,REM期的碎片化程度指标。Based on the above description, the electronic device can also obtain the fragmentation degree index of the target sleep period based on the user's heartbeat interval data, that is, the fragmentation degree index of the deep sleep period, and/or the fragmentation degree index of the REM period.
从而,电子设备根据深度睡眠期的HRV指标和碎片化程度指标,和/或,REM期的HRV指标和碎片化程度指标,可综合得到用户的情绪健康指数。Therefore, the electronic device can comprehensively obtain the user's emotional health index based on the HRV index and fragmentation index in the deep sleep period, and/or the HRV index and fragmentation index in the REM period.
基于上述描述,电子设备结合专家经验得到的情绪健康状态模型,根据深度睡眠期的HRV指标和碎片化程度指标,和/或,REM期的HRV指标和碎片化程度指标,可分析出用户的情绪健康指数。Based on the above description, the electronic device combines the emotional health state model obtained from expert experience, and can analyze the user's emotion based on the HRV index and fragmentation index of the deep sleep period, and/or the HRV index and fragmentation index of the REM period. health index.
其中,情绪健康状态模型用于指示不同的情绪健康状态对应的情绪健康指数与HRV指标和碎片化程度指标之间的关联关系。Among them, the emotional health state model is used to indicate the correlation between the emotional health index corresponding to different emotional health states, the HRV index and the fragmentation degree index.
情绪健康状态模型的一种可行的实现方式中,假设输入到情绪健康状态模型的指标可以包括:指标1、指标2、指标3、指标4、指标5和指标6。In a feasible implementation method of the emotional health state model, it is assumed that the indicators input to the emotional health state model can include: indicator 1, indicator 2, indicator 3, indicator 4, indicator 5 and indicator 6.
其中,指标1为深度睡眠期的低频LF,指标2为REM期的低频LF,指标3为深度睡眠期的相邻窦性心搏RR间期差值的均方根rmSSD,指标4为REM期的相邻窦性心搏RR间期差值的均方根rmSSD,指标5为深度睡眠期的碎片化程度指标,指标6为REM期的碎片化程度指标。Among them, index 1 is the low-frequency LF in the deep sleep period, index 2 is the low-frequency LF in the REM period, index 3 is the root mean square rmSSD of the RR interval difference between adjacent sinus beats in the deep sleep period, and index 4 is the phase difference in the REM period. The root mean square rmSSD of the RR interval difference between adjacent sinus beats, index 5 is the fragmentation degree index of the deep sleep period, and index 6 is the fragmentation degree index of the REM period.
那么,情绪健康状态模型输出的用户的情绪健康指数可等于a1*指标1+a2*指标2+a3*指标3+a4*指标4+a5*指标5+a6*指标6。Then, the user's emotional health index output by the emotional health state model can be equal to a1*index 1+a2*index 2+a3*index 3+a4*index 4+a5*index 5+a6*index 6.
其中,a1、a2、a3、a4、a5和a6为各自对应的指标的权重,且a1、a2、a3、a4、a5和a6均为大于等于0且小于等于1的自然数,a1+a2+a3+a4+a5+a6=1。Among them, a1, a2, a3, a4, a5 and a6 are the weights of their corresponding indicators, and a1, a2, a3, a4, a5 and a6 are all natural numbers greater than or equal to 0 and less than or equal to 1, a1+a2+a3 +a4+a5+a6=1.
在一些实施例中,电子设备中可存储有情绪健康状态模型。In some embodiments, an emotional health state model may be stored in the electronic device.
从而,电子设备可将深度睡眠期的HRV指标和碎片化程度指标,和/或,REM期的HRV指标和碎片化程度指标输入到情绪健康状态模型中,输出用户的情绪健康指数。Therefore, the electronic device can input the HRV index and fragmentation degree index of the deep sleep period, and/or the HRV index and fragmentation degree index of the REM period into the emotional health state model, and output the user's emotional health index.
在另一些实施例中,电子设备可调用其他设备中存储的情绪健康状态模型。In other embodiments, the electronic device may recall emotional health state models stored in other devices.
从而,电子设备可向其他设备发送深度睡眠期的HRV指标和碎片化程度指标,和/或,REM期的HRV指标和碎片化程度指标。其他设备可将深度睡眠期的HRV指标和碎片化程度指标,和/或,REM期的HRV指标和碎片化程度指标输入到情绪健康状态模型中,输出用户的情绪健康指数。其他设备可向电子设备发送用户的情绪健康指数。Therefore, the electronic device can send the HRV indicator and the fragmentation degree indicator of the deep sleep period, and/or the HRV indicator and the fragmentation degree indicator of the REM period to other devices. Other devices can input the HRV index and fragmentation index of the deep sleep period, and/or the HRV index and fragmentation index of the REM period into the emotional health state model, and output the user's emotional health index. Other devices can send a user's emotional health index to the electronic device.
其中,其他设备可为其他的电子设备或服务器等设备。服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(content delivery network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。Among them, other devices may be other electronic devices or servers and other devices. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, and middleware. Cloud servers for basic cloud computing services such as software services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms.
此外,电子设备还可采用单次、一段时长、周期性、连续等方式,记录用户的情绪健康指数,能够按照时间维度向用户展示用户的情绪健康指数,实现情绪健康状态的无感记录和展示。In addition, electronic devices can also record the user's emotional health index in a single time, a period of time, periodically, continuously, etc., and can display the user's emotional health index to the user according to the time dimension, achieving non-sensory recording and display of emotional health status. .
在一些实施例中,电子设备根据目标睡眠期的低频LF的数值和目标睡眠期的碎片化程度指标,可确定用户的情绪健康指数。In some embodiments, the electronic device may determine the user's emotional health index based on the value of the low-frequency LF of the target sleep period and the fragmentation degree indicator of the target sleep period.
从而,电子设备可按照时间维度在第一界面中显示用户的情绪健康指数,并向用户介绍如由于目标睡眠期的低频LF的数值,以及目标睡眠期的睡眠碎片化程度发生改变而导致用户的情绪健康指数发生变化,使得用户获知自身的情绪健康状态的轻重以及原因。Therefore, the electronic device can display the user's emotional health index in the first interface according to the time dimension, and introduce to the user the changes in the value of the low-frequency LF of the target sleep period and the degree of sleep fragmentation of the target sleep period. The emotional health index changes, allowing users to know the severity and reasons of their own emotional health status.
以抑郁症为例,目标睡眠期的低频LF的数值小,目标睡眠期的碎片化程度指标小,目标睡眠期的睡眠碎片化程度低,则表示出用户的情绪健康状态可为轻度的抑郁症。Taking depression as an example, if the low-frequency LF value of the target sleep period is small, the fragmentation index of the target sleep period is small, and the sleep fragmentation degree of the target sleep period is low, it indicates that the user's emotional health state can be mild depression. disease.
目标睡眠期的低频LF的数值适中,目标睡眠期的睡眠碎片化程度适中,则表示出用户的情绪健康状态可为中度的抑郁症。If the value of the low-frequency LF in the target sleep period is moderate, and the degree of sleep fragmentation in the target sleep period is moderate, it indicates that the user's emotional health state may be moderate depression.
目标睡眠期的低频LF的数值大,目标睡眠期的碎片化程度指标大,目标睡眠期的睡眠碎片化程度高,则表示出用户的情绪健康状态可为重度的抑郁症。If the low-frequency LF value of the target sleep period is large, the fragmentation index of the target sleep period is large, and the sleep fragmentation degree of the target sleep period is high, it indicates that the user's emotional health state may be severe depression.
下面,结合图4A-图4C,举例介绍电子设备可按照时间维度在第一界面中显示用户的情绪健康指数。Next, with reference to FIGS. 4A to 4C , an example is given in which the electronic device can display the user's emotional health index in the first interface according to the time dimension.
请参阅图4A-图4C,图4A-图4C示出了本申请一实施例提供的人机交互界面示意图。为了便于说明,图4A-图4C中,以电子设备为手机为例进行示意。Please refer to Figures 4A-4C. Figures 4A-4C are schematic diagrams of a human-computer interaction interface provided by an embodiment of the present application. For ease of explanation, in FIGS. 4A to 4C , the electronic device is a mobile phone as an example.
电子设备可显示如图4A-图4C中的任意一个图示例性所示的用户界面10。The electronic device may display the user interface 10 as exemplarily shown in any one of FIGS. 4A-4C.
其中,用户界面10即本申请提及的第一界面,用户界面10用于按照时间维度显示用户的情绪健康指数和用户的情绪健康状态。The user interface 10 is the first interface mentioned in this application. The user interface 10 is used to display the user's emotional health index and the user's emotional health state in a time dimension.
图4A和图4B中,用户界面10中显示有一周中的每日的用户的情绪健康指数、用户的情绪健康状态、其原因、以及一周中不同的情绪健康状态之间的比例等,该原因可采用如目标睡眠期的低频LF的数值、以及目标睡眠期的碎片化程度指标等参数进行表示。In Figures 4A and 4B, the user interface 10 displays the user's emotional health index for each day of the week, the user's emotional health state, its reasons, and the ratio between different emotional health states during the week. The reasons are It can be represented by parameters such as the value of the low-frequency LF of the target sleep period and the fragmentation degree index of the target sleep period.
图4C中,用户界面10中显示有一年中的每月的用户的各个情绪健康状态的天数、以及不同的情绪健康状态之间的比例等。In FIG. 4C , the user interface 10 displays the number of days of each emotional health state of the user in each month of the year, the ratio between different emotional health states, and the like.
图4A中,用户界面10中可以包括:控件101,控件101用于显示用户的情绪健康指数有所下降、以及导致用户的情绪健康指数有所下降的原因。其中,上述原因可包括深度睡眠期的低频LF的数值上升、以及深度睡眠期的睡眠碎片化程度增加。In FIG. 4A, the user interface 10 may include: a control 101. The control 101 is used to display a decrease in the user's emotional health index and the reasons for the decrease in the user's emotional health index. Among them, the above reasons may include an increase in the value of low-frequency LF in the deep sleep period and an increase in the degree of sleep fragmentation in the deep sleep period.
图4B中,用户界面10中可以包括:控件102,控件102用于显示用户的情绪健康指数明显提升、以及导致用户的情绪健康指数明显提升的原因。其中,上述原因可包括深度睡眠期的低频LF的数值下降、以及深度睡眠期的睡眠碎片化程度降低。In FIG. 4B , the user interface 10 may include: a control 102 . The control 102 is used to display a significant increase in the user's emotional health index and the reasons for the significant increase in the user's emotional health index. Among them, the above reasons may include a decrease in the value of low-frequency LF in the deep sleep period and a decrease in the degree of sleep fragmentation in the deep sleep period.
可见,电子设备可向用户提供用户的情绪健康状态,还可向用户介绍用户情绪健康指数发生变化的原因。It can be seen that electronic devices can provide the user with the user's emotional health status, and can also introduce to the user the reasons for changes in the user's emotional health index.
应理解,本申请包括但不限于上述向用户展示用户的情绪健康状态的实现方式。It should be understood that this application includes but is not limited to the above-mentioned implementation of displaying the user's emotional health state to the user.
基于上述描述,电子设备根据用户的情绪健康指数,还可向用户推荐个性化的呼吸训练方案。在一些实施例中,电子设备根据用户的情绪健康指数,可得到推荐呼吸时长和推荐呼吸频率。Based on the above description, the electronic device can also recommend a personalized breathing training program to the user based on the user's emotional health index. In some embodiments, the electronic device can obtain recommended breathing duration and recommended breathing frequency based on the user's emotional health index.
其中,推荐呼吸时长可为1分钟、2分钟、3分钟、5分钟、10分钟等。推荐呼吸频率可为6次每分钟、8次每分钟、10次每分钟等。Among them, the recommended breathing time can be 1 minute, 2 minutes, 3 minutes, 5 minutes, 10 minutes, etc. The recommended respiratory rate can be 6 times per minute, 8 times per minute, 10 times per minute, etc.
从而,电子设备针对不同的情绪健康状态的用户,可提供不同时长和/或不同频率的呼吸训练建议。Therefore, the electronic device can provide breathing training suggestions of different durations and/or different frequencies for users with different emotional health states.
在用户的呼吸训练开始前,电子设备可展示呼吸训练方案,能够提醒用户进行恰当的呼吸训练。Before the user's breathing training begins, the electronic device can display the breathing training program and remind the user to perform appropriate breathing training.
在用户的呼吸训练过程中,电子设备结合实际过程中的用户的呼吸训练数据,可从交互上引导用户进行恰当的呼吸训练,并统计并记录用户的呼吸训练指标。During the user's breathing training process, the electronic device, combined with the user's breathing training data in the actual process, can interactively guide the user to perform appropriate breathing training, and count and record the user's breathing training indicators.
在用户的呼吸训练结束后,电子设备还可自适应性地调整用户的呼吸训练方案,使得用户之后能够进行恰当的呼吸训练。After the user's breathing training is completed, the electronic device can also adaptively adjust the user's breathing training program so that the user can perform appropriate breathing training in the future.
下面,结合图5、图6A-图6F,详细介绍电子设备向用户推荐呼吸训练方案的具体实现过程。Next, with reference to Figures 5 and 6A-6F, the specific implementation process of the electronic device recommending a breathing training program to the user is introduced in detail.
请参阅图5、图6A-图6F,图5、图6A-图6F示出了本申请一实施例提供的人机交互界面示意图。为了便于说明,图5、图6A-图6F中,以电子设备为手机为例进行示意。Please refer to FIG. 5 and FIG. 6A-FIG. 6F. FIG. 5 and FIG. 6A-FIG. 6F show a schematic diagram of a human-computer interaction interface provided by an embodiment of the present application. For ease of explanation, in FIG. 5 and FIG. 6A-FIG. 6F, the electronic device is a mobile phone as an example for illustration.
电子设备可显示如图5示例性所示的用户界面20,用户界面20用于推荐呼吸训练方案。The electronic device may display a user interface 20 as exemplarily shown in FIG. 5 , and the user interface 20 is used to recommend a breathing training program.
图5中,用户界面20中可包括:控件201,控件201用于触发呼吸训练方案。In Figure 5, the user interface 20 may include: a control 201, which is used to trigger the breathing training program.
在接收到控件201上的操作后,电子设备可从显示如图5示例性所示的用户界面20变为显示图6A示例性所示的第二界面31,第二界面31用于提示用户按照推荐呼吸频率进行推荐呼吸时长的呼吸训练。After receiving an operation on the control 201, the electronic device may change from displaying the user interface 20 as exemplarily shown in FIG. 5 to displaying the second interface 31 as exemplarily shown in FIG. 6A. The second interface 31 is used to prompt the user to follow the Breathing exercises are performed at the recommended breathing rate and for the recommended breathing duration.
其中,本申请对第二界面31的具体实现方式不做限定。在一些实施例中,第二界面31可为电子设备中已安装的应用程序的一个用户界面、电子设备中显示的一个网页、或者电子设备中显示的公众号的一个页面等中的至少一项。Among them, this application does not limit the specific implementation of the second interface 31. In some embodiments, the second interface 31 may be at least one of a user interface of an application installed in the electronic device, a web page displayed in the electronic device, or a page of a public account displayed in the electronic device, etc. .
例如,第二界面31为电子设备中的华为创新研究应用程序或者华为运动健康应用程序的一个用户界面。For example, the second interface 31 is a user interface of the Huawei Innovation Research application or the Huawei Sports Health application in the electronic device.
图6A中,第二界面31中可包括:第一控件301和提示信息302。第一控件301用于启动呼吸训练。提示信息302用于提示推荐呼吸频率和推荐呼吸时长。In Figure 6A, the second interface 31 may include: a first control 301 and prompt information 302. The first control 301 is used to start breathing training. The prompt information 302 is used to prompt the recommended breathing frequency and recommended breathing duration.
其中,本申请对第一控件301和提示信息302的如大小、形状、位置、内容等参数不做限定。第一控件301上的操作可包括但不限于:单击、双击、长按等。另外,第一控件可为包括一个或多个控件。Among them, this application does not limit parameters such as size, shape, position, content, etc. of the first control 301 and the prompt information 302. Operations on the first control 301 may include but are not limited to: single click, double click, long press, etc. In addition, the first control may include one or more controls.
在接收到第一控件301上的操作后,电子设备可确定用户开始呼吸训练。从而,电子设备可从显示图6A示例性所示的第二界面31变为显示图6B或图6C示例性所示的第二界面31。After receiving the operation on the first control 301, the electronic device may determine that the user starts breathing training. Therefore, the electronic device may change from displaying the second interface 31 exemplarily shown in FIG. 6A to displaying the second interface 31 exemplarily shown in FIG. 6B or FIG. 6C.
图6B中,电子设备可将第二曲线b1悬浮绘制在第一曲线a上。图6C中,电子设备可将第二曲线b2悬浮绘制在第一曲线a上。由此,使得电子设备可直观地展示第一曲线a和第二曲线(b1或b2)之间的差异,引导用户保持良好的呼吸训练。In Figure 6B, the electronic device can draw the second curve b1 suspended on the first curve a. In Figure 6C, the electronic device can draw the second curve b2 suspended on the first curve a. As a result, the electronic device can intuitively display the difference between the first curve a and the second curve (b1 or b2), guiding the user to maintain good breathing training.
其中,第一曲线a可用于向用户展示推荐的呼吸训练方案。第一曲线a是根据推荐呼吸时长和推荐呼吸频率得到的。Among them, the first curve a can be used to display the recommended breathing training program to the user. The first curve a is obtained based on the recommended breathing duration and recommended breathing frequency.
其中,第二曲线(b1或b2)可用于向用户展示用户的实时呼吸频率。第二曲线(b1或b2)是根据用户的实时呼吸频率得到的。Among them, the second curve (b1 or b2) can be used to show the user's real-time breathing frequency. The second curve (b1 or b2) is obtained based on the user's real-time breathing frequency.
另外,第一曲线a和第二曲线(b1或b2)的形式可以包括但不限于:三角函数曲线、折线、柱状图等。In addition, the forms of the first curve a and the second curve (b1 or b2) may include but are not limited to: trigonometric function curves, polylines, histograms, etc.
为了便于区分,图6B-图6C中,第二曲线(b1或b2)采用实线进行显示,第一曲线a采用虚线进行显示。In order to facilitate distinction, in Figures 6B to 6C, the second curve (b1 or b2) is displayed as a solid line, and the first curve a is displayed as a dotted line.
图6B中,在用户呼吸快了的情况下,第二曲线b1呈现的实时呼吸频率快于第一曲线a指示的推荐呼吸频率。在实时呼吸频率大于推荐呼吸频率时,电子设备可在第二界面31中显示第一信息305。In FIG. 6B , when the user breathes quickly, the real-time breathing frequency presented by the second curve b1 is faster than the recommended breathing frequency indicated by the first curve a. When the real-time respiratory frequency is greater than the recommended respiratory frequency, the electronic device may display the first information 305 in the second interface 31 .
其中,第一信息305用于提示用户放缓呼吸。本申请对第一信息305的如内容、方式、位置、时长等参数不做限定。在一些实施例中,第一信息305可采用文字、语音、图像、物理震动等中的至少一种方式进行显示。Among them, the first information 305 is used to prompt the user to slow down his breathing. This application does not limit parameters such as content, mode, location, duration, etc. of the first information 305. In some embodiments, the first information 305 may be displayed in at least one manner of text, voice, image, physical vibration, etc.
图6C中,在用户呼吸慢了的情况下,第二曲线b2呈现的实时呼吸频率慢于第一曲线a指示的推荐呼吸频率。在实时呼吸频率小于推荐呼吸频率时,电子设备可在第二界面31中显示第二信息306。In FIG. 6C , when the user breathes slowly, the real-time breathing frequency presented by the second curve b2 is slower than the recommended breathing frequency indicated by the first curve a. When the real-time respiratory frequency is less than the recommended respiratory frequency, the electronic device may display the second information 306 in the second interface 31 .
其中,第二信息306用于提示用户加快呼吸。本申请对第二信息306的如内容、方式、位置、时长等参数不做限定。在一些实施例中,第二信息306可采用文字、语音、图像、物理震动等中的至少一种方式进行显示。Among them, the second information 306 is used to prompt the user to breathe faster. This application does not limit the parameters of the second information 306 such as content, mode, location, duration, etc. In some embodiments, the second information 306 may be displayed using at least one of text, voice, image, physical vibration, and the like.
另外,在接收到第一控件301上的操作后,电子设备还可记录用户的呼吸训练数据。其中,用户的呼吸训练数据可以包括用户在实际的呼吸训练过程中产生的数据。In addition, after receiving the operation on the first control 301, the electronic device can also record the user's breathing training data. The user's breathing training data may include data generated by the user during the actual breathing training process.
在一些实施例中,可穿戴设备中的陀螺仪和加速度计(accelerometer,ACC)、PPG等传感器可实时采集用户的呼吸训练数据。可穿戴设备可向电子设备发送用户的呼吸训练数据,使得电子设备可获取到的用户的呼吸训练数据以及绘制出第二曲线(b1或b2)。In some embodiments, sensors such as gyroscopes, accelerometers (ACC), and PPG in wearable devices can collect the user's breathing training data in real time. The wearable device can send the user's breathing training data to the electronic device, so that the electronic device can obtain the user's breathing training data and draw the second curve (b1 or b2).
应理解,除了上述实现方式之外,在电子设备为可穿戴设备时,电子设备可实时采集到用户的呼吸训练数据。It should be understood that, in addition to the above implementation manner, when the electronic device is a wearable device, the electronic device can collect the user's breathing training data in real time.
在用户呼吸训练结束后,电子设备可显示如图6D示例性所示的第二界面31,第二界面31用于提醒用户已完成呼吸训练以及反馈用户的呼吸训练结果。After the user's breathing training is completed, the electronic device may display the second interface 31 as schematically shown in FIG. 6D . The second interface 31 is used to remind the user that the breathing training has been completed and to feedback the user's breathing training results.
图6D中,第二界面31中可包括控件307,控件307用于触发进入显示用户的呼吸训练结果的入口。In FIG. 6D , the second interface 31 may include a control 307 , which is used to trigger entry into an entrance that displays the user's breathing training results.
其中,用户的呼吸训练结果是根据用户的呼吸训练数据得到的。用户的呼吸训练结果可以包括但不限于:呼气总时长(如用户呼出气体多少分钟)、吸气总时长(如用户吸入气体多少分钟)、实时呼吸频率、呼气次数、吸气次数、整体的呼吸节奏为1:X、或者是否位于最佳呼吸频率内中的至少一项。本申请对用户的呼吸训练结果的如内容、方式、位置、时长等参数不做限定。在一些实施例中,用户的呼吸训练结果可采用文字、语音、图像等中的至少一种方式进行显示。Among them, the user's breathing training results are obtained based on the user's breathing training data. The user's breathing training results may include but are not limited to: total exhalation time (such as how many minutes the user exhales), total inhalation time (such as how many minutes the user inhales), real-time breathing frequency, number of exhalations, number of inhalations, overall The breathing rhythm is 1:X, or is within at least one of the optimal breathing rates. This application does not limit parameters such as content, method, location, duration, etc. of the user's breathing training results. In some embodiments, the user's breathing training results can be displayed using at least one of text, voice, image, etc. methods.
在接收到控件307上的操作后,电子设备可从显示如图6D示例性所示的第二界面31变为显示如图6E示例性所示的第二界面31。After receiving an operation on the control 307, the electronic device may change from displaying the second interface 31 as exemplarily shown in FIG. 6D to displaying the second interface 31 as exemplarily shown in FIG. 6E.
图6E中,第二界面31中可包括控件308,控件308用于显示用户的呼吸训练结果。In Figure 6E, the second interface 31 may include a control 308, which is used to display the user's breathing training results.
应理解,在用户呼吸训练结束后,电子设备也可显示如图6E示例性所示的第二界面31。从而,直观地向用户展示用户的呼吸训练结果。It should be understood that after the user's breathing training is completed, the electronic device may also display the second interface 31 as exemplarily shown in Figure 6E. Thus, the user's breathing training results are intuitively displayed to the user.
另外,在用户呼吸训练结束后,电子设备根据用户的呼吸训练数据,还可调整推荐呼吸时长和/或推荐呼吸频率,并更新本申请提及的第一曲线a。In addition, after the user's breathing training is completed, the electronic device can also adjust the recommended breathing duration and/or recommended breathing frequency based on the user's breathing training data, and update the first curve a mentioned in this application.
和/或,在接收到第二界面中的第二控件上的操作后,电子设备还可调整推荐呼吸时长和/或推荐呼吸频率,并更新本申请提及的第一曲线a。And/or, after receiving the operation on the second control in the second interface, the electronic device can also adjust the recommended breathing duration and/or the recommended breathing frequency, and update the first curve a mentioned in this application.
其中,第二控件用于触发调整推荐呼吸时长和/或推荐呼吸频率的入口。本申请对第二控件的如大小、形状、位置等参数不做限定。第二控件上的操作可包括但不限于:单击、双击、长按等。另外,第二控件可为包括一个或多个控件。Wherein, the second control is used to trigger an entry for adjusting the recommended breathing duration and/or the recommended breathing frequency. This application does not limit parameters such as size, shape, position, etc. of the second control. The operations on the second control may include but are not limited to: single click, double click, long press, etc. In addition, the second control may include one or more controls.
举例而言,在用户呼吸训练开始前的图6A中,和/或,在用户呼吸训练结束后的图6E中,第二界面31中还可包括:控件303,控件303用于向用户提供调整推荐呼吸时长和/或推荐呼吸频率的入口。For example, in Figure 6A before the user's breathing training starts, and/or in Figure 6E after the user's breathing training ends, the second interface 31 may also include: a control 303, which is used to provide adjustments to the user. Portal for recommended breath duration and/or recommended breath rate.
此外,图6A中,第二界面31还可包括:控件304,控件304用于调整推荐呼吸时长,控件304也可看作为本申请提及的第二控件。In addition, in FIG. 6A, the second interface 31 may also include: a control 304. The control 304 is used to adjust the recommended breathing duration. The control 304 may also be regarded as the second control mentioned in this application.
以在用户呼吸训练结束后的图6E为例,在接收到图6E所示的控件303上的操作后,电子设备可从显示图6E示例性所示的第二界面31变为显示图6F示例性所示的第二界面31。Taking FIG. 6E after the user's breathing training is completed as an example, after receiving an operation on the control 303 shown in FIG. 6E , the electronic device can change from displaying the second interface 31 shown in the example in FIG. 6E to displaying the example in FIG. 6F The second interface 31 shown below.
图6F中,第二界面31可包括:控件309和控件310,控件309用于调整推荐呼吸频率,控件310用于调整推荐呼吸时长。In Figure 6F, the second interface 31 may include: a control 309 and a control 310. The control 309 is used to adjust the recommended breathing frequency, and the control 310 is used to adjust the recommended breathing duration.
可见,控件303和控件309可看作为本申请提及的第二控件,能够调整推荐呼吸频率,和/或,控件303和控件310可看作为本申请提及的第二控件,能够调整推荐呼吸时长。从而,使得用户能够自主选择呼吸训练的时长和/或频率。It can be seen that control 303 and control 309 can be regarded as the second control mentioned in this application, capable of adjusting the recommended breathing frequency, and/or, control 303 and control 310 can be regarded as the second control mentioned in this application, capable of adjusting the recommended breathing frequency. duration. Thus, the user can independently select the duration and/or frequency of breathing training.
另外,图6F中,第二界面31还可包括:控件311,控件311用于继续开始呼吸训练。In addition, in Figure 6F, the second interface 31 may also include: a control 311, which is used to continue to start breathing training.
综上,电子设备根据用户的情绪健康指数,可为用户提供个性化的呼吸训练方案,以及基于个性化的呼吸训练方案,还可为用户提供一套完整的用户界面交互逻辑。从而,可规范用户的呼吸训练行为,可保证用户的呼吸训练质量,使得用户能够高效地进行呼吸训练。In summary, electronic devices can provide users with personalized breathing training programs based on the user's emotional health index, as well as personalized breathing training programs, and can also provide users with a complete set of user interface interaction logic. Therefore, the user's breathing training behavior can be standardized, the quality of the user's breathing training can be ensured, and the user can perform breathing training efficiently.
基于上述描述,电子设备根据用户的情绪健康指数,还可向用户推荐个性化的运动训练计划。Based on the above description, the electronic device can also recommend a personalized exercise training plan to the user based on the user's emotional health index.
在一些实施例中,电子设备采用热量消耗、计高强度心率累积时长等方式,根据用户的情绪健康指数,可得到推荐运动类型和推荐运动时长。In some embodiments, the electronic device uses methods such as caloric consumption and high-intensity heart rate accumulation duration to obtain recommended exercise types and recommended exercise durations based on the user's emotional health index.
另外,电子设备采用热量消耗、计高强度心率累积时长等方式,还可结合用户的基础信息(如性别、年龄、省份、城市、身高、体重等用户已授权的信息),根据用户的情绪健康指数,得到推荐运动类型和推荐运动时长。In addition, electronic devices use methods such as calorie consumption and high-intensity heart rate accumulation time, and can also be combined with the user's basic information (such as gender, age, province, city, height, weight and other information that the user has authorized) to calculate the user's emotional health based on the user's emotional health. Index to get the recommended exercise type and recommended exercise duration.
其中,推荐运动类型可包括但不限于:步行、骑车、快走、游泳等类型。推荐运动时长为运动训练计划的目的。推荐运动时长可为6分钟、20分钟、60分钟等。Among them, the recommended exercise types may include but are not limited to: walking, cycling, brisk walking, swimming, etc. Recommended exercise duration for the purpose of an exercise training program. The recommended exercise duration can be 6 minutes, 20 minutes, 60 minutes, etc.
从而,电子设备针对不同的情绪健康状态的用户,可提供匹配的运动训练建议。Therefore, the electronic device can provide matching exercise training suggestions for users with different emotional health states.
在用户的运动训练开始前,电子设备可展示运动训练计划,能够提醒用户进行恰当的运动训练。Before the user's exercise training begins, the electronic device can display the exercise training plan and remind the user to perform appropriate exercise training.
在用户的运动训练过程中,电子设备结合实际过程中的用户的运动训练数据,可将用户的运动执行情况自适应地匹配到运动训练计划中,实现了即使用户选择或电子设备推荐的推荐运动类型与用户在实际过程中的实际运动类型不同,仍能自动化匹配运动训练计划的过程,避免了因情绪健康状态不佳引起的运动执行差的问题。During the user's exercise training process, the electronic device, combined with the user's exercise training data in the actual process, can adaptively match the user's exercise execution to the exercise training plan, achieving the recommended exercise even if the user selects or the electronic device recommends The type is different from the actual exercise type of the user in the actual process, but the process of matching the exercise training plan can still be automated, avoiding the problem of poor exercise execution caused by poor emotional health.
在用户的运动训练结束后,电子设备还可展示用户的运动训练计划的完成进度/运动执行情况,引导用户继续进行运动训练。After the user's exercise training is completed, the electronic device can also display the completion progress/exercise execution status of the user's exercise training plan, and guide the user to continue exercise training.
下面,结合图5、图7A-图7B,详细介绍电子设备向用户推荐运动训练计划的具体实现过程。Next, with reference to FIG. 5 and FIG. 7A-FIG. 7B, the specific implementation process of the electronic device recommending a sports training plan to the user is introduced in detail.
请参阅图7A-图7B,图7A-图7B示出了本申请一实施例提供的人机交互界面示意图。为了便于说明,图7A-图7B中,以电子设备为手机为例进行示意。Please refer to Figures 7A-7B. Figures 7A-7B are schematic diagrams of a human-computer interaction interface provided by an embodiment of the present application. For ease of explanation, in FIGS. 7A and 7B , the electronic device is a mobile phone as an example.
图5中,用户界面20中还可包括:控件202,控件202用于触发运动训练计划。In Figure 5, the user interface 20 may also include: a control 202, which is used to trigger the sports training plan.
在接收到控件202上的操作后,电子设备可从显示如图5示例性所示的用户界面20变为显示图7A示例性所示的第三界面41,第三界面41用于提示用户采用推荐运动类型进行推荐运动时长的运动训练。After receiving an operation on the control 202, the electronic device may change from displaying the user interface 20 as exemplarily shown in FIG. 5 to displaying a third interface 41 as exemplarily shown in FIG. 7A. The third interface 41 is used to prompt the user to adopt Recommended exercise types and exercise training for the recommended exercise duration.
其中,本申请对第三界面41的具体实现方式不做限定。例如,第三界面41可为电子设备中已安装的应用程序的一个用户界面、电子设备中显示的一个网页、或者电子设备中显示的公众号的一个页面等中的至少一项。Among them, this application does not limit the specific implementation of the third interface 41. For example, the third interface 41 may be at least one of a user interface of an application program installed in the electronic device, a web page displayed on the electronic device, or a page of a public account displayed on the electronic device.
图7A中,第三界面41中可包括第三控件401,第三控件401用于启动运动训练,且第三控件401还用于触发记录用户的运动训练数据的入口。In FIG. 7A, the third interface 41 may include a third control 401. The third control 401 is used to start sports training, and the third control 401 is also used to trigger an entry for recording the user's sports training data.
其中,本申请对第三控件401的如大小、形状、位置等参数不做限定。第三控件401上的操作可包括但不限于:单击、双击、长按等。另外,第三控件可为包括一个或多个控件。Among them, this application does not limit parameters such as size, shape, position, etc. of the third control 401. The operations on the third control 401 may include but are not limited to: single click, double click, long press, etc. In addition, the third control may include one or more controls.
在接收到第三控件401上的操作后,电子设备可确定用户开始运动训练。从而,电子设备可记录用户的运动训练数据。其中,用户的运动训练数据可以包括用户在实际的运动训练过程中产生的数据。After receiving the operation on the third control 401, the electronic device may determine that the user starts exercise training. Thus, the electronic device can record the user's exercise training data. Among them, the user's sports training data may include data generated by the user during the actual sports training process.
在一些实施例中,可穿戴设备中的陀螺仪和ACC、PPG等传感器可实时采集用户的运动训练数据,或者用户的基础信息和用户的运动训练数据。可穿戴设备可向电子设备发送用户的运动训练数据,或者用户的基础信息和用户的运动训练数据,使得电子设备可获取到的用户的运动训练数据,或者用户的基础信息和用户的运动训练数据。In some embodiments, the gyroscope and ACC, PPG and other sensors in the wearable device can collect the user's sports training data, or the user's basic information and the user's sports training data in real time. The wearable device can send the user's sports training data, or the user's basic information and the user's sports training data to the electronic device, so that the electronic device can obtain the user's sports training data, or the user's basic information and the user's sports training data. .
应理解,除了上述实现方式之外,在电子设备为可穿戴设备时,电子设备可实时采集到用户的运动训练数据,或者用户的基础信息和用户的运动训练数据。It should be understood that, in addition to the above implementation methods, when the electronic device is a wearable device, the electronic device can collect the user's sports training data, or the user's basic information and the user's sports training data in real time.
在用户运动训练结束后,电子设备可显示如图7B示例性所示的第三界面41,第三界面41用于提醒用户已完成运动训练以及按照时间维度反馈用户的运动执行情况。After the user's exercise training is completed, the electronic device may display a third interface 41 as exemplarily shown in FIG. 7B . The third interface 41 is used to remind the user that the exercise training has been completed and to provide feedback on the user's exercise execution status in a time dimension.
其中,用户的运动执行情况是根据用户的运动训练数据,或者用户的基础信息和用户的运动训练数据得到。用户的运动执行情况可以包括但不限于:运动总时长、实际运动类型、运动日期、运动起始时间点、运动终止时间点、或者运动训练计划的完成进度中的至少一项。本申请对用户的运动执行情况的如内容、方式、位置、时长等参数不做限定。在一些实施例中,用户的运动执行情况可采用文字、语音、图像等中的至少一种方式进行显示。Among them, the user's exercise execution status is obtained based on the user's exercise training data, or the user's basic information and the user's exercise training data. The user's exercise execution status may include but is not limited to: at least one of the total exercise duration, actual exercise type, exercise date, exercise start time point, exercise end time point, or completion progress of the exercise training plan. This application does not limit parameters such as content, method, location, duration, etc. of the user's exercise execution. In some embodiments, the user's movement execution status may be displayed using at least one of text, voice, image, etc. methods.
另外,在用户运动训练结束后,电子设备根据用户的运动训练数据,可调整推荐运动类型和/或推荐运动时长。In addition, after the user's exercise training is completed, the electronic device can adjust the recommended exercise type and/or recommended exercise duration based on the user's exercise training data.
和/或,在用户运动训练开始前,在接收到第三界面41中的第四控件上的操作后,电子设备可调整推荐运动类型和/或推荐运动时长。从而,使得用户能够自主选择运动训练的类型和/或时长。And/or, before the user starts exercise training, after receiving an operation on the fourth control in the third interface 41, the electronic device may adjust the recommended exercise type and/or the recommended exercise duration. Thus, the user can independently select the type and/or duration of exercise training.
其中,第四控件用于触发调整推荐运动类型和/或推荐运动时长的入口。本申请对第四控件的如大小、形状、位置等参数不做限定。第四控件上的操作可包括但不限于:单击、双击、长按等。另外,第四控件可为包括一个或多个控件。Among them, the fourth control is used to trigger an entrance to adjust the recommended exercise type and/or recommended exercise duration. This application does not limit parameters such as size, shape, position, etc. of the fourth control. The operations on the fourth control may include but are not limited to: single click, double click, long press, etc. In addition, the fourth control may include one or more controls.
举例而言,图7A中,第三界面41中还可包括控件402,控件402用于调整推荐运动类型,控件402可看作为本申请提及的第四控件。从而,在接收到控件402上的操作后,电子设备可调整推荐运动类型。For example, in FIG. 7A , the third interface 41 may also include a control 402 , which is used to adjust the recommended exercise type. The control 402 may be regarded as the fourth control mentioned in this application. Thus, upon receiving an operation on control 402, the electronic device may adjust the recommended exercise type.
以采用热量消耗的方式为例,假设用户选择或电子设备推荐的推荐运动类型为跑步。如果用户在实际过程中的实际运动类型是散步,那么,电子设备可将散步消耗的热量匹配到运动训练计划中,来更新运动训练计划的完成进度。从而,以用户选择或电子设备推荐的推荐运动类型作为牵引,引导用户完成相应的运动训练计划。Taking the method of calorie consumption as an example, assume that the recommended exercise type selected by the user or recommended by the electronic device is running. If the user's actual exercise type during the actual process is walking, then the electronic device can match the calories consumed by walking to the exercise training plan to update the completion progress of the exercise training plan. Therefore, the recommended exercise type selected by the user or recommended by the electronic device is used as a traction to guide the user to complete the corresponding exercise training plan.
综上,电子设备根据用户的情绪健康指数,可为用户提供个性化的运动训练计划,并可将用户实际的运动训练数据自动匹配到运动训练计划中,避免了因情绪健康状态不佳而导致运动训练计划的执行度差的问题,引导用户顺序完成运动训练计划。In summary, electronic devices can provide users with personalized sports training plans based on the user's emotional health index, and can automatically match the user's actual sports training data to the sports training plan, avoiding the problems caused by poor emotional health. To solve the problem of poor execution of the sports training plan, users are guided to complete the sports training plan in sequence.
示例性地,本申请提供一种情绪健康分析装置,包括:用于实现前文实施例中的情绪健康状态分析方法的模块。Illustratively, this application provides an emotional health analysis device, including: a module for implementing the emotional health state analysis method in the previous embodiment.
示例性地,本申请提供一种电子设备,包括:存储器和处理器;存储器用于存储程序指令;处理器用于调用存储器中的程序指令使得电子设备执行前文实施例中的情绪健康状态分析方法。Exemplarily, this application provides an electronic device, including: a memory and a processor; the memory is used to store program instructions; and the processor is used to call the program instructions in the memory so that the electronic device executes the emotional health state analysis method in the previous embodiment.
示例性地,本申请提供一种芯片,包括:接口电路和逻辑电路,所述接口电路用于接收来自于芯片之外的其他芯片的信号并传输至所述逻辑电路,或者将来自所述逻辑电路的信号发送给所述芯片之外的其他芯片,所述逻辑电路用于实现前文实施例中的情绪健康状态分析方法。Exemplarily, this application provides a chip, including: an interface circuit and a logic circuit. The interface circuit is used to receive signals from other chips other than the chip and transmit them to the logic circuit, or to transmit signals from the logic circuit. The signal of the circuit is sent to other chips besides the chip, and the logic circuit is used to implement the emotional health state analysis method in the previous embodiment.
示例性地,本申请提供一种芯片系统,芯片系统应用于包括存储器、显示屏和传感器的电子设备;芯片系统包括:处理器;当处理器执行存储器中存储的计算机指令时,电子设备执行前文实施例中的情绪健康状态分析方法。Exemplarily, this application provides a chip system, which is applied to electronic devices including memory, display screens, and sensors; the chip system includes: a processor; when the processor executes computer instructions stored in the memory, the electronic device executes the foregoing Emotional health status analysis method in the embodiment.
示例性地,本申请提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器使得电子设备执行时实现前文实施例中的情绪健康状态分析方法。Illustratively, the present application provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor so that the electronic device implements the emotional health state analysis method in the previous embodiment.
示例性地,本申请提供一种计算机程序产品,包括:执行指令,执行指令存储在可读存储介质中,电子设备的至少一个处理器可以从可读存储介质读取执行指令,至少一个处理器执行执行指令使得电子设备实现前文实施例中的情绪健康状态分析方法。Exemplarily, this application provides a computer program product, including: execution instructions, the execution instructions are stored in a readable storage medium, and at least one processor of the electronic device can read the execution instructions from the readable storage medium, and the at least one processor Executing the execution instructions causes the electronic device to implement the emotional health state analysis method in the previous embodiment.
在上述实施例中,全部或部分功能可以通过软件、硬件、或者软件加硬件的组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part of the functions may be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in this application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:只读存储器(read-only memory,ROM)或随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are implemented. This process can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, , may include the processes of the above method embodiments. The aforementioned storage media include: read-only memory (ROM) or random access memory (RAM), magnetic disks, optical disks and other media that can store program codes.
Claims (17)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211097691.2A CN117694892A (en) | 2022-09-08 | 2022-09-08 | Emotion health state analysis method and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211097691.2A CN117694892A (en) | 2022-09-08 | 2022-09-08 | Emotion health state analysis method and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117694892A true CN117694892A (en) | 2024-03-15 |
Family
ID=90148524
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211097691.2A Pending CN117694892A (en) | 2022-09-08 | 2022-09-08 | Emotion health state analysis method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117694892A (en) |
-
2022
- 2022-09-08 CN CN202211097691.2A patent/CN117694892A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113827185B (en) | Wearable device wear tightness detection method, device and wearable device | |
| WO2021036568A1 (en) | Fitness-assisted method and electronic apparatus | |
| CN111202955A (en) | Motion data processing method and electronic equipment | |
| CN114451874B (en) | Intelligent eye shield, terminal equipment, health management method and system | |
| WO2021238460A1 (en) | Risk pre-warning method, risk behavior information acquisition method, and electronic device | |
| CN115016869A (en) | Frame rate adjustment method, terminal device and frame rate adjustment system | |
| WO2024146486A1 (en) | Blood glucose management method and related electronic device | |
| WO2022083363A1 (en) | Method for periodically measuring blood oxygen, and electronic device | |
| CN116649951B (en) | Sports data processing methods, wearable devices, terminals, fitness equipment and media | |
| CN115445170B (en) | A kind of exercise reminder method and related equipment | |
| CN115525372B (en) | Method and device for displaying interface | |
| CN113539487A (en) | Data processing method, device and terminal equipment | |
| WO2023001165A1 (en) | Exercise guidance method and related apparatus | |
| CN113996046B (en) | Warming-up judgment method and device and electronic equipment | |
| WO2021233018A1 (en) | Method and apparatus for measuring muscle fatigue degree after exercise, and electronic device | |
| CN116030787A (en) | Age-based voice generation method and apparatus | |
| WO2025026284A1 (en) | Detection method and wearable device | |
| CN118155837A (en) | Arrhythmia risk prediction method and related electronic equipment | |
| CN117796760A (en) | A sleep quality prediction method, electronic device and system | |
| CN118689425A (en) | Image synthesis method, device and electronic device | |
| CN117694892A (en) | Emotion health state analysis method and electronic equipment | |
| CN115731605A (en) | Fitness guidance method, electronic device and computer-readable storage medium | |
| CN113496766A (en) | User health management method and device | |
| CN115137323B (en) | Hypertension risk detection method and related device | |
| WO2024198603A1 (en) | Sleep-talking-based emotion abnormality recognition method, communication apparatus, and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |