KR20210060246A - The arraprus for obtaining biometiric data and method thereof - Google Patents

The arraprus for obtaining biometiric data and method thereof Download PDF

Info

Publication number
KR20210060246A
KR20210060246A KR1020190148077A KR20190148077A KR20210060246A KR 20210060246 A KR20210060246 A KR 20210060246A KR 1020190148077 A KR1020190148077 A KR 1020190148077A KR 20190148077 A KR20190148077 A KR 20190148077A KR 20210060246 A KR20210060246 A KR 20210060246A
Authority
KR
South Korea
Prior art keywords
heart rate
data
electronic device
value
processor
Prior art date
Application number
KR1020190148077A
Other languages
Korean (ko)
Inventor
김민철
이종하
김찬일
한경완
허동혁
황석민
임연욱
Original Assignee
삼성전자주식회사
계명대학교 산학협력단
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사, 계명대학교 산학협력단 filed Critical 삼성전자주식회사
Priority to KR1020190148077A priority Critical patent/KR20210060246A/en
Priority to PCT/KR2020/014098 priority patent/WO2021101073A1/en
Publication of KR20210060246A publication Critical patent/KR20210060246A/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • A61B5/1126Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb using a particular sensing technique
    • A61B5/1128Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb using a particular sensing technique using image analysis
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7271Specific aspects of physiological measurement analysis
    • A61B5/7278Artificial waveform generation or derivation, e.g. synthesising signals from measured signals
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/74Details of notification to user or communication with user or patient ; user input means
    • A61B5/742Details of notification to user or communication with user or patient ; user input means using visual displays
    • A61B5/7445Display arrangements, e.g. multiple display units
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/74Details of notification to user or communication with user or patient ; user input means
    • A61B5/746Alarms related to a physiological condition, e.g. details of setting alarm thresholds or avoiding false alarms
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/74Details of notification to user or communication with user or patient ; user input means
    • A61B5/7465Arrangements for interactive communication between patient and care services, e.g. by using a telephone network
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B24/00Electric or electronic controls for exercising apparatus of preceding groups; Controlling or monitoring of exercises, sportive games, training or athletic performances
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B24/00Electric or electronic controls for exercising apparatus of preceding groups; Controlling or monitoring of exercises, sportive games, training or athletic performances
    • A63B24/0075Means for generating exercise programs or schemes, e.g. computerized virtual trainer, e.g. using expert databases
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B71/00Games or sports accessories not covered in groups A63B1/00 - A63B69/00
    • A63B71/06Indicating or scoring devices for games or players, or for other sports activities
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B71/00Games or sports accessories not covered in groups A63B1/00 - A63B69/00
    • A63B71/06Indicating or scoring devices for games or players, or for other sports activities
    • A63B71/0619Displays, user interfaces and indicating devices, specially adapted for sport equipment, e.g. display mounted on treadmills
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B2230/00Measuring physiological parameters of the user
    • A63B2230/04Measuring physiological parameters of the user heartbeat characteristics, e.g. ECG, blood pressure modulations

Abstract

An electronic device according to various embodiments may include a memory for storing instructions and a processor connected to the memory. The processor obtains image data captured by using a camera, analyzes the image data to calculate a heart rate value, determines whether the heart rate value is normally obtained, determines a correction value for a section where the heart rate value is not normally obtained when the heart rate value is not normally obtained, and stores biometric information data including the correction value in the memory. It is possible to monitor and manage the health status in daily life by taking into account individual differences.

Description

생체 데이터를 획득하는 장치 및 그 방법{THE ARRAPRUS FOR OBTAINING BIOMETIRIC DATA AND METHOD THEREOF}TECHNICAL FIELD The apparatus and method for acquiring biometric data TECHNICAL FIELD

다양한 실시예들은 생체 신호를 측정하는 방법 및 이를 이용한 생체 데이터를획득하는 장치에 관한 것이다.Various embodiments relate to a method of measuring a biosignal and an apparatus for acquiring biometric data using the same.

건강을 관리하고 질병을 예방하기 위하여, 전자 장치를 통해서 개인의 바이탈 사인(vital sign)을 측정한 생체 정보 데이터를 수집하는 기술들이 존재한다. 바이탈 사인은 인간이 생명을 유지하기 위한 요소들을 신호의 형태로 보여주는 생체 신호를 지칭한다. 여러 국제 의료표준은 심박수(심장 박동수, Heart Rate), 호흡수(Respiratory Rate), 혈압(Blood Pressure), 및 체온(Body Temperature)을 필수적인 바이탈 사인으로 규정한다. 바이탈 사인과 같은 인체와 관련된 정보를 포함하는 의료 빅데이터를 진료 과정에 활용하는 기술들이 제안되었다.In order to manage health and prevent diseases, there are technologies that collect biometric data by measuring an individual's vital signs through electronic devices. Vital signs refer to biological signals that show elements for maintaining life in the form of signals. Several international medical standards define heart rate (heart rate), respiratory rate, blood pressure, and body temperature as essential vital signs. Technologies that utilize medical big data including information related to the human body such as vital signs have been proposed.

심박수는 단위 시간당 심장 박동수를 의미한다. 예를 들어, 심박수 값은 분당 맥박의 수로 표현될 수 있다. 심박수는 신체적인 활동에 의해 발생하는 몸의 산소 흡수나 이산화탄소 배출의 필요에 따라 변화된다. 심박수는 신체 중에서 맥박이 감지되는 위치에서 측정될 수 있다. 즉, 심박수는 심장 박동에 의해 혈액이 흐르게 되는 동맥이 위치한 곳에서 측정될 수 있다. 예를 들어, 심박수는 경동맥이 위치한 목, 고동맥이 위치한 사타구니, 또는 손목에서 측정될 수 있다. 정교한 심박수 측정을 위하여 심전도(electrocardiogram, ECG)가 이용될 수 있다. 지속적인 심박수 모니터링은 질환의 진단과 치료에 이용될 수 있다.Heart rate refers to the heart rate per unit time. For example, the heart rate value can be expressed as the number of pulses per minute. The heart rate changes according to the body's need for oxygen absorption or carbon dioxide excretion caused by physical activity. The heart rate may be measured at a position in the body where the pulse rate is sensed. That is, the heart rate may be measured at a location where an artery through which blood flows is located by the heart rate. For example, the heart rate may be measured in the neck where the carotid artery is located, the groin where the high artery is located, or the wrist. For precise heart rate measurement, an electrocardiogram (ECG) can be used. Continuous heart rate monitoring can be used to diagnose and treat disease.

또는, 심박수 측정을 위하여 광용적맥파(Photoplethysmograph, PPG)가 이용될 수 있다. 광용적맥파 신호를 이용하여 혈류의 속도, 혈액 중 산소 포화도, 또는 심박수와 같은 생체 정보가 획득될 수 있다. 광용적맥파는 광을 전하로 변환시키는 광전변환소자를 이용하여 감지될 수 있다. 포토 다이오드를 포함하는 광 센서가 광용적맥파를 감지하는 광 센서로서 이용될 수 있다. 렌즈를 통해서 광이 광전변환소자에 도달하면 광이 전하로 변환된다. 지정된 대역의 빛을 신체에 조사하고, 신체에서 반사되거나 신체를 투과한 빛을 검출한 신호에 근거하여 광용적맥파를 얻을 수 있다.Alternatively, photoplethysmograph (PPG) may be used to measure heart rate. Biometric information such as blood flow rate, blood oxygen saturation, or heart rate may be obtained by using the optical volume pulse wave signal. The photovoltaic pulse wave may be detected using a photoelectric conversion device that converts light into electric charge. An optical sensor including a photodiode may be used as an optical sensor for detecting a volumetric pulse wave. When light reaches the photoelectric conversion device through the lens, the light is converted into electric charges. Light in a designated band is irradiated to the body, and a light volume pulse wave can be obtained based on a signal that detects light reflected from the body or transmitted through the body.

또는, 도플러 레이더를 이용한 비접촉식 생체 정보 측정 방법 및 장치가 있다. 도플러 레이더를 이용한 생체 정보 측정 방법은 도플러 레이더가 지정된 주파수 신호를 방사하고, 장기의 움직임에 따라서 반사된 신호를 측정하는 방식이다. 측정된 신호가 고주파 신호로 변환되어 디지털 신호 처리기로 전달되면, 디지털 신호 처리기가 주파수 영역 분석을 수행하는 디지털 신호 처리를 이용하여 고주파 신호로부터 사용자의 심박수 및 호흡률을 산출할 수 있다.Alternatively, there is a method and apparatus for measuring non-contact biometric information using a Doppler radar. In a method of measuring biometric information using a Doppler radar, a Doppler radar radiates a designated frequency signal and measures a reflected signal according to the movement of an organ. When the measured signal is converted into a high-frequency signal and transmitted to a digital signal processor, the digital signal processor can calculate the user's heart rate and respiration rate from the high-frequency signal using digital signal processing that performs frequency domain analysis.

방대하고 다양한 의료 빅데이터 중에서 진료과정에서 활용할 유의미한 데이터를 선별하기 어려운 문제점이 있다. 의료 데이터의 복잡성이 심화되어 기존의 접근 방식에 의해서는 효과적인 데이터 활용이 어렵다. 동일한 질환을 가진 환자인 경우에도 개인의 건강상태, 생활습관, 유전체 정보에 따라 증상이 다르므로 보편적 의료는 효과가 없거나 부작용이 발생할 수 있다. 따라서 개인차를 고려한 일상 생활에서의 건강관리 모니터링 및 관리 시스템이 필요하다.There is a problem in which it is difficult to select meaningful data to be used in the treatment process among the vast and diverse medical big data. Due to the increasing complexity of medical data, it is difficult to utilize the data effectively by the existing approach. Even for patients with the same disease, symptoms are different depending on the individual's health status, lifestyle, and genomic information, so universal medical care may not be effective or may cause side effects. Therefore, there is a need for a health management monitoring and management system in daily life considering individual differences.

심혈관계 질환, 예를 들어, 부정맥 중 빈맥의 경우 운동 중에 특이 심박이 발생하는 빈도가 높다. 운동 중인 사용자의 심박수를 측정하기 위해서는 운동 부하 검사 시에 사용자가 접촉식 장비를 몸에 부착하고 테스트를 하거나, 사용자가 일상 생활에서 장기간(예를 들어, 3일간) 신체에 장비를 부착한 상태에서 심박을 측정해야 한다. 이 경우, 사용자에게 번거로움을 초래하거나 일상 생활에 불편함을 주게 된다.Cardiovascular diseases, such as tachycardia among arrhythmia, have a high frequency of occurrence of a specific heartbeat during exercise. In order to measure the heart rate of a user who is exercising, the user attaches contact equipment to the body during exercise load test and performs a test, or the user attaches the equipment to the body for a long period of time (e.g., 3 days) in daily life. You need to measure your heart rate. In this case, it causes inconvenience to the user or makes daily life uncomfortable.

비접촉식으로 심박수를 측정하기 위한 방법의 하나로서, 카메라를 통해서 수집된 이미지 시퀀스로부터 사용자의 얼굴을 인식하고 추적하여, 전자 장치가 얼굴의 같은 부위에 대한 픽셀 값의 변화로부터 사용자의 심박수를 측정할 수 있다. 안면을 인식하기 위한 특징점으로 영상에서 두 눈을 식별하는 방법이 이용될 수 있다. 전자 장치는 식별된 두 눈을 기준으로 영상 내에서 안면이 촬영된 영역을 인식할 수 있다. 이에 기초하여 안면을 인식하고 심박수를 측정하는 경우, 사용자가 카메라를 응시하고 있어야 전자 장치가 안면을 인식하고 정상적으로 심박을 측정할 수 있다. 얼굴의 특징점 중 일부가 유실되면 각 특징점들 간의 연관성을 얻을 수 없어 전자 장치가 안면을 인식하지 못할 수 있다. 또한 사용자가 운동 중인 동안 심박수를 측정하는 경우 사용자의 머리가 움직이므로 안면 인식률이 낮아지고 정상적인 심박수가 측정되지 않아 정상적인 심박수가 사용자에게 제공되지 않는 문제점이 있다.As one of the methods for measuring heart rate in a non-contact manner, by recognizing and tracking the user's face from the image sequence collected through the camera, the electronic device can measure the user's heart rate from the change in pixel values for the same part of the face. have. As a feature point for recognizing a face, a method of identifying two eyes in an image may be used. The electronic device may recognize a region in which a face is photographed in an image based on the identified two eyes. In the case of recognizing the face and measuring the heart rate based on this, the electronic device can recognize the face and measure the heart rate normally only when the user is staring at the camera. If some of the facial feature points are lost, the electronic device may not be able to recognize the face because a correlation between the feature points cannot be obtained. In addition, when the user measures the heart rate while exercising, the user's head moves, so the facial recognition rate is lowered, and the normal heart rate is not measured, so that the normal heart rate is not provided to the user.

또한, 도플러 레이더를 이용하여 생체 정보를 측정하는 방법은 장기의 움직임에 따른 반사파를 이용하는 것이므로 움직이는 신체에 대한 심박수 측정 방법으로 적합하지 않다.In addition, a method of measuring biometric information using a Doppler radar is not suitable as a method of measuring a heart rate for a moving body because it uses reflected waves according to movement of an organ.

이에 따라 운동 중인 사용자의 심박수를 정상적으로 제공하기 위해 안면 인식률을 높이기 위한 기술이 필요하다. 또한, 안면이 인식되지 않은 경우에도 심박수에 대한 정보를 보정하여 제공하기 위한 기술이 필요하다.Accordingly, there is a need for a technology to increase the facial recognition rate in order to normally provide the heart rate of a user who is exercising. In addition, there is a need for a technology for correcting and providing information on heart rate even when the face is not recognized.

또한, 정지 상태에서 측정된 생체 정보만 아니라 운동 중에 측정된 생체 정보를 이용하여 사용자에게 보다 적합한 운동 관련 정보를 제공하기 위한 방법 및 장치가 필요하다.In addition, there is a need for a method and apparatus for providing more suitable exercise-related information to a user using biometric information measured during exercise as well as biometric information measured in a stationary state.

본 문서에서 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in this document are not limited to the technical problems mentioned above, and other technical problems that are not mentioned can be clearly understood by those of ordinary skill in the technical field to which the present invention belongs from the following description. There will be.

일 실시 예에 따른 전자 장치는 메모리 및 메모리와 연결된 프로세서를 포함할 수 있다. 일 실시 예에 따르면, 프로세서는, 카메라를 이용하여 촬영된 영상 데이터를 획득하고, 영상 데이터를 분석하여 심박수 값을 산출하며, 심박수 값이 정상적으로 획득되었는지 여부를 판단하고, 심박수 값이 정상적으로 획득되지 않은 경우, 심박수 값이 정상적으로 획득되지 않은 구간에 대한 보정 값을 결정하고, 보정 값을 포함하는 생체 정보 데이터를 메모리에 저장하도록 구성될 수 있다.An electronic device according to an embodiment may include a memory and a processor connected to the memory. According to an embodiment, the processor acquires image data captured using a camera, analyzes the image data to calculate a heart rate value, determines whether the heart rate value is normally acquired, and the heart rate value is not normally acquired. In this case, it may be configured to determine a correction value for a section in which the heart rate value is not normally obtained, and to store biometric information data including the correction value in a memory.

전자 장치를 동작하는 방법은, 카메라를 이용하여 촬영된 영상 데이터를 획득하는 동작, 영상 데이터를 분석하여 심박수 값을 산출하는 동작, 심박수 값이 정상적으로 획득되었는지 여부를 판단하는 동작, 심박수 값이 정상적으로 획득되지 않은 경우, 심박수 값이 정상적으로 획득되지 않은 구간에 대한 보정 값을 결정하는 동작 및 보정 값을 포함하는 생체 정보 데이터를 생성하는 동작을 포함할 수 있다.The method of operating the electronic device includes an operation of acquiring image data captured using a camera, an operation of calculating a heart rate value by analyzing the image data, an operation of determining whether the heart rate value is normally obtained, and an operation of obtaining a heart rate value normally. If not, an operation of determining a correction value for a section in which the heart rate value is not normally obtained and an operation of generating biometric information data including the correction value may be included.

일 실시 예에 따른 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록 매체는, 실행 시에, 카메라를 이용하여 촬영된 영상 데이터를 획득하는 동작, 영상 데이터를 분석하여 심박수 값을 산출하는 동작, 상기 심박수 값이 정상적으로 획득되었는지 여부를 판단하는 동작, 심박수 값이 정상적으로 획득되지 않은 경우, 심박수 값이 정상적으로 획득되지 않은 구간에 대한 보정 값을 결정하는 동작 및 보정 값을 포함하는 생체 정보 데이터를 생성하는 동작을 수행하도록 하는 프로그램을 기록한 것일 수 있다.A computer-readable recording medium recording a program according to an embodiment includes an operation of acquiring image data captured using a camera when executed, an operation of calculating a heart rate value by analyzing image data, and the heart rate value To perform an operation of determining whether or not the heart rate value is normally acquired, an operation of determining a correction value for a section in which the heart rate value is not normally obtained, and an operation of generating biometric information data including the correction value when the heart rate value is not normally obtained It may be a record of a program that does.

일 실시 예에 따른 전자 장치는 부정맥 환자 심박 데이터를 저장하는 메모리 및 메모리와 연결된 프로세서를 포함할 수 있다. 프로세서는, 심박수 값을 포함하는 생체 정보 데이터를 획득하고, 생체 정보 데이터에 심박수 값이 포함되어 있지 않거나 정상적으로 산출된 값이 아닌 구간이 존재하는 경우, 구간의 값을 보정 값으로 보정하고, 보정된 생체 정보 데이터와 부정맥 환자 심박 데이터를 비교하고, 비교 결과에 기초하여, 보정된 생체 정보 데이터가 부정맥 환자 심박 데이터에 포함된 이상 패턴을 포함하는 횟수가 임계값 이상인 경우, 이상 심박 패턴에 대한 정보를 출력하도록 구성될 수 있다.An electronic device according to an embodiment may include a memory for storing heart rate data of an arrhythmia patient and a processor connected to the memory. The processor acquires biometric information data including a heart rate value, and if the biometric information data does not contain a heart rate value or there is a section other than the normally calculated value, the value of the section is corrected to a correction value, and the corrected If the biometric information data and the heart rate data of the arrhythmia patient are compared, and the number of times the corrected biometric information data includes the abnormal pattern included in the heart rate data of the arrhythmia patient is greater than or equal to the threshold value, information on the abnormal heart rate pattern is It can be configured to output.

본 문서에서 개시되는 실시 예에 따르면, 영상으로부터 심박수를 측정하기 위한 안면 인식률을 높일 수 있는 방법 및 장치가 제공될 수 있다. According to an embodiment disclosed in the present document, a method and apparatus capable of increasing a facial recognition rate for measuring a heart rate from an image may be provided.

본 문서에서 개시되는 실시 예에 따르면, 영상으로부터 사용자의 안면이 정상적으로 인식되지 않은 경우에도 영상으로부터 획득된 정보에 기초하여 사용자에게 심박수 정보를 제공할 수 있는 방법 및 장치가 제공될 수 있다. 따라서, 사용자가 움직이는 경우에도 신체에 장치를 부착하거나 착용하지 않고도 정상적인 심박수 정보를 사용자에게 제공할 수 있는 방법 및 장치가 제공될 수 있다. According to an embodiment disclosed in this document, a method and apparatus capable of providing heart rate information to a user based on information acquired from an image may be provided even when a user's face is not normally recognized from an image. Accordingly, even when the user moves, a method and apparatus capable of providing normal heart rate information to the user without attaching or wearing the device to the body can be provided.

운동 숙련도에 따라서 사용자가 동일한 운동 강도를 가지는 운동을 하더라도 근육의 피로도 등이 다르게 발생한다. 본 문서에서 개시되는 실시 예에 따르면, 사용자의 생체 신호에 기반하여 적절한 운동 강도를 제시하여 사용자가 운동 목표치를 용이하게 달성할 수 있도록 유도할 수 있는 방법 및 장치가 제공될 수 있다.Depending on the exercise skill level, even if the user performs an exercise with the same exercise intensity, muscle fatigue and the like occur differently. According to an embodiment disclosed in this document, a method and an apparatus capable of inducing a user to easily achieve an exercise target value by presenting an appropriate exercise intensity based on a user's bio-signal may be provided.

본 개시에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects obtainable in the present disclosure are not limited to the effects mentioned above, and other effects not mentioned may be clearly understood by those of ordinary skill in the technical field to which the present disclosure belongs from the following description. will be.

도 1은, 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블럭도이다.
도 2는 다양한 실시예에 따른 프로그램을 예시하는 블록도이다.
도 3은 일 실시 예에 따른, 전자 장치의 구성을 나타낸다.
도 4는 일 실시 예에 따른, 전자 장치가 생체 정보 데이터를 생성하는 프로세스를 도시한 순서도이다.
도 5는 일 실시 예에 따른, 전자 장치의 예시를 나타낸다.
도 6은 일 실시 예에 따른, 생체 정보 데이터를 획득하는 시스템의 예시를 나타낸다.
도 7은 일 실시 예에 따른, 생체 정보 데이터를 획득하는 전자 장치의 다른 예시를 나타낸다.
도 8은 일 실시 예에 따른, 전자 장치가 심박수 값을 산출하는 프로세스를 도시한 순서도이다.
도 9는 일 실시 예에 따른, 전자 장치가 심박수 값을 산출하기 위한 안면 영역을 인식하는 방법을 개념적으로 설명하기 위한 도면이다.
도 10은 일 실시 예에 따른, 전자 장치가 심박수 값이 정상적으로 산출되었는지 판단하는 프로세스를 도시한 순서도이다.
도 11은 일 실시 예에 따른, 전자 장치가 심박수 값이 정상적으로 산출되지 않은 경우에 보정 값을 결정하는 프로세스를 도시한 순서도이다.
도 12는 일 실시 예에 따른 전자 장치가 후보 데이터를 이용하여 심박수 값을 보정하는 동작을 개념적으로 나타낸다.
도 13은 일 실시 예에 따른, 전자 장치가 정상적인 심박수 값이 산출된 경우에 보정된 생체 정보 데이터를 추가적으로 보정하는 프로세스를 도시한 순서도이다.
도 14는 일 실시 예에 따른 전자 장치가 보정된 값을 재보정하는 동작을 개념적으로 나타낸다.
도 15는 일 실시 예에 따른 전자 장치가 특징점에 기초하여 후보 데이터를 생성하고 생체 정보 데이터를 생성하는 프로세스를 도시한 순서도이다.
도 16은 일 실시 예에 따른 전자 장치에 의해 디스플레이되는 화면의 예시를 나타낸다.
도 17은 일 실시 예에 따른 전자 장치가 가이드 영상 콘텐트와 함께 생체 정보 데이터를 제공하기 위한 프로세스를 도시한 순서도이다.
도 18은 일 실시 예에 따른 전자 장치가 생체 정보 데이터에 기반하여 추천 운동 강도 정보를 제공하는 프로세스를 도시한 순서도이다.
도 19는 일 실시 예에 따른 전자 장치가 생체 정보 데이터에 기반하여 추천 운동 정보를 제공하는 프로세스를 도시한 순서도이다.
도 20은 일 실시 예에 따른 전자 장치를 모듈 단위로 나타낸 도면이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments.
2 is a block diagram illustrating a program according to various embodiments.
3 is a diagram illustrating a configuration of an electronic device according to an exemplary embodiment.
4 is a flowchart illustrating a process of generating biometric information data by an electronic device according to an exemplary embodiment.
5 illustrates an example of an electronic device according to an embodiment.
6 illustrates an example of a system for acquiring biometric information data, according to an embodiment.
7 illustrates another example of an electronic device for obtaining biometric information data, according to an exemplary embodiment.
8 is a flowchart illustrating a process of calculating a heart rate value by an electronic device according to an exemplary embodiment.
9 is a diagram conceptually illustrating a method of recognizing a face area for calculating a heart rate value by an electronic device, according to an exemplary embodiment.
10 is a flowchart illustrating a process of determining whether a heart rate value is normally calculated by an electronic device, according to an exemplary embodiment.
11 is a flowchart illustrating a process of determining a correction value when a heart rate value is not normally calculated by an electronic device, according to an exemplary embodiment.
12 conceptually illustrates an operation of correcting a heart rate value by using candidate data by an electronic device according to an exemplary embodiment.
13 is a flowchart illustrating a process of additionally correcting the corrected biometric information data when a normal heart rate value is calculated by the electronic device, according to an exemplary embodiment.
14 conceptually illustrates an operation of recalibrating a corrected value by an electronic device according to an exemplary embodiment.
15 is a flowchart illustrating a process in which an electronic device generates candidate data and biometric information data based on a feature point, according to an exemplary embodiment.
16 illustrates an example of a screen displayed by an electronic device according to an embodiment.
17 is a flowchart illustrating a process for an electronic device to provide biometric information data together with guide image content, according to an exemplary embodiment.
18 is a flowchart illustrating a process of providing recommended exercise intensity information based on biometric information data by an electronic device according to an exemplary embodiment.
19 is a flowchart illustrating a process of providing recommended exercise information based on biometric information data by an electronic device according to an exemplary embodiment.
20 is a diagram illustrating an electronic device in a module unit according to an exemplary embodiment.

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블럭도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(160) 또는 카메라 모듈(180))가 생략되거나, 하나 이상의 다른 구성 요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(176)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(160)(예: 디스플레이)에 임베디드된 채 구현될 수 있다1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments. Referring to FIG. 1, in a network environment 100, the electronic device 101 communicates with the electronic device 102 through a first network 198 (for example, a short-range wireless communication network), or a second network 199 It is possible to communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108. According to an embodiment, the electronic device 101 includes a processor 120, a memory 130, an input device 150, an audio output device 155, a display device 160, an audio module 170, and a sensor module ( 176, interface 177, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196, or antenna module 197 ) Can be included. In some embodiments, at least one of these components (eg, the display device 160 or the camera module 180) may be omitted or one or more other components may be added to the electronic device 101. In some embodiments, some of these components may be implemented as one integrated circuit. For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illuminance sensor) may be implemented while being embedded in the display device 160 (eg, a display).

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)을 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 로드하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서), 및 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 추가적으로 또는 대체적으로, 보조 프로세서(123)은 메인 프로세서(121)보다 저전력을 사용하거나, 또는 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, a program 140) to implement at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120. It can be controlled and can perform various data processing or operations. According to an embodiment, as at least a part of data processing or operation, the processor 120 may transfer commands or data received from other components (eg, the sensor module 176 or the communication module 190) to the volatile memory 132. It is loaded into, processes commands or data stored in the volatile memory 132, and the result data may be stored in the nonvolatile memory 134. According to an embodiment, the processor 120 includes a main processor 121 (eg, a central processing unit or an application processor), and a secondary processor 123 (eg, a graphic processing unit, an image signal processor) that can be operated independently or together. , A sensor hub processor, or a communication processor). Additionally or alternatively, the coprocessor 123 may be set to use lower power than the main processor 121 or to be specialized for a designated function. The secondary processor 123 may be implemented separately from the main processor 121 or as a part thereof.

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성 요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. The co-processor 123 is, for example, in place of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, executing an application). ) While in the state, together with the main processor 121, at least one of the components of the electronic device 101 (for example, the display device 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the functions or states associated with it. According to an embodiment, the coprocessor 123 (eg, an image signal processor or a communication processor) may be implemented as a part of other functionally related components (eg, the camera module 180 or the communication module 190). have.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176 ). The data may include, for example, software (eg, the program 140) and input data or output data for commands related thereto. The memory 130 may include a volatile memory 132 or a nonvolatile memory 134.

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130, and may include, for example, an operating system 142, middleware 144, or an application 146.

입력 장치(150)는, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 장치(150)은, 예를 들면, 마이크, 마우스, 키보드, 또는 디지털 펜(예:스타일러스 펜)을 포함할 수 있다. The input device 150 may receive a command or data to be used for a component of the electronic device 101 (eg, the processor 120) from outside (eg, a user) of the electronic device 101. The input device 150 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (eg, a stylus pen).

음향 출력 장치(155)는 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 장치(155)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output device 155 may output an sound signal to the outside of the electronic device 101. The sound output device 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback, and the receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part of the speaker.

표시 장치(160)는 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 표시 장치(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 표시 장치(160)는 터치를 감지하도록 설정된 터치 회로(touch circuitry), 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로(예: 압력 센서)를 포함할 수 있다. The display device 160 may visually provide information to the outside of the electronic device 101 (eg, a user). The display device 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device. According to an embodiment, the display device 160 may include a touch circuitry set to sense a touch, or a sensor circuit (eg, a pressure sensor) set to measure the strength of a force generated by the touch. have.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 장치(150) 를 통해 소리를 획득하거나, 음향 출력 장치(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102)) (예: 스피커 또는 헤드폰))를 통해 소리를 출력할 수 있다.The audio module 170 may convert sound into an electrical signal, or conversely, may convert an electrical signal into sound. According to an embodiment, the audio module 170 acquires sound through the input device 150, the sound output device 155, or an external electronic device (eg: Sound can be output through the electronic device 102) (for example, a speaker or headphones).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101, or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do. According to an embodiment, the sensor module 176 is, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.

인터페이스(177)는 전자 장치(101)이 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more specified protocols that may be used for the electronic device 101 to connect directly or wirelessly with an external electronic device (eg, the electronic device 102 ). According to an embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)은, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102). According to an embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that a user can perceive through tactile or motor sensations. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture a still image and a video. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101. According to an embodiment, the power management module 188 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성 요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101. According to an embodiment, the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108))간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성 요소(예: 단일 칩)으로 통합되거나, 또는 서로 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 및 인증할 수 있다. The communication module 190 includes a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It is possible to support establishment and communication through the established communication channel. The communication module 190 operates independently of the processor 120 (eg, an application processor) and may include one or more communication processors supporting direct (eg, wired) communication or wireless communication. According to an embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg : A local area network (LAN) communication module, or a power line communication module) may be included. Among these communication modules, a corresponding communication module is a first network 198 (for example, a short-range communication network such as Bluetooth, WiFi direct or IrDA (infrared data association)) or a second network 199 (for example, a cellular network, the Internet, or It can communicate with external electronic devices through a computer network (for example, a telecommunication network such as a LAN or WAN). These various types of communication modules may be integrated into a single component (eg, a single chip), or may be implemented as a plurality of separate components (eg, multiple chips). The wireless communication module 192 uses subscriber information stored in the subscriber identification module 196 (eg, International Mobile Subscriber Identifier (IMSI)) in a communication network such as the first network 198 or the second network 199. The electronic device 101 can be checked and authenticated.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 하나의 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC)이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.The antenna module 197 may transmit a signal or power to the outside (eg, an external electronic device) or receive from the outside. According to an embodiment, the antenna module may include one antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 197 may include a plurality of antennas. In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is, for example, provided by the communication module 190 from the plurality of antennas. Can be chosen. The signal or power may be transmitted or received between the communication module 190 and an external electronic device through the at least one selected antenna. According to some embodiments, other components (eg, RFIC) other than the radiator may be additionally formed as part of the antenna module 197.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))를 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method (e.g., a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI))) between peripheral devices and a signal ( E.g. commands or data) can be exchanged with each other.

일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 전자 장치(102, 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부 전자 장치들(102, 104, or 108) 중 하나 이상의 외부 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. According to an embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199. Each of the electronic devices 102 and 104 may be a device of the same or different type as the electronic device 101. According to an embodiment, all or part of the operations executed by the electronic device 101 may be executed by one or more of the external electronic devices 102, 104, or 108. For example, when the electronic device 101 needs to perform a function or service automatically or in response to a request from a user or another device, the electronic device 101 In addition or in addition, it is possible to request one or more external electronic devices to perform the function or at least part of the service. One or more external electronic devices receiving the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101. The electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this, for example, cloud computing, distributed computing, or client-server computing technology may be used.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.An electronic device according to various embodiments disclosed in this document may be a device of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. The electronic device according to the embodiment of the present document is not limited to the above-described devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나",“A 또는 B 중 적어도 하나,”"A, B 또는 C," "A, B 및 C 중 적어도 하나,”및 “A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, “기능적으로” 또는 “통신적으로”라는 용어와 함께 또는 이런 용어 없이, “커플드” 또는 “커넥티드”라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of the present document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various modifications, equivalents, or substitutes of the corresponding embodiment. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the above items unless clearly indicated otherwise in a related context. In this document, “A or B”, “at least one of A and B”, “at least one of A or B,” “A, B or C,” “at least one of A, B and C,” and “A Each of the phrases such as "at least one of, B, or C" may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish the component from other Order) is not limited. Some (eg, first) component is referred to as “coupled” or “connected” to another (eg, second) component, with or without the terms “functionally” or “communicatively”. When mentioned, it means that any of the above components may be connected to the other components directly (eg by wire), wirelessly, or via a third component.

본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic blocks, parts, or circuits. The module may be an integrally configured component or a minimum unit of the component or a part thereof that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document include one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) that can be read by a machine (eg, electronic device 101). It may be implemented as software (for example, the program 140) including them. For example, the processor (eg, the processor 120) of the device (eg, the electronic device 101) may call and execute at least one command among one or more commands stored from a storage medium. This enables the device to be operated to perform at least one function according to the at least one command invoked. The one or more instructions may include code generated by a compiler or code executable by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here,'non-transitory' only means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic waves), and this term refers to the case where data is semi-permanently stored in the storage medium. It does not distinguish between temporary storage cases.

일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두개의 사용자 장치들(예: 스마트폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to an embodiment, a method according to various embodiments disclosed in the present document may be provided by being included in a computer program product. Computer program products can be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play Store™) or two user devices (e.g., compact disc read only memory (CD-ROM)). It can be distributed (e.g., downloaded or uploaded) directly between, e.g. smartphones). In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily generated in a storage medium that can be read by a device such as a server of a manufacturer, a server of an application store, or a memory of a relay server.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다. According to various embodiments, each component (eg, module or program) of the above-described components may include a singular number or a plurality of entities. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components in the same or similar to that performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component may be sequentially, parallel, repeatedly, or heuristically executed, or one or more of the operations may be executed in a different order or omitted. Or one or more other actions may be added.

도 2는 다양한 실시예에 따른 프로그램(140)을 예시하는 블록도(200)이다. 일실시예에 따르면, 프로그램(140)은 전자 장치(101)의 하나 이상의 리소스들을 제어하기 위한 운영 체제(142), 미들웨어(144), 또는 상기 운영 체제(142)에서 실행 가능한 어플리케이션(146)을 포함할 수 있다. 운영 체제(142)는, 예를 들면, Android™, iOS™, Windows™, Symbian™, Tizen™, 또는 Bada™를 포함할 수 있다. 프로그램(140) 중 적어도 일부 프로그램은, 예를 들면, 제조 시에 전자 장치(101)에 프리로드되거나, 또는 사용자에 의해 사용 시 외부 전자 장치(예: 전자 장치(102 또는 104), 또는 서버(108))로부터 다운로드되거나 갱신될 수 있다.2 is a block diagram 200 illustrating a program 140 according to various embodiments. According to an embodiment, the program 140 includes an operating system 142 for controlling one or more resources of the electronic device 101, middleware 144, or an application 146 executable in the operating system 142. Can include. The operating system 142 may include, for example, Android™, iOS™, Windows™, Symbian™, Tizen™, or Bada™. At least some of the programs 140 are, for example, preloaded on the electronic device 101 at the time of manufacture, or when used by a user, an external electronic device (eg, electronic device 102 or 104), or a server ( 108)).

운영 체제(142)는 전자 장치(101)의 하나 이상의 시스템 리소스들(예: 프로세스, 메모리, 또는 전원)의 관리(예: 할당 또는 회수)를 제어할 수 있다. 운영 체제(142)는, 추가적으로 또는 대체적으로, 전자 장치(101)의 다른 하드웨어 디바이스, 예를 들면, 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 구동하기 위한 하나 이상의 드라이버 프로그램들을 포함할 수 있다.The operating system 142 may control management (eg, allocation or retrieval) of one or more system resources (eg, process, memory, or power) of the electronic device 101. Operating system 142, additionally or alternatively, other hardware devices of the electronic device 101, for example, the input device 150, the sound output device 155, the display device 160, the audio module 170 , Sensor module 176, interface 177, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196, or One or more driver programs for driving the antenna module 197 may be included.

미들웨어(144)는 전자 장치(101)의 하나 이상의 리소스들로부터 제공되는 기능 또는 정보가 어플리케이션(146)에 의해 사용될 수 있도록 다양한 기능들을 어플리케이션(146)으로 제공할 수 있다. 미들웨어(144)는, 예를 들면, 어플리케이션 매니저(201), 윈도우 매니저(203), 멀티미디어 매니저(205), 리소스 매니저(207), 파워 매니저(209), 데이터베이스 매니저(211), 패키지 매니저(213), 커넥티비티 매니저(215), 노티피케이션 매니저(217), 로케이션 매니저(219), 그래픽 매니저(221), 시큐리티 매니저(223), 통화 매니저(225), 또는 음성 인식 매니저(227)를 포함할 수 있다. The middleware 144 may provide various functions to the application 146 so that a function or information provided from one or more resources of the electronic device 101 can be used by the application 146. The middleware 144 is, for example, an application manager 201, a window manager 203, a multimedia manager 205, a resource manager 207, a power manager 209, a database manager 211, and a package manager 213. ), a connectivity manager 215, a notification manager 217, a location manager 219, a graphic manager 221, a security manager 223, a call manager 225, or a voice recognition manager 227. I can.

어플리케이션 매니저(201)는, 예를 들면, 어플리케이션(146)의 생명 주기를 관리할 수 있다. 윈도우 매니저(203)는, 예를 들면, 화면에서 사용되는 하나 이상의 GUI 자원들을 관리할 수 있다. 멀티미디어 매니저(205)는, 예를 들면, 미디어 파일들의 재생에 필요한 하나 이상의 포맷들을 파악하고, 그 중 선택된 해당하는 포맷에 맞는 코덱을 이용하여 상기 미디어 파일들 중 해당하는 미디어 파일의 인코딩 또는 디코딩을 수행할 수 있다. 리소스 매니저(207)는, 예를 들면, 어플리케이션(146)의 소스 코드 또는 메모리(130)의 메모리의 공간을 관리할 수 있다. 파워 매니저(209)는, 예를 들면, 배터리(189)의 용량, 온도 또는 전원을 관리하고, 이 중 해당 정보를 이용하여 전자 장치(101)의 동작에 필요한 관련 정보를 결정 또는 제공할 수 있다. 일실시예에 따르면, 파워 매니저(209)는 전자 장치(101)의 바이오스(BIOS: basic input/output system)(미도시)와 연동할 수 있다.The application manager 201 may manage the life cycle of the application 146, for example. The window manager 203 may manage one or more GUI resources used on a screen, for example. The multimedia manager 205, for example, identifies one or more formats required for playback of media files, and performs encoding or decoding of a corresponding media file among the media files by using a codec suitable for the selected corresponding format. You can do it. The resource manager 207 may manage the source code of the application 146 or a memory space of the memory 130, for example. The power manager 209 manages the capacity, temperature, or power of the battery 189, for example, and may determine or provide related information necessary for the operation of the electronic device 101 by using the corresponding information. . According to an embodiment, the power manager 209 may interwork with a basic input/output system (BIOS) (not shown) of the electronic device 101.

데이터베이스 매니저(211)는, 예를 들면, 어플리케이션(146)에 의해 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(213)는, 예를 들면, 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. 커넥티비티 매니저(215)는, 예를 들면, 전자 장치(101)와 외부 전자 장치 간의 무선 연결 또는 직접 연결을 관리할 수 있다. 노티피케이션 매니저(217)는, 예를 들면, 지정된 이벤트(예: 착신 통화, 메시지, 또는 알람)의 발생을 사용자에게 알리기 위한 기능을 제공할 수 있다. 로케이션 매니저(219)는, 예를 들면, 전자 장치(101)의 위치 정보를 관리할 수 있다. 그래픽 매니저(221)는, 예를 들면, 사용자에게 제공될 하나 이상의 그래픽 효과들 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다. The database manager 211 may create, search, or change a database to be used by the application 146, for example. The package manager 213 may manage installation or update of an application distributed in the form of, for example, a package file. The connectivity manager 215 may manage, for example, a wireless connection or a direct connection between the electronic device 101 and an external electronic device. The notification manager 217 may provide a function for notifying the user of the occurrence of a designated event (eg, incoming call, message, or alarm), for example. The location manager 219 may manage location information of the electronic device 101, for example. The graphic manager 221 may manage, for example, one or more graphic effects to be provided to a user or a user interface related thereto.

시큐리티 매니저(223)는, 예를 들면, 시스템 보안 또는 사용자 인증을 제공할 수 있다. 통화(telephony) 매니저(225)는, 예를 들면, 전자 장치(101)에 의해 제공되는 음성 통화 기능 또는 영상 통화 기능을 관리할 수 있다. 음성 인식 매니저(227)는, 예를 들면, 사용자의 음성 데이터를 서버(108)로 전송하고, 그 음성 데이터에 적어도 일부 기반하여 전자 장치(101)에서 수행될 기능에 대응하는 명령어(command), 또는 그 음성 데이터에 적어도 일부 기반하여 변환된 문자 데이터를 서버(108)로부터 수신할 수 있다. 일 실시예에 따르면, 미들웨어(244)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다. 일 실시예에 따르면, 미들웨어(144)의 적어도 일부는 운영 체제(142)의 일부로 포함되거나, 또는 운영 체제(142)와는 다른 별도의 소프트웨어로 구현될 수 있다.The security manager 223 may provide, for example, system security or user authentication. The telephony manager 225 may manage, for example, a voice call function or a video call function provided by the electronic device 101. The voice recognition manager 227 transmits, for example, a user's voice data to the server 108, and a command corresponding to a function to be performed in the electronic device 101 based at least in part on the voice data, Alternatively, text data converted based at least in part on the voice data may be received from the server 108. According to an embodiment, the middleware 244 may dynamically delete some of the existing components or add new components. According to an embodiment, at least a part of the middleware 144 may be included as a part of the operating system 142 or implemented as separate software different from the operating system 142.

어플리케이션(146)은, 예를 들면, 홈(251), 다이얼러(253), SMS/MMS(255), IM(instant message)(257), 브라우저(259), 카메라(261), 알람(263), 컨택트(265), 음성 인식(267), 이메일(269), 달력(271), 미디어 플레이어(273), 앨범(275), 와치(277), 헬스(279)(예: 운동량 또는 혈당과 같은 생체 정보를 측정), 또는 환경 정보(281)(예: 기압, 습도, 또는 온도 정보 측정) 어플리케이션을 포함할 수 있다. 일실시예에 따르면, 어플리케이션(146)은 전자 장치(101)와 외부 전자 장치 사이의 정보 교환을 지원할 수 있는 정보 교환 어플리케이션(미도시)을 더 포함할 수 있다. 정보 교환 어플리케이션은, 예를 들면, 외부 전자 장치로 지정된 정보 (예: 통화, 메시지, 또는 알람)를 전달하도록 설정된 노티피케이션 릴레이 어플리케이션, 또는 외부 전자 장치를 관리하도록 설정된 장치 관리 어플리케이션을 포함할 수 있다. 노티피케이션 릴레이 어플리케이션은, 예를 들면, 전자 장치(101)의 다른 어플리케이션(예: 이메일 어플리케이션(269))에서 발생된 지정된 이벤트(예: 메일 수신)에 대응하는 알림 정보를 외부 전자 장치로 전달할 수 있다. 추가적으로 또는 대체적으로, 노티피케이션 릴레이 어플리케이션은 외부 전자 장치로부터 알림 정보를 수신하여 전자 장치(101)의 사용자에게 제공할 수 있다. The application 146 is, for example, a home 251, a dialer 253, an SMS/MMS 255, an instant message (IM) 257, a browser 259, a camera 261, and an alarm 263. , Contacts (265), voice recognition (267), email (269), calendar (271), media player (273), album (275), watch (277), health (279) (e.g. Biometric information measurement), or environmental information 281 (eg, air pressure, humidity, or temperature information measurement) application may be included. According to an embodiment, the application 146 may further include an information exchange application (not shown) capable of supporting information exchange between the electronic device 101 and an external electronic device. The information exchange application may include, for example, a notification relay application configured to deliver specified information (eg, a call, a message, or an alarm) to an external electronic device, or a device management application configured to manage an external electronic device. have. The notification relay application, for example, transmits notification information corresponding to a specified event (eg, mail reception) generated by another application (eg, email application 269) of the electronic device 101 to an external electronic device. I can. Additionally or alternatively, the notification relay application may receive notification information from an external electronic device and provide it to the user of the electronic device 101.

장치 관리 어플리케이션은, 예를 들면, 전자 장치(101)와 통신하는 외부 전자 장치 또는 그 일부 구성 요소(예: 표시 장치(160) 또는 카메라 모듈(180))의 전원(예: 턴-온 또는 턴-오프) 또는 기능(예: 표시 장치(160) 또는 카메라 모듈(180)의 밝기, 해상도, 또는 포커스)을 제어할 수 있다. 장치 관리 어플리케이션은, 추가적으로 또는 대체적으로, 외부 전자 장치에서 동작하는 어플리케이션의 설치, 삭제, 또는 갱신을 지원할 수 있다.The device management application includes, for example, an external electronic device that communicates with the electronic device 101 or some components thereof (for example, the display device 160 or the camera module 180). -Off) or a function (eg, brightness, resolution, or focus of the display device 160 or the camera module 180) may be controlled. The device management application may additionally or alternatively support installation, deletion, or update of an application operating in an external electronic device.

도 3은 일 실시 예에 따른, 전자 장치(300)(예: 도 1의 전자 장치(101))의 구성을 나타낸다.3 illustrates a configuration of an electronic device 300 (eg, the electronic device 101 of FIG. 1) according to an exemplary embodiment.

일 실시 예에 따른 전자 장치(300)는 프로세서(310)(예: 도 1의 프로세서(120)) 및 메모리(320)(예: 도 1의 메모리(130))를 포함할 수 있다. 프로세서(310)는 메모리(320)와 작동적으로 연결되도록 구성될 수 있다. 프로세서(310)는 메모리(320)에 저장된 인스트럭션들(instructions)을 실행하여 전자 장치(300)의 구성요소를 제어하거나 데이터를 처리할 수 있다. 실시 예에 따라서, 전자 장치(300)는 카메라(330)(예: 도 1의 카메라 모듈(180)), 디스플레이(340)(예: 도 1의 표시 장치(160)) 및 통신 모듈(350)(예: 도 1의 통신 모듈)) 중 적어도 하나를 더 포함할 수 있다.The electronic device 300 according to an embodiment may include a processor 310 (eg, the processor 120 of FIG. 1) and a memory 320 (eg, the memory 130 of FIG. 1 ). The processor 310 may be configured to be operatively connected to the memory 320. The processor 310 may control components of the electronic device 300 or process data by executing instructions stored in the memory 320. According to an embodiment, the electronic device 300 includes a camera 330 (eg, the camera module 180 of FIG. 1 ), a display 340 (eg, the display device 160 of FIG. 1 ), and a communication module 350. It may further include at least one of (eg, the communication module of FIG. 1).

프로세서(310)는 카메라(330)를 통해서 사용자(1)를 촬영한 영상을 포함하는 영상 데이터를 획득할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 RGB 값과 깊이(depth) 값을 포함하는 영상 데이터를 획득할 수 있다. 예를 들어, 카메라(330)는 TOF(Time of Flight) 방식에 기초하여 피사체까지의 거리 값을 감지할 수 있다. 프로세서(310)는 깊이 값을 이용하여 영상에 촬영된 피사체의 움직임을 인식할 수 있다. 프로세서(310)는 인식된 움직임에 대한 정보를 이용하여 영상에 촬영된 사용자의 안면을 추적할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 전자 장치(300)에 포함된 카메라(330)를 이용하여 촬영된 영상 데이터를 획득할 수 있다. 다른 실시 예에 따르면, 프로세서(310)는 다른 장치에 포함된 카메라(330)를 통해서 촬영된 영상 데이터를 획득할 수도 있다. 예를 들어, 프로세서(310)는 전자 장치(300) 주변에 위치하고, 카메라를 구비한 장치로부터 영상 데이터를 통신 모듈(350)을 이용한 통신 연결(예: 근거리 무선 통신 또는 유선 통신)을 통해서 수신할 수 있다. 다른 예를 들면, 프로세서(310)는 전자 장치(300)가 외부 서버(예: 도 1의 서버(108))로부터 다운로드한 영상 데이터를 획득할 수도 있다. 프로세서(310)가 영상 데이터를 획득하는 방법은 다양하게 변형될 수 있다.The processor 310 may acquire image data including an image photographed of the user 1 through the camera 330. According to an embodiment, the processor 310 may obtain image data including an RGB value and a depth value. For example, the camera 330 may detect a distance value to a subject based on a Time of Flight (TOF) method. The processor 310 may recognize the motion of the subject photographed in the image by using the depth value. The processor 310 may track the user's face photographed in the image by using the recognized motion information. According to an embodiment, the processor 310 may acquire image data captured using the camera 330 included in the electronic device 300. According to another embodiment, the processor 310 may acquire image data captured through a camera 330 included in another device. For example, the processor 310 is located near the electronic device 300 and may receive image data from a device equipped with a camera through a communication connection (eg, short-range wireless communication or wired communication) using the communication module 350. I can. As another example, the processor 310 may obtain image data downloaded from an external server (eg, the server 108 of FIG. 1) by the electronic device 300. The method of obtaining the image data by the processor 310 may be variously modified.

영상 데이터를 획득한 프로세서(310)는 영상 데이터를 분석할 수 있다. 일 실시 예에 따른 프로세서(310)는 영상 내에서 사용자의 안면 또는 피부를 인식하고 인식된 안면 또는 피부의 영상 내에서의 위치를 추적할 수 있다. 사용자의 생체 신호(예: 맥파)를 측정하기 위해서는 영상 데이터 내에 포함된 정보 중에서 사용자의 피부가 촬영된 영역에 포함된 픽셀 값이 필요할 수 있다. 프로세서(310)는 영상 내에서 사용자의 안면이 촬영된 영역의 위치를 식별할 수 있다. 프로세서(310)는 사용자의 안면이 촬영된 영역의 위치를 식별하기 위해 영상 데이터 내에 포함된 영상 시퀀스의 전후 이미지를 컨볼루션(convolution)하고, 그 결과에 기초하여 사용자의 안면이 촬영된 영역을 결정할 수 있다.The processor 310 that has obtained the image data may analyze the image data. The processor 310 according to an embodiment may recognize a user's face or skin in an image and track a location of the recognized face or skin in the image. In order to measure a user's biometric signal (eg, a pulse wave), a pixel value included in an area in which the user's skin is photographed may be required among information included in the image data. The processor 310 may identify a location of an area in which the user's face is photographed in the image. The processor 310 convolves the image before and after the image sequence included in the image data to identify the location of the region where the user's face is photographed, and determines the region where the user's face is photographed based on the result. I can.

프로세서(310)는 영상 데이터의 안면이 촬영된 영역에 포함된 영상 채널들을 색상 채널(예, RGB 채널)로 분리하고, 영상 채널들 중에서 생체 신호의 측정을 위해 필요한 채널을 선별할 수 있다. 프로세서(310)는 영상 채널의 색상 값들 중에서 생체 신호를 추출하기에 적합하지 않은 색상 값들을 제거할 수 있다. 예를 들어, 프로세서(310)는 반사광이 촬영된 영역이나 피부가 아닌 영역(예: 눈썹)이 촬영된 영역의 색상 값들을 분석 대상에서 제외시킬 수 있다. 프로세서(310)는 영상 내에서 사용자의 안면이 촬영된 영역을 인식하고, 사용자의 안면이 촬영된 것으로 인식된 영역 중에서 픽셀 값이 피부가 촬영된 것으로 판단될 수 있는 범위 내에 포함되는 픽셀들의 픽셀 값에 기초하여 생체 신호를 획득할 수 있다.The processor 310 may divide the image channels included in the area where the face of the image data is captured into color channels (eg, RGB channels), and select a channel necessary for measuring a biosignal from among the image channels. The processor 310 may remove color values that are not suitable for extracting a bio-signal from among color values of an image channel. For example, the processor 310 may exclude color values of a region in which the reflected light is photographed or a region other than the skin (eg, eyebrows) photographed from the analysis target. The processor 310 recognizes a region in which the user's face has been photographed in the image, and the pixel value of pixels within a range in which it can be determined that the skin has been photographed among regions recognized as photographing the user's face A biosignal may be obtained based on.

프로세서(310)는 선별된 색상 채널들의 값을 증폭시키고 노이즈를 제거하여 생체 신호를 추출할 수 있다. 예를 들어, 프로세서(310)는 각 RGB 채널에 비선형 스케일 팩터(scale factor)를 부여하여 신호 대 잡음비(Signal to Noise Ratio, SNR)을 조절할 수 있다. 프로세서(310)는 스케일 팩터가 부여된 신호에 기초하여 생체 신호를 산출할 수 있다.The processor 310 may amplify the values of the selected color channels and remove noise to extract the biosignal. For example, the processor 310 may adjust a signal to noise ratio (SNR) by applying a nonlinear scale factor to each RGB channel. The processor 310 may calculate a biosignal based on a signal to which a scale factor is applied.

프로세서(310)는 전처리된 영상 신호를 이미지 프로세싱한 후, 시간 영역을 기준으로 심박수를 산출할 수 있다. 또는, 프로세서(310)는 영상 신호를 주파수 영역으로 전환한 후 주파수 영역을 기준으로 심박수를 산출할 수도 있다. 프로세서(310)는 산출된 심박수에 대한 정보를 포함하는 화면을 디스플레이하도록 디스플레이(340)를 제어할 수 있다. 또는, 프로세서(310)는 산출된 심박수를 포함하는 생체 정보 데이터를 메모리(320)에 저장하거나 통신 모듈(350)을 통해서 다른 장치(예: 도 1의 전자 장치(104) 또는 서버(108))로 전송할 수 있다. 본 명세서에서, 생체 정보 데이터는 사용자(1)에 대한 생체 정보를 수집하여 생성된 정보를 의미할 수 있다. 생체 정보 데이터는 사용자(1)의 건강 상태를 진단하거나 사용자(1) 신체의 특성을 판단하기 위해 이용될 수 있다.The processor 310 may image-process the preprocessed image signal and then calculate the heart rate based on the time domain. Alternatively, the processor 310 may convert the image signal into the frequency domain and then calculate the heart rate based on the frequency domain. The processor 310 may control the display 340 to display a screen including information on the calculated heart rate. Alternatively, the processor 310 may store biometric information data including the calculated heart rate in the memory 320 or other device (eg, the electronic device 104 or server 108 of FIG. 1) through the communication module 350. Can be transferred to. In the present specification, the biometric information data may refer to information generated by collecting biometric information on the user 1. The biometric information data may be used to diagnose the health status of the user 1 or to determine the characteristics of the user 1's body.

사용자(1)의 움직임으로 인하여 영상 데이터로부터 추출된 생체 신호로부터 심박수 값이 산출되지 않거나 정상 범위를 벗어나는 심박수 값이 산출될 수 있다. 예를 들어, 사용자(1)의 움직임으로 인하여 카메라(330)를 통해서 촬영되는 영역 밖으로 사용자(1)의 안면이 이동하면 영상 데이터로부터 심박수 값을 산출할 수 없다. 정상적인 심박수 값이 산출되지 않을 경우, 프로세서(310)는 정상적인 심박수 값이 산출되지 않는 구간에 대한 보정 값을 결정할 수 있다. 결정된 보정 값은 산출된 심박수 값을 대신하여 디스플레이(340)를 통해서 출력되거나, 생체 정보 데이터에 포함될 수 있다.Due to the movement of the user 1, a heart rate value may not be calculated from a bio-signal extracted from image data or a heart rate value that is out of a normal range may be calculated. For example, if the face of the user 1 moves outside the area photographed by the camera 330 due to the movement of the user 1, the heart rate value cannot be calculated from the image data. When the normal heart rate value is not calculated, the processor 310 may determine a correction value for a section in which the normal heart rate value is not calculated. The determined correction value may be output through the display 340 in place of the calculated heart rate value, or may be included in the biometric information data.

프로세서(310)는 후보 데이터를 이용하여 측정된 생체 신호(영상 데이터로부터 추출된 생체 신호)를 대신할 보정 값을 결정할 수 있다. 본 개시에서, 후보 데이터는 측정되지 않은 구간의 생체 신호가 어떻게 형성될 것인지를 예측하여 작성된 데이터를 의미할 수 있다. 예를 들어, 후보 데이터는 생체 신호가 정상적으로 측정되지 않은 구간(이하, "보정 대상 구간") 이전에 마지막으로 측정된 생체 신호로부터 보정 대상 구간의 생체 신호가 어떻게 형성될 것인지를 예측하기 위한 특징점에 대한 정보를 포함할 수 있다. 다른 예를 들면, 후보 데이터는 이전에 측정된 생체 신호로부터 추출된 특징점에 기초하여 작성된 인공 생체 신호(예: 인공 심박 데이터(Artificial Heartbeat model Data, AHD))를 포함할 수 있다.The processor 310 may determine a correction value to replace the measured biosignal (biosignal extracted from image data) using the candidate data. In the present disclosure, candidate data may mean data created by predicting how a biosignal of an unmeasured section will be formed. For example, the candidate data is a feature point for predicting how the biosignal of the correction target section will be formed from the biosignal last measured before the section in which the biosignal is not normally measured (hereinafter, "correction target section"). May include information about. As another example, the candidate data may include an artificial biosignal (eg, artificial heartbeat model data (AHD)) created based on a feature point extracted from a previously measured biosignal.

후보 데이터는 기존에 정상적으로 측정된 생체 신호에 기반하여 생성된 것이므로, 정상적으로 측정된 생체 신호의 특징을 가질 수 있다. 따라서, 일 실시 예에 따르면, 프로세서(310)는 영상 데이터로부터 산출된 값(예: 심박수 값)과 후보 데이터를 비교하여 산출된 값이 정상적인 값인지 여부를 판단할 수 있다. 예를 들어, 프로세서(310)는 심박수 값과 연관된 데이터(측정된 생체 신호)의 R-R 피크 인터벌(peak interval)과 후보 데이터의 R-R 피크 인터벌을 비교할 수 있다. 비교 결과, R-R 피크 인터벌들이 서로 유사한 경우, 프로세서(310)는 산출된 심박수 값이 정상적인 값인 것으로 판단할 수 있다.Since the candidate data is generated based on a previously normally measured biosignal, it may have characteristics of a normally measured biosignal. Accordingly, according to an embodiment, the processor 310 may determine whether the calculated value is a normal value by comparing a value calculated from the image data (eg, a heart rate value) with candidate data. For example, the processor 310 may compare the R-R peak interval of data (measured biosignal) associated with the heart rate value and the R-R peak interval of the candidate data. As a result of the comparison, when the R-R peak intervals are similar to each other, the processor 310 may determine that the calculated heart rate value is a normal value.

일 실시 예에 따르면, 프로세서(310)는 사용자(1)가 수행 중인 운동에 대한 정보를 고려하여 보정 값을 결정할 수 있다. 예를 들어, 디스플레이(340)를 통해서 사용자의 운동을 가이드하기 위한 가이드 영상 콘텐트(예: 도 16의 1620)가 재생 중인 경우, 사용자는 가이드 영상 콘텐트(예: 도 16의 1620)에 따른 운동을 수행하고 있는 것으로 볼 수 있다. 이 경우, 프로세서(310)는 재생 중인 가이드 영상 콘텐트(예: 도 16의 1620)에 연관된 심박수 변화량을 획득할 수 있다. 심박수 변화량은 가이드 영상 콘텐트(예: 도 16의 1620)에 포함되어 있거나, 가이드 영상 콘텐트(예: 도 16의 1620)에 의해 제공되는 운동을 지시하는 인디케이터를 이용하여 검색될 수 있다. 프로세서(310)는 보정 대상 구간 내의 생체 신호가 획득된 심박수 변화량을 나타내도록 하는 신호가 되도록 보정 값을 결정할 수 있다.According to an embodiment, the processor 310 may determine a correction value in consideration of information on an exercise being performed by the user 1. For example, when a guide image content (eg, 1620 in FIG. 16) for guiding a user's exercise is being played through the display 340, the user performs an exercise according to the guide image content (eg, 1620 in FIG. 16). It can be seen as being performed. In this case, the processor 310 may acquire the amount of change in heart rate associated with the guide image content being played (eg, 1620 in FIG. 16 ). The amount of change in heart rate may be included in the guide image content (eg, 1620 in FIG. 16) or may be searched using an indicator indicating an exercise provided by the guide image content (eg, 1620 in FIG. 16 ). The processor 310 may determine a correction value such that the biosignal within the correction target section becomes a signal indicating the acquired heart rate change amount.

일 실시 예에 따르면, 프로세서(310)는 보정 대상 구간의 길이에 따라서 보정 값을 결정할 수 있다. 예를 들어, 보정 대상 구간이 짧은(예: 3초) 경우에는 후보 데이터에 기초하여 보정 값을 결정하고, 보정 대상 구간이 임계값(예: 5초) 이상으로 길어진 경우에는 패턴 데이터베이스(도시되지 않음)에 저장된 데이터 패턴에 기초하여 보정 값을 결정할 수 있다. 데이터 패턴은 사용자(1)의 사용자 정보(예: 성별, 나이, 체중, 또는 신장) 및 사용자(1)가 수행 중인 운동의 종류에 따른 심박 변화량을 정의한 데이터를 포함할 수 있다. 예를 들어, 프로세서(310)는 사용자 정보와 운동의 종류에 기초하여 패턴 데이터베이스로부터 심박 변화량을 검색하고, 검색된 심박 변화량 및 이전 심박수 값에 기초하여 보정 대상 구간에 대한 보정 값을 결정할 수 있다. 사용자 정보는 사용자의 속성(예: 성별, 나이, 체중, 신장)을 나타내는 정보를 의미할 수 있다.According to an embodiment, the processor 310 may determine a correction value according to the length of the region to be corrected. For example, if the correction target section is short (e.g. 3 seconds), the correction value is determined based on the candidate data, and if the correction target section is longer than a threshold value (e.g. 5 seconds), a pattern database (not shown) The correction value may be determined based on the data pattern stored in (not). The data pattern may include user information (eg, gender, age, weight, or height) of the user 1 and data defining an amount of change in heart rate according to the type of exercise that the user 1 is performing. For example, the processor 310 may search for a heart rate change amount from the pattern database based on user information and the type of exercise, and determine a correction value for the correction target section based on the searched heart rate change amount and a previous heart rate value. User information may refer to information indicating a user's attributes (eg, gender, age, weight, height).

보정 대상 구간이 발생한 이후에 정상적인 생체 신호가 다시 측정된 경우, 일 실시 예에 따른 프로세서(310)는 생체 정보 데이터 중 보정 대상 구간의 보정 값을 다시 측정된 생체 신호에 기초하여 재보정할 수 있다. 보정 대상 구간에 입력된 보정 값은 실제로 측정된 값이 아니므로, 보정 대상 구간이 종료되는 시점에 비선형적인 데이터가 발생할 수 있다. 프로세서(310)는 보정 대상 구간이 종료되는 시점 이후에 정상적으로 측정된 생체 신호를 기준으로 보정 대상 구간의 값을 다시 보정할 수 있다.When the normal biosignal is measured again after the correction target section occurs, the processor 310 according to an embodiment may recalibrate the correction value of the correction target section among the biometric information data based on the measured biosignal again. . Since the correction value input to the correction target section is not actually a measured value, non-linear data may be generated at the point when the correction target section ends. The processor 310 may correct the value of the correction target section again based on the biosignal normally measured after the time point to which the correction target section ends.

프로세서(310)는 보정된 생체 정보 데이터의 적어도 일부를 표시하도록 디스플레이(340)를 제어할 수 있다. 또는, 프로세서(310)는 생체 정보 데이터에 기반하여 사용자에게 제공될 추천 정보를 결정하고, 결정된 추천 정보를 디스플레이하도록 디스플레이(340)를 제어할 수 있다. 디스플레이(340)는 전자 장치(300)에 하드웨어적으로 결합된 장치일 수도 있으나, 통신 모듈(350)을 통해서 통신이 연결된 장치일 수도 있다. 또는, 디스플레이(340)는 사물인터넷 시스템에서 외부 서버를 통해서 제어되는 장치일 수도 있다.The processor 310 may control the display 340 to display at least a part of the corrected biometric information data. Alternatively, the processor 310 may control the display 340 to determine recommendation information to be provided to the user based on the biometric information data and display the determined recommendation information. The display 340 may be a device that is hardware coupled to the electronic device 300, but may be a device to which communication is connected through the communication module 350. Alternatively, the display 340 may be a device controlled through an external server in the IoT system.

일 실시 예에 따르면, 추천 정보는 사용자(1)의 운동과 관련된 정보를 포함할 수 있다. 예를 들어, 프로세서(310)는 디스플레이(340)를 통해서 사용자의 운동을 가이드하기 위한 가이드 영상 콘텐트(예: 도 16의 1620)를 출력하는 동안 생체 정보 데이터를 수집할 수 있다. 가이드 영상 콘텐트(예: 도 16의 1620)는 사용자가 지정된 운동을 수행하도록 가이드하는 영상이므로, 프로세서(310)는 가이드 영상 콘텐트(예: 도 16의 1620)에 포함된 정보에 기초하여 생체 정보 데이터가 수집된 시점에 사용자가 어떤 운동을 수행하고 있는지 판단할 수 있다. 다만, 전자 장치가 사용자가 어떤 운동을 수행하고 있는지 판단하는 방법은 이에 한정되지 아니한다. 다른 예를 들면, 프로세서(310)는 사용자의 움직임을 감지하여 감지된 움직임에 상응하는 운동 매칭 알고리즘을 이용하여 사용자의 운동 진행 상황을 판단할 수 있다. 프로세서(310)는 3차원 카메라를 통해서 획득된 이미지 및 깊이 정보를 이용하여 사용자의 움직임을 추적하고, 사용자의 움직임에 매칭되는 운동 정보에 기초하여 사용자가 어떤 운동을 수행하고 있는지 판단할 수 있다. 프로세서(310)는 생체 정보 데이터가 수집된 시점에 사용자가 수행한 운동과 동종의 운동을 수행하는 동안의 다른 사용자들의 평균적인 생체 정보를 포함하는 참조 데이터를 비교할 수 있다. 또는, 참조 데이터는 사용자(1)의 이전에 동일한 운동 수행시에 측정된 생체 정보 데이터일 수도 있다. 참조 데이터는 메모리(320)에 저장되어 있거나 통신 모듈(350)을 통해서 다운로드할 수 있다. 또는, 프로세서(310)는 생체 정보 데이터를 외부 서버로 전송하고, 외부 서버로부터 생체 정보 데이터와 참조 데이터의 비교 결과를 수신할 수도 있다. 예를 들어, 프로세서(310)는 생체 정보 데이터에 포함된 심박수 값의 변화량과 참조 심박수 변화량을 비교할 수 있다. 프로세서(310)는 심박수 값의 증가량이 참조 심박수 변화량의 값보다 작은 경우 운동 강도를 높이도록 하는 추천 운동 강도 정보를 출력할 수 있다. 반대로, 프로세서(310)는 심박수 값의 증가량이 참조 심박수 변화량의 값보다 큰 경우에는 운동 강도를 낮추도록 하는 추천 운동 강도 정보를 출력할 수 있다.According to an embodiment, the recommended information may include information related to exercise of the user 1. For example, the processor 310 may collect biometric information data while outputting guide image content (eg, 1620 in FIG. 16) for guiding a user's exercise through the display 340. Since the guide image content (e.g., 1620 in FIG. 16) is an image that guides the user to perform a specified exercise, the processor 310 may use biometric information data based on information included in the guide image content (e.g., 1620 in FIG. 16). It is possible to determine which exercise the user is performing at the time when is collected. However, the method of determining which exercise the user is performing by the electronic device is not limited thereto. For another example, the processor 310 may detect the user's movement and determine the user's exercise progress using an exercise matching algorithm corresponding to the detected movement. The processor 310 may track a user's movement using the image and depth information acquired through the 3D camera, and determine which exercise the user is performing based on exercise information matched with the user's movement. The processor 310 may compare the exercise performed by the user at the time the biometric information data is collected and reference data including average biometric information of other users while performing the same type of exercise. Alternatively, the reference data may be biometric information data measured when the user 1 previously performed the same exercise. The reference data may be stored in the memory 320 or may be downloaded through the communication module 350. Alternatively, the processor 310 may transmit the biometric information data to an external server, and may receive a comparison result of the biometric information data and the reference data from the external server. For example, the processor 310 may compare the change amount of the heart rate value included in the biometric information data with the change amount of the reference heart rate. The processor 310 may output recommended exercise intensity information for increasing exercise intensity when the increase in the heart rate value is smaller than the value of the reference heart rate change amount. Conversely, when the increase in the heart rate value is greater than the value of the reference heart rate change amount, the processor 310 may output recommended exercise intensity information for lowering the exercise intensity.

다른 예를 들면, 프로세서(310)는 동일한 운동 프로그램에서 사용자(1)와 동일 또는 유사한 사용자 정보를 가지는 사용자들의 생체 정보 비교 결과에 기초하여 사용자가 수행할 운동을 추천하는 추천 운동 정보를 출력할 수 있다. 또는, 프로세서(310)는 운동 프로그램 별로 사용자(1)의 생체 정보 데이터를 분석하여 신체 부위별 능력치를 결정할 수 있다. 프로세서(310)는 신체 부위별 능력치를 사용자(1)에게 제공하거나, 신체 부위별 능력치에 따라 추천 운동 정보를 출력할 수 있다. 보다 구체적인 예를 들면, 허벅지 근육을 단련하는 운동 프로그램의 제공 시에 측정된 심박수가 크게 증가하고 실패 횟수가 높은 경우, 프로세서(310)는 허벅지 근육을 단련하는 운동 프로그램을 추천 운동 정보로서 출력할 수 있다.For another example, the processor 310 may output recommended exercise information recommending an exercise to be performed by the user based on a comparison result of biometric information of users having the same or similar user information as the user 1 in the same exercise program. have. Alternatively, the processor 310 may analyze the biometric information data of the user 1 for each exercise program and determine the ability value for each body part. The processor 310 may provide the capability value for each body part to the user 1 or may output recommended exercise information according to the capability value for each body part. For a more specific example, when the measured heart rate increases significantly and the number of failures is high when the exercise program for training the thigh muscles is provided, the processor 310 may output the exercise program for training the thigh muscles as recommended exercise information. have.

일 실시 예에 따른 전자 장치(300)는 사용자(1)의 운동 중에도 심박 변화를 용이하게 추적할 수 있으므로, 운동 중 심박 변화에 따른 부정맥 소견을 조기에 발견하기 용이한 데이터를 제공할 수 있다.The electronic device 300 according to an embodiment may easily track a change in heart rate even during exercise of the user 1, and thus provide data that facilitates early detection of arrhythmia findings according to a change in heart rate during exercise.

도 4는 일 실시 예에 따른, 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 생체 정보 데이터를 생성하는 프로세스를 도시한 순서도(400)이다. 도 4 및 관련된 설명에서 개시되는 전자 장치의 동작은 전자 장치의 프로세서(예: 도 1의 프로세서(120), 도 3의 프로세서(310))가 메모리(예: 도 1의 메모리(130), 도 3의 메모리(320))에 저장된 인스트럭션들을 실행하여 수행되는 것으로 이해될 수 있다.4 is a flowchart 400 illustrating a process of generating biometric information data by an electronic device (eg, the electronic device 101 of FIG. 1 and the electronic device 300 of FIG. 3) according to an embodiment. In the operation of the electronic device disclosed in FIG. 4 and related description, the processor of the electronic device (eg, the processor 120 of FIG. 1, the processor 310 of FIG. 3) is a memory (eg, the memory 130 of FIG. 1, FIG. It can be understood that it is executed by executing instructions stored in the memory 320 of 3.

동작 S410에서, 전자 장치는 사용자를 촬영한 영상 데이터를 획득할 수 있다. 일 실시 예에 따르면, 전자 장치는 전자 장치에 구비된 카메라(예: 도 1의 카메라 모듈(180), 도 3의 카메라(330))를 이용하여 촬영된 영상을 포함하는 영상 데이터를 획득할 수 있다. 다른 실시 예에 따르면, 전자 장치는 외부 장치를 통해서 획득된 영상 데이터를 수신할 수도 있다.In operation S410, the electronic device may acquire image data photographing a user. According to an embodiment, the electronic device may acquire image data including an image captured using a camera (eg, the camera module 180 of FIG. 1 and the camera 330 of FIG. 3) provided in the electronic device. have. According to another embodiment, the electronic device may receive image data acquired through an external device.

동작 S420에서, 전자 장치는 획득된 영상 데이터를 분석할 수 있다. 일 실시 예에 따르면, 전자 장치는 영상 데이터 내에 포함된 영상에서 사용자를 인식하고, 생체 신호를 추출하기 위해 사용될 영상 채널을 분류할 수 있다. 동작 S430에서, 전자 장치는 분류된 영상 채널에서 추출된 생체 신호로부터 심박수 값을 산출할 수 있다.In operation S420, the electronic device may analyze the acquired image data. According to an embodiment, the electronic device may recognize a user from an image included in image data and classify an image channel to be used to extract a biosignal. In operation S430, the electronic device may calculate a heart rate value from the biosignal extracted from the classified image channel.

동작 S440에서, 전자 장치는 심박수 값이 정상적으로 산출되었는지 여부를 판단할 수 있다. 동작 420에서 사용자의 안면이 인식되지 않았거나, 동작 S430에서 심박수 값의 기초가 되는 생체 신호가 정상 범위를 벗어난 경우, 전자 장치는 심박수 값이 정상적으로 산출되지 않은 것으로 판단할 수 있다. 일 실시 예에 따르면, 전자 장치는 사용자가 운동 중에 다른 행위(예: 수분 섭취, 전화 통화, 휴식)를 수행하는 동안 사용자의 형상이 카메라에 의해 촬영되지 않을 수 있다. 사용자가 촬영되지 않은 경우, 전자 장치는 사용자가 촬영될 때까지 동작 S410을 반복하여 수행할 수 있다. 또는, 전자 장치는 영상에서 사용자가 인식되지 않는 경우(예: 지정된 시간 이상 사용자가 촬영되지 않은 경우), 생체 정보 데이터를 생성하도록 하는 프로그램을 종료할 수 있다. 동작 S440에서 심박수 값이 정상적으로 산출된 것으로 판단된 경우, 동작 S450에서 산출된 심박수를 포함하는 생체 정보 데이터를 생성할 수 있다. 생성된 생체 정보 데이터는 메모리(예: 도 1의 메모리(130), 도 3의 메모리(320))에 저장되거나, 외부 서버로 전송될 수 있다.In operation S440, the electronic device may determine whether the heart rate value is normally calculated. If the user's face is not recognized in operation 420 or the biosignal that is the basis of the heart rate value is out of the normal range in operation S430, the electronic device may determine that the heart rate value has not been normally calculated. According to an embodiment, the electronic device may not capture a shape of the user by the camera while the user performs other actions (eg, drinking water, talking on the phone, or resting) during exercise. If the user is not photographed, the electronic device may repeatedly perform operation S410 until the user is photographed. Alternatively, when the user is not recognized in the image (eg, when the user is not photographed for a specified time or longer), the electronic device may terminate a program for generating biometric information data. When it is determined in operation S440 that the heart rate value is normally calculated, biometric information data including the heart rate calculated in operation S450 may be generated. The generated biometric information data may be stored in a memory (eg, the memory 130 of FIG. 1 or the memory 320 of FIG. 3 ), or may be transmitted to an external server.

심박수 값이 정상적으로 산출되지 않은 경우, 동작 S445에서 전자 장치는 보정 값을 결정할 수 있다. 일 실시 예에 따르면, 전자 장치는 마지막으로 측정된 정상 생체 신호의 값, 기존 데이터로부터 추출된 특징점, 사용자가 수행 중인 운동에 대한 정보, 및 데이터 패턴 중 적어도 하나에 기초하여 보정 값을 결정할 수 있다. 동작 S455에서 전자 장치는 심박수 값에 연관된 생체 신호의 값을 결정된 보정 값으로 대체한 생체 정보 데이터가 생성되도록 할 수 있다.If the heart rate value is not normally calculated, the electronic device may determine a correction value in operation S445. According to an embodiment, the electronic device may determine a correction value based on at least one of a last measured value of a normal biosignal, a feature point extracted from existing data, information on an exercise being performed by a user, and a data pattern. . In operation S455, the electronic device may generate biometric information data in which a value of the biosignal associated with the heart rate value is replaced with the determined correction value.

도 5는 일 실시 예에 따른, 전자 장치(500)의 예시를 나타낸다.5 illustrates an example of an electronic device 500 according to an embodiment.

일 실시 예에 따르면, 생체 신호를 측정하는 전자 장치(500)(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))는 자립형(stand-alone) 장치로 구성될 수 있다. 도 5를 참조하면, 전자 장치(500)는 일 면에 구비된 카메라(530)를 이용하여 사용자(1)를 촬영하고, 촬영된 영상으로부터 생체 정보 데이터를 획득할 수 있다. 전자 장치(500)는 전자 장치에 구비된 출력 장치(예: 도 1의 표시 장치(160), 음향 출력 장치(155), 도 3의 디스플레이(340))를 통해서 생체 정보 데이터의 적어도 일부 또는 생체 정보 데이터와 연관된 정보를 출력할 수 있다.According to an embodiment, the electronic device 500 (for example, the electronic device 101 of FIG. 1 and the electronic device 300 of FIG. 3) that measures a biosignal may be configured as a stand-alone device. . Referring to FIG. 5, the electronic device 500 may photograph a user 1 using a camera 530 provided on one surface, and obtain biometric information data from the captured image. The electronic device 500 includes at least a portion of the biometric information data or biometric data through an output device (for example, the display device 160 of FIG. 1, the sound output device 155, and the display 340 of FIG. 3) provided in the electronic device. Information related to data can be output.

도 6은 일 실시 예에 따른, 생체 정보 데이터를 획득하는 시스템(600)의 예시를 나타낸다.6 shows an example of a system 600 for acquiring biometric information data, according to an embodiment.

일 실시 예에 따르면, 생체 신호를 획득하고 처리하는 장치는 네트워크(699)를 통해서 연결된 복수의 하드웨어 장치를 포함하는 시스템(600)으로 구성될 수 있다. 예를 들면, 복수의 장치들(601, 630, 640)은 서버(610)에 의해서 제어되는 사물인터넷(Internet of Things) 시스템에 연결된 장치일 수 있다. 도 6을 참조하면, 사용자(1)가 운동 기구(601)를 통해서 운동 중인 동안에 카메라 장치(630)가 사용자(1)를 촬영한 영상을 포함하는 영상 데이터를 서버(610)로 전송할 수 있다. 서버(610)는 영상 데이터를 분석하여 생체 정보 데이터를 획득할 수 있다. 서버(610)는 생체 정보 데이터의 적어도 일부 또는 생체 정보 데이터와 연관된 정보를 디스플레이 장치(640)를 통해서 디스플레이할 수 있다. 일 실시 예에 따르면, 서버(610)는 생체 정보 데이터를 보정하거나 생체 정보 데이터와 연관된 정보를 결정하기 위해 요구되는 사용자(1)의 운동 상태에 대한 정보를 운동 기구(601)의 동작 상태나 디스플레이 장치(640)를 통해서 재생 중인 콘텐트에 관련된 정보에 기초하여 획득할 수 있다. 예를 들어, 디스플레이 장치(640)를 통해서 하체 운동을 가이드하는 영상이 재생되고 있거나, 동작 중인 운동 기구(601)가 하체 운동을 위한 기구인 경우, 서버(610)는 사용자(1)가 하체 운동 중임인 것으로 판단할 수 있다. 다른 실시 예에 따르면, 서버(610)는 카메라 장치(630)로부터 획득된 영상을 분석하여 사용자의 운동 상태에 대한 정보를 획득할 수도 있다.According to an embodiment, an apparatus for acquiring and processing a bio-signal may be configured as a system 600 including a plurality of hardware devices connected through a network 699. For example, the plurality of devices 601, 630, and 640 may be devices connected to an Internet of Things (IoT) system controlled by the server 610. Referring to FIG. 6, while the user 1 is exercising through the exercise device 601, the camera device 630 may transmit image data including an image of the user 1 to the server 610. The server 610 may analyze image data to obtain biometric information data. The server 610 may display at least part of the biometric information data or information related to the biometric information data through the display device 640. According to an embodiment, the server 610 displays information on the exercise state of the user 1 required to correct the biometric information data or determine information related to the biometric information data. It can be obtained based on information related to the content being played through the device 640. For example, when an image guiding the lower body exercise is being played through the display device 640, or the exercise device 601 in motion is a device for lower body exercise, the server 610 provides the user 1 to exercise the lower body. It can be judged as being on the job. According to another embodiment, the server 610 may analyze an image acquired from the camera device 630 to obtain information on a user's exercise state.

사물인터넷 환경에서 사용자의 생활 공간 내에 위치한 카메라를 이용하여 사용자가 일상적인 움직임을 취하는 동안 사용자의 심박수를 지속적으로 모니터링하면서 심박 정보를 획득할 수 있다. 사용자의 일상 생활 중에서 획득된 심박 정보에서 특이점이 발생될 경우 자동적으로 지정된 연락처(예를 들어, 응급 기관이나 보호자의 통신 장치)로 메시지를 전송하도록 시스템(600)이 구성될 수도 있다.In the IoT environment, while the user makes daily movements by using a camera located in the user's living space, heart rate information can be obtained while continuously monitoring the user's heart rate. The system 600 may be configured to automatically transmit a message to a designated contact (eg, an emergency agency or a guardian's communication device) when a singularity occurs in the heart rate information acquired during the user's daily life.

일 실시 예에 따르면, 서버(610)는 카메라 장치(630)로부터 획득된 영상 데이터를 수신할 수 있다. 서버(610)는 수신된 영상 데이터로부터 산출된 심박수 값을 포함하는 생체 정보 데이터를 생성할 수 있다. 또는, 서버(610)는 카메라 장치(630)로부터 획득된 영상 데이터에 기반하여 산출된 심박수 값을 포함하는 생체 정보 데이터를 획득할 수도 있다. 서버(610)는 서버(610)의 메모리에 저장된 부정맥 환자 심박 데이터와 생체 정보 데이터를 비교할 수 있다. 여기서, 생체 정보 데이터는 보정된 데이터일 수 있다. 부정맥 환자 심박 데이터는 부정맥 환자들이 운동을 수행하는 동안 측정된 심박수 값에 대한 정보를 포함할 수 있다. 서버(610)는 비교 결과, 부정맥 환자 심박 데이터에 포함된 특징(예: 이상 패턴)이 생체 정보 데이터 내에서 발생하는 횟수를 결정할 수 있다. 부정맥 환자 심박 데이터와 생체 정보 데이터를 비교하기 위해, 서버(610)는 부정맥 환자 심박 데이터와 생체 정보 데이터로부터 지정된 프로세스를 통해서 특징점(특징을 나타내는 데이터)를 추출하고, 추출된 특징점들을 비교할 수 있다. 결정된 특징이 생체 정보 데이터 내에서 발생하는 횟수가 지정된 임계값 이상인 경우, 서버(610)는 이상 심박 패턴에 대한 정보를 디스플레이하도록 디스플레이 장치(640)에 출력할 수 있다. 다만, 도 6은 일 실시 예의 구조를 설명하기 위한 것이며, 장치의 형태는 실시 예에 따라서 다르게 변형될 수 있다. 예를 들어, 도 6의 시스템(600)은 별도의 서버(610)가 구축되지 않고, 디스플레이(640), 카메라(630) 및 서버(610)의 기능을 가진 헬스케어 장치의 형태로 구현될 수도 있다.According to an embodiment, the server 610 may receive image data obtained from the camera device 630. The server 610 may generate biometric information data including a heart rate value calculated from the received image data. Alternatively, the server 610 may obtain biometric information data including a heart rate value calculated based on image data obtained from the camera device 630. The server 610 may compare the heart rate data of the arrhythmia patient and the biometric information data stored in the memory of the server 610. Here, the biometric information data may be corrected data. The arrhythmia patient heart rate data may include information on a heart rate value measured while the arrhythmia patients perform exercise. As a result of the comparison, the server 610 may determine the number of times that a characteristic (eg, an abnormal pattern) included in the heart rate data of the arrhythmia patient occurs in the biometric information data. In order to compare the arrhythmia patient heart rate data and the biometric information data, the server 610 may extract a feature point (data representing the feature) from the arrhythmia patient heart rate data and the biometric information data through a designated process, and compare the extracted feature points. When the number of times the determined characteristic occurs in the biometric information data is equal to or greater than a specified threshold value, the server 610 may output information on the abnormal heartbeat pattern to the display device 640 to display information. However, FIG. 6 is for explaining the structure of an embodiment, and the shape of the device may be differently modified according to the embodiment. For example, the system 600 of FIG. 6 may be implemented in the form of a healthcare device having functions of a display 640, a camera 630, and a server 610 without a separate server 610 being built. have.

도 7은 일 실시 예에 따른, 생체 정보 데이터를 획득하는 전자 장치(700)(예: 도 1의 전자 장치(101))의 다른 예시를 나타낸다.7 illustrates another example of an electronic device 700 (eg, the electronic device 101 of FIG. 1) that acquires biometric information data, according to an exemplary embodiment.

일 실시 예에 따른 전자 장치(700)는 카메라 장치(730)로부터 영상 데이터를 수신하고, 영상 데이터를 처리하여 결정된 생체 정보 데이터의 적어도 일부 또는 생체 정보 데이터와 연관된 정보를 디스플레이 장치(740)를 통해서 출력할 수 있다. 전자 장치(700)는 근거리 무선 통신(예: 블루투스 ™, 와이파이 ™)을 통해서 카메라 장치(730) 또는 디스플레이 장치(740)와 연결될 수 있다.The electronic device 700 according to an embodiment receives image data from the camera device 730 and processes the image data to transmit at least part of the biometric information data or information related to the biometric information data through the display device 740. Can be printed. The electronic device 700 may be connected to the camera device 730 or the display device 740 through short-range wireless communication (eg, Bluetooth™, Wi-Fi™).

도 5 내지 도 7에 도시된 실시 예는 몇 가지 실시 예를 설명하기 위한 것으로서, 이에 한정되지 아니하고 하드웨어 구성은 실시 예에 따라 다양하게 변경될 수 있다.The embodiments illustrated in FIGS. 5 to 7 are for explaining several embodiments, and the hardware configuration is not limited thereto, and the hardware configuration may be variously changed according to the embodiments.

도 8은 일 실시 예에 따른, 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 심박수 값을 산출하는 프로세스를 도시한 순서도(800)이다. 도 8 및 관련된 설명에서 개시되는 전자 장치의 동작은 전자 장치의 프로세서(예: 도 1의 프로세서(120), 도 3의 프로세서(310))가 메모리(예: 도 1의 메모리(130), 도 3의 메모리(320))에 저장된 인스트럭션들을 실행하여 수행되는 것으로 이해될 수 있다.8 is a flowchart 800 illustrating a process of calculating a heart rate value by an electronic device (eg, the electronic device 101 of FIG. 1 and the electronic device 300 of FIG. 3) according to an embodiment. In the operation of the electronic device disclosed in FIG. 8 and related description, the processor of the electronic device (eg, the processor 120 of FIG. 1, the processor 310 of FIG. 3) is a memory (eg, the memory 130 of FIG. 1, FIG. It can be understood that it is executed by executing instructions stored in the memory 320 of 3.

동작 S810에서, 전자 장치는 영상 데이터에 포함된 영상 시퀀스 내의 전후 이미지를 컨볼루션할 수 있다. 전자 장치는 컨볼루션 결과에 기초하여, 동작 S820에서 이전 영상 프레임과 현재 영상 프레임을 비교하여 현재 영상 프레임 내에서 사용자의 안면이 촬영된 제1 영역을 결정할 수 있다. 사용자의 안면에는 피부, 눈, 입술 또는 눈썹이 포함되어 있으나, 심박수 검출을 위해서는 사용자의 피부 색상에 대한 정보만이 필요하므로, 나머지 요소들은 제거될 수 있다.In operation S810, the electronic device may convolve the before and after images in the image sequence included in the image data. Based on the convolution result, the electronic device may compare the previous image frame and the current image frame in operation S820 to determine a first area within the current image frame in which the user's face is photographed. The user's face includes skin, eyes, lips, or eyebrows, but since only information on the user's skin color is required for heart rate detection, the remaining elements can be removed.

동작 830에서 전자 장치는 제1 영역 내의 영상 채널을 분할할 수 있다. 동작 S840에서, 전자 장치는 제1 영역 내의 값들 중에서 불필요한 색상 값을 제거할 수 있다. 예를 들어, 전자 장치는 분할된 영상 채널들 중에서 피부 값과 유사한 범위 내의 값을 가지는 채널들을 제외한 색상 값들을 선별할 수 있다.In operation 830, the electronic device may divide an image channel in the first region. In operation S840, the electronic device may remove an unnecessary color value from among values in the first area. For example, the electronic device may select color values excluding channels having values within a range similar to that of a skin value from among the divided image channels.

동작 S850에서, 전자 장치는 선별된 영상 채널의 값들을 증폭시킬 수 있다. 즉, 전자 장치는 각 픽셀의 강도를 증폭시켜서 신호의 크기를 높일 수 있다. 예를 들어, 전자 장치는 각 색상 채널에 스케일 팩터를 부여할 수 있다. 영상 채널의 값을 증폭시킴으로써, 큰 값을 가지는 신호가 상대적으로 보다 커지게 됨으로써, 신호 대 잡음비를 향상시킬 수 있다. 동작 S860에서, 전자 장치는 증폭된 색상 채널의 값에 기초하여 심박수 값을 산출할 수 있다.In operation S850, the electronic device may amplify the selected image channel values. That is, the electronic device can increase the size of the signal by amplifying the intensity of each pixel. For example, the electronic device may assign a scale factor to each color channel. By amplifying the value of the video channel, a signal having a large value becomes relatively larger, thereby improving a signal-to-noise ratio. In operation S860, the electronic device may calculate a heart rate value based on the amplified color channel value.

도 9는 일 실시 예에 따른, 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 심박수 값을 산출하기 위한 안면 영역을 인식하는 방법을 개념적으로 설명하기 위한 도면이다.9 is a conceptual diagram illustrating a method of recognizing a face region for calculating a heart rate value by an electronic device (eg, the electronic device 101 of FIG. 1 and the electronic device 300 of FIG. 3 ), according to an exemplary embodiment It is a drawing for.

전자 장치는 영상(900) 내에서 사용자의 안면이 촬영된 제1 영역(910)을 결정할 수 있다. 또한, 전자 장치는 제1 영역 내(910)에서 피부색을 찾고, 그 중심점(920)을 결정할 수 있다. 전자 장치는 중심점(920)으로부터 방사형으로 화소의 값을 증폭시키면서 피부의 색상 값인 것으로 판단되는 픽셀들이 위치된 제2 영역(931)을 결정할 수 있다. 피부의 색상 값이 아닌 눈썹이 촬영된 영역(941)은 제2 영역(931)에 포함되지 않을 수 있다. The electronic device may determine the first area 910 in the image 900 in which the user's face is photographed. Also, the electronic device may find a skin color in the first area 910 and determine a center point 920 thereof. The electronic device may determine the second area 931 in which pixels determined to be skin color values are located while amplifying the pixel value radially from the center point 920. The area 941 in which the eyebrows other than the color value of the skin are photographed may not be included in the second area 931.

이와 유사하게, 전자 장치는 복수개의 제2 영역들(931, 932, 933, 934)을 결정하고, 복수개의 제2 영역들(931, 932, 933, 934)을 결합한 영역에 포함된 픽셀들의 값을 이용하여 생체 신호를 추출함으로써, 안면에서 눈썹 영역(941), 눈 영역(942), 반사광이 촬영된 영역(943)을 제외한 피부의 색상 값을 가지는 영역들에 기초하여 생체 신호를 추출할 수 있다.Similarly, the electronic device determines a plurality of second regions 931, 932, 933, 934, and values of pixels included in an area combining the plurality of second regions 931, 932, 933, 934 By extracting the bio-signal using, the bio-signal can be extracted based on areas having a color value of the skin excluding the eyebrow area 941, the eye area 942, and the area 943 in which the reflected light is photographed. have.

도 10은 일 실시 예에 따른, 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 심박수 값이 정상적으로 산출되었는지 판단하는 프로세스를 도시한 순서도(1000)이다. 도 10 및 관련된 설명에서 개시되는 전자 장치의 동작은 전자 장치의 프로세서(예: 도 1의 프로세서(120), 도 3의 프로세서(310))가 메모리(예: 도 1의 메모리(130), 도 3의 메모리(320))에 저장된 인스트럭션들을 실행하여 수행되는 것으로 이해될 수 있다.10 is a flowchart 1000 illustrating a process of determining whether a heart rate value is normally calculated by an electronic device (eg, the electronic device 101 of FIG. 1 and the electronic device 300 of FIG. 3 ), according to an exemplary embodiment. . In the operation of the electronic device disclosed in FIG. 10 and related description, the processor of the electronic device (eg, the processor 120 of FIG. 1, the processor 310 of FIG. 3) is a memory (eg, the memory 130 of FIG. 1, FIG. It can be understood that it is executed by executing instructions stored in the memory 320 of 3.

동작 S1010에서, 전자 장치는 영상 데이터 내에서 객체를 검출할 수 있다. 일 실시 예에 따르면, 전자 장치는 검출된 객체 중에서 사용자에 상응하는 객체가 존재하는지 여부를 판단할 수 있다. 사용자에 해당하는 객체가 존재하지 않으면, 전자 장치는 사용자가 영상 내에 촬영될 수 있도록 유도하는 메시지를 출력할 수 있다. 또는, 전자 장치는 프로세스를 종료할 수도 있다.In operation S1010, the electronic device may detect an object in the image data. According to an embodiment, the electronic device may determine whether an object corresponding to a user exists among the detected objects. If an object corresponding to the user does not exist, the electronic device may output a message inducing the user to be photographed in the image. Alternatively, the electronic device may terminate the process.

동작 S1020에서, 전자 장치는 영상 데이터 내에서 사용자의 안면이 검출 가능한지 여부를 판단할 수 있다. 영상 데이터 내에서 사용자의 안면이 검출되지 않는 경우, 전자 장치는 심박수가 정상적으로 산출되지 않는 것으로 판단할 수 있다.In operation S1020, the electronic device may determine whether the user's face is detectable within the image data. When the user's face is not detected in the image data, the electronic device may determine that the heart rate is not normally calculated.

영상 데이터 내에서 사용자의 안면이 검출된 경우, 동작 S1030에서 전자 장치는 검출된 안면 영역 내의 정보에 기초하여 심박수 값을 산출할 수 있다. 예를 들어, 전자 장치는 안면 영역 내의 피부 색상 값으로부터 생체 신호로서 맥파를 추출하고, 맥파로부터 단위 시간당 발생한 심박수를 결정할 수 있다.When the user's face is detected in the image data, in operation S1030, the electronic device may calculate a heart rate value based on information in the detected face area. For example, the electronic device may extract a pulse wave as a bio-signal from a skin color value in the facial area, and determine a heart rate generated per unit time from the pulse wave.

동작 S1040에서, 전자 장치는 심박수 값이 정상적으로 산출되는지 여부를 판단할 수 있다. 예를 들어, 전자 장치는 생체 신호의 R-R 피크 인터벌 값이 정상 범위에 포함되어 있는 경우에, 심박수 값이 정상적으로 산출되는 것으로 판단할 수 있다. 반대로, 전자 장치는 생체 신호의 R-R 피크 인터벌 값이 정상 범위를 벗어난 경우 심박수 값이 정상적으로 산출되지 않는 것으로 판단할 수 있다.In operation S1040, the electronic device may determine whether the heart rate value is normally calculated. For example, when the R-R peak interval value of the biosignal is included in the normal range, the electronic device may determine that the heart rate value is normally calculated. Conversely, when the R-R peak interval value of the bio-signal is out of the normal range, the electronic device may determine that the heart rate value is not normally calculated.

도 11은 일 실시 예에 따른, 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 심박수 값이 정상적으로 산출되지 않은 경우에 보정 값을 결정하는 프로세스를 도시한 순서도(1100)이다. 도 11 및 관련된 설명에서 개시되는 전자 장치의 동작은 전자 장치의 프로세서(예: 도 1의 프로세서(120), 도 3의 프로세서(310))가 메모리(예: 도 1의 메모리(130), 도 3의 메모리(320))에 저장된 인스트럭션들을 실행하여 수행되는 것으로 이해될 수 있다.11 is a diagram illustrating a process of determining a correction value when a heart rate value is not normally calculated by an electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 300 of FIG. 3 ), according to an embodiment One is a flow chart 1100. In the operation of the electronic device disclosed in FIG. 11 and related description, the processor of the electronic device (eg, the processor 120 of FIG. 1, the processor 310 of FIG. 3) is a memory (eg, the memory 130 of FIG. 1, FIG. It can be understood that it is executed by executing instructions stored in the memory 320 of 3.

동작 S1110에서, 전자 장치는 정상적으로 산출되지 않은 심박수 값을 후보 데이터를 이용하여 보정 가능한지 여부를 판단할 수 있다. 일 실시 예에 따르면, 전자 장치는 심박수 값이 정상적으로 산출되지 않은 구간의 크기가 임계값 이하인 경우, 후보 데이터에 기초하여 심박수 값을 보정할 수 있는 것으로 판단할 수 있다. 반대로, 심박수 값이 정상적으로 산출되지 않은 구간의 크기가 임계값보다 큰 경우, 전자 장치는 심박수 값을 후보 데이터로 보정할 수 없는 것으로 판단할 수 있다. 즉, 단기간 동안 유실된 생체 신호에 대해서는 후보 데이터에 기초하여 데이터를 보정하고, 생체 신호가 유실된 구간이 길어지는 경우 다른 방식에 기초하여 데이터를 보정할 수 있다.In operation S1110, the electronic device may determine whether a heart rate value that is not normally calculated can be corrected using candidate data. According to an embodiment, when the size of a section in which the heart rate value is not normally calculated is less than or equal to the threshold value, the electronic device may determine that the heart rate value can be corrected based on candidate data. Conversely, when the size of the section in which the heart rate value is not normally calculated is greater than the threshold value, the electronic device may determine that the heart rate value cannot be corrected as candidate data. That is, data may be corrected based on candidate data for a biosignal lost for a short period of time, and data may be corrected based on a different method when the period in which the biosignal is lost becomes longer.

여기서, 후보 데이터는 기존에 측정된 심박 데이터와 비교하여, 측정되는 심박 데이터들과 유사한 특징을 가지도록 모델링된 데이터를 포함할 수 있다. 후보 데이터는 심박 데이터 예측 모델이라고 언급될 수도 있다. 전자 장치는 유전 알고리즘을 이용한 기계 학습을 이용하여 측정된 데이터를 학습한 결과에 기초하여 후보 데이터를 업데이트할 수 있다.Here, the candidate data may include data modeled to have characteristics similar to those of the measured heart rate data by comparing with the previously measured heart rate data. The candidate data may be referred to as a heart rate data prediction model. The electronic device may update candidate data based on a result of learning measured data using machine learning using a genetic algorithm.

후보 데이터에 기초하여 데이터를 보정할 수 있는 것으로 판단된 경우, 동작 S1120에서 전자 장치는 후보 데이터에 기초하여 정상적으로 산출되지 않은 심박수 값을 보정하기 위한 보정 값을 결정할 수 있다. 후보 데이터에 기초하여 데이터를 보정할 수 없는 것으로 판단된 경우, 동작 S1125에서 전자 장치는 패턴 유사도에 기초하여 보정 값을 결정할 수 있다. 동작 S1125에서, 패턴 유사도에 기초하여 보정 값을 결정하기 위하여, 전자 장치는 사용자 정보 및 정상적으로 측정된 마지막 심박수 값에 기초하여 보정 값을 결정할 수 있다. 여기서, 사용자 정보는 사용자의 속성(예: 성별, 나이, 체중, 신장)을 나타내는 정보와 사용자가 수행중인 운동에 관련된 정보(예: 운동의 종류, 운동 강도)를 포함할 수 있다. 전자 장치는 패턴 데이터베이스로부터 사용자 정보에 상응하는 데이터 패턴을 검색할 수 있다. 데이터 패턴은 사용자 정보에 상응하는 심박수 변화량에 대한 정보를 포함할 수 있다. 전자 장치는 검색된 심박수 변화량과 마지막 심박수 값에 기초하여 심박수 값을 보정하기 위한 보정 값을 결정할 수 있다. 일 실시 예에 따르면, 전자 장치는 전자 장치에 저장된 패턴 데이터베이스로부터 데이터 패턴을 검색할 수 있다. 다른 실시 예에 따르면, 전자 장치는 사용자 정보를 외부 서버에게 제공하고, 외부 서버가 패턴 데이터베이스로부터 데이터 패턴을 검색하여 전자 장치로 전송할 수도 있다.If it is determined that data can be corrected based on the candidate data, in operation S1120, the electronic device may determine a correction value for correcting a heart rate value that is not normally calculated based on the candidate data. If it is determined that data cannot be corrected based on the candidate data, in operation S1125, the electronic device may determine a correction value based on the pattern similarity. In operation S1125, in order to determine the correction value based on the pattern similarity, the electronic device may determine the correction value based on user information and a normally measured last heart rate value. Here, the user information may include information indicating a user's attributes (eg, gender, age, weight, height) and information related to an exercise that the user is performing (eg, type of exercise, intensity of exercise). The electronic device may search for a data pattern corresponding to user information from the pattern database. The data pattern may include information on an amount of change in heart rate corresponding to user information. The electronic device may determine a correction value for correcting the heart rate value based on the searched heart rate change amount and the last heart rate value. According to an embodiment, the electronic device may search for a data pattern from a pattern database stored in the electronic device. According to another embodiment, the electronic device may provide user information to an external server, and the external server may retrieve a data pattern from a pattern database and transmit it to the electronic device.

동작 S1130에서, 전자 장치는 보정 값을 포함하는 생체 정보 데이터를 생성할 수 있다. 보정 값을 포함하는 생체 정보 데이터는 보정 값에 기반하여 산출된 심박수 값을 포함할 수 있다. 일 실시 예에 따르면, 전자 장치는 생체 정보 데이터에 포함된 값이 보정된 값인 경우, 그 값이 보정된 것임을 나타내는 인디케이터를 포함하여 생체 정보 데이터를 생성할 수 있다.In operation S1130, the electronic device may generate biometric information data including a correction value. The biometric information data including the correction value may include a heart rate value calculated based on the correction value. According to an embodiment, when a value included in the biometric information data is a corrected value, the electronic device may generate the biometric information data including an indicator indicating that the value has been corrected.

도 11에 도시된 순서도(1100)는 일 실시 예에 기초하여 정상적으로 측정되지 않은 데이터를 보정하는 방법을 설명하기 위한 것이며, 데이터를 보정하는 프로세스는 순서도(1100)와 다르게 적용될 수도 있다.The flowchart 1100 illustrated in FIG. 11 is for explaining a method of correcting data that is not normally measured based on an embodiment, and a process of correcting data may be applied differently from the flowchart 1100.

도 12는 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 후보 데이터를 이용하여 심박수 값을 보정하는 동작을 개념적으로 나타낸다.12 conceptually illustrates an operation of correcting a heart rate value by using candidate data by an electronic device (eg, the electronic device 101 of FIG. 1 and the electronic device 300 of FIG. 3) according to an embodiment.

전자 장치는 정상 구간(1210)에서 추출된 맥파로부터 정상적인 심박수 값을 산출할 수 있다. 그러나 비정상 구간(1220)에서는 맥파가 정상적으로 추출되지 않아 심박수 값을 정상적으로 추출할 수 없다. 따라서, 비정상 구간(1220)의 데이터를 보정할 필요가 있다. 도 12의 비정상 구간(1220)을 참조하면, 비정상 구간(1220)의 데이터는 정상적인 R-R 피크 인터벌을 가지지 못하므로, 일 실시 예에 따른 전자 장치는 데이터의 R-R 피크 인터벌을 기준으로 정상 구간(1210)과 비정상 구간(1220)을 식별할 수 있다.The electronic device may calculate a normal heart rate value from the pulse wave extracted in the normal section 1210. However, in the abnormal section 1220, since the pulse wave is not normally extracted, the heart rate value cannot be normally extracted. Therefore, it is necessary to correct the data of the abnormal section 1220. Referring to the abnormal section 1220 of FIG. 12, since the data of the abnormal section 1220 does not have a normal RR peak interval, the electronic device according to an exemplary embodiment uses the normal section 1210 based on the RR peak interval of the data. And the abnormal section 1220 can be identified.

비정상 구간(1220)의 데이터를 보정하기 위하여, 전자 장치는 비정상 구간(1220)의 데이터를 후보 데이터(1200)로 대체할 수 있다. 일 실시 예에 따르면, 후보 데이터(1200)는 정상 구간(1210)의 데이터로부터 추출된 특징점을 학습하여, 비정상 구간(1220)에서 발생할 데이터를 예측하여 작성된 데이터일 수 있다.In order to correct the data of the abnormal section 1220, the electronic device may replace the data of the abnormal section 1220 with candidate data 1200. According to an embodiment, the candidate data 1200 may be data created by predicting data to occur in the abnormal section 1220 by learning feature points extracted from data in the normal section 1210.

도 13은 일 실시 예에 따른, 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 정상적인 심박수 값이 산출된 경우에 보정된 생체 정보 데이터를 추가적으로 보정하는 프로세스를 도시한 순서도(1300)이다. 도 13 및 관련된 설명에서 개시되는 전자 장치의 동작은 전자 장치의 프로세서(예: 도 1의 프로세서(120), 도 3의 프로세서(310))가 메모리(예: 도 1의 메모리(130), 도 3의 메모리(320))에 저장된 인스트럭션들을 실행하여 수행되는 것으로 이해될 수 있다.13 illustrates an electronic device (eg, the electronic device 101 of FIG. 1, the electronic device 300 of FIG. 3) additionally correcting the corrected biometric information data when a normal heart rate value is calculated, according to an exemplary embodiment. A flowchart 1300 depicting the process. In the operation of the electronic device disclosed in FIG. 13 and related descriptions, the processor of the electronic device (eg, the processor 120 of FIG. 1, the processor 310 of FIG. 3) is a memory (eg, the memory 130 of FIG. 1, FIG. It can be understood that it is executed by executing instructions stored in the memory 320 of 3.

영상 데이터로부터 정상적으로 심박수 값이 산출된 경우, 동작 S1310에서 전자 장치는 생체 정보 데이터 내에서 산출된 심박수 값 이전에 해당하는 데이터가 보정된 값인지 여부를 판단할 수 있다. 이전 데이터는 산출된 심박수 값 이전의 심박수 값이거나, 이전의 심박수 값을 산출하기 위한 다른 생체 신호 값을 의미할 수 있다. 심박수 값이 정상적으로 산출되지 않아 보정된 값에 기초하여 생체 정보 데이터가 구성된 상태에서, 정상적인 심박수 값이 입력될 경우 이전 데이터의 보정된 값은 실제 값이 아니므로 실제 심박수 값과 오차가 발생할 수 있다. 이 경우, 이전 데이터와 산출된 심박수 값 사이에 비선형적인 구간이 발생할 수 있다. 이전 데이터의 보정된 값이 실제 값과 일치하지 않아 데이터가 불연속적으로 형성될 수 있다.When the heart rate value is normally calculated from the image data, in operation S1310, the electronic device may determine whether data corresponding to the heart rate value before the calculated heart rate value in the biometric information data is a corrected value. The previous data may be a heart rate value prior to the calculated heart rate value, or may mean another biosignal value for calculating a previous heart rate value. In a state in which the biometric information data is configured based on the corrected value because the heart rate value is not normally calculated, when a normal heart rate value is input, since the corrected value of the previous data is not an actual value, an error may occur with the actual heart rate value. In this case, a non-linear section may occur between the previous data and the calculated heart rate value. Data may be discontinuously formed because the corrected value of the previous data does not match the actual value.

생체 정보 데이터를 사용자의 상태 진단 등에 보다 유용하게 활용하기 위해서는 보정된 값과 실제 값의 불일치를 보정할 필요가 있다. 따라서, 산출된 심박수 값에 대한 이전 데이터가 보정된 값인 경우, 전자 장치는 동작 S1320에서 산출된 심박수 값에 기초하여 이전 데이터의 보정 값을 평가하고, 보정 값이 유효하지 않은 경우 이전 데이터의 보정 값을 재보정할 수 있다. 예를 들면, 전자 장치는 이전 데이터의 보정 값과 산출된 심박수 값이 선형적인 관계를 가지지 않는 경우 보정 값이 유효하지 않은 것으로 판단할 수 있다. 전자 장치는 이전 데이터의 보정된 값이 산출된 심박수 값과 선형적인 값을 가지도록 이전 데이터를 재보정할 수 있다.In order to use the biometric information data more usefully for diagnosing the user's condition, it is necessary to correct the discrepancy between the corrected value and the actual value. Therefore, if the previous data for the calculated heart rate value is a corrected value, the electronic device evaluates the correction value of the previous data based on the heart rate value calculated in operation S1320, and if the correction value is not valid, the correction value of the previous data Can be recalibrated. For example, if the correction value of previous data and the calculated heart rate value do not have a linear relationship, the electronic device may determine that the correction value is not valid. The electronic device may recalibrate the previous data so that the corrected value of the previous data has a linear value with the calculated heart rate value.

동작 S1330에서, 전자 장치는 산출된 심박수 값을 포함하는 생체 정보 데이터를 생성할 수 있다.In operation S1330, the electronic device may generate biometric information data including the calculated heart rate value.

도 14는 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 보정된 값을 재보정하는 동작을 개념적으로 나타낸다.14 conceptually illustrates an operation of recalibrating a corrected value by an electronic device (eg, the electronic device 101 of FIG. 1 and the electronic device 300 of FIG. 3) according to an exemplary embodiment.

도 14를 참조하면, 정상 구간(830)의 생체 신호가 시작되는 제1 시점(1410)과 정상 구간(830) 이전의 보정된 구간(821)이 종료되는 제2 시점(1420) 사이에 생체 신호가 비선형적으로 형성되는 지점(1430)이 발생할 수 있다.Referring to FIG. 14, a biosignal between a first time point 1410 at which the biosignal of the normal section 830 starts and a second time point 1420 at which the corrected section 821 before the normal section 830 ends. A point 1430 at which is formed non-linearly may occur.

전자 장치는 비선형성이 발생하는 지점(1430)을 제거하기 위하여, 보정된 구간(821)의 제2 시점(1420)을 포함하는 적어도 일부 구간(1425)의 데이터를 제1 시점(1410)의 데이터와 선형적인 관계를 가지도록 보정할 수 있다.In order to remove the point 1430 where the nonlinearity occurs, the electronic device converts data of at least a portion of the section 1425 including the second point of view 1420 of the corrected section 821 into the data of the first point of view 1410. It can be corrected to have a linear relationship with.

다만, 도 14는 생체 신호를 재보정하는 일 실시 예를 설명한 것에 불과하며, 이에 한정되지 아니한다. 다른 일 실시 예에 따르면, 전자 장치는 보정된 데이터의 전후에 정상적으로 산출된 심박수 값들에 기초하여 보정된 구간의 값을 보정된 데이터의 전후에 정상적으로 산출된 심박수 값을 선형적으로 연결하는 값으로 보정할 수도 있다. 예를 들어, 제1 구간의 종점에 심박수 값이 80으로 산출되었고, 제1 구간의 이후인 제2 구간에 심박수 값이 90으로 보정되었으며, 제2 구간 이후인 제3 구간의 시점에 심박수 값이 105가 산출된 경우, 전자 장치는 제2 구간의 심박수 값을 제2 구간의 시점에서 80으로 시작하여 종점에서 105가 되도록 선형적으로 증가하는 심박수 값으로 재보정할 수 있다.However, FIG. 14 is merely a description of an exemplary embodiment of recalibrating a bio-signal, but is not limited thereto. According to another embodiment, the electronic device corrects the value of the corrected section based on the heart rate values normally calculated before and after the corrected data to a value that linearly connects the heart rate value normally calculated before and after the corrected data. You may. For example, the heart rate value was calculated as 80 at the end point of the first section, the heart rate value was corrected to 90 in the second section after the first section, and the heart rate value at the point in the third section after the second section When 105 is calculated, the electronic device may recalibrate the heart rate value of the second section to a heart rate value that linearly increases so that the heart rate value of the second section starts at 80 at the time point of the second section and becomes 105 at the end point.

도 15는 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 특징점에 기초하여 후보 데이터를 생성하고 생체 정보 데이터를 생성하는 프로세스를 도시한 순서도(1500)이다. 도 15 및 관련된 설명에서 개시되는 전자 장치의 동작은 전자 장치의 프로세서(예: 도 1의 프로세서(120), 도 3의 프로세서(310))가 메모리(예: 도 1의 메모리(130), 도 3의 메모리(320))에 저장된 인스트럭션들을 실행하여 수행되는 것으로 이해될 수 있다.15 is a diagram illustrating a process in which an electronic device (eg, the electronic device 101 of FIG. 1, the electronic device 300 of FIG. 3) generates candidate data based on a feature point and generates biometric information data according to an embodiment. One is a flow chart 1500. In the operation of the electronic device disclosed in FIG. 15 and related description, the processor of the electronic device (eg, the processor 120 of FIG. 1, the processor 310 of FIG. 3) is a memory (eg, the memory 130 of FIG. 1, FIG. It can be understood that it is executed by executing instructions stored in the memory 320 of 3.

동작 S1510에서, 전자 장치는 후보 데이터를 생성할 수 있다. 최초로 후보 데이터를 생성하는 경우에, 전자 장치가 최적의 값 또는 패턴을 알 수 없으므로, 목표 적합도를 추정하여 후보 데이터가 구성될 수 있다. 목표 적합도는 개인의 평균적인 정상 심박수를 의미할 수 있다. 즉, 전자 장치는 사용자의 정상 심박수를 나타내도록 초기 후보 데이터를 구성할 수 있다. 특징점 데이터가 누적된 상태에서 후보 데이터를 생성하는 경우, 동작 S1510에서 전자 장치는 특징점 데이터에 기초하여 후보 데이터를 생성할 수 있다. 일 실시 예에 따르면, 후보 데이터는 인공적으로 생성된 심박 데이터(Artificial Heartbeat Data)일 수 있다.In operation S1510, the electronic device may generate candidate data. In the case of generating candidate data for the first time, since the electronic device cannot know an optimal value or pattern, candidate data may be configured by estimating a target suitability. Target fit may mean an individual's average normal heart rate. That is, the electronic device may configure initial candidate data to indicate the user's normal heart rate. When candidate data is generated while the feature point data is accumulated, in operation S1510, the electronic device may generate candidate data based on the feature point data. According to an embodiment, the candidate data may be artificially generated heartbeat data.

동작 S1520에서, 전자 장치는 입력 데이터가 존재하는지 여부를 판단할 수 있다. 입력 데이터는 산출된 심박수 값이나 심박수 값을 산출하기 위한 생체 신호를 의미할 수 있다. 영상 데이터에서 사용자의 안면이 인식되지 않는 경우, 생체 신호가 추출되지 않아 심박수 값이 산출되지 않으므로, 전자 장치는 입력 신호가 존재하지 않는 것으로 판단할 수 있다. 입력 데이터가 존재하지 않는 경우, 심박수 값이 산출될 수 없으므로, 동작 S1525에서 전자 장치는 후보 데이터에 기초하여 생체 정보 데이터를 생성할 수 있다.In operation S1520, the electronic device may determine whether input data exists. The input data may mean a calculated heart rate value or a biosignal for calculating a heart rate value. When the user's face is not recognized from the image data, since the biosignal is not extracted and the heart rate value is not calculated, the electronic device may determine that the input signal does not exist. If the input data does not exist, since the heart rate value cannot be calculated, in operation S1525, the electronic device may generate biometric information data based on the candidate data.

입력 데이터가 존재하는 경우, 동작 S1530에서 전자 장치는 특징점 데이터량이 충분한지 여부를 판단할 수 있다. 예를 들어, 전자 장치는 특징점 데이터가 500 프레임 이상의 특징점을 포함하고, 특징점 데이터에 기초하여 후보 데이터를 작성할 경우 각 시행시마다 그 결과에 대해 변동이 발생하지 않고 안정적으로 후보 데이터가 작성되는 경우 특징점 데이터량이 충분한 것으로 판단할 수 있다. 특징점 데이터는 기계 학습 모델을 이용하여 장치가 학습할 수 있도록 생체 신호로부터 추출된 특징점에 대한 정보를 포함하는 데이터를 의미할 수 있다. 특징점 데이터량이 충분하지 않은 경우, 동작 S1510에서 생성된 후보 데이터를 신뢰할 수 없으므로, 전자 장치는 후보 데이터를 보정 값 생성에 이용하지 않을 수 있다. 이 경우, 전자 장치는 동작 S1550에서 입력 데이터로부터 특징점을 추출하여 특징점 데이터를 업데이트하고, 입력 데이터에 포함되거나 입력 데이터로부터 산출된 심박수 값에 기초하여 생체 정보 데이터를 생성할 수 있다.When there is input data, in operation S1530, the electronic device may determine whether the amount of feature point data is sufficient. For example, in an electronic device, if the feature point data contains more than 500 frames and candidate data is created based on the feature point data, there is no change in the result at each run, and the candidate data is stably created. It can be judged that the amount is sufficient. The feature point data may mean data including information on feature points extracted from a bio-signal so that the device can learn by using a machine learning model. If the amount of feature point data is not sufficient, since candidate data generated in operation S1510 is not reliable, the electronic device may not use the candidate data to generate a correction value. In this case, the electronic device may extract the feature point from the input data in operation S1550, update the feature point data, and generate biometric information data based on a heart rate value included in the input data or calculated from the input data.

특징점 데이터량이 충분한 경우, 전자 장치는 동작 S1540에서 입력 데이터에 기반한 심박수 값과 후보 데이터를 비교할 수 있다. 전자 장치는 심박수 값과 후보 데이터를 비교하기 위하여, 심박수 값에 대한 R-R 피크 인터벌과 후보 데이터에 대한 R-R 피크 인터벌을 비교할 수 있다. 후보 데이터는 정상적으로 생체 신호가 측정될 경우에 측정될 것으로 예상되는 생체 신호이므로, 정상적으로 측정된 생체 신호는 후보 데이터의 R-R 피크 인터벌과 유사한 R-R 피크 인터벌을 가지게 된다. 따라서, R-R 피크 인터벌의 비교를 통해서 측정된 생체 신호 또는 심박수 값이 보정이 필요한 값인지 여부를 판단할 수 있다. 일 실시 예에 따르면, 심박수 값에 대한 R-R 피크 인터벌은 심박수 값을 산출하기 위한 맥파 곡선의 R-R 피크 인터벌을 의미할 수 있다. 산출된 심박수 값에 대한 R-R 피크 인터벌과 후보 데이터에 대한 R-R 피크 인터벌의 차가 지정된 범위 내에 포함되는 경우, 전자 장치는 동작 S1550에서 심박수 산출과 관련된 정보로부터 특징점을 추출하여 업데이트하고, 산출된 심박수 값에 기초하여 생체 정보 데이터를 생성할 수 있다. 산출된 심박수 값에 대한 R-R 피크 인터벌과 후보 데이터에 대한 R-R 피크 인터벌의 차가 지정된 범위를 벗어나는 경우(또는 지정된 범위의 값보다 큰 경우), 전자 장치는 동작 S1555에서 심박수 값을 후보 데이터에 기초하여 결정되는 보정 값으로 대체한(보정한) 생체 정보 데이터를 생성할 수 있다.When the amount of feature point data is sufficient, the electronic device may compare a heart rate value based on the input data and candidate data in operation S1540. In order to compare the heart rate value and the candidate data, the electronic device may compare the R-R peak interval for the heart rate value and the R-R peak interval for the candidate data. Since the candidate data is a biosignal that is expected to be measured when the biosignal is normally measured, the biosignal normally measured has an R-R peak interval similar to the R-R peak interval of the candidate data. Accordingly, it may be determined whether the measured bio-signal or heart rate value is a value requiring correction through comparison of the R-R peak interval. According to an embodiment, the R-R peak interval with respect to a heart rate value may mean an R-R peak interval of a pulse wave curve for calculating a heart rate value. If the difference between the RR peak interval for the calculated heart rate value and the RR peak interval for the candidate data is within the specified range, the electronic device extracts and updates feature points from information related to heart rate calculation in operation S1550, and updates the calculated heart rate value. Biometric information data can be generated on the basis of it. When the difference between the RR peak interval for the calculated heart rate value and the RR peak interval for the candidate data is outside the specified range (or greater than the value in the specified range), the electronic device determines the heart rate value based on the candidate data in operation S1555. It is possible to generate biometric information data replaced (corrected) with the corrected value.

동작 S1560에서, 심박수 값을 측정하는 프로세스가 종료되지 않은 경우, 전자 장치는 동작 S1510의 동작을 반복적으로 수행할 수 있다.In operation S1560, when the process of measuring the heart rate value is not finished, the electronic device may repeatedly perform the operation of operation S1510.

일 실시 예에 따르면 전자 장치는 생성된 후보 데이터 중 R-R 피크 인터벌 값이 유사한 후보 데이터만 남도록 할 수 있다. 전자 장치는 생존한 후보 데이터의 R-R 피크 인터벌 값을 저장하고, 차회 후보 데이터 생성에 저장된 R-R 피크 인터벌 값을 적용할 수 있다.According to an embodiment, the electronic device may allow only candidate data having a similar R-R peak interval value to remain among the generated candidate data. The electronic device may store the R-R peak interval value of the surviving candidate data and apply the stored R-R peak interval value to the next generation of candidate data.

도 16은 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))에 의해 디스플레이되는 화면(1600)의 예시를 나타낸다.16 illustrates an example of a screen 1600 displayed by an electronic device (eg, the electronic device 101 of FIG. 1 and the electronic device 300 of FIG. 3) according to an embodiment.

전자 장치에 의해 디스플레이(예: 도 3의 디스플레이(340)) 상에 디스플레이되는 화면(1600)은 카메라(예: 도 3의 카메라(330))를 통해서 촬영된 영상(1610) 및 가이드 영상 콘텐트(1620)를 포함할 수 있다. 가이드 영상 콘텐트(1620)는, 예를 들어, 전자 장치에 저장되거나 외부 서버로부터 스트리밍(streaming)되는 동영상을 포함할 수 있다.The screen 1600 displayed on the display (for example, the display 340 of FIG. 3) by the electronic device includes an image 1610 captured by a camera (eg, the camera 330 of FIG. 3) and the guide image content ( 1620). The guide image content 1620 may include, for example, a video stored in an electronic device or streamed from an external server.

일 실시 예에 따르면, 화면(1600)은 영상 데이터에 기초하여 측정된 심박수 값을 나타내는 심박수 표시 영역(1630)을 포함할 수 있다. 사용자의 신체에 접촉식 측정 장치가 접촉되어 있지 않은 경우 운동 중인 사용자의 심박수 값을 측정하기 어려우나, 본 문서에서 개시되는 실시 예들에 의하면 영상 분석만으로 운동 중인 사용자의 심박수 값을 제공할 수 있다.According to an embodiment, the screen 1600 may include a heart rate display area 1630 indicating a heart rate value measured based on image data. When the user's body is not in contact with the contact-type measurement device, it is difficult to measure the heart rate value of the user during exercise, but according to embodiments disclosed in this document, the heart rate value of the user during exercise may be provided only by image analysis.

일 실시 예에 따르면, 화면(1600)은 사용자 정보와 동일한 속성(예: 성별, 나이, 신장 또는 체중)을 가지는 사용자들에 대한 정상적인 심박수 값의 범위를 나타내는 참조 심박수 표시 영역(도시되지 않음)을 포함할 수 있다. 참조 심박수 표시 영역은 실시 예에 따라 다양하게 표현될 수 있다. 일 예를 들면, 참조 심박수 표시 영역은 심박수 표시 영역(1630)에 표시되어 측정된 심박수 값과 대조되도록 할 수 있다.According to an embodiment, the screen 1600 displays a reference heart rate display area (not shown) representing a range of normal heart rate values for users having the same attributes as user information (eg, gender, age, height, or weight). Can include. The reference heart rate display area may be expressed in various ways according to exemplary embodiments. For example, the reference heart rate display area may be displayed on the heart rate display area 1630 to be compared with the measured heart rate value.

일 실시 예에 따르면, 화면(1600)은 심박수 값에 기초하여 산출된 열량 소모량을 표시하는 열량 표시 영역(1640)을 포함할 수 있다. 전자 장치는 운동 중 측정된 심박수 값을 이용하여 보다 정확한 열량 소모량을 산출할 수 있다. 일 실시 예에 따르면, 전자 장치는 가이드 영상 콘텐트(1620)에 상응하는 운동의 종류와 심박수 값에 기초하여 열량 소모량을 산출할 수 있다. 예를 들어, 전자 장치는 하기 수학식 1에 기초하여 열량 소모량을 산출할 수 있다.According to an embodiment, the screen 1600 may include a calorie display area 1640 that displays a calorie consumption amount calculated based on a heart rate value. The electronic device may calculate a more accurate amount of heat consumption by using the heart rate value measured during exercise. According to an embodiment, the electronic device may calculate the amount of heat consumed based on a type of exercise and a heart rate value corresponding to the guide image content 1620. For example, the electronic device may calculate the amount of heat consumed based on Equation 1 below.

Figure pat00001
Figure pat00001

M count 는 운동별 산소 소모 계수, weight는 사용자의 몸무게, HR은 심박수, HR REST 는 휴식기 심박수, k AGE 는 나이 상관계수를 의미한다. M count is the oxygen consumption coefficient for each exercise, weight is the user's weight, HR is the heart rate, HR REST is the resting heart rate, and k AGE is the age correlation coefficient.

도 17은 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 가이드 영상 콘텐트(예: 도 16의 가이드 영상 콘텐트(1620))와 함께 생체 정보 데이터를 제공하기 위한 프로세스(1700)를 도시한 순서도이다. 도 17 및 관련된 설명에서 개시되는 전자 장치의 동작은 전자 장치의 프로세서(예: 도 1의 프로세서(120), 도 3의 프로세서(310))가 메모리(예: 도 1의 메모리(130), 도 3의 메모리(320))에 저장된 인스트럭션들을 실행하여 수행되는 것으로 이해될 수 있다.17 illustrates an electronic device (eg, the electronic device 101 of FIG. 1, the electronic device 300 of FIG. 3) according to an embodiment together with a guide image content (eg, the guide image content 1620 of FIG. 16 ). A flow chart showing a process 1700 for providing biometric information data. In the operation of the electronic device disclosed in FIG. 17 and related description, the processor of the electronic device (eg, the processor 120 of FIG. 1, the processor 310 of FIG. 3) is a memory (eg, the memory 130 of FIG. 1, FIG. It can be understood that it is executed by executing instructions stored in the memory 320 of 3.

동작 S1710에서, 전자 장치는 디스플레이(예: 도 3의 디스플레이(340))에 카메라(예: 도 3의 카메라(330))를 통해서 촬영된 영상을 포함하는 영상 데이터(예: 도 16의 영상(1610))와 가이드 영상 콘텐트를 출력할 수 있다. 또한 전자 장치는 촬영된 영상을 포함하는 영상 데이터에 기초하여 심박수 값을 산출할 수 있다.In operation S1710, the electronic device displays image data (eg, the image (eg, the image of FIG. 16)) including an image captured through a camera (eg, the camera 330 of FIG. 3) on the display (eg, the display 340 of FIG. 1610)) and guide video content can be output. Also, the electronic device may calculate a heart rate value based on image data including the captured image.

동작 S1720에서, 전자 장치는 심박수 값이 정상적으로 산출되었는지 여부를 판단할 수 있다. 심박수 값이 정상적으로 산출된 경우, 전자 장치는 산출된 심박수 값에 기초하여 동작 S1750에서 생체 정보 데이터를 생성할 수 있다.In operation S1720, the electronic device may determine whether the heart rate value is normally calculated. When the heart rate value is normally calculated, the electronic device may generate biometric information data in operation S1750 based on the calculated heart rate value.

심박수 값이 정상적으로 산출되지 않은 경우, 동작 S1730에서 전자 장치는 운동 프로그램의 심박수 변화량 데이터로부터 정상적인 심박수 변화량을 획득할 수 있다. 일 실시 예에 따르면, 심박수 변화량 데이터는 측정된 데이터가 누적된 빅데이터(big-data)일 수 있다. 예를 들어, 전자 장치는 가이드 영상 콘텐트에 의해서 가이드되는 운동에 대한 정보(예를 들어, 운동 강도, 운동 부위, 근력 운동이나 유산소 운동과 같은 운동의 종류)를 획득할 수 있다. 다른 예를 들면, 전자 장치는 3차원 카메라를 통해서 획득된 영상을 분석하여 운동에 대한 정보(예: 운동의 종류, 운동 반복 횟수)를 획득할 수도 있다. 전자 장치는 운동에 대한 정보에 기초하여, 동일한 운동 수행 시에 측정되었던 심박수의 변화량에 대한 정보를 심박수 변화량 데이터로부터 검색할 수 있다. 심박수 변화량을 획득하면, 동작 S1740에서 전자 장치는 심박수 변화량과 이전 심박수 값에 기초하여 보정 값을 결정할 수 있다. 예를 들어, 전자 장치는 동작 S1720에서 판단 대상이 된 심박수 값 이전에 정상적으로 획득된 심박수 값으로부터 심박수 변화량에 기초하여 변화된 값으로 보정 값을 결정할 수 있다. 보정 값이 결정되면, 동작 S1750에서 전자 장치는 보정 값에 기초하여 보정된 생체 정보 데이터를 생성할 수 있다.When the heart rate value is not normally calculated, in operation S1730, the electronic device may acquire the normal heart rate change amount from the heart rate change amount data of the exercise program. According to an embodiment, the heart rate change amount data may be big-data in which measured data is accumulated. For example, the electronic device may acquire information about an exercise guided by the guide image content (eg, exercise intensity, exercise portion, and type of exercise such as strength exercise or aerobic exercise). For another example, the electronic device may analyze an image acquired through a 3D camera to obtain information on exercise (eg, type of exercise, number of repetitions of exercise). The electronic device may search for information on the amount of change in heart rate measured when performing the same exercise from the data on the amount of change in heart rate, based on the information on the exercise. When the heart rate change amount is acquired, in operation S1740, the electronic device may determine a correction value based on the heart rate change amount and the previous heart rate value. For example, in operation S1720, the electronic device may determine a correction value as a changed value based on a heart rate change amount from a heart rate value normally acquired before a heart rate value that is a target of determination in operation S1720. When the correction value is determined, in operation S1750, the electronic device may generate the corrected biometric information data based on the correction value.

순서도(1700)에 의해 도시된 프로세스는 심박수 값을 측정하는 동안 반복하여 실행될 수 있다.The process illustrated by flow chart 1700 may be executed repeatedly while measuring heart rate values.

도 18은 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 생체 정보 데이터에 기반하여 추천 운동 강도 정보를 제공하는 프로세스를 도시한 순서도(1800)이다. 도 18 및 관련된 설명에서 개시되는 전자 장치의 동작은 전자 장치의 프로세서(예: 도 1의 프로세서(120), 도 3의 프로세서(310))가 메모리(예: 도 1의 메모리(130), 도 3의 메모리(320))에 저장된 인스트럭션들을 실행하여 수행되는 것으로 이해될 수 있다.18 is a flowchart illustrating a process of providing recommended exercise intensity information based on biometric information data by an electronic device (eg, the electronic device 101 of FIG. 1 and the electronic device 300 of FIG. 3) according to an embodiment (1800). In the operation of the electronic device disclosed in FIG. 18 and related description, the processor of the electronic device (eg, the processor 120 of FIG. 1, the processor 310 of FIG. 3) is a memory (eg, the memory 130 of FIG. 1, FIG. It can be understood that it is executed by executing instructions stored in the memory 320 of 3.

동작 S1810에서, 전자 장치는 사용자의 운동 유형 정보를 획득할 수 있다. 여기서, 운동 유형 정보는 사용자가 어떤 종류의 운동을 수행하고 있는지를 나타내는 정보(예를 들어, 운동 강도, 운동 부위, 근력 운동이나 유산소 운동과 같은 운동의 종류)를 의미할 수 있다.In operation S1810, the electronic device may acquire exercise type information of the user. Here, the exercise type information may mean information indicating what kind of exercise the user is performing (eg, exercise intensity, exercise part, and type of exercise such as strength exercise or aerobic exercise).

동작 S1820에서, 전자 장치는 운동 유형 정보에 상응하는 참조 심박수 변화량을 획득할 수 있다. 예를 들어, 전자 장치는 운동 유형 정보에 연관된 참조 심박수 변화량을 데이터베이스로부터 검색할 수 있다. 참조 심박수 변화량은 사용자 또는 타인이 운동 유형 정보에 상응하는 운동을 수행한 경우에 측정된 심박수의 변화량에 대한 정보를 의미할 수 있다. 전자 장치는 획득된 참조 심박수 변화량을 생성된 생체 정보 데이터에 포함된 심박수 값의 변화량을 비교할 수 있다.In operation S1820, the electronic device may acquire a reference heart rate change amount corresponding to the exercise type information. For example, the electronic device may search for a reference heart rate change amount related to exercise type information from the database. The reference heart rate change amount may mean information on the amount of change in heart rate measured when a user or another person performs an exercise corresponding to the exercise type information. The electronic device may compare the obtained reference heart rate change amount with the change amount of the heart rate value included in the generated biometric information data.

동작 S1830에서, 전자 장치는 비교 결과에 기초하여 추천 운동 강도 정보를 결정할 수 있다. 예를 들어, 심박수 값의 변화량이 참조 심박수 변화량보다 임계값 이상으로 작은 경우, 전자 장치는 운동 강도를 증가시키도록 하는 정보를 추천 운동 강도 정보로서 결정할 수 있다. 반대로, 심박수 값의 변화량이 참조 심박수 변화량보다 임계값 이상으로 큰 경우, 전자 장치는 운동 강도를 감소시키도록 하거나 휴식을 권고하는 정보를 추천 운동 강도 정보로서 결정할 수 있다. 동작 S1840에서 전자 장치는 지정된 형태(예: 영상이나 소리)로 추천 운동 강도 정보를 사용자에게 전달하는 알림을 출력할 수 있다.In operation S1830, the electronic device may determine recommended exercise intensity information based on the comparison result. For example, when the amount of change in the heart rate value is smaller than the reference amount of change in heart rate by a threshold value or more, the electronic device may determine information for increasing the exercise intensity as the recommended exercise intensity information. Conversely, when the amount of change in the heart rate value is larger than the reference amount of change in heart rate by a threshold value or more, the electronic device may determine information to reduce the exercise intensity or recommend rest as the recommended exercise intensity information. In operation S1840, the electronic device may output a notification for delivering recommended exercise intensity information to the user in a designated form (eg, video or sound).

일 실시 예에 따르면, 전자 장치는 심박수 값의 변화량에 사용자의 움직임에 따른 사용자의 운동 상태에 관한 정보를 더 고려하여 추천 운동 강도 정보를 결정할 수도 있다. 예를 들어, 전자 장치는 사용자의 움직임이 전자 장치의 프로그램에서 지정된 참조 데이터와 매칭되지 않고(즉, 사용자의 운동 동작이 적절하지 않은 경우), 심박수 값의 변화량이 임계값 이하인 경우, 운동 강도를 변경하지 않도록 하는 추천 운동 강도 정보를 결정할 수 있다. 전자 장치의 프로그램에서 지정된 참조 데이터와 매칭되는 사용자의 움직임이 지정된 임계값 이상으로 감지되었으며, 사용자의 심박수 값의 증가량이 지정된 임계값 이하인 경우, 전자 장치는 사용자의 운동 강도를 증가시키도록 하는 추천 운동 강도 정보를 결정할 수 있다. 반대로, 심박수가 급격하기 증가하였으나 감지된 사용자의 움직임이 전자 장치의 프로그램에서 지정된 참조 데이터와 매칭되지 않을 경우, 사용자의 운동 능력이 설정된 운동 강도를 소화하지 못하는 것이므로, 전자 장치는 운동 강도를 감소시키도록 하는 추천 운동 강도 정보를 결정할 수 있다.According to an embodiment, the electronic device may determine recommended exercise intensity information by further considering information on the user's exercise state according to the user's movement in the amount of change in the heart rate value. For example, if the user's movement is not matched with the reference data specified in the electronic device's program (that is, the user's exercise movement is not appropriate), and the change in the heart rate value is less than the threshold value, the electronic device determines the exercise intensity. You can determine the recommended exercise intensity information that you do not want to change. When the user's movement matching the specified reference data in the program of the electronic device is detected above the specified threshold, and the increase in the user's heart rate value is less than the specified threshold, the electronic device is recommended to increase the user's exercise intensity. Strength information can be determined. Conversely, if the heart rate increases rapidly, but the detected user's movement does not match the reference data specified in the electronic device's program, the user's exercise ability cannot digest the set exercise intensity, so the electronic device reduces the exercise intensity. You can determine the recommended exercise intensity information.

도 19는 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300))가 생체 정보 데이터에 기반하여 추천 운동 정보를 제공하는 프로세스를 도시한 순서도(1900)이다. 도 19 및 관련된 설명에서 개시되는 전자 장치의 동작은 전자 장치의 프로세서(예: 도 1의 프로세서(120), 도 3의 프로세서(310))가 메모리(예: 도 1의 메모리(130), 도 3의 메모리(320))에 저장된 인스트럭션들을 실행하여 수행되는 것으로 이해될 수 있다.FIG. 19 is a flowchart illustrating a process of providing recommended exercise information based on biometric information data by an electronic device (eg, the electronic device 101 of FIG. 1 and the electronic device 300 of FIG. 3) according to an embodiment ( 1900). In the operation of the electronic device disclosed in FIG. 19 and related description, the processor of the electronic device (eg, the processor 120 of FIG. 1, the processor 310 of FIG. 3) is a memory (eg, the memory 130 of FIG. 1, FIG. It can be understood that it is executed by executing instructions stored in the memory 320 of 3.

동작 S1910에서, 전자 장치는 사용자에 대한 사용자 정보를 획득할 수 있다. 여기서, 사용자 정보는 사용자에 대한 속성을 나타내는 정보를 의미할 수 있다. 예를 들어, 사용자 정보는 사용자가 수행하고 있는 운동에 대한 정보, 성별, 연령, 몸무게, 및 신장 중 적어도 하나에 대한 정보를 포함할 수 있다.In operation S1910, the electronic device may acquire user information on the user. Here, the user information may mean information indicating an attribute of a user. For example, the user information may include information on an exercise performed by the user, information on at least one of sex, age, weight, and height.

동작 S1920에서, 전자 장치는 사용자 정보와 생체 정보 데이터에 기초하여 추천 운동 정보를 결정할 수 있다. 일 실시 예에 따르면, 전자 장치는 사용자 정보와 동일하거나 유사한 조건을 가지는 사용자의 평균적인 신체 신호와 생체 정보 데이터를 비교할 수 있다. 예를 들어, 전자 장치는 생체 정보 데이터의 심박수 변화량이 사용자 정보에 상응하는 평균적인 심박수 정보의 변화량에 비해 작은 경우 사용자의 운동 능력이 높은 것으로 판단할 수 있다. 전자 장치는 판단된 사용자의 운동 능력에 대한 정보를 출력하고, 결정된 운동 능력 수치에 따른 운동 프로그램을 결정할 수 있다. 예를 들어, 허벅지를 단련하는 운동 프로그램 수행 시에 측정된 생체 정보 데이터에 포함된 심박수가 크게 증가한 경우, 전자 장치는 하체 운동 능력이 낮은 것으로 판단하고 하체 운동 능력을 향상시킬 수 있는 운동 프로그램을 추천 운동 정보로서 결정할 수 있다. 동작 S1930에서 전자 장치는 결정된 추천 운동 정보를 출력할 수 있다.In operation S1920, the electronic device may determine recommended exercise information based on user information and biometric information data. According to an embodiment, the electronic device may compare an average body signal of a user having the same or similar condition as the user information with biometric information data. For example, if the amount of change in heart rate of the biometric data data is smaller than the amount of change in average heart rate information corresponding to user information, the electronic device may determine that the user's exercise ability is high. The electronic device may output information on the determined exercise capability of the user and determine an exercise program according to the determined exercise capability value. For example, if the heart rate included in the measured biometric information data increases significantly while performing an exercise program for training the thigh, the electronic device determines that the lower body exercise ability is low and recommends an exercise program that can improve the lower body exercise ability Can be determined as exercise information. In operation S1930, the electronic device may output the determined recommended exercise information.

도 20은 일 실시 예에 따른 전자 장치(예: 도 3의 전자 장치(300))를 모듈 단위로 나타낸 도면이다.FIG. 20 is a diagram illustrating an electronic device (eg, the electronic device 300 of FIG. 3) according to an exemplary embodiment in units of modules.

일 실시 예에 따른 전자 장치는 카메라 입력부(2010), 영상 전처리부(2020), 생체 신호 처리부(2030), 보정 모듈(2040), 재보정 모듈(2050) 및 출력부(2060)를 포함하여 구성될 수 있다.An electronic device according to an embodiment includes a camera input unit 2010, an image preprocessor 2020, a biosignal processing unit 2030, a correction module 2040, a recalibration module 2050, and an output unit 2060. Can be.

카메라 입력부(2010)는 사용자의 움직임을 촬영하여 영상을 획득할 수 있다. 영상 전처리부(2020)는 카메라 입력부(2010)를 통해서 입력된 영상 내에 사용자가 촬영되었는지 인식할 수 있다. 영상 내에 사용자가 촬영된 영역이 인식된 경우 영상 전처리부(2020)는 영상으로부터 생체 신호를 측정하기 위해 필요한 영역을 분리할 수 있다.The camera input unit 2010 may acquire an image by photographing a user's movement. The image preprocessor 2020 may recognize whether a user is captured in an image input through the camera input unit 2010. When an area in which the user is photographed is recognized in the image, the image preprocessor 2020 may separate an area necessary for measuring a biosignal from the image.

생체 신호 처리부(2030)는 영상 분할부(2031), 신호 천저리부(2032), 신호 증폭부(2033) 및 생체 신호 추출부(2034)를 포함할 수 있다. 생체 신호 처리부(2030)는 영상 전처리부(2020)에서 분리된 영역으로부터 생체 신호를 추출할 수 있다. 영상 분할부(2031)는 생체 신호를 추출하기 위해 필요한 영상 채널을 분리 및 분류하고, 유효값이 높은 색상 채널을 선별할 수 있다. 신호 전처리부(2032)는 생체 신호 추출에 불필요한 색상값(예: 반사광이 촬영된 색상 값)을 제외시키고 생체 신호를 추출하기 위해 필요한 색상 채널을 선별할 수 있다. 신호 증폭부(2033)는 선별된 색상 채널의 값을 증폭시킬 수 있다. 생체 신호 추출부는 증폭된 색상 채널의 노이즈를 제거하고, 심박수 값을 추출할 수 있다.The biosignal processing unit 2030 may include an image segmentation unit 2031, a signal generation unit 2032, a signal amplification unit 2033, and a biosignal extraction unit 2034. The biosignal processing unit 2030 may extract a biosignal from an area separated by the image preprocessor 2020. The image segmentation unit 2031 may separate and classify an image channel required for extracting a bio-signal, and select a color channel having a high effective value. The signal preprocessor 2032 may exclude a color value unnecessary for extracting the bio-signal (eg, a color value in which the reflected light is photographed) and select a color channel necessary for extracting the bio-signal. The signal amplifying unit 2033 may amplify a value of the selected color channel. The biosignal extractor may remove noise from the amplified color channel and extract a heart rate value.

영상 전처리부(2020)에서 사용자가 촬영된 영역이 검출되지 않았거나, 생체 신호 처리부(2030)에 의해 추출된 생체 신호가 정상적인 값이 아닌 것으로 판단되는 경우, 보정 모듈(2040)은 생체 신호를 보정할 수 있다. 보정 모듈(2040)은 데이터 모델 보정부(2041) 또는 패턴 정보 보정부(2042)에 기초하여 생체 신호를 보정할 수 있다. 데이터 모델 보정부(2041)는 특징점에 기초하여 모델링된 데이터 모델에 기초하여 생체 신호를 보정할 수 있다. 패턴 정보 보정부(2042)는 패턴 데이터베이스(2043)에 저장된 데이터 패턴에 기초하여 생체 신호를 보정할 수 있다. 일 실시 예에 따르면, 보정 모듈(2040)는 단기간(예: 2초) 동안 생체 신호가 정상적으로 추출되지 않은 구간에 대해서 데이터 모델 보정부(2041)를 이용하여 보정을 수행할 수 있다. 반대로, 보정 모듈(2040)은 장기간(예: 2분) 동안 생체 신호가 정상적으로 추출되지 않은 구간에 대해서는 패턴 정보 보정부(2042)를 이용하여 보정을 수행할 수 있다.When the image preprocessor 2020 determines that the area where the user is photographed is not detected or the biosignal extracted by the biosignal processing unit 2030 is determined to be not a normal value, the correction module 2040 corrects the biosignal. can do. The correction module 2040 may correct the biosignal based on the data model correction unit 2041 or the pattern information correction unit 2042. The data model correction unit 2041 may correct the biosignal based on the data model modeled based on the feature points. The pattern information correction unit 2042 may correct the biosignal based on the data pattern stored in the pattern database 2043. According to an embodiment, the correction module 2040 may perform correction using the data model correction unit 2041 for a section in which the biosignal is not normally extracted for a short period (eg, 2 seconds). Conversely, the correction module 2040 may perform correction using the pattern information correction unit 2042 for a section in which the biosignal is not normally extracted for a long period (eg, 2 minutes).

보정 모듈(2040)에 의해서 생체 신호가 보정된 이후, 생체 신호 처리부(2030)에 의한 생체 신호의 측정이 재개된 경우, 재보정 모듈(2050)은 보정 모듈(2040)에 의해서 보정된 생체 신호의 적어도 일부를 재보정할 수 있다. 출력부(2060)는 측정되거나 보정된 생체 신호에 기반한 정보를 출력할 수 있다.After the biosignal has been corrected by the correction module 2040, when the measurement of the biosignal by the biosignal processing unit 2030 is resumed, the recalibration module 2050 performs the correction of the biosignal corrected by the correction module 2040. At least some can be recalibrated. The output unit 2060 may output information based on the measured or corrected biosignal.

일 실시 예에 따르면, 메모리(예: 도 1의 메모리(130), 도 3의 메모리(320)) 및 메모리와 연결된 프로세서(예: 도 1의 프로세서(120))를 포함하는 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300), 도 5의 전자 장치(500), 도 6의 서버(610), 도 7의 전자 장치(700)). 프로세서는, 카메라(예: 도 1의 카메라 모듈(180), 도 3의 카메라(330), 도 5의 카메라(530), 도 6의 카메라 장치(630), 도 7의 카메라 장치(730))를 이용하여 촬영된 영상 데이터를 획득하고, 상기 영상 데이터를 분석하여 심박수 값을 산출하며, 심박수 값이 정상적으로 획득되었는지 여부를 판단하고, 상기 심박수 값이 정상적으로 획득되지 않은 경우, 상기 심박수 값이 정상적으로 획득되지 않은 구간에 대한 보정 값을 결정하고, 보정 값을 포함하는 생체 정보 데이터를 상기 메모리에 저장하도록 구성될 수 있다.According to an embodiment, an electronic device including a memory (eg, the memory 130 of FIG. 1, the memory 320 of FIG. 3) and a processor connected to the memory (eg, the processor 120 of FIG. 1) The electronic device 101 of FIG. 1, the electronic device 300 of FIG. 3, the electronic device 500 of FIG. 5, the server 610 of FIG. 6, and the electronic device 700 of FIG. 7 ). The processor is a camera (eg, the camera module 180 of FIG. 1, the camera 330 of FIG. 3, the camera 530 of FIG. 5, the camera device 630 of FIG. 6, the camera device 730 of FIG. 7) Acquire the image data captured by using, analyze the image data to calculate a heart rate value, determine whether the heart rate value is normally acquired, and if the heart rate value is not normally acquired, the heart rate value is normally acquired. It may be configured to determine a correction value for an unchanged section and to store biometric information data including the correction value in the memory.

일 실시 예에 따르면, 프로세서는, 구간 이전에 산출된 심박 데이터에 기초하여 특징점을 추출하고, 특징점에 기초하여 모델링된 후보 데이터를 생성하며, 후보 데이터에 기초하여 보정 값을 결정할 수 있다.According to an embodiment, the processor may extract a feature point based on heart rate data calculated before the section, generate modeled candidate data based on the feature point, and determine a correction value based on the candidate data.

일 실시 예에 따르면, 프로세서는, 산출된 심박수 값과 후보 데이터를 비교하고, 비교 결과에 기초하여 상기 보정 값을 결정할 수 있다.According to an embodiment, the processor may compare the calculated heart rate value with candidate data, and determine the correction value based on the comparison result.

일 실시 예에 따르면, 프로세서는, 산출된 심박수 값에 대한 R-R 피크 인터벌(peak interval)과 후보 데이터에 대한 R-R 피크 인터벌의 차가 지정된 범위 내인 경우 산출된 심박수 값을 정상적으로 획득된 심박수 값으로서 영상 데이터가 획득된 시점의 생체 정보 데이터로 결정할 수 있다. 프로세서는 산출된 심박수 값에 대한 R-R 피크 인터벌(peak interval)과 상기 후보 데이터에 대한 R-R 피크 인터벌의 차가 지정된 범위보다 큰 경우 상기 후보 데이터를 상기 보정 값으로서 상기 생체 정보 데이터에 포함시킬 수 있다.According to an embodiment, the processor uses the calculated heart rate value when the difference between the RR peak interval for the calculated heart rate value and the RR peak interval for the candidate data is within a specified range as the normally acquired heart rate value, and the image data is It can be determined by the biometric information data at the time of acquisition. The processor may include the candidate data as the correction value in the biometric information data when the difference between the R-R peak interval for the calculated heart rate value and the R-R peak interval for the candidate data is greater than a specified range.

일 실시 예에 따르면, 전자 장치는 복수의 심박수 데이터 패턴을 저장하는 패턴 데이터베이스를 더 포함할 수 있다. 프로세서는, 구간의 크기가 임계값보다 작거나 같은 경우, 후보 데이터에 기초하여 보정 값을 결정하고, 구간의 크기가 임계값보다 큰 경우, 심박 데이터와 복수의 심박수 데이터 패턴 각각의 유사도에 기초하여 선택된 심박수 데이터 패턴에 기초하여 보정 값을 결정할 수 있다.According to an embodiment, the electronic device may further include a pattern database storing a plurality of heart rate data patterns. When the size of the section is less than or equal to the threshold value, the processor determines a correction value based on the candidate data, and when the size of the section is greater than the threshold value, the processor is based on the similarity between the heart rate data and the plurality of heart rate data patterns. The correction value may be determined based on the selected heart rate data pattern.

일 실시 예에 따르면, 프로세서는, 심박수 값이 정상적으로 획득되었고, 심박수 값이 획득된 제1 시점의 이전인 제2 시점에 대한 생체 정보 데이터가 보정 값인 경우, 제2 시점의 생체 정보 데이터가 심박수 값과 선형적인 관계를 가지도록 생체 정보 데이터를 보정할 수 있다.According to an embodiment, when the heart rate value is normally acquired and the biometric information data for a second time point prior to the first time point at which the heart rate value is acquired is a correction value, the biometric information data at the second time point is the heart rate value. The biometric information data can be corrected to have a linear relationship with.

일 실시 예에 따르면, 프로세서는 영상 데이터의 이미지 시퀀스에 포함된 이미지들을 컨볼루션하여 영상 데이터 내에서 사용자가 촬영된 제1 영역을 결정할 수 있다.According to an embodiment, the processor may determine the first region captured by the user in the image data by convolving images included in the image sequence of the image data.

일 실시 예에 따르면, 프로세서는, 제1 영역 내에 포함된 픽셀들 중 픽셀 값이 지정된 범위 내에 포함되는 픽셀들을 포함하는 제2 영역을 결정하고, 제2 영역에 포함된 픽셀 값에 기초하여 심박수 값을 산출할 수 있다.According to an embodiment, the processor determines a second region including pixels within a specified range, among pixels included in the first region, and a heart rate value based on the pixel value included in the second region. Can be calculated.

일 실시 예에 따르면, 전자 장치는 디스플레이(예: 도 1의 표시 장치(160), 도3의디스플레이(340))를 더 포함할 수 있다. 프로세서는, 영상 데이터에 포함된 영상과 가이드 영상 콘텐트를 디스플레이하도록 디스플레이를 제어하고, 가이드 영상 콘텐트와 연관된 심박수 변화량에 기초하여 상기 보정 값을 결정하도록 구성될 수 있다.According to an embodiment, the electronic device may further include a display (eg, the display device 160 of FIG. 1 and the display 340 of FIG. 3 ). The processor may be configured to control the display to display an image included in the image data and guide image content, and to determine the correction value based on a heart rate change amount associated with the guide image content.

일 실시 예에 따르면, 프로세서는 생체 정보 데이터에 포함된 심박수 값의 변화량과 참조 심박수 변화량의 비교 결과에 기초하여 결정되는 추천 운동 강도 정보를 출력하도록 디스플레이를 제어할 수 있다.According to an embodiment, the processor may control the display to output recommended exercise intensity information determined based on a comparison result of a change amount of a heart rate value included in the biometric information data and a reference heart rate change amount.

일 실시 예에 따르면, 프로세서는 영상 데이터와 연관된 사용자 정보를 획득하고, 생체 정보 데이터와 사용자 정보에 기초하여 결정된 추천 운동 정보를 출력하도록 디스플레이를 제어할 수 있다.According to an embodiment, the processor may control the display to obtain user information related to image data and to output biometric information data and recommended exercise information determined based on the user information.

일 실시 예에 따르면, 프로세서는, 생체 정보 데이터에 기초하여 칼로리 소모량을 산출하고, 칼로리 소모량을 출력하도록 상기 디스플레이를 제어할 수 있다.According to an embodiment, the processor may control the display to calculate the calorie consumption amount based on the biometric information data and output the calorie consumption amount.

일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 3의 전자 장치(300), 도 5의 전자 장치(500), 도 6의 서버(610), 도 7의 전자 장치(700))를 동작하는 방법은, 카메라(예: 도 1의 카메라 모듈(180), 도 3의 카메라(330), 도 5의 카메라(530), 도 6의 카메라 장치(630), 도 7의 카메라 장치(730))를 이용하여 촬영된 영상 데이터를 획득하는 동작, 영상 데이터를 분석하여 심박수 값을 산출하는 동작, 심박수 값이 정상적으로 획득되었는지 여부를 판단하는 동작, 심박수 값이 정상적으로 획득되지 않은 경우, 심박수 값이 정상적으로 획득되지 않은 구간에 대한 보정 값을 결정하는 동작 및 보정 값을 포함하는 생체 정보 데이터를 생성하는 동작을 포함할 수 있다.An electronic device according to an embodiment (for example, the electronic device 101 of FIG. 1, the electronic device 300 of FIG. 3, the electronic device 500 of FIG. 5, the server 610 of FIG. 6, and the electronic device of FIG. 7) The method of operating (700)) is a camera (e.g., the camera module 180 of FIG. 1, the camera 330 of FIG. 3, the camera 530 of FIG. 5, the camera device 630 of FIG. 6, and 7 The operation of acquiring the image data captured using the camera device 730) of, the operation of calculating the heart rate value by analyzing the image data, the operation of determining whether the heart rate value is normally acquired, and the heart rate value not being normally acquired. In this case, an operation of determining a correction value for a section in which the heart rate value is not normally obtained and an operation of generating biometric information data including the correction value may be included.

일 실시 예에 따르면, 구간 이전에 산출된 심박 데이터에 기초하여 특징점을 추출하는 동작 및 특징점에 기초하여 모델링된 후보 데이터를 생성하는 동작을 더 포함하고, 보정 값을 결정하는 동작은, 후보 데이터에 기초하여 보정 값을 결정하는 동작을 포함할 수 있다.According to an embodiment, an operation of extracting a feature point based on heart rate data calculated before the section and an operation of generating modeled candidate data based on the feature point are further included, and the operation of determining the correction value is performed on the candidate data. It may include an operation of determining a correction value based on it.

일 실시 예에 따르면, 후보 데이터에 기초하여 보정 값을 결정하는 동작은, 산출된 심박수 값과 후보 데이터를 비교하는 동작 및 비교 결과에 기초하여 보정 값을 결정하는 동작을 포함할 수 있다.According to an embodiment, the determining of the correction value based on the candidate data may include comparing the calculated heart rate value with the candidate data, and determining the correction value based on the comparison result.

일 실시 예에 따르면, 비교하는 동작은 산출된 심박수 값에 대한 R-R 피크 인터벌(peak interval)과 상기 후보 데이터에 대한 R-R 피크 인터벌을 비교하는 동작을 포함할 수 있다. 보정 값을 결정하는 동작은 비교 결과, 두 값의 차가 지정된 범위 내인 경우 상기 산출된 심박수 값을 정상적으로 획득된 심박수 값으로서 상기 영상 데이터가 획득된 시점의 생체 정보 데이터로 결정하고, 두 값의 차가 지정된 범위를 벗어난 경우 상기 후보 데이터를 상기 보정 값으로서 상기 생체 정보 데이터에 포함시키는 동작을 포함할 수 있다.According to an embodiment, the comparing operation may include comparing an R-R peak interval for the calculated heart rate value and an R-R peak interval for the candidate data. The operation of determining the correction value is a comparison result, when the difference between the two values is within a specified range, the calculated heart rate value is determined as the biometric information data at the time the image data is acquired as a normally acquired heart rate value, and the difference between the two values is specified. If it is out of the range, an operation of including the candidate data as the correction value in the biometric information data may be included.

일 실시 예에 따르면, 영상 데이터를 분석하여 심박수 값을 산출하는 동작은, 영상 데이터의 이미지 시퀀스에 포함된 이미지들을 컨볼루션하여 상기 영상 데이터 내에서 사용자가 촬영된 제1 영역을 결정하는 동작, 제1 영역 내에 포함된 픽셀들 중 픽셀 값이 지정된 범위 내에 포함되는 픽셀들을 포함하는 제2 영역을 결정하는 동작, 및 제2 영역에 포함된 픽셀 값에 기초하여 상기 심박수 값을 산출하는 동작을 포함할 수 있다.According to an embodiment, the operation of calculating a heart rate value by analyzing image data includes an operation of determining a first region photographed by a user in the image data by convolving images included in an image sequence of the image data. An operation of determining a second region including pixels whose pixel value is within a specified range among pixels included in the first region, and an operation of calculating the heart rate value based on the pixel value included in the second region. I can.

일 실시 예에 따르면, 전자 장치를 동작시키는 방법은 영상 데이터에 포함된 영상과 가이드 영상 콘텐트를 디스플레이하는 동작을 더 포함하고, 보정 값을 결정하는 동작은, 가이드 영상 콘텐트와 연관된 심박수 변화량을 획득하는 동작, 및 심박수 변화량에 기초하여 상기 보정 값을 결정하는 동작을 포함할 수 있다.According to an embodiment, the method of operating the electronic device further includes an operation of displaying an image and guide image content included in the image data, and the operation of determining a correction value includes acquiring a heart rate change amount associated with the guide image content. It may include an operation and an operation of determining the correction value based on the amount of change in heart rate.

일 실시 예에 따른 적어도 하나의 프로세서에 의해 실행되는 복수의 명령어들을 포함하는 하나 이상의 프로그램이 기록된 컴퓨터로 읽을 수 있는 기록 매체(예: 비휘발성 메모리(134), 메모리(320))는, 실행 시에, 카메라(예: 도 1의 카메라 모듈(180), 도 3의 카메라(330), 도 5의 카메라(530), 도 6의 카메라 장치(630), 도 7의 카메라 장치(730))를 이용하여 촬영된 영상 데이터를 획득하는 동작, 영상 데이터를 분석하여 심박수 값을 산출하는 동작, 심박수 값이 정상적으로 획득되었는지 여부를 판단하는 동작, 심박수 값이 정상적으로 획득되지 않은 경우, 심박수 값이 정상적으로 획득되지 않은 구간에 대한 보정 값을 결정하는 동작 및 보정 값을 포함하는 생체 정보 데이터를 생성하는 동작을 수행하도록 하는 프로그램을 기록한 것일수 있다.A computer-readable recording medium (eg, nonvolatile memory 134, memory 320) in which one or more programs including a plurality of instructions executed by at least one processor according to an embodiment are recorded, is executed. At the time, a camera (e.g., the camera module 180 of FIG. 1, the camera 330 of FIG. 3, the camera 530 of FIG. 5, the camera device 630 of FIG. 6, the camera device 730 of FIG. 7) Acquiring the image data captured by using, calculating the heart rate value by analyzing the image data, determining whether or not the heart rate value is normally acquired, and when the heart rate value is not acquired normally, the heart rate value is normally acquired. A program for determining a correction value for an unchanged section and an operation for generating biometric information data including the correction value may be recorded.

일 실시 예에 따르면, 전자 장치는 부정맥 환자 심박 데이터를 저장하는 메모리 및 메모리와 연결된 프로세서를 포함할 수 있다. 프로세서는, 심박수 값을 포함하는 생체 정보 데이터를 획득하고, 생체 정보 데이터에 심박수 값이 포함되어 있지 않거나 정상적으로 산출된 값이 아닌 구간이 존재하는 경우, 구간의 값을 보정 값으로 보정하고, 보정된 생체 정보 데이터와 부정맥 환자 심박 데이터를 비교하고, 비교 결과에 기초하여, 보정된 생체 정보 데이터가 상기 부정맥 환자 심박 데이터에 포함된 이상 패턴을 포함하는 횟수가 임계값 이상인 경우, 이상 심박 패턴에 대한 정보를 출력하도록 구성될 수 있다.According to an embodiment, the electronic device may include a memory for storing heart rate data of an arrhythmia patient and a processor connected to the memory. The processor acquires biometric information data including a heart rate value, and if the biometric information data does not contain a heart rate value or there is a section other than the normally calculated value, the value of the section is corrected to a correction value, and the corrected When the biometric information data and the heart rate data of the arrhythmia patient are compared, and the number of times the corrected biometric information data includes the abnormal pattern included in the heart rate data of the arrhythmia patient is greater than or equal to the threshold value, information on the abnormal heart rate pattern Can be configured to output.

본 개시의 청구항 또는 명세서에 기재된 실시예들에 따른 방법들은 하드웨어, 소프트웨어, 또는 하드웨어와 소프트웨어의 조합의 형태로 구현될(implemented) 수 있다. The methods according to the embodiments described in the claims or specification of the present disclosure may be implemented in the form of hardware, software, or a combination of hardware and software.

소프트웨어로 구현하는 경우, 하나 이상의 프로그램(소프트웨어 모듈)을 저장하는 컴퓨터 판독 가능 저장 매체가 제공될 수 있다. 컴퓨터 판독 가능 저장 매체에 저장되는 하나 이상의 프로그램은, 전자 장치(device) 내의 하나 이상의 프로세서에 의해 실행 가능하도록 구성된다(configured for execution). 하나 이상의 프로그램은, 전자 장치로 하여금 본 개시의 청구항 또는 명세서에 기재된 실시예들에 따른 방법들을 실행하게 하는 명령어(instructions)를 포함한다. When implemented in software, a computer-readable storage medium storing one or more programs (software modules) may be provided. One or more programs stored in a computer-readable storage medium are configured to be executable by one or more processors in an electronic device (device). The one or more programs include instructions that cause the electronic device to execute methods according to embodiments described in the claims or specification of the present disclosure.

이러한 프로그램(소프트웨어 모듈, 소프트웨어)은 랜덤 액세스 메모리 (random access memory), 플래시(flash) 메모리를 포함하는 불휘발성(non-volatile) 메모리, 롬(ROM: read only memory), 전기적 삭제가능 프로그램가능 롬(EEPROM: electrically erasable programmable read only memory), 자기 디스크 저장 장치(magnetic disc storage device), 컴팩트 디스크 롬(CD-ROM: compact disc-ROM), 디지털 다목적 디스크(DVDs: digital versatile discs) 또는 다른 형태의 광학 저장 장치, 마그네틱 카세트(magnetic cassette)에 저장될 수 있다. 또는, 이들의 일부 또는 전부의 조합으로 구성된 메모리에 저장될 수 있다. 또한, 각각의 구성 메모리는 다수 개 포함될 수도 있다. These programs (software modules, software) include random access memory, non-volatile memory including flash memory, read only memory (ROM), and electrically erasable programmable ROM. (EEPROM: electrically erasable programmable read only memory), magnetic disc storage device, compact disc-ROM (CD-ROM), digital versatile discs (DVDs), or other types of It may be stored in an optical storage device or a magnetic cassette. Alternatively, it may be stored in a memory composed of a combination of some or all of them. In addition, a plurality of configuration memories may be included.

또한, 상기 프로그램은 인터넷(Internet), 인트라넷(Intranet), LAN(local area network), WLAN(wide LAN), 또는 SAN(storage area network)과 같은 통신 네트워크, 또는 이들의 조합으로 구성된 통신 네트워크를 통하여 접근(access)할 수 있는 부착 가능한(attachable) 저장 장치(storage device)에 저장될 수 있다. 이러한 저장 장치는 외부 포트를 통하여 본 개시의 실시 예를 수행하는 장치에 접속할 수 있다. 또한, 통신 네트워크상의 별도의 저장장치가 본 개시의 실시 예를 수행하는 장치에 접속할 수도 있다. In addition, the program is a communication network such as the Internet, an intranet, a local area network (LAN), a wide LAN (WLAN), or a storage area network (SAN), or a communication network composed of a combination thereof. It may be stored in an accessible storage device. Such a storage device may access a device performing an embodiment of the present disclosure through an external port. In addition, a separate storage device on the communication network may access a device performing an embodiment of the present disclosure.

상술한 본 개시의 구체적인 실시예들에서, 개시에 포함되는 구성 요소는 제시된 구체적인 실시 예에 따라 단수 또는 복수로 표현되었다. 그러나, 단수 또는 복수의 표현은 설명의 편의를 위해 제시한 상황에 적합하게 선택된 것으로서, 본 개시가 단수 또는 복수의 구성 요소에 제한되는 것은 아니며, 복수로 표현된 구성 요소라 하더라도 단수로 구성되거나, 단수로 표현된 구성 요소라 하더라도 복수로 구성될 수 있다. In the above-described specific embodiments of the present disclosure, components included in the disclosure are expressed in the singular or plural according to the presented specific embodiments. However, the singular or plural expression is selected appropriately for the situation presented for convenience of description, and the present disclosure is not limited to the singular or plural constituent elements, and even constituent elements expressed in plural are composed of singular or singular. Even the expressed constituent elements may be composed of pluralities.

한편 본 개시의 상세한 설명에서는 구체적인 실시 예에 관해 설명하였으나, 본 개시의 범위에서 벗어나지 않는 한도 내에서 여러 가지 변형이 가능함은 물론이다. 그러므로 본 개시의 범위는 설명된 실시 예에 국한되어 정해져서는 아니 되며 후술하는 특허청구의 범위뿐만 아니라 이 특허청구의 범위와 균등한 것들에 의해 정해져야 한다.Meanwhile, although specific embodiments have been described in the detailed description of the present disclosure, various modifications may be made without departing from the scope of the present disclosure. Therefore, the scope of the present disclosure is limited to the described embodiments and should not be determined, and should be determined by the scope of the claims and equivalents as well as the scope of the claims to be described later.

Claims (20)

전자 장치에 있어서,
메모리; 및
상기 메모리와 연결된 프로세서를 포함하고,
상기 프로세서는,
카메라를 이용하여 촬영된 영상 데이터를 획득하고,
상기 영상 데이터를 분석하여 심박수 값을 산출하며,
상기 심박수 값이 정상적으로 획득되었는지 여부를 판단하고,
상기 심박수 값이 정상적으로 획득되지 않은 경우, 상기 심박수 값이 정상적으로 획득되지 않은 구간에 대한 보정 값을 결정하고,
상기 보정 값을 포함하는 생체 정보 데이터를 상기 메모리에 저장하도록 구성된, 전자 장치.
In the electronic device,
Memory; And
Including a processor connected to the memory,
The processor,
Acquire image data taken using a camera,
Analyzing the image data to calculate a heart rate value,
It is determined whether the heart rate value is normally acquired,
When the heart rate value is not normally acquired, a correction value for a section in which the heart rate value is not normally acquired is determined,
The electronic device, configured to store biometric information data including the correction value in the memory.
청구항 1에 있어서,
상기 프로세서는,
상기 구간 이전에 산출된 심박 데이터에 기초하여 특징점을 추출하고,
상기 특징점에 기초하여 모델링된 후보 데이터를 생성하며,
상기 후보 데이터에 기초하여 상기 보정 값을 결정하는,
전자 장치.
The method according to claim 1,
The processor,
Extracting feature points based on the heart rate data calculated before the section,
Generate modeled candidate data based on the feature points,
Determining the correction value based on the candidate data,
Electronic device.
청구항 2에 있어서,
상기 프로세서는,
상기 산출된 심박수 값과 상기 후보 데이터를 비교하고,
상기 비교 결과에 기초하여 상기 보정 값을 결정하는, 전자 장치.
The method according to claim 2,
The processor,
Compare the calculated heart rate value and the candidate data,
Determining the correction value based on the comparison result.
청구항 3에 있어서,
상기 프로세서는,
상기 산출된 심박수 값에 대한 R-R 피크 인터벌(peak interval)과 상기 후보 데이터에 대한 R-R 피크 인터벌의 차가 지정된 범위 내인 경우 상기 산출된 심박수 값을 정상적으로 획득된 심박수 값으로서 상기 영상 데이터가 획득된 시점의 생체 정보 데이터로 결정하고,
상기 산출된 심박수 값에 대한 R-R 피크 인터벌(peak interval)과 상기 후보 데이터에 대한 R-R 피크 인터벌의 차가 지정된 범위보다 큰 경우 상기 후보 데이터를 상기 보정 값으로서 상기 생체 정보 데이터에 포함시키는, 전자 장치.
The method of claim 3,
The processor,
When the difference between the RR peak interval for the calculated heart rate value and the RR peak interval for the candidate data is within a specified range, the calculated heart rate value is used as the normally acquired heart rate value, and the living body at the time the image data is acquired. Determined by information data,
When a difference between an RR peak interval for the calculated heart rate value and an RR peak interval for the candidate data is greater than a specified range, the candidate data is included in the biometric information data as the correction value.
청구항 2에 있어서,
상기 전자 장치는 복수의 심박수 데이터 패턴을 저장하는 패턴 데이터베이스를 더 포함하고,
상기 프로세서는,
상기 구간의 크기가 임계값보다 작거나 같은 경우, 상기 후보 데이터에 기초하여 상기 보정 값을 결정하고,
상기 구간의 크기가 임계값보다 큰 경우, 상기 심박 데이터와 상기 복수의 심박수 데이터 패턴 각각의 유사도에 기초하여 선택된 심박수 데이터 패턴에 기초하여 상기 보정 값을 결정하는, 전자 장치.
The method according to claim 2,
The electronic device further includes a pattern database storing a plurality of heart rate data patterns,
The processor,
When the size of the section is less than or equal to the threshold value, the correction value is determined based on the candidate data,
When the size of the section is greater than a threshold value, determining the correction value based on a heart rate data pattern selected based on a similarity between the heart rate data and each of the plurality of heart rate data patterns.
청구항 1에 있어서,
상기 프로세서는,
상기 심박수 값이 정상적으로 획득되었고, 상기 심박수 값이 획득된 제1 시점의 이전인 제2 시점에 대한 생체 정보 데이터가 보정 값인 경우, 상기 제2 시점의 생체 정보 데이터가 상기 심박수 값과 선형적인 관계를 가지도록 상기 생체 정보 데이터를 보정하는, 전자 장치.
The method according to claim 1,
The processor,
When the heart rate value is normally obtained and the biometric information data for a second time point before the first time point at which the heart rate value is obtained is a correction value, the biometric information data at the second time point has a linear relationship with the heart rate value. The electronic device for correcting the biometric information data to have.
청구항 1에 있어서,
상기 프로세서는,
상기 영상 데이터의 이미지 시퀀스에 포함된 이미지들을 컨볼루션하여 상기 영상 데이터 내에서 사용자가 촬영된 제1 영역을 결정하는, 전자 장치.
The method according to claim 1,
The processor,
An electronic device for determining a first area in the image data in which a user is photographed by convolving images included in an image sequence of the image data.
청구항 7에 있어서,
상기 프로세서는,
상기 제1 영역 내에 포함된 픽셀들 중 픽셀 값이 지정된 범위 내에 포함되는 픽셀들을 포함하는 제2 영역을 결정하고,
상기 제2 영역에 포함된 픽셀 값에 기초하여 상기 심박수 값을 산출하는, 전자 장치.
The method of claim 7,
The processor,
Determine a second region including pixels whose pixel value falls within a specified range among the pixels included in the first region, and
The electronic device that calculates the heart rate value based on a pixel value included in the second area.
청구항 1에 있어서,
디스플레이를 더 포함하고,
상기 프로세서는,
상기 영상 데이터에 포함된 영상과 가이드 영상 콘텐트를 디스플레이하도록 상기 디스플레이를 제어하고,
상기 가이드 영상 콘텐트와 연관된 심박수 변화량에 기초하여 상기 보정 값을 결정하도록 구성된, 전자 장치.
The method according to claim 1,
Further comprising a display,
The processor,
Controlling the display to display an image and guide image content included in the image data,
The electronic device, configured to determine the correction value based on an amount of change in heart rate associated with the guide image content.
청구항 1에 있어서,
디스플레이를 더 포함하고,
상기 프로세서는,
상기 생체 정보 데이터에 포함된 심박수 값의 변화량과 참조 심박수 변화량의 비교 결과에 기초하여 결정되는 추천 운동 강도 정보를 출력하도록 상기 디스플레이를 제어하는, 전자 장치.
The method according to claim 1,
Further comprising a display,
The processor,
The electronic device comprising: controlling the display to output recommended exercise intensity information determined based on a comparison result of a change amount of a heart rate value included in the biometric information data and a reference heart rate change amount.
청구항 1에 있어서,
디스플레이를 더 포함하고,
상기 프로세서는,
상기 영상 데이터와 연관된 사용자 정보를 획득하고,
상기 생체 정보 데이터와 상기 사용자 정보에 기초하여 결정된 추천 운동 정보를 출력하도록 상기 디스플레이를 제어하는, 전자 장치.
The method according to claim 1,
Further comprising a display,
The processor,
Acquire user information related to the image data,
The electronic device, wherein the display is controlled to output recommended exercise information determined based on the biometric information data and the user information.
청구항 1에 있어서,
디스플레이를 더 포함하고,
상기 프로세서는,
상기 생체 정보 데이터에 기초하여 칼로리 소모량을 산출하고,
상기 칼로리 소모량을 출력하도록 상기 디스플레이를 제어하는, 전자 장치.
The method according to claim 1,
Further comprising a display,
The processor,
Calorie consumption is calculated based on the biometric information data,
Controlling the display to output the calorie consumption amount.
전자 장치를 동작하는 방법에 있어서,
카메라를 이용하여 촬영된 영상 데이터를 획득하는 동작;
상기 영상 데이터를 분석하여 심박수 값을 산출하는 동작;
상기 심박수 값이 정상적으로 획득되었는지 여부를 판단하는 동작;
상기 심박수 값이 정상적으로 획득되지 않은 경우, 상기 심박수 값이 정상적으로 획득되지 않은 구간에 대한 보정 값을 결정하는 동작; 및
상기 보정 값을 포함하는 생체 정보 데이터를 생성하는 동작을 포함하는, 방법.
In a method of operating an electronic device,
Obtaining image data photographed using a camera;
Analyzing the image data to calculate a heart rate value;
Determining whether the heart rate value is normally acquired;
When the heart rate value is not normally acquired, determining a correction value for a section in which the heart rate value is not normally acquired; And
Generating biometric information data including the correction value.
청구항 13에 있어서,
상기 구간 이전에 산출된 심박 데이터에 기초하여 특징점을 추출하는 동작; 및
상기 특징점에 기초하여 모델링된 후보 데이터를 생성하는 동작을 더 포함하고,
상기 보정 값을 결정하는 동작은, 상기 후보 데이터에 기초하여 상기 보정 값을 결정하는 동작을 포함하는, 방법.
The method of claim 13,
Extracting feature points based on heart rate data calculated before the section; And
Further comprising an operation of generating modeled candidate data based on the feature points,
Determining the correction value comprises determining the correction value based on the candidate data.
청구항 14에 있어서,
상기 후보 데이터에 기초하여 상기 보정 값을 결정하는 동작은,
상기 산출된 심박수 값과 상기 후보 데이터를 비교하는 동작, 및
상기 비교 결과에 기초하여 상기 보정 값을 결정하는 동작을 포함하는, 방법.
The method of claim 14,
The operation of determining the correction value based on the candidate data,
Comparing the calculated heart rate value with the candidate data, and
Determining the correction value based on the comparison result.
청구항 15에 있어서,
상기 비교하는 동작은 상기 산출된 심박수 값에 대한 R-R 피크 인터벌(peak interval)과 상기 후보 데이터에 대한 R-R 피크 인터벌을 비교하는 동작을 포함하고,
상기 보정 값을 결정하는 동작은,
상기 비교 결과, 상기 두 값의 차가 지정된 범위 내인 경우 상기 산출된 심박수 값을 정상적으로 획득된 심박수 값으로서 상기 영상 데이터가 획득된 시점의 생체 정보 데이터로 결정하고, 상기 두 값의 차가 지정된 범위를 벗어난 경우 상기 후보 데이터를 상기 보정 값으로서 상기 생체 정보 데이터에 포함시키는 동작을 포함하는, 방법.
The method of claim 15,
The comparing operation includes comparing an RR peak interval for the calculated heart rate value and an RR peak interval for the candidate data,
The operation of determining the correction value,
As a result of the comparison, when the difference between the two values is within a specified range, the calculated heart rate value is determined as the biometric information data at the time the image data is acquired as a normally acquired heart rate value, and the difference between the two values is outside the specified range Including the candidate data in the biometric information data as the correction value.
청구항 11에 있어서,
상기 영상 데이터를 분석하여 심박수 값을 산출하는 동작은,
상기 영상 데이터의 이미지 시퀀스에 포함된 이미지들을 컨볼루션하여 상기 영상 데이터 내에서 사용자가 촬영된 제1 영역을 결정하는 동작,
상기 제1 영역 내에 포함된 픽셀들 중 픽셀 값이 지정된 범위 내에 포함되는 픽셀들을 포함하는 제2 영역을 결정하는 동작, 및
상기 제2 영역에 포함된 픽셀 값에 기초하여 상기 심박수 값을 산출하는 동작을 포함하는, 방법.
The method of claim 11,
The operation of analyzing the image data to calculate a heart rate value,
Determining a first region captured by a user in the image data by convolving images included in the image sequence of the image data,
Determining a second region including pixels whose pixel value is within a specified range among the pixels included in the first region, and
And calculating the heart rate value based on the pixel value included in the second area.
청구항 11에 있어서,
상기 영상 데이터에 포함된 영상과 가이드 영상 콘텐트를 디스플레이하는 동작을 더 포함하고,
상기 보정 값을 결정하는 동작은,
상기 가이드 영상 콘텐트와 연관된 심박수 변화량을 획득하는 동작, 및
상기 심박수 변화량에 기초하여 상기 보정 값을 결정하는 동작을 포함하는, 방법.
The method of claim 11,
Further comprising an operation of displaying the image and guide image content included in the image data,
The operation of determining the correction value,
An operation of acquiring an amount of change in heart rate associated with the guide image content, and
And determining the correction value based on the amount of change in heart rate.
적어도 하나의 프로세서에 의해 실행되는 복수의 명령어들을 포함하는 하나 이상의 프로그램이 기록된 컴퓨터로 읽을 수 있는 기록 매체에 있어서,
상기 프로그램은 실행 시에, 카메라를 이용하여 촬영된 영상 데이터를 획득하는 동작;
상기 영상 데이터를 분석하여 심박수 값을 산출하는 동작;
상기 심박수 값이 정상적으로 획득되었는지 여부를 판단하는 동작;
상기 심박수 값이 정상적으로 획득되지 않은 경우, 상기 심박수 값이 정상적으로 획득되지 않은 구간에 대한 보정 값을 결정하는 동작; 및
상기 보정 값을 포함하는 생체 정보 데이터를 생성하는 동작을 수행하도록 하는 것인, 기록 매체.
In a computer-readable recording medium in which one or more programs including a plurality of instructions executed by at least one processor are recorded,
When the program is executed, the operation of acquiring image data photographed using a camera;
Analyzing the image data to calculate a heart rate value;
Determining whether the heart rate value is normally acquired;
When the heart rate value is not normally acquired, determining a correction value for a section in which the heart rate value is not normally acquired; And
To perform an operation of generating biometric information data including the correction value.
전자 장치에 있어서,
부정맥 환자 심박 데이터를 저장하는 메모리; 및
상기 메모리와 연결된 프로세서를 포함하고,
상기 프로세서는,
심박수 값을 포함하는 생체 정보 데이터를 획득하고,
상기 생체 정보 데이터에 심박수 값이 포함되어 있지 않거나 정상적으로 산출된 값이 아닌 구간이 존재하는 경우, 상기 구간의 값을 보정 값으로 보정하고,
상기 보정된 생체 정보 데이터와 상기 부정맥 환자 심박 데이터를 비교하고,
상기 비교 결과에 기초하여, 상기 보정된 생체 정보 데이터가 상기 부정맥 환자 심박 데이터에 포함된 이상 패턴을 포함하는 횟수가 임계값 이상인 경우, 이상 심박 패턴에 대한 정보를 출력하도록 구성된, 전자 장치.
In the electronic device,
A memory for storing heart rate data of a patient with arrhythmia; And
Including a processor connected to the memory,
The processor,
Acquiring biometric information data including a heart rate value,
When the biometric information data does not contain a heart rate value or there is a section other than the normally calculated value, the value of the section is corrected with a correction value,
Compare the corrected biometric information data with the heart rate data of the arrhythmia patient,
The electronic device configured to output information on the abnormal heart rate pattern based on the comparison result, when the number of times the corrected biometric information data includes the abnormal pattern included in the arrhythmia patient heart rate data is equal to or greater than a threshold value.
KR1020190148077A 2019-11-18 2019-11-18 The arraprus for obtaining biometiric data and method thereof KR20210060246A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020190148077A KR20210060246A (en) 2019-11-18 2019-11-18 The arraprus for obtaining biometiric data and method thereof
PCT/KR2020/014098 WO2021101073A1 (en) 2019-11-18 2020-10-15 Apparatus for acquiring biometric data and method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190148077A KR20210060246A (en) 2019-11-18 2019-11-18 The arraprus for obtaining biometiric data and method thereof

Publications (1)

Publication Number Publication Date
KR20210060246A true KR20210060246A (en) 2021-05-26

Family

ID=75981322

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190148077A KR20210060246A (en) 2019-11-18 2019-11-18 The arraprus for obtaining biometiric data and method thereof

Country Status (2)

Country Link
KR (1) KR20210060246A (en)
WO (1) WO2021101073A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230032101A (en) * 2021-08-30 2023-03-07 연세대학교 산학협력단 Deep learning-based In-person Customized Metabolic Rate Prediction System and Prediction Method
KR20230056432A (en) * 2021-10-20 2023-04-27 고려대학교 산학협력단 Method for privacy-preserving ecg-based personal authentication
KR102588481B1 (en) * 2023-03-23 2023-10-12 상명대학교산학협력단 Method and Apparatus for Estimating Oxygen Saturation

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101357098B1 (en) * 2011-10-25 2014-02-12 주식회사 라이프사이언스테크놀로지 Method for detecting and correcting of bio-signal of walking surport device user
JP6135255B2 (en) * 2013-04-02 2017-05-31 富士通株式会社 Heart rate measuring program, heart rate measuring method and heart rate measuring apparatus
KR102176001B1 (en) * 2014-02-06 2020-11-09 한국전자통신연구원 Apparatus for measuring Biometric Information and Method thereof
KR101687252B1 (en) * 2014-11-06 2016-12-16 장재윤 Management system and the method for customized personal training
CN110785120A (en) * 2017-06-28 2020-02-11 索尼公司 Information processing apparatus, information processing method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230032101A (en) * 2021-08-30 2023-03-07 연세대학교 산학협력단 Deep learning-based In-person Customized Metabolic Rate Prediction System and Prediction Method
KR20230056432A (en) * 2021-10-20 2023-04-27 고려대학교 산학협력단 Method for privacy-preserving ecg-based personal authentication
KR102588481B1 (en) * 2023-03-23 2023-10-12 상명대학교산학협력단 Method and Apparatus for Estimating Oxygen Saturation

Also Published As

Publication number Publication date
WO2021101073A1 (en) 2021-05-27

Similar Documents

Publication Publication Date Title
US11786136B2 (en) Information processing apparatus, and information processing method
US20210275104A1 (en) Apparatus and method for correcting error of bio-information sensor, and apparatus and method for estimating bio-information
JP6742380B2 (en) Electronic device
KR102401774B1 (en) Electronic device and method for measuring stress thereof
CN113164080A (en) Electronic device for obtaining blood pressure value by using pulse wave velocity algorithm and method for obtaining blood pressure value
KR20210060246A (en) The arraprus for obtaining biometiric data and method thereof
CN107784268B (en) Method and electronic device for measuring heart rate based on infrared sensor
CN110709940A (en) Methods, systems, and media for predicting sensor measurement quality
US11596764B2 (en) Electronic device and method for providing information for stress relief by same
US11832925B2 (en) Electronic device for measuring biometric information and method for operating the same
RU2731445C1 (en) Information processing system
CN113613553B (en) Electronic device for measuring blood pressure and method for measuring blood pressure
US20190350464A1 (en) Electronic device for measuring blood pressure and operating method thereof
CN110739077A (en) Epileptic seizure early warning method and system
EP4179963A1 (en) Electronic device and method of estimating bio-information using the same
WO2022111704A1 (en) Heart rate measurement method and electronic device
EP3513715B1 (en) Apparatus and method for determining calibration timing for blood pressure measurement in electronic device
US11806169B2 (en) Electronic device for integrating and presenting physiological data between multiple devices and method thereof
EP4059418A1 (en) Apparatus and method for estimating bio-information
EP4166070A1 (en) Method of evaluating quality of bio-signal and apparatus for estimating bio-information
WO2022206641A1 (en) Hypertension risk measurement method and related apparatus
CN115067896A (en) Apparatus and method for estimating biological information
CN113693556A (en) Method and device for detecting muscle fatigue degree after exercise and electronic equipment