Electronic device and method for determining sleep onset time and wake-up time of user of electronic device

The wearable device enhances sleep and wake time determination by combining motion and external device usage events, addressing inaccuracies in existing methods and improving precision.

WO2026245719A1PCT designated stage Publication Date: 2026-11-26SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2026/096809
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-06-09
Filing Date
2026-05-11
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing electronic devices inaccurately determine the entry and exit times of a user's sleep and wake states due to reliance on motion sensors, which can misinterpret low-motion activities as sleep or wake transitions.

Method used

A wearable device equipped with motion sensors and communication circuits to connect with external devices, using both motion and usage event information from external devices to refine the determination of sleep and wake times, adjusting entry points based on external device usage events.

Benefits of technology

Accurately determines user sleep and wake times by integrating motion and usage event data, aligning with actual user state changes, thereby improving the precision of sleep and wake detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2026096809_26112026_PF_FP_ABST
    Figure KR2026096809_26112026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed are a wearable device and a method for operating the wearable device according to an embodiment. The wearable device comprises a motion sensor, a communication circuit connecting an external electronic device, at least one processor, and a memory storing at least one computer program including instructions. The at least one computer program, when individually or collectively executed by the at least one processor, causes the wearable device to determine the sleep onset of the user wearing the wearable device on the basis of first motion information related to the motion of the wearable device measured by the motion sensor and first use event information related to whether the external electronic device is in use received from the external electronic device connected to the wearable device. The external electronic device is determined to be in use on the basis of a use event related to at least one of touch input information, motion information, display information, or camera information of the external electronic device. Determining the sleep onset of the user wearing the wearable device may include determining whether an activity point included in the first motion information is below a first threshold, and acquiring the first use event information on the basis of determining that the activity point is below the first threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Method for determining the time of entry and exit of an electronic device and the user of the electronic device

[0001] The present disclosure relates to an electronic device and a method of operating the electronic device, and more specifically to a technique for determining the time of entry and exit and the time of waking of the user of the electronic device.

[0002] A wearable device may include various motion sensors for measuring a user's motion. For example, the wearable device may include motion sensors for measuring the user's linear movement, rotational movement, and change of direction. The wearable device may measure the user's motion using the motion sensors included in the wearable device. The wearable device may analyze the measured user motion and generate information indicating the user's health based on the analyzed motion. For example, the wearable device may generate information indicating the user's activity level, exercise patterns, and sleep status, and provide this information to the user.

[0003] The information described above may be provided as related art for the purpose of aiding understanding of this document. None of the above is to be claimed as prior art related to this document, nor can it be used to determine prior art.

[0004] When an electronic device determines the user's entry point into sleep using only the device's motion, it may determine a point in time different from the actual entry point into sleep. For example, as the electronic device determines the user's entry point into sleep using only the device's motion, it may determine a point in time different from when the user's state actually changed (e.g., when an activity involving minimal motion of the electronic device began) as the user's entry point into sleep. Similarly, as the electronic device determines the user's wake-up point using only the device's motion, it may determine a point in time different from when the user's state actually changed (e.g., when an activity involving minimal motion began after waking up) as the user's wake-up point.

[0005] The technical problems to be solved in this document are not limited to those mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art to which this invention belongs from the description below.

[0006] A wearable device according to one embodiment comprises, in the wearable device, a motion sensor, a communication circuit for connecting an external electronic device, at least one processor, and a memory for storing at least one computer program including instructions, wherein when the at least one computer program is executed individually or collectively by the at least one processor, the wearable device determines the status of a user wearing the wearable device based on first motion information related to the motion of the wearable device measured by the motion sensor and first usage event information related to whether the external electronic device is in use received from an external electronic device connected to the wearable device, and the external electronic device is determined to be in use based on a usage event related to at least one of touch input information, motion information, display information, or camera information of the external electronic device, and determining the status of a user wearing the wearable device may include determining whether an activity score included in the first motion information is less than a first threshold value, and obtaining the first usage event information based on determining that the activity score is less than the first threshold value.

[0007] A wearable device comprises a motion sensor, a communication circuit for connecting an external electronic device, at least one processor, and a memory for storing at least one computer program including instructions. When the at least one computer program is executed individually or collectively by the at least one processor, the wearable device determines the entry point of a user wearing the wearable device based on first motion information related to the motion of the wearable device measured by the motion sensor, determines the entry point of the user based on a first entry point indicating the time when the motion of the wearable device begins to decrease, receives information indicating a second entry point indicating the time when the last usage event was detected before determining the entry point of the user from an external electronic device connected to the electronic device, and if the second entry point is later than the first entry point, the entry point of the user can be adjusted from the first entry point to the second entry point.

[0008] An electronic device receives usage event information of an external electronic device from an external electronic device and can determine the user's time of entering sleep based on a first time of entering sleep (or a first time of waking up) determined based on the motion of the electronic device and a second time of entering sleep (or a second time of waking up) determined based on the usage event information. By determining the user's time of entering sleep (or the user's time of waking up) using the usage event information of the external electronic device, the electronic device can determine the time of entering sleep as the time of the user that is approximate to the time when the user's state changes from a sleep state to a wake state (or the time when the user's state changes from a wake state to a sleep state).

[0009] The effects obtainable from the present disclosure are not limited to those mentioned above, and other unmentioned effects will be clearly understood by those skilled in the art to which the present disclosure belongs from the description below.

[0010] FIG. 1 is a block diagram of an exemplary electronic device capable of performing the operations described in this document.

[0011] FIG. 2 is a front perspective view of a mobile electronic device according to various embodiments disclosed in this document. FIG. 3 is a rear perspective view of the electronic device of FIG. 2. FIG. 4 is an unfolded perspective view of the electronic device of FIG. 2.

[0012] FIG. 5 is a diagram illustrating a method for determining the time of entry and exit of a user of an electronic device according to one embodiment.

[0013] FIG. 6 is a block diagram of an electronic device and an external electronic device according to one embodiment.

[0014] FIG. 7 is a flowchart of the operation of an electronic device that determines the user's entry point according to one embodiment.

[0015] FIG. 8 is a flowchart of the operation of an electronic device for determining the time of a user's wake-up according to one embodiment.

[0016] FIG. 9 is a diagram illustrating usage event information of an external electronic device according to one embodiment.

[0017] FIGS. 10a, FIGS. 10b, FIGS. 10c, FIGS. 11a, FIGS. 11b, FIGS. 12a, FIGS. 12b, FIGS. 12c, FIGS. 13a, FIGS. 13b, and FIGS. 13c are drawings for explaining the operation of an electronic device that determines the user's elevation and waking times.

[0018] FIG. 14a is a diagram illustrating the operation of an electronic device for determining the time of elevation. FIG. 14b is a diagram illustrating the operation of an electronic device for determining the time of waking up. FIG. 14c is a diagram illustrating the operation of an electronic device for determining the time of waking up and the time of elevation. FIG. 14d is a diagram illustrating the operation of an electronic device for determining the time of waking up and the time of elevation.

[0019] FIG. 15 is a flowchart of the operation of an electronic device according to one embodiment.

[0020] FIG. 1 is a block diagram of an exemplary electronic device (100) capable of performing the operations described in this document.

[0021] Referring to FIG. 1, the electronic device (100) may be one of various forms of electronic devices, such as a notebook (190), smartphones (191) having various form factors (e.g., a bar-type smartphone (191-1), a foldable-type smartphone (191-2), or a sliderable (or rollable)-type smartphone (191-3)), a tablet (192), a cellular phone (not shown), and other similar computing devices (not shown). The components, their relationships, and their functions illustrated in FIG. 1 are illustrative only and are not intended to limit the implementations described or claimed herein. The electronic device (100) may be referred to as a mobile device, a user device, a multifunction device, a portable device, or a server.

[0022] The electronic device (100) may include components comprising at least one processor (110) (hereinafter referred to as processor (110)), at least one memory (120) (hereinafter referred to as memory (120)), at least one display (140) (hereinafter referred to as display (140)), at least one image sensor (150) (hereinafter referred to as image sensor (150)), at least one communication circuit (160) (hereinafter referred to as communication circuit (160)), and / or at least one sensor (170) (hereinafter referred to as sensor (170)). The components are merely exemplary. For example, the electronic device (100) may include other components (e.g., power management integrated circuitry (PMIC), audio processing circuit, antenna, rechargeable battery, or input / output interface). For example, some components may be omitted from the electronic device (100). For example, some components may be integrated into a single component.

[0023] The processor (110) may be implemented as one or more IC (integrated circuit (or circuitry)) chips and may perform various data processing operations. The processor (110) may include at least one electrical circuit and may process instructions (or programs, data, etc.) stored in memory (120) individually or collectively in a distributed manner. The processor (110) may include a processor assembly comprising one or more processing circuits. The processor (110) may include any processing circuit that is operative to control the performance and operations of one or more components of the electronic device (100) (e.g., memory (120), display (140), image sensor (150), communication circuit (160), and / or sensor (170)). For example, the processor (110) (e.g., application processor (AP)) may be implemented as a system on chip (SoC) (e.g., a single chip or chipset). For example, the processor (110) may be implemented with a plurality of cores (or at least one core circuit), a plurality of chips, or a plurality of chipsets. For example, the processor (110) may include one or more processing circuits. For example, the processor (110) may include one or more processing circuits configured to perform the various functions of the present disclosure individually and / or collectively. As an example without limitation, at least a portion of the processor (110) may be included in a first chip of the electronic device (100), and at least another portion of the processor (110) may be included in a second chip of the electronic device (100) different from the first chip of the electronic device (100).

[0024] For example, the processor (110) may include a central processing unit (111), a graphics processing unit (112), a neural processing unit (113), an image signal processor (114), a display controller (115), a memory controller (116), a storage controller (117), a communication processor (118), and / or a sensor interface (119). These components of the processor (110) are merely exemplary. For example, the processor (110) may include other components. For example, some components of the processor (110) may be omitted from the processor (110). For example, some components of the processor (110) may be included as separate components of the electronic device (100) outside of the processor (110). For example, some components of the processor (110) (e.g., memory controller (116)) may be included in other components (e.g., at least part of memory (120), an interface (e.g. available for connection to at least one component of the electronic device (100)), a display (140) and / or an image sensor (150)).

[0025] The processor (110) may cause other components of the electronic device (100) to perform various operations by executing instructions stored in memory (120). The CPU (111) (or central processing circuit) may be configured to control the components of the processor (110) based on the execution of instructions stored in memory (120) (e.g., volatile memory (121) and / or non-volatile memory (122)). The GPU (112) (or graphics processing circuit) may be configured to execute parallel operations (e.g., rendering). The NPU (113) (or neural processing circuit, or AI (artificial intelligence) chip) may be configured to execute operations for an artificial intelligence model (e.g., convolution computation). An ISP (114) (or image signal processing circuit) may be configured to process a raw image acquired through an image sensor (150) into a format suitable for a component within the electronic device (100) or a component of the processor (110). A display controller (115) (or display control circuit, or DPU (display processing unit)) may be configured to process an image acquired from a CPU (111), GPU (112), ISP (114), or memory (120) (e.g., volatile memory (121)) into a format suitable for a display (140). A memory controller (116) (or memory control circuit) may be configured to control reading data from the volatile memory (121) and writing data to the volatile memory (121). A storage controller (117) (or storage control circuit) may be configured to control reading data from the non-volatile memory (122) and writing data to the non-volatile memory (122).The CP (118) (communication processing circuit) may be configured to process data obtained from a component of the processor (110) into a format suitable for transmitting to another electronic device via the communication circuit (160), or to process data obtained from another electronic device via the communication circuit (160) into a format suitable for processing by the component of the processor (110). For example, the communication circuit (160) may include one or more communication circuits. The sensor interface (119) (or sensing data processing circuit, sensor hub) may be configured to process data regarding the state of the electronic device (100) and / or the state around the electronic device (100), obtained through the sensor (170), into a format suitable for the component of the processor (110).

[0026] Memory (120) may include one or more storage media (or one or more storage devices). For example, memory (120) may include a memory assembly comprising one or more storage media. For example, the one or more storage media may include a hard drive, a permanent memory such as flash memory, read-only memory (ROM) (e.g., non-volatile memory (122)), a semi-permanent memory such as random access memory (RAM) (e.g., volatile memory (121)), any other suitable type of storage (or storage assembly), or any combination thereof. Memory (120) may include a cache memory, which is one or more different types of memory used to temporarily store data for a function or feature of the electronic device (100). As an example not limited to, the cache memory may be included within the processor (110). The memory (120) may be fixedly embedded within the electronic device (100) or incorporated into one or more suitable types of components (e.g., a SIM (subscriber identity module) card and / or an SD (secure digital) card) that can be repeatedly inserted into and removed from the electronic device (100).

[0027] For example, memory (120) may store one or more software applications, such as operating system (or system) software applications, firmware software applications, driver software applications, plugin (e.g., add-in, add-on, and / or applet) software applications, and / or any other suitable software applications. For example, the one or more software applications may include instructions executable by the processor (110). For example, memory (120) may store instructions that can be called by an application programming interface (API). For example, memory (120) may store instructions within a library.

[0028] FIG. 2 is a front perspective view of a mobile electronic device according to various embodiments disclosed in this document. FIG. 3 is a rear perspective view of the electronic device of FIG. 2. FIG. 4 is an unfolded perspective view of the electronic device of FIG. 2.

[0029] Referring to FIGS. 2 and 3, an electronic device (200) according to one embodiment (e.g., the electronic device (101) of FIG. 1) may include a housing (210) comprising a first surface (or front) (210A), a second surface (or rear) (210B), and a side (210C) surrounding the space between the first surface (210A) and the second surface (210B), and a fastening member (250, 260) connected to at least a part of the housing (210) and configured to detachably fasten the electronic device (200) to a part of a user's body (e.g., wrist, ankle, etc.). In another embodiment (not shown), the housing may refer to a structure forming some of the first surface (210A), the second surface (210B), and the side (210C) of FIG. 2. According to one embodiment, the first surface (210A) may be formed by a front plate (201) in which at least a portion is substantially transparent (e.g., a glass plate containing various coating layers, or a polymer plate). The second surface (210B) may be formed by a rear plate (207) that is substantially opaque. The rear plate (207) may be formed by, for example, coated or colored glass, ceramic, polymer, metal (e.g., aluminum, stainless steel (STS), or magnesium), or a combination of at least two of the materials. The side surface (210C) may be formed by a side bezel structure (or "side member") (206) comprising metal and / or polymer, which is combined with the front plate (201) and the rear plate (207). In some embodiments, the rear plate (207) and the side bezel structure (206) may be formed integrally and may comprise the same material (e.g., a metallic material such as aluminum). The above-mentioned connecting members (250, 260) can be formed in various materials and shapes. They can be formed such that an integral and a plurality of unit links are movable with each other by means of woven fabric, leather, rubber, urethane, metal, ceramic, or a combination of at least two of the above materials.

[0030] According to one embodiment, the electronic device (200) may include at least one of a display (220, see FIG. 4), an audio module (205, 208), a sensor module (211), a key input device (202, 203, 204), and a connector hole (209). In some embodiments, the electronic device (200) may omit at least one of the components (e.g., a key input device (202, 203, 204), a connector hole (209), or a sensor module (211)) or additionally include other components.

[0031] The display (220) may be exposed, for example, through a significant portion of the front plate (201). The shape of the display (220) may correspond to the shape of the front plate (201) and may be various shapes such as circular, elliptical, or polygonal. The display (220) may be combined with or placed adjacent to a touch detection circuit, a pressure sensor capable of measuring the intensity (pressure) of the touch, and / or a fingerprint sensor.

[0032] The audio module (205, 208) may include a microphone hole (205) and a speaker hole (208). A microphone for acquiring external sound may be placed inside the microphone hole (205), and in some embodiments, a plurality of microphones may be placed to detect the direction of sound. The speaker hole (208) may be used as an external speaker and a receiver for calls. In some embodiments, the speaker hole (207, 214) and the microphone hole (203) may be implemented as a single hole, or a speaker may be included without the speaker hole (207, 214) (e.g., a piezo speaker).

[0033] The sensor module (211) can generate an electrical signal or data value corresponding to an internal operating state of the electronic device (200) or an external environmental state. The sensor module (211) may include, for example, a biosensor module (211) (e.g., HRM sensor) disposed on the second side (210B) of the housing (210). The electronic device (200) may further include at least one of the sensor modules not illustrated, for example, a gesture sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an accelerometer sensor, a grip sensor, a color sensor, an IR (infrared) sensor, a biosensor, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0034] A biosensor (e.g., the biosensor (640) of FIG. 6) may include a light-emitting part that generates light and a light-receiving part that receives light. The light-emitting part may include one of a light-emitting diode (LED), an organic light-emitting diode (OLED), a semiconductor laser (LD), a solid laser, or an IR (infrared) diode capable of generating light. In addition, the light-emitting part may be composed of various elements capable of generating light. The light-receiving part may be a light-receiving element that converts light energy into electrical energy. Examples of such light-receiving elements may include one of a photodiode (PD), an avalanche photodiode (APD), or a phototransistor. In addition, the light-receiving part may be composed of various elements capable of receiving light. According to various embodiments, a plurality of light-receiving parts may be provided and arranged around the light-emitting part. According to various embodiments, a light source (e.g., backlight, LED, OLED) which is a component that generates light in a display may be the light-emitting part of the biosensor.

[0035] A biosensor can utilize the difference in optical response based on the oxygen saturation of hemoglobin in the blood. Light provided by a light-emitting unit can pass through a display and be transmitted to the user's body. A light-receiving unit can receive reflected light transmitted to the body. The reflected light can pass through the display and be incident on the light-receiving unit. The reflected light received by the light-receiving unit may exhibit periodicity due to the difference in optical response based on the aforementioned oxygen saturation of hemoglobin. An electronic device can measure the user's pulse wave by utilizing this periodicity obtained through the biosensor. The electronic device can measure the period and amplitude of the pulse wave through the biosensor. In some cases, the user's movement can be indirectly measured through a motion sensor of the electronic device, allowing the measured signal to be processed more precisely using this movement information. According to various embodiments, the position of the electronic device measuring the user's pulse wave can be induced to be maintained at the height of the user's heart through the motion sensor. The pulse wave measurement operation using the biosensor (520) described above explains a typical principle for detecting heart rate-related information using a light-emitting part and a light-receiving part, and the electronic device according to the various embodiments disclosed in this document can measure the user's pulse wave in various other ways through the biosensor.

[0036] The key input device (202, 203, 204) may include a wheel key (202) disposed on a first surface (210A) of the housing (210) and rotatable in at least one direction, and / or a side key button (202, 203) disposed on a side (210C) of the housing (210). The wheel key may be in a shape corresponding to the shape of the front plate (202). In another embodiment, the electronic device (200) may not include some or all of the aforementioned key input devices (202, 203, 204), and the key input device (202, 203, 204) not included may be implemented in other forms, such as soft keys, on the display (220). The connector hole (209) may include another connector hole (not shown) capable of receiving a connector (e.g., a USB connector) for transmitting and receiving power and / or data with an external electronic device and a connector for transmitting and receiving audio signals with an external electronic device. The electronic device (200) may further include a connector cover (not shown) that, for example, covers at least a portion of the connector hole (209) and blocks the entry of external foreign matter into the connector hole.

[0037] The fastening member (250, 260) can be detachably fastened to at least a portion of the housing (210) using a locking member (251, 261). The fastening member (250, 260) may include one or more of a fixing member (252), a fixing member fastening hole (253), a band guide member (254), and a band fixing ring (255).

[0038] The fixing member (252) may be configured to fix the housing (210) and the fastening member (250, 260) to a part of the user's body (e.g., wrist, ankle, etc.). The fixing member fastening hole (253) may fix the housing (210) and the fastening member (250, 260) to a part of the user's body in correspondence with the fixing member (252). The band guide member (254) may be configured to limit the range of movement of the fixing member (252) when the fixing member (252) is fastened to the fixing member fastening hole (253), thereby allowing the fastening member (250, 260) to be fastened in close contact with a part of the user's body. The band fixing ring (255) may limit the range of movement of the fastening member (250, 260) when the fixing member (252) and the fixing member fastening hole (253) are fastened.

[0039] Referring to FIG. 4, the electronic device (400) may include a side bezel structure (410), a wheel key (420), a front plate (201), a display (220), a first antenna (450), a second antenna (455), a support member (460) (e.g., a bracket), a battery (470), a printed circuit board (480), a sealing member (490), a rear plate (493), and fastening members (495, 497). At least one of the components of the electronic device (400) may be identical or similar to at least one of the components of the electronic device (200) of FIG. 2 or FIG. 3, and redundant descriptions are omitted below. The support member (460) may be disposed inside the electronic device (400) and connected to the side bezel structure (410), or may be formed integrally with the side bezel structure (410). The support member (460) may be formed of, for example, a metal material and / or a non-metal (e.g., a polymer) material. The support member (460) may have a display (220) attached to one side and a printed circuit board (480) attached to the other side. The printed circuit board (480) may be equipped with a processor, memory, and / or an interface. The processor may include, for example, one or more of a central processing unit, an application processor, a graphics processing unit (GPU), an application processor signal processing unit, or a communication processor.

[0040] The memory may include, for example, volatile memory or non-volatile memory. The interface may include, for example, HDMI (high definition multimedia interface), USB (universal serial bus) interface, SD card interface, and / or audio interface. The interface may, for example, electrically or physically connect the electronic device (400) to an external electronic device and may include a USB connector, an SD card / MMC connector, or an audio connector.

[0041] The battery (470) is a device for supplying power to at least one component of the electronic device (400) and may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell. At least a portion of the battery (470) may be disposed substantially coplanar with, for example, a printed circuit board (480). The battery (470) may be disposed integrally within the electronic device (200) or may be disposed detachably from the electronic device (200).

[0042] The first antenna (450) may be positioned between the display (220) and the support member (460). The first antenna (450) may include, for example, a near field communication (NFC) antenna, a wireless charging antenna, and / or a magnetic secure transmission (MST) antenna. The first antenna (450) may, for example, communicate near field with an external device, wirelessly transmit and receive power required for charging, and transmit a magnetic-based signal including a near field communication signal or payment data. In another embodiment, the antenna structure may be formed by a part of the side bezel structure (410) and / or a combination thereof of the support member (460).

[0043] A second antenna (455) may be positioned between the circuit board (480) and the back plate (493). The second antenna (455) may include, for example, a near field communication (NFC) antenna, a wireless charging antenna, and / or a magnetic secure transmission (MST) antenna. The second antenna (455) may, for example, communicate near-field with an external device, wirelessly transmit and receive power required for charging, and transmit a magnetic-based signal including a near-field communication signal or payment data. In other embodiments, the antenna structure may be formed by a part of the side bezel structure (410) and / or the back plate (493) or a combination thereof.

[0044] The sealing member (490) may be positioned between the side bezel structure (410) and the rear plate (493). The sealing member (490) may be configured to block moisture and foreign matter from entering the space enclosed by the side bezel structure (410) and the rear plate (493) from the outside.

[0045] FIG. 5 is a diagram illustrating a method for determining the time of entry and exit of a user of an electronic device according to one embodiment.

[0046] An electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (200) of FIG. 2) can check the state of a user, which is either a sleep state or a wake state of the electronic device (101). A sleep state refers to a state in which the user of the electronic device (101) is sleeping, and a wake state may refer to a state in which the user of the electronic device (101) is not sleeping. Checking the state of the user may include checking the user's offset of sleep (or the user's state changing from a sleep state to a wake state) or checking the user's onset of sleep (or the user's state changing from a wake state to a sleep state).

[0047] The electronic device (101) can measure information related to the user. The information related to the user may include information measurable through various sensors included in the electronic device (101). For example, the information related to the user may include the user's biometric information (e.g., heart rate, oxygen saturation) and / or motion information.

[0048] The electronic device (101) can measure information related to the user based on the user's state. For example, some of the information related to the user may be measured only when the user is in a sleeping state or only when the user is awake. Accordingly, the electronic device (101) can enable or disable the collection of information related to the user based on the user's waking or sleeping state. For example, if the electronic device (101) determines the user's waking state, it can enable the collection of information measured when the user is in a sleeping state and disable the collection of information measured only when the user is awake state. Alternatively, if the electronic device (101) determines the user's waking state, it can enable the collection of information measured when the user is awake state and disable the collection of information measured only when the user is in a sleeping state.

[0049] The electronic device (101) may be a device in the form of one worn by a user (e.g., a wearable device). The electronic device (101) may be worn by a user. The electronic device (101) may measure and utilize the motion of the electronic device (101) to check the motion of the user. The electronic device (101) may detect the user's entry into sleep or wake-up (e.g., a change in the user's state) based on the motion of the electronic device (101). For example, the electronic device (101) may determine (or confirm) the user's entry into sleep (or the user's state changes from a waking state to a sleeping state) based on a decrease in the motion of the electronic device (101), and determine (or confirm) the user's wake-up (or the user's state changes from a sleeping state to a waking state) based on an increase in the motion of the electronic device (101).

[0050] When the electronic device (101) determines the user's sleep time, it can determine the user's sleep time. The user's sleep time may refer to the time predicted by the electronic device (101) as the user's sleep time having started.

[0051] The time of the user's entry into sleep (512) determined by the electronic device (101) and the time of the user's actual entry into sleep (513) may differ from each other. According to one example, the user of the electronic device (101) may perform low-motion activities (e.g., reading a book, watching a movie, watching a video) of the electronic device (101) before the user's state changes from a waking state to a sleeping state. The electronic device (101) may determine the user's entry into sleep (or confirm that the user's state changes from a waking state to a sleeping state) based on the fact that the motion of the electronic device (101) is below a threshold value for detecting entry into sleep. The electronic device (101) may determine the time of the user's entry into sleep as a time (e.g., when the low-motion activity started (511)) that is close to the time when the user's entry into sleep was determined (or when the user's state changed from a waking state to a sleeping state) (512), even though the user has not entered sleep (or the user's state has not changed). The electronic device (101) can determine the user's entry point and the user's entry point by using only the motion of the electronic device (101). As such, the user's entry point can be determined as a point different from the point in time (513) when the user's state actually changed (e.g., the point in time (511) when a low-motion activity started).

[0052] The electronic device (101) can determine the time of the user's wake-up when it has determined the user's wake-up (offset of sleep of user). The time of the user's wake-up may refer to the time predicted by the electronic device (101) that the user's sleep has ended. The time of the user's wake-up (523) determined by the electronic device (101) and the user's actual time of wake-up (521) may differ from each other. According to one example, the user of the electronic device (101) may perform low-motion activities of the electronic device (101) (e.g., reading a book, watching a movie, watching a video) after the user's state changes from a sleep state to a wake-up state. The electronic device (101) may not determine the user's wake-up (or confirm that the user's state changes from a wake-up state) based on the motion of the electronic device (101) caused by the low-motion activity being below a threshold for wake-up detection. The electronic device (101) may determine the user's wake-up time (e.g., the time when a new activity with large motion of the electronic device (101) begins (522)) that is similar to the time when the user's wake-up time (e.g., the time when a new activity with large motion of the electronic device (101) begins) and the time when the user's state is determined (or the time when the user's state is confirmed to change from a wake-up state) (523) that is different from the time when the user's state changed. Since the electronic device (101) determines the user's wake-up time using only the motion of the electronic device (101), it may determine the user's wake-up time that is different from the time when the user's state actually changed (e.g., the time when a small activity with small motion begins after waking up (521)).

[0053] The electronic device (101) of the present disclosure described in the drawings below (e.g., the electronic device (600) described in FIG. 6) can determine the user’s entry into or exit from the external electronic device (601) received from an external electronic device (e.g., the external electronic device (601) described in FIG. 6) that is connected to the electronic device (101) in communication, based on usage event information regarding whether the external electronic device (601) is being used by a user of the external electronic device (601) (e.g., the same user as the user of the electronic device (101)), and can determine a time point that is close to the time point (513, 521) when the user’s state actually changed as the time point of entry into or exit from the user.

[0054] FIG. 6 is a block diagram of an electronic device and an external electronic device according to one embodiment.

[0055] The electronic device (600) (e.g., the electronic device (101) of FIG. 1, the electronic device (200) of FIG. 2) may be a wearable device. The electronic device (600) may include a processor (610), memory (620), a motion sensor (630), a bio-sensor (640), and / or a communication circuit (650). The motion sensor (530) may measure motion of the electronic device (600) caused by the movement of the user. The bio-sensor may detect the user's bio-signal (e.g., pulse). The electronic device (600) may detect (or measure) the user's motion through the motion sensor (630) or detect (or measure) the user's bio-information (e.g., pulse) through the bio-sensor (640).

[0056] An external electronic device (601) (e.g., the electronic device (101) of FIG. 1) may be a device connected to the electronic device (600) via wired or wireless connection (e.g., communication connection). The electronic device (600) may be wirelessly connected to the external electronic device (601) via a communication circuit (650) using a communication method supported by various wireless communication technologies (e.g., Bluetooth). According to one embodiment, the operation of the external electronic device (601) and / or the electronic device (600) of the present disclosure may be an operation performed while connected to each other via a communication method supported by Bluetooth (or various other communication technologies).

[0057] An electronic device (or processor) can measure the motion of the electronic device (600) (or a value representing the motion of the electronic device (600)) through a motion sensor (630). The electronic device (600) may be worn on the body of the user of the electronic device (600), and the motion of the electronic device (600) may be generated by the movement of the user of the electronic device (600). The motion of the electronic device (600) may represent the movement of the user of the electronic device (600). The motion of the electronic device (600) may include at least one of the acceleration of the electronic device (600), the speed of the electronic device (600), and the position of the electronic device (600).

[0058] The processor (610) can calculate (or obtain) motion information related to the motion of the electronic device (600) based on the motion of the electronic device (600) measured. For example, the motion information (e.g., first motion information or second motion information) may include feature information indicating the characteristics of the motion of the electronic device (or the user wearing the electronic device).

[0059] For example, the processor (610) can use the motion (e.g., acceleration) of the electronic device (600) to obtain feature information indicating whether the change in the angle of the user's arm of the electronic device (600) over a certain period of time is greater than a specific angle (e.g., 10 degrees).

[0060] For example, the processor (610) can obtain feature information representing the standard deviation of the angle of the user's arm of the electronic device (600) over a certain period of time by using the motion (e.g., acceleration) of the electronic device (600).

[0061] For example, the processor (610) can obtain feature information indicating whether the direction of the acceleration of the electronic device (600) changes (or whether the sign of the acceleration vector changes) by using the motion (e.g., acceleration) of the electronic device (600).

[0062] For example, the processor (610) can obtain feature information indicating the degree of complexity of the motion of the electronic device (or user) over a certain period of time by using the motion (e.g., acceleration) of the electronic device (600). The processor (610) can obtain information indicating the differences between consecutive values ​​among the magnitude values ​​of the acceleration vector measured over a certain period of time. The processor (610) can obtain feature information indicating the degree of complexity of the motion of the electronic device (or user) over a certain period of time based on information indicating the sum of the absolute values ​​of the differences between consecutive values ​​among the magnitude values ​​of the acceleration vector measured over a certain period of time.

[0063] For example, the processor (610) can obtain feature information representing the kurtosis of the magnitude distribution of the acceleration vector over a certain period of time by using the motion (e.g., acceleration) of the electronic device (600).

[0064] Motion information (e.g., first motion information or second motion information) may include information for determining whether the user of the electronic device (600) is sleeping (and / or the time of the user's sleep). For example, the motion information may include an activity score obtained based on the motion of the electronic device (600) (or feature information obtained using the motion of the electronic device (600)). The activity score may refer to a value used to determine the user's sleep state. According to one embodiment, the activity score may be determined based on the user's biometric information measured by the biosensor (640) and / or the motion of the electronic device (600).

[0065] The processor (610) may determine an activity score closer to 0 as the probability that the user is in a sleeping state increases (e.g., the motion of the electronic device (600) is smaller), and may determine an activity score closer to 1 as the probability that the user is in a waking state increases (or the probability that the user is in a sleeping state decreases) (e.g., the motion of the electronic device (600) is larger). For example, the processor (610) may input feature information into an artificial intelligence model trained to calculate (or output) an activity score, and determine the activity score using the result output by the artificial intelligence model.

[0066] The processor (610) can check the state of a user, including at least one of a sleep state and a wake state of the electronic device (600). The sleep state refers to a state in which the user of the electronic device (600) is sleeping, and the wake state may refer to a state in which the user of the electronic device (600) is out of a sleep state or a state in which the user of the electronic device (600) is not sleeping. Checking the state of the user may include checking the user's offset of sleep (or the user's state changing from a sleep state to a wake state) or checking the user's onset of sleep (or the user's state changing from a wake state to a sleep state).

[0067] The processor (610) can determine (or confirm) the state of the user based on the activity score. For example, the processor can confirm that the user's state is in a sleep state if the activity score is below a first threshold indicating that the user is in a sleep state. The processor (610) can confirm that the user's state is in a wake state if the activity score is above a second threshold indicating that the user is in a sleep state. Alternatively, the processor (610) can confirm that the user's state (last confirmed) is maintained if the activity score is above the first threshold and below the second threshold. The processor (610) can calculate (or acquire) motion information (e.g., feature information) used to calculate (or determine) the activity score to determine whether the user is in a sleep state or waking up, and can calculate (or determine) the activity score in real time based on the calculated motion information.

[0068] The processor (610) can determine the user's waking (or determine that the user's state of the electronic device (600) changes from a waking state to a sleeping state) based on determining that the activity score changes to a level below a first threshold indicating that the user of the electronic device (600) is in a sleeping state (or that the activity score is below the first threshold).

[0069] The processor (610) can determine that the user's state (last confirmed) is maintained when the activity score is greater than or equal to a first threshold and less than a second threshold. For example, the processor (610) can determine that the user's state is in a sleep state when, after determining the user's entry into sleep (or after (last) confirming that the user's state of the electronic device (600) has changed to a sleep state), the activity score is greater than or equal to a first threshold and less than a second threshold. Or the processor (610) can determine that the user's state is in a sleep state when, after determining the user's wake-up (or after (last) confirming that the user's state of the electronic device (600) has changed to a wake-up state), the activity score is greater than or equal to a first threshold and less than a second threshold.

[0070] The first threshold and the second threshold may refer to reference values ​​used to determine the user's state based on an activity score. The first threshold, which indicates a reference value for the user being in a sleep state, may be determined to be a lower value than the second threshold, which indicates a reference value for the user being in a wake state.

[0071] The processor (610) may determine the time of the user's entry into sleep in response to (or based on) determining the user's entry into sleep (or confirming that the user's state changes from a waking state to a sleeping state). The time of the user's entry into sleep may indicate a time estimated to be the time when the user's state of the electronic device (600) changes from a waking state to a sleeping state (e.g., the time when the user of the electronic device (600) enters sleep (starts sleeping).

[0072] For example, the processor (610) may determine the user's entry point based on a first entry point indicating the time when the motion of the electronic device (600) begins to decrease. The first entry point may include the last time when the activity score included in the first motion information is greater than or equal to a specific value greater than the first threshold before falling below the first threshold.

[0073] The processor (610) may receive information indicating a second entry point from an external electronic device (601) connected to the electronic device (600), indicating the time when the last usage event was detected before determining the user's entry point. When the processor (610) determines the user's entry point, it may request usage event information (e.g., information indicating the second entry point) from the external electronic device (601) and receive the requested information. The second entry point may include the time when the last usage event indicating that the external electronic device (601) is in use was detected before determining the user's entry point.

[0074] The processor (610) can adjust the user's entry point from the first entry point to the second entry point if the second entry point is later than the first entry point.

[0075] After determining the entry of the user of the electronic device (600) into sleep (or while the user is in a sleep state, or after confirming that the user's state of the electronic device (600) has changed from a sleep state to a sleep state), the processor (610) can determine the user's wake-up (or confirm that the user's state of the electronic device (600) has changed from a sleep state to a sleep state) based on confirming that the activity score has changed above a second threshold indicating that the user of the electronic device (600) is in a wake-up state (or that the activity score is above the second threshold).

[0076] The processor (610) can determine the user's wake-up time based on a first wake-up time indicating the point in time when the motion of the electronic device (600) begins to increase. The first wake-up time may include the last point in time when the activity score included in the second motion information is greater than or equal to a specific value smaller than the second threshold before it becomes greater than or equal to the second threshold.

[0077] The processor (610) may receive information indicating a second wake-up time, which indicates the time when the external electronic device (601) was first used, after determining the user's wake-up time from an external electronic device (601) connected to the electronic device (600). When the processor (610) determines the user's wake-up time, it may request usage event information (e.g., information indicating the second wake-up time) from the external electronic device (601) and receive the requested information. The second wake-up time may include the time when the first usage event indicating that the external electronic device is in use is detected after determining the user's wake-up time.

[0078] If the second wake-up time is earlier than the time when the user's wake-up time was determined, the processor (610) can adjust the user's wake-up time from the first wake-up time to the second wake-up time.

[0079] According to one embodiment, the electronic device (600) may use the usage event information of an external electronic device not only to adjust the user's entry into sleep and wake-up times, but also to determine the user's entry into sleep or wake-up time. In the example below, it will be explained that the electronic device (600) determines the user's entry into sleep based on motion information and usage event information, and determines the user's wake-up time based on motion information or usage event information.

[0080] The processor (610) can determine the user's profile based on the fact that the activity score included in the first motion information is less than the first threshold and the external electronic device (601) is not in use.

[0081] For example, the processor (610) may determine whether the activity score included in the first motion information is less than a first threshold. Based on determining that the activity score is less than the first threshold, the processor (610) may request information from the external electronic device (601) indicating whether the external electronic device (601) is in use. Based on receiving information from the external electronic device (601) indicating whether the external electronic device (601) is in use, the processor (610) may determine whether the external electronic device (601) is in use. When the processor (610) determines that the external electronic device (601) is in use, it may receive information from the external electronic device (601) indicating whether the external electronic device is in use at predetermined time intervals until it receives the first usage event information, which includes information indicating that the external electronic device is not in use. For example, the processor (610) may request information indicating whether the external electronic device (601) is in use at fixed time intervals and receive information indicating whether the external electronic device (601) is in use from the external electronic device (601). Alternatively, the electronic device (600) may control the external electronic device (601) (or request the external electronic device (601)) to transmit information indicating whether the external electronic device (601) is in use at fixed time intervals until the external electronic device (601) transmits information indicating that the external electronic device (601) is not in use to the electronic device (600). When the processor (610) confirms that the external electronic device is not in use, it may determine the user's entry.

[0082] Usage event information (e.g., first usage event information, second usage event information) may indicate information to supplement the entry time (e.g., first entry time) or exit time (e.g., first exit time) determined by the electronic device. For example, the usage event information may be information related to at least one usage event that occurs based on the external electronic device being used by a user of the external electronic device (or a user of the electronic device). The usage event information may include information indicating whether the external electronic device is being used by a user and / or information indicating the time of each of the at least one usage event detected by said external electronic device. The usage event may include various events used to determine whether the external electronic device (601) is being used (e.g., interaction between the user and the external electronic device (601) or a change in the state of the external electronic device (601). For example, usage events may include user input received by the user, motion of the external electronic device (601), events detected based on the brightness of the display of the external electronic device (601), and / or the detection of the user's face through a camera.

[0083] When the external electronic device (601) transmits information indicating that the external electronic device (601) is in use to the electronic device (600), it may repeatedly transmit information indicating whether the external electronic device is in use to the electronic device (600) until it transmits usage event information, including information indicating that the external electronic device (601) is not in use, to the electronic device (600). When the processor (610) confirms that the external electronic device (601) is not in use through the usage event information received from the external electronic device (601), it may determine the user's entry.

[0084] When the processor (610) determines the user's entry point, it may determine the user's entry point based on motion information related to the motion of the electronic device (600) obtained through the motion sensor (630) (e.g., first motion information) and usage event information received by an external electronic device (e.g., first usage event information including information indicating that the external electronic device (601) is not in use). For example, when the processor (610) determines the user's entry point, it may determine the user's entry point based on a first entry point determined based on the first motion information and a second entry point determined based on the first usage event information.

[0085] According to one embodiment, the processor (610) may receive first usage event information including both information used to determine the user's entry into the room (e.g., information related to whether the external electronic device (601) is in use, received from the external electronic device (601)) and information used to determine the user's entry into the room (e.g., information indicating a second entry into the room, received from the external electronic device (601). Alternatively, the processor (610) may determine the user's entry into the room based on receiving information related to whether the external electronic device (601) is in use, and then request information indicating a second entry into the room from the external electronic device (601) and receive it from the external electronic device (601).

[0086] For example, the processor (610) may determine the entry point of a user wearing an electronic device based on the later of a first entry point indicating the time when the motion of the electronic device began to decrease and a second entry point indicating the time when the external electronic device was last used before determining the entry point of the user wearing the electronic device.

[0087] The first sleep entry point may be one of the points in time prior to the point in time when the activity score falls below the first threshold (a value indicating the user's sleep state) (e.g., the point in time when the electronic device (600) confirms that the user's state has changed from a waking state to a sleep state). For example, the first sleep entry point may include the point in time when the activity score included in the first motion information begins to decrease (e.g., the last point in time when it is greater than or equal to a specific value greater than the first threshold (e.g., a specific value (1007-1) in FIG. 10a) before falling below the first threshold (e.g., the first threshold (1007) in FIG. 10a)) (or the point in time when the user's motion begins to decrease). The processor (610) may determine the point in time when the activity score begins to decrease prior to the point in time when the activity score changes below the first threshold as the first sleep entry point. The point in time when the activity score changes below the first threshold may not coincide with the first sleep entry point (the point in time when the activity score begins to decrease).

[0088] According to one embodiment, the first entry point may include the point in time when the amount of motion of the electronic device (600) included in the first motion information is lower than the first threshold and the state is maintained for a specified time interval or longer.

[0089] The second entry point may include the time when the last detected usage event among the specified number of usage events (e.g., usage events used to determine the time when the external electronic device (601) was last in use) detected during a specified time period included in the usage event information (e.g., first usage event information).

[0090] Usage event information (e.g., first usage event information or second usage event information) may include information for determining the user's sleep time (or wake time) collected (or verified) by an external electronic device. The usage event information may include information indicating whether the external electronic device (601) is being used by the user and information indicating the time (or timing) of the usage event detected by the external electronic device (e.g., the time or timing of the first or last detected usage event among the usage events). The external electronic device (601) may detect a usage event indicating that the external electronic device (601) is being used by a user of the external electronic device (601) (e.g., a user matching the user of the electronic device (600)). The usage event may include various events used to determine whether the external electronic device (601) is being used (e.g., interactions between the user and the external electronic device (601) or changes in the state of the external electronic device (601).

[0091] A usage event may include user input received by a user. The external electronic device (601) may determine that a usage event has occurred (or been detected) when it receives not only touch input received through a touch screen but also various forms of input (e.g., sound) received through the interface of the external electronic device (601).

[0092] A usage event may include motion of an external electronic device (601). The external electronic device (601) may determine that a usage event has occurred (or been detected) if the motion of the external electronic device (601) (e.g., speed, acceleration, or information calculated by speed or acceleration) measured by an acceleration sensor included in the external electronic device (601) exceeds a specified size.

[0093] A usage event may include an event detected based on the brightness of the display of the external electronic device (601). For example, the external electronic device (601) may determine that a usage event has occurred (or been detected) if the brightness level of the display of the external electronic device (601) changes significantly above a reference value (e.g., if the brightness changes as the power saving mode of the external electronic device is activated).

[0094] Alternatively, the external electronic device (601) may determine that a usage event has occurred (or been detected) if the display remains active for a preset time (e.g., 2 minutes) or longer. The external electronic device (601) may detect a usage event at preset time intervals while the display of the external electronic device (601) remains active. Based on detecting a usage event at preset time intervals, the external electronic device (601) may detect a specified number of usage events (e.g., 5 times) or more based on a specified time period (e.g., 10 minutes). As the external electronic device (601) continuously detects a specified number of usage events or more during a specified time period, it may determine that the external electronic device (601) is continuously in use.

[0095] A usage event may include the detection of a user's face through a camera. An external electronic device (601) may verify (or acquire) an external image through a camera included in the external electronic device (601) (e.g., camera module (180) of FIG. 1). The external electronic device (601) may verify (or determine) whether the user's face is included in the external image. The external electronic device (601) may detect a usage event based on whether the user's face is included in the external image. For example, the external electronic device (601) may detect a usage event based on detecting the user's face through a camera included on the front of the external electronic device (601).

[0096] The external electronic device (601) can determine (or determine) whether the external electronic device (601) is in use based on the number of times a usage event is detected during a specified time interval (e.g., a time period between the current time and a time before the specified time interval). For example, the external electronic device (601) can determine (or determine) that the external electronic device (601) is in use by a user of the external electronic device (601) if more than a specified number of usage events are detected during a specified time interval (e.g., a time between the current time and a time before the specified time interval).

[0097] When the external electronic device (601) confirms that the external electronic device (601) is being used by a user of the external electronic device (601), it can determine the first (or last) detected usage event among a specified number of usage events detected during a specified time interval (e.g., usage events used to determine that the external electronic device (601) is being used) and / or the time when the first (or last) detected usage event was detected. The time when the first detected usage event was detected can be determined as a second entry point by the electronic device (600) or the external electronic device (601).

[0098] When an external electronic device (601) receives a request for usage event information (e.g., first usage event information) from an electronic device (600), it may transmit the usage event information (e.g., first usage event information) to the electronic device. The usage event information (e.g., first usage event information) may include information indicating whether the external electronic device (601) is in use and / or information indicating the time of the usage events used to determine that the external electronic device (601) is in use (e.g., the time of the first (or last) detected usage event).

[0099] The processor (610) can determine the user's entry point based on the first entry point and the second entry point.

[0100] For example, the processor (610) may identify (or determine) a first sleep time in response to confirming that the activity score is less than a first threshold. The first sleep time may include a time when the activity score included in the first motion information begins to decrease (or a time when the user's motion begins to decrease).

[0101] For example, the processor (610) may identify (or determine) a second entry point using usage event information (e.g., first usage event information) received from an external electronic device (601). The second entry point may include the time when the last (latest detected) usage event among the usage events used to determine that the external electronic device (601) is in use is detected, when it is confirmed by the electronic device (600) or the external electronic device (601) that the external electronic device (601) is not in use. The information indicating the time of the usage events included in the usage event information (e.g., first usage event information) may be information used to determine whether the external electronic device (601) is in use at a specific time during the time interval between the time when the usage event information is requested by the electronic device and the time when the usage event information is transmitted.

[0102] When determining the user's entry point, the processor (610) may determine the later of the first entry point determined based on the first motion information and the second entry point determined based on the first usage event information as the user's entry point.

[0103] For example, the processor (610) may determine the user's entry time based on a second entry time that is later than the first entry time. Alternatively, the processor (610) may determine the user's entry time as the first entry time that is later than the second entry time.

[0104] After determining the user's entry into sleep (or after confirming that the user's state has changed from a sleeping state to a waking state, or while the user of the electronic device (600) is in a sleeping state), the processor (610) can determine the user's waking (confirming whether the user's state of the electronic device (600) has changed from a sleeping state to a waking state).

[0105] For example, the processor (610) can determine the user's wake-up (confirm that the user's state of the electronic device (600) has changed from a sleep state to a wake-up state) based on the activity score changing above a second threshold indicating that the user of the electronic device (600) is in a wake-up state.

[0106] Alternatively, the processor (610) may determine the user's wake-up state (confirming that the user's state of the electronic device (600) has changed from a sleep state to a wake-up state) based on confirming information indicating that the external electronic device (601) is in use, which is included in the second usage event information received from the external electronic device.

[0107] For example, the external electronic device (601) can detect usage events of the external electronic device (601) not only before the user's entry is determined but also after the user's entry is determined. The external electronic device (601) can confirm (or determine) that the external electronic device (601) is in use by the user of the external electronic device (601) if more than a specified number of usage events are detected during a specified time interval (e.g., a time period between the current time and a time before the specified time interval). If the external electronic device (601) confirms that the external electronic device (601) is in use, it can transmit second usage event information to the electronic device, which includes information indicating that the external electronic device (601) is in use and / or information indicating the time when the usage events used to determine that the external electronic device (601) is in use were detected.

[0108] The processor (610) can determine the time of the user's wake-up in response to determining the user's wake-up (or confirming that the user's state changes from a sleep state to a wake-up state). The time of the user's wake-up may indicate a time estimated to be the time when the user's state of the electronic device (600) changes from a sleep state to a wake-up state (e.g., the time when the user of the electronic device (600) wakes up (ends sleep)).

[0109] The processor (610) may determine the user's wake-up time based on a first wake-up time indicating the point in time when the motion of the electronic device (600) begins to increase. The first wake-up time may include the last point in time when the activity score included in the second motion information is greater than or equal to a specific value smaller than the second threshold before it becomes greater than or equal to the second threshold. To adjust the user's wake-up time, the processor (610) may request the external electronic device (601) to provide usage event information of the external electronic device (601) (e.g., second usage event information) (or information indicating the second wake-up time).

[0110] The external electronic device (601) may transmit usage event information (or information indicating a second wake-up time) to the electronic device. Alternatively, the external electronic device (601) may transmit usage event information (e.g., second usage event information) to the electronic device (600) even if there is no request for usage event information from the electronic device (600), if it is confirmed that the external electronic device (601) is in use.

[0111] The processor (610) can receive usage event information (e.g., second usage event information) from an external electronic device (601). If the second wake-up time is earlier than the time when the user's wake-up time was determined, the processor (610) can adjust the user's wake-up time from the first wake-up time to the second wake-up time.

[0112] Alternatively, the processor (610) may use both motion information obtained through the motion sensor (630) (e.g., second motion information) or usage event information received from an external electronic device (e.g., second usage event information) to determine the user's wake-up time. The external electronic device (601) may transmit the usage event information (e.g., second usage event information) to the electronic device when it is confirmed that the external electronic device (601) is in use, even if there is no request for usage event information from the electronic device (600).

[0113] The processor (610) can determine the user's wake-up time based on motion information related to the motion of the electronic device (600) obtained through the motion sensor (630) (e.g., second motion information) and usage event information received by an external electronic device (e.g., second usage event information). For example, the processor (610) can determine the user's wake-up time of the electronic device (600) based on a first wake-up time determined based on the motion information of the electronic device (600) (e.g., second motion information) or a second wake-up time determined based on the usage event information (e.g., second usage event information).

[0114] The first wake-up time may be one of the times prior to the time when the activity score becomes greater than or equal to the second threshold (a value indicating the user's wake-up state) (e.g., the time when the electronic device (600) confirms that the user's state has changed from a sleep state to a wake-up state). For example, the first wake-up time may include the time when the activity score included in the second motion information begins to increase (e.g., the last time when it is less than or equal to a specific value (e.g., a specific value (1008-1) in FIG. 10a) before becoming greater than the second threshold (e.g., the second threshold (1008) in FIG. 10a)) (or the time when the user's motion begins to increase). The processor (610) may determine the time when the activity score begins to increase prior to the time when the activity score changes above the second threshold as the first wake-up time. The time when the activity score changes above the second threshold may not coincide with the first wake-up time (the time when the activity score begins to increase).

[0115] According to one embodiment, the first waking time may include the time when the amount of motion of the electronic device (600) included in the second motion information is greater than or equal to the second threshold and the state is maintained for a specified time interval or longer.

[0116] The second waking time may include the time when the first detected usage event is detected among a specified number of usage events (e.g., usage events used to determine the time when the external electronic device (601) was last in use) detected during a specified time interval included in the usage event information (e.g., second usage event information). The second usage event information may include information indicating the time of the usage events used to first detect that the external electronic device (601) is in use when the external electronic device (601) was not in use and then changed to being in use (or when a change is detected).

[0117] The processor (610) can identify (or determine) a first wake-up time in response to confirming that the activity score is less than a second threshold.

[0118] The processor (610) can identify (or determine) a second wake-up time using usage event information (e.g., second usage event information) received from an external electronic device. The information indicating the time of the usage events included in the usage event information (e.g., second usage event information) may be information used to determine whether the external electronic device (601) is in use at a specific time prior to the time of transmitting the usage event information.

[0119] When determining the user's wake-up time, the processor (610) may determine the second wake-up time as the user's wake-up time if the second wake-up time is earlier than the time when the activity score is greater than or equal to the second threshold. Alternatively, the processor (610) may determine the first wake-up time as the user's wake-up time if the second wake-up time is later than the time when the activity score is greater than or equal to the second threshold.

[0120] After determining the user's wake-up (e.g., after confirming that the user's state of the electronic device (600) changes from a sleep state to a wake-up state (or while the user of the electronic device (600) is in a wake-up state, or after determining the time of the user's wake-up)), the processor (610) can determine the user's entry into sleep (e.g., checking whether the user's state of the electronic device (600) changes from a wake-up state to a sleep state).

[0121] FIG. 7a is a flowchart of the operation of an electronic device for determining a user's elevation according to one embodiment.

[0122] The electronic device (600) can acquire motion information in operation 710.

[0123] The electronic device (600) can measure the motion of the electronic device (600) (or a value representing the motion of the electronic device (600)) through a motion sensor. The electronic device (600) may be worn on the body of the user of the electronic device (600), and the motion of the electronic device (600) may be generated by the movement of the user of the electronic device (600). The motion of the electronic device (600) may represent the movement of the user of the electronic device (600). The motion of the electronic device (600) may include at least one of the acceleration of the electronic device (600), the speed of the electronic device (600), and the position of the electronic device (600).

[0124] The electronic device (600) can calculate (or obtain) motion information related to the motion of the electronic device (600) based on the measured motion of the electronic device (600). The motion information (e.g., first motion information or second motion information) may include feature information indicating the characteristics of the motion of the electronic device (or the user wearing the electronic device). For example, the motion information may include feature information indicating whether the change in the angle of the user's arm of the electronic device (600) over a certain period of time (epoch) is greater than a specific angle (e.g., 10 degrees), feature information indicating the standard deviation of the angle of the user's arm of the electronic device (600) over a certain period of time (epoch), feature information indicating whether the direction of the acceleration of the electronic device (600) has changed (or whether the sign of the acceleration vector has changed), feature information indicating the degree of complexity of the motion of the electronic device (or the user) over a certain period of time, and / or feature information indicating the kurtosis of the magnitude distribution of the acceleration vector over a certain period of time.

[0125] Motion information (e.g., first motion information or second motion information) may include information for determining whether the user of the electronic device (600) is sleeping (and / or the time of the user's sleep). For example, the motion information may include an activity score obtained based on the motion of the electronic device (600) (or feature information obtained using the motion of the electronic device (600)).

[0126] The electronic device (600) can determine an activity score closer to 0 as the probability that the user is in a sleeping state increases, and determine an activity score closer to 1 as the probability that the user is in a waking state increases (or the probability that the user is in a sleeping state decreases). For example, the electronic device (600) can input feature information into an artificial intelligence model trained to calculate (or output) an activity score, and determine the activity score using the result output by the artificial intelligence model.

[0127] According to one embodiment, the electronic device (600) may measure the user's biometric information and determine an activity score based on the biometric information. Alternatively, the electronic device (600) may determine an activity score based on both biometric information and motion information.

[0128] The electronic device (600) can determine the user's profile in operation 720.

[0129] According to one embodiment, the electronic device (600) can determine (or confirm) the state of a user based on an activity score. For example, the electronic device (600) can determine (or confirm) that the user is in a sleep state if the activity score is below a first threshold indicating that the user is in a sleep state. Or, the electronic device (600) can confirm that the state of the user (last confirmed) is maintained if the activity score is above the first threshold and below the second threshold.

[0130] The electronic device (600) can determine the user's entry into sleep (confirming that the user's state of the electronic device (600) changes from a wake state to a sleep state) based on confirming that the activity score changes below a first threshold indicating that the user of the electronic device (600) is in a sleep state (or that the activity score is below the first threshold).

[0131] The electronic device (600) can determine the time of the user's entry into sleep in response to (or based on) determining the user's entry into sleep in operation 730 (or confirming that the user's state changes from a waking state to a sleeping state). The time of the user's entry into sleep may indicate a time estimated to be the time when the user's state of the electronic device (600) changes from a waking state to a sleeping state (e.g., the time when the user of the electronic device (600) enters sleep (starts sleeping).

[0132] For example, the electronic device (600) may determine the user's entry point based on a first entry point indicating the time when the motion of the electronic device (600) begins to decrease. The first entry point may include the last time when the activity score included in the first motion information is greater than or equal to a specific value greater than the first threshold before falling below the first threshold.

[0133] The electronic device (600) can request usage event information of the external electronic device (601) in operation 740.

[0134] The electronic device (600) may request usage event information (e.g., first usage event information) from the external electronic device (601) to adjust the user's entry point. The usage event information may indicate information to supplement the entry point (e.g., first entry point) determined by the electronic device. For example, the usage event information may be information related to at least one usage event that occurs based on the external electronic device being used by the user of the external electronic device (or the user of the electronic device).

[0135] The external electronic device (601) can transmit usage event information to the electronic device in operation 750.

[0136] The external electronic device (601) can detect a use event indicating that the external electronic device (601) is being used by a user of the external electronic device (601) (e.g., a user matching the user of the electronic device (600)). The use event may include various events used to determine whether the external electronic device (601) is being used (e.g., interaction between the user and the external electronic device (601) or a change in the state of the external electronic device (601). For example, the use event may include user input received by the user, motion of the external electronic device (601), an event detected based on the brightness of the display of the external electronic device (601), and / or the detection of the user's face through a camera. The external electronic device (601) can determine (or decide) whether the external electronic device (601) is being used based on the number of times a use event is detected during a specified time interval (e.g., a time period between the current time and a time prior to the specified time interval). For example, the external electronic device (601) can confirm (or determine) that the external electronic device (601) is being used by a user of the external electronic device (601) if more than a specified number of usage events are detected during a specified time interval (e.g., time between the current time and a time before the specified time interval).

[0137] When the external electronic device (601) confirms that the external electronic device (601) is being used by a user of the external electronic device (601), it can determine the first (or last) detected usage event among a specified number of usage events detected during a specified time interval (e.g., usage events used to determine that the external electronic device (601) is being used) and / or the time when the first (or last) detected usage event was detected. The time when the first detected usage event was detected can be determined as a second entry point by the electronic device (600) or the external electronic device (601).

[0138] When an external electronic device (601) receives a request for usage event information (e.g., first usage event information) from an electronic device (600), it may transmit the usage event information (e.g., first usage event information) to the electronic device. The usage event information (e.g., first usage event information) may include information indicating whether the external electronic device (601) is in use and / or information indicating the time of the usage events used to determine that the external electronic device (601) is in use (e.g., the time of the last detected usage event).

[0139] The electronic device (600) can receive usage event information (e.g., first usage event information) from an external electronic device (601).

[0140] The electronic device (600) can identify (or determine) a second entry point using usage event information (e.g., first usage event information) received from an external electronic device (601). The second entry point may include the time when the last (latest detected) usage event among the usage events used to determine that the external electronic device (601) is in use is detected, when the electronic device confirms that the external electronic device (601) is not in use. The information indicating the time of the usage events included in the usage event information (e.g., first usage event information) may be information used to determine whether the external electronic device (601) is in use at a specific time during the time interval between the time when the electronic device requests the usage event information and the time when the usage event information is transmitted.

[0141] The electronic device (600) can adjust the user's entry point in operation 760.

[0142] The electronic device (600) may adjust the user's entry point from the first entry point to the second entry point if the second entry point is later than the first entry point. The electronic device (600) may not adjust the user's entry point if the first entry point is later than the second entry point. The electronic device (600) may omit operation 760 if the first entry point is later than the second entry point.

[0143] FIG. 7b is a flowchart of the operation of an electronic device that determines the elevation of a user according to one embodiment.

[0144] Content that overlaps with the operation described in Fig. 7a may be omitted in Fig. 7b.

[0145] The electronic device (600) can acquire motion information in operation 711.

[0146] The electronic device (600) can determine, in operation 721, that the activity score is less than a first threshold. The activity score may refer to a value used to determine the user's sleep state. According to one embodiment, the activity score may be determined based on the user's biometric information measured by the biosensor (640) and / or motion of the electronic device (600).

[0147] The electronic device (600) can request usage event information of the external electronic device (601) in operation 731.

[0148] The electronic device (600) may request information from an external electronic device indicating whether the external electronic device (601) is in use, based on determining that the activity score is less than a first threshold.

[0149] The external electronic device (601) can transmit usage event information to the electronic device (600) in operation 741.

[0150] When the external electronic device (601) transmits information indicating whether the external electronic device (601) is in use to the electronic device (600), the external electronic device (601) may repeatedly transmit information indicating whether the external electronic device is in use to the electronic device (600) until usage event information including information indicating that the external electronic device (601) is not in use is transmitted to the electronic device (600).

[0151] The electronic device (600) can determine the user's profile based on usage event information in operation 751.

[0152] The electronic device (600) can determine whether the external electronic device is in use based on receiving information from the external electronic device indicating whether the external electronic device is in use. When the electronic device (600) confirms that the external electronic device is in use, it can receive information from the external electronic device indicating whether the external electronic device is in use at predetermined time intervals until it receives the first usage event information including information indicating that the external electronic device is not in use. When the electronic device (600) confirms that the external electronic device is not in use, it can determine the user's entry.

[0153] The electronic device (600) can determine the user's entry point based on motion information and usage event information in operation 761.

[0154] The electronic device (600) can determine the time of entry of the user based on motion information related to the motion of the electronic device (600) obtained through a motion sensor (e.g., first motion information) and usage event information received by an external electronic device (601) (e.g., first usage event information). For example, when the electronic device (600) determines the time of entry of the user, it can determine the time of entry of the user based on a first time of entry determined based on the first motion information and a second time of entry determined based on the first usage event information.

[0155] The first sleep entry point may be one of the points in time prior to the point in time when the activity score falls below the first threshold (a value indicating the user's sleep state) (e.g., the point in time when the electronic device (600) confirms that the user's state has changed from a waking state to a sleeping state). For example, the first sleep entry point may include the point in time when the activity score included in the first motion information begins to decrease (e.g., the last point in time when it is greater than a specific value greater than the first threshold before falling below the first threshold) (or the point in time when the user's motion begins to decrease). The electronic device (600) may determine the point in time when the activity score began to decrease prior to the point in time when the activity score changed to below the first threshold as the first sleep entry point. The point in time when the activity score changed to below the first threshold may not coincide with the first sleep entry point (the point in time when the activity score began to decrease).

[0156] The second entry point may include the time when the last detected usage event among the specified number of usage events detected during a specified time interval included in the usage event information (e.g., first usage event information) (e.g., usage events used to determine the time when the external electronic device (601) was last in use) is detected.

[0157] When determining the user's entry point, the electronic device (600) may determine the later of the first entry point determined based on the first motion information and the second entry point determined based on the first usage event information as the user's entry point.

[0158] For example, the electronic device (600) may determine a second entry point later than the first entry point as the user's entry point. Alternatively, the electronic device (600) may determine a second entry point earlier than the first entry point as the user's entry point.

[0159] After determining the user's wake-up (e.g., after confirming that the user's state of the electronic device (600) changes from a wake-up state to a sleep state (or while the user of the electronic device (600) is in a sleep state)), the electronic device (600) may determine the user's entry into sleep (e.g., after confirming that the user's state of the electronic device (600) changes from a sleep state to a wake-up state). For example, the electronic device (600) may perform the operation of FIG. 8b after the operation of FIG. 7b. Additionally, the operation of FIG. 7b and the operation of FIG. 8b may be performed repeatedly.

[0160] FIG. 8a is a flowchart of the operation of an electronic device for determining a user's weather according to one embodiment.

[0161] The electronic device (600) can acquire motion information in operation 810. The description of operation 710 of FIG. 7 can be applied in the same way to operation 810.

[0162] The electronic device (600) can determine the user's waking in operation 820. The electronic device (600) can determine (or confirm) the user's state based on an activity score. For example, the electronic device (600) can confirm that the user's state is in a sleep state if the activity score is above a second threshold indicating that the user is in a sleep state. Or, the electronic device (600) can confirm that the user's state (last confirmed) is maintained if the activity score is above a first threshold and below a second threshold.

[0163] After determining the user's sleep state (or while the user of the electronic device (600) is in a sleep state, or after confirming that the user's state of the electronic device (600) has changed from a sleep state to a sleep state), the electronic device (600) can determine the user's wake-up state (or confirm that the user's state of the electronic device (600) has changed from a sleep state to a sleep state) based on confirming that the activity score has changed above a second threshold indicating that the user of the electronic device (600) is in a wake-up state (or that the activity score is above the second threshold).

[0164] The electronic device (600) can determine the time of the user's wake-up in response to (or based on) determining the user's wake-up (or confirming that the user's state changes from a sleep state to a wake-up state) in operation 830. The time of the user's wake-up may indicate a time estimated to be the time when the user's state of the electronic device (600) changes from a sleep state to a wake-up state (e.g., the time when the user of the electronic device (600) falls asleep (starts sleeping).

[0165] The electronic device (600) can determine the user's wake-up time based on a first wake-up time indicating the point in time when the motion of the electronic device (600) begins to increase. The first wake-up time may include the last time when the activity score included in the second motion information is greater than or equal to a specific value smaller than the second threshold before it becomes greater than or equal to the second threshold.

[0166] The electronic device (600) can request usage event information of the external electronic device (601) in operation 840.

[0167] The electronic device (600) may request usage event information (e.g., second usage event information) from the external electronic device (601) to adjust the user's wake-up time. The usage event information may indicate information to supplement the wake-up time (e.g., first wake-up time) determined by the electronic device. For example, the usage event information may be information related to at least one usage event that occurs based on the external electronic device being used by the user of the external electronic device (or the user of the electronic device).

[0168] The external electronic device (601) can transmit usage event information to the electronic device in operation 850.

[0169] The external electronic device (601) may transmit usage event information (e.g., second usage event information) to the electronic device (600) when it is confirmed that the external electronic device (601) is in use, even if there is no request for usage event information from the electronic device (600). For example, operation 840 may be omitted, and operation 850 may be performed before operation 820 and / or operation 830.

[0170] The external electronic device (601) can detect usage events of the external electronic device (601) not only before the user's entry time is determined but also after the user's entry time is determined.

[0171] The external electronic device (601) may confirm (or determine) that the external electronic device (601) is in use by the user of the external electronic device (601) if more than a specified number of usage events are detected during a specified time interval (e.g., a time interval between the current time and a time prior to the specified time interval). If the external electronic device (601) confirms that the external electronic device (601) is in use, it may transmit second usage event information to the electronic device, the information including information indicating that the external electronic device (601) is in use and / or information indicating the time at which the usage events used to determine that the external electronic device (601) is in use were detected.

[0172] The usage event information (e.g., second usage event information) may include information for determining the time of the user's wake-up, which is collected (or verified) by the external electronic device (601). The usage event information may include information indicating whether the external electronic device (601) is being used by the user and information indicating the time (or timing) of the usage event detected by the external electronic device (601) (e.g., the time or timing of the first or last usage event detected among the usage events).

[0173] The electronic device (600) can receive usage event information (e.g., second usage event information) from an external electronic device (601).

[0174] The electronic device (600) can adjust the user's wake-up time in operation 860.

[0175] If the second wake-up time is earlier than the time when the user's wake-up is determined, the electronic device (600) can adjust the user's wake-up time from the first wake-up time to the second wake-up time. If the second wake-up time is later than the time when the user's wake-up is determined, the electronic device (600) can omit operation 860.

[0176] FIG. 8b is a flowchart of the operation of an electronic device for determining a user's weather according to one embodiment.

[0177] Content that overlaps with the operation described in FIG. 8a may be omitted in FIG. 8b.

[0178] The electronic device (600) can acquire motion information in operation 811.

[0179] The electronic device (600) can determine that, in operation 821, the activity score is greater than or equal to a second threshold.

[0180] The external electronic device (601) can transmit usage event information to the electronic device (600) in operation 831. Even if there is no request for usage event information from the electronic device (600), the external electronic device (601) can transmit usage event information (e.g., second usage event information) to the electronic device (600) when it is confirmed that the external electronic device (601) is in use.

[0181] The electronic device (600) can receive second usage event information from the external electronic device (601), including information indicating that the external electronic device (601) is in use and information indicating when use has started.

[0182] According to one embodiment, one of operation 821 or operation 831 may be omitted.

[0183] The electronic device (600) can determine the user's wake-up based on motion information or usage event information in operation 841.

[0184] For example, the electronic device (600) can determine the user's wake-up (confirm that the user's state of the electronic device (600) changes from a sleep state to a wake-up state) based on the activity score changing above a second threshold indicating that the user of the electronic device (600) is in a wake-up state. The electronic device (600) can determine the user's wake-up based on the activity score even if it does not receive usage event information as the operation 831 of the external electronic device (601) is not performed.

[0185] Alternatively, the electronic device (600) may determine the user's wake-up (confirming that the user's state of the electronic device (600) has changed from a sleep state to a wake-up state) based on confirming information indicating that the external electronic device (601) is in use, which is included in the second usage event information received from the external electronic device. The electronic device (600) may determine the user's wake-up based on the usage event information even if it does not determine that the activity score is above the second threshold value as the operation 821 of the electronic device (600) is not performed.

[0186] The electronic device (600) can determine the user's wake-up time based on motion information and / or usage event information in operation 851.

[0187] The electronic device (600) can determine the time of the user's wake-up in response to determining the user's wake-up time.

[0188] The electronic device (600) may use motion information obtained through a motion sensor (e.g., second motion information) or usage event information received from an external electronic device (601) (e.g., second usage event information) to determine the time of the user's wake-up.

[0189] The electronic device (600) can determine the user's wake-up time based on motion information related to the motion of the electronic device (600) obtained through a motion sensor (e.g., second motion information) and usage event information received by an external electronic device (601) (e.g., second usage event information). For example, the electronic device (600) can determine the user's wake-up time based on a first wake-up time determined based on the motion information of the electronic device (600) (e.g., second motion information) or a second wake-up time determined based on the usage event information (e.g., second usage event information).

[0190] The first wake-up time may be one of the times prior to the time when the activity score becomes greater than or equal to the second threshold (a value indicating the user's wake-up state) (e.g., the time when the electronic device (600) confirms that the user's state has changed from a sleep state to a wake-up state). For example, the first wake-up time may include the time when the activity score included in the second motion information begins to increase (e.g., the last time when it is less than or equal to a specific value smaller than the second threshold before it becomes greater than the second threshold) (or the time when the user's motion begins to increase). The electronic device (600) may determine the time when the activity score begins to increase prior to the time when the activity score changes above the second threshold as the first wake-up time. The time when the activity score changes above the second threshold may not coincide with the first wake-up time (the time when the activity score begins to increase). The electronic device (600) may confirm (or determine) the first wake-up time in response to confirming that the activity score is less than the second threshold.

[0191] The second wake-up time may include the time when the first detected usage event is detected among a specified number of usage events detected during a specified time interval included in the usage event information (e.g., second usage event information) (e.g., usage events used to determine the time when the external electronic device (601) was last in use). The electronic device (600) may identify (or determine) the second wake-up time using the usage event information (e.g., second usage event information) received from the external electronic device (601). The information indicating the time of the usage events included in the usage event information (e.g., second usage event information) may be information used to determine whether the external electronic device (601) is in use at a specific time prior to the time of transmitting the usage event information.

[0192] When determining the user's wake-up time, the electronic device (600) may determine the second wake-up time as the user's wake-up time if the second wake-up time is earlier than the time when the user's state is confirmed to have changed from a sleep state to a wake-up state. Alternatively, the electronic device (600) may determine the first wake-up time as the user's wake-up time if the time when the user's state is confirmed to have changed from a sleep state to a wake-up state is earlier than the second wake-up time.

[0193] After confirming that the user's state of the electronic device (600) changes from a sleep state to a wake state (or while the user of the electronic device (600) is in a wake state), the electronic device (600) can check whether the user's state of the electronic device (600) changes from a wake state to a sleep state.

[0194] FIG. 9 is a diagram illustrating usage event information of an external electronic device according to one embodiment.

[0195] The usage event information of the external electronic device (601) may refer to information related to whether the external electronic device (601) is in use. Whether the external electronic device (601) is in use may indicate whether the external electronic device (601) is being used by the same user as the user of the electronic device (600).

[0196] The external electronic device (601) may operate in conjunction with a usage event generated by user input, or it may operate automatically without a usage event (e.g., an update performed in the background). The external electronic device (601) may operate automatically without user intervention (e.g., without a user's usage event) even while the user is in a sleep state. Operating automatically without a user's usage event may not reflect the user's state. The external electronic device (601) of the present disclosure may include only the one operating due to a user's usage event.

[0197] The external electronic device (601) can determine whether the external electronic device (601) is in use by a user of the external electronic device (601) (e.g., the same user as the user of the electronic device (600)). For example, the external electronic device (601) can determine (or determine) whether the external electronic device (601) is in use based on the number of times a usage event is detected during a specified time interval. The external electronic device (601) can determine (or determine) that the external electronic device (601) is in use by a user of the external electronic device (601) (e.g., the same user as the user of the electronic device (600)) if a specified number of usage events (e.g., 5 times) or more are detected during a specified time period (e.g., the time interval between the current time and a time before the specified time period (e.g., 10 minutes)).

[0198] For example, the external electronic device (601) can detect a first usage event (901) at 1 minute, detect a second usage event (902) at 4 minutes, detect a third usage event (903) at 5 minutes, detect a fourth usage event (904) at 5.5 minutes, detect a fifth usage event (905) at 7 minutes, detect a sixth usage event (906) at 13.5 minutes, detect a seventh usage event (907) at 17 minutes, detect an eighth usage event (908) at 18.5 minutes, detect a ninth usage event (909) at 19 minutes, and detect a tenth usage event (910) at 19.5 minutes. The external electronic device (601) can determine that the external electronic device (601) is in use by detecting more than a specified number of usage events (e.g., 5 times) during a time interval (e.g., 10 minutes) between the current time and a time point prior to the current time (e.g., 10 minutes). Alternatively, the external electronic device (601) can determine that the external electronic device (601) is not in use by detecting fewer than a specified number of usage events (e.g., 5 times) during a time interval (e.g., 10 minutes) between the current time and a time point prior to the current time (e.g., 10 minutes).

[0199] The external electronic device (601) can be identified (or determined) that the external electronic device (601) is in use (911) based on the detection of more than a specified number of usage events (e.g., 5 times) during the time interval between the current time point and the time point prior to the specified time interval (e.g., at the 11-minute time point, the time interval between the current time point (11-minute time point) and the time point prior to the specified time interval (1-minute time point) (915)).

[0200] When the external electronic device (601) transmits usage event information (e.g., first usage event information or second usage event information) to the electronic device at a time between the 7-minute mark and the 11-minute mark, the external electronic device (601) transmits usage event information to the electronic device (600) including information indicating that the external electronic device (601) is in use and / or information indicating the time when the usage events used to determine that the external electronic device (601) is in use (e.g., first usage event (901), second usage event (902), third usage event (903), fourth usage event (904), fifth usage event (905)) are detected (e.g., the 1-minute mark when the first usage event (901) is detected, the 4-minute mark when the second usage event (902) is detected, the 5-minute mark when the third usage event (903) is detected, the 5.5-minute mark when the fourth usage event (904) is detected, the 7-minute mark when the fifth usage event (905) is detected). It is possible.

[0201] The external electronic device (601) can be confirmed (or determined) that the external electronic device (601) is not in use based on the detection of fewer than a specified number of usage events (e.g., 5 times) (e.g., 2nd usage event (902), 3rd usage event (903), 4th usage event (904), 5th usage event (905)) during the time interval between the current time point and the time point prior to the specified time interval (e.g., 10-minute interval) between the current time point and the time point prior to the specified time interval.

[0202] When the external electronic device (601) transmits usage event information (e.g., first usage event information or second usage event information) to the electronic device at a time between the 11-minute mark and the 13.5-minute mark, the point in time when the usage events (e.g., first usage event (901), second usage event (902), third usage event (903), fourth usage event (904), fifth usage event (905)) used to determine the time when the external electronic device (601) was last in use (e.g., time between the 7-minute mark and the 11-minute mark) are detected (e.g., the 1-minute mark when the first usage event (901) is detected, the 4-minute mark when the second usage event (902) is detected, the 5-minute mark when the third usage event (903) is detected, the 5.5-minute mark when the fourth usage event (904) is detected, and the 5-minute mark when the fifth usage event (905) Usage event information including information indicating the detected 7-minute point in time can be transmitted to the electronic device (600).

[0203] The external electronic device (601) can be identified (or determined) that the external electronic device (601) is in use (912) based on the detection of more than a specified number of usage events (e.g., 5 times) during the time interval between the current time point and the time point prior to the specified time interval (e.g., at the 14-minute time point, the time interval between the current time point (14-minute time point) and the time point prior to the specified time interval (4-minute time point) (920)).

[0204] When the external electronic device (601) transmits usage event information (e.g., first usage event information or second usage event information) to the electronic device at a time between the 13.5-minute mark and the 14-minute mark, the external electronic device (601) transmits usage event information including information indicating that the external electronic device (601) is in use and / or information indicating the time when the usage events used to determine that the external electronic device (601) is in use (e.g., second usage event (902), third usage event (903), fourth usage event (904), fifth usage event (905), sixth usage event (906)) are detected (e.g., the 4-minute mark when the second usage event (902) is detected, the 5-minute mark when the third usage event (903) is detected, the 5.5-minute mark when the fourth usage event (904) is detected, the 7-minute mark when the fifth usage event (905) is detected, the 13.5-minute mark when the sixth usage event (906) is detected). It can be transmitted to the device (600).

[0205] The external electronic device (601) can be confirmed (or determined) that the external electronic device (601) is not in use because, during the time between the 14-minute point and the 19.5-minute point, fewer than a specified number of usage events (e.g., 5 times) were detected during the time interval between the current point and the point prior to the specified time interval.

[0206] When the external electronic device (601) transmits usage event information (e.g., first usage event information or second usage event information) to the electronic device at a time between the 14-minute mark and the 19.5-minute mark, information indicating that the external electronic device (601) is not in use and / or the time when the usage events (e.g., second usage event (902), third usage event (903), fourth usage event (904), fifth usage event (905), sixth usage event (906)) used to determine the time when the external electronic device (601) was last in use (e.g., time between the 13.5-minute mark and the 14-minute mark) are detected (e.g., the 4-minute mark when the second usage event (902) is detected, the 5-minute mark when the third usage event (903) is detected, the 5.5-minute mark when the fourth usage event (904) is detected, the 7-minute mark when the fifth usage event (905) is detected, the sixth usage event Usage event information including information indicating the 13.5-minute point in time when the event (906) is detected can be transmitted to the electronic device (600).

[0207] The external electronic device (601) can be identified (or determined) that the external electronic device (601) is in use (913) based on the detection of more than a specified number of usage events (e.g., 5 times) during the time interval between the current time and the time before the specified time interval (e.g., at the 19.5-minute time, the time interval between the current time (19.5-minute time) and the time before the specified time interval (9.5-minute time) (930)).

[0208] When the external electronic device (601) transmits usage event information (e.g., first usage event information or second usage event information) to the electronic device at a time between the 19.5-minute mark and the 23.5-minute mark, the point in time when information indicating that the external electronic device (601) is in use and / or usage events used to determine that the external electronic device (601) is in use (e.g., 6th usage event (906), 7th usage event (907), 8th usage event (908), 9th usage event (909), 10th usage event (910)) is detected (e.g., the 13.5-minute mark when the 6th usage event (906) is detected, the 17-minute mark when the 7th usage event (907) is detected, the 18.5-minute mark when the 8th usage event (908) is detected, the 19-minute mark when the 9th usage event (909) is detected, the 19.5-minute mark when the 10th usage event (910) is detected) is detected Usage event information including information indicating instructions can be transmitted to an electronic device (600).

[0209] The external electronic device (601) can be confirmed (or determined) that the external electronic device (601) is not in use based on the detection of fewer than a specified number of usage events (e.g., 5 times) during the time interval between the current time point and the time point prior to the specified time interval (e.g., 10-minute interval) between the 23.5-minute time point and the 30-minute time point.

[0210] When the external electronic device (601) transmits usage event information (e.g., first usage event information or second usage event information) to the electronic device at a time between the 23.5-minute mark and the 30-minute mark, the external electronic device (601) transmits information indicating that the external electronic device (601) is not in use and / or the usage events (e.g., 6th usage event (906), 7th usage event (907), 8th usage event (908), 9th usage event (909), 10th usage event (910)) used to determine the time when the external electronic device (601) was last in use (e.g., time between the 19.5-minute mark and the 23.5-minute mark) are detected (e.g., the 13.5-minute mark when the 6th usage event (906) is detected, the 17-minute mark when the 7th usage event (907) is detected, the 18.5-minute mark when the 8th usage event (908) is detected, the 19-minute mark when the 9th usage event (909) is detected) Usage event information including information indicating the time point, the 19.5-minute time point when the 10th usage event (910) is detected can be transmitted to the electronic device (600).

[0211] The usage event information transmitted to the electronic device by the external electronic device (601) can be used by the electronic device (or the external electronic device (601)) to determine a second time point for determining the

[0212] The electronic device (or external electronic device (601)) can determine (or confirm) a second entry point based on usage event information (e.g., first usage event information). Since the second entry point is a point in time for determining the user's entry point, it can be determined by the time of the last detected usage event among the usage events used to determine the time when the external electronic device (601) was last in use. For example, the electronic device (or external electronic device (601)) can check the last detected usage event among the usage events used to determine that the external electronic device (601) is in use, and determine (or confirm) the time when the last detected usage event was detected as the second entry point.

[0213] The electronic device (600) (or external electronic device (601)) can determine (or confirm) a second wake-up time based on usage event information (e.g., second usage event information). Since the second wake-up time is a time to determine the user's wake-up time, it can be determined by the time of the last detected usage event among the usage events used to determine that the external electronic device (601) is in use. For example, the electronic device (or external electronic device (601)) can check the last detected usage event among the usage events used to determine that the external electronic device (601) is in use, and determine (or confirm) the time when the last detected usage event was detected as the second wake-up time.

[0214] FIGS. 10a, FIGS. 10b, FIGS. 10c, FIGS. 11a, FIGS. 11b, FIGS. 12a, FIGS. 12b, FIGS. 12c, FIGS. 13a, FIGS. 13b, and FIGS. 13c are drawings for explaining the operation of an electronic device that determines the user's elevation and waking times.

[0215] The electronic device (600) can determine (or change) the user's position or weather based on the activity score included in the motion information.

[0216] The electronic device (600) can determine the user’s entry into sleep (confirming that the user’s state of the electronic device (600) changes from a waking state to a sleeping state) based on the activity score changing below a first threshold (e.g., the first threshold (1007) of FIG. 10a) indicating that the user of the electronic device (600) is in a sleeping state after determining the user’s waking state (e.g., while the user of the electronic device (600) is in a waking state).

[0217] When the electronic device (600) determines the user's entry point in response to determining the user's entry point, it may determine (or adjust) the later of the first entry point or the second entry point as the user's entry point.

[0218] The first entry point may include the point in time when the activity score included in the first motion information begins to decrease (or the point in time when the user's motion begins to decrease). The point in time when the activity score begins to decrease may include the last point in time when the activity score is greater than or equal to a specific value greater than or equal to the first threshold (e.g., the specific value greater than or equal to the first threshold in FIG. 10a (1007-1)) before falling below the first threshold. The point in time when the activity score changes to fall below the first threshold may not coincide with the first entry point (the point in time when the activity score begins to decrease).

[0219] The second entry point may include the time when the last detected usage event among the specified number of usage events detected during the specified time interval included in the first usage event information (e.g., usage events used to determine the time when the external electronic device (601) was last in use) is detected.

[0220] The electronic device (600) can determine the user's wake-up (confirm that the user's state of the electronic device (600) changes from a sleep state to a wake-up state) based on the activity score changing above a second threshold (e.g., the second threshold (1008) of FIG. 10a) indicating that the user of the electronic device (600) is in a wake-up state.

[0221] The first wake-up time may include the time when the activity score included in the second motion information begins to increase (or the time when the user's motion begins to increase). The time when the activity score begins to increase may include the last time when the activity score is below a specific value (e.g., the specific value below the second threshold in FIG. 10a (1008-1)) before the activity score becomes greater than or equal to the second threshold. The time when the activity score changes to be greater than or equal to the second threshold may not coincide with the first wake-up time (the time when the activity score begins to increase).

[0222] The second waking time may include the time when the first detected usage event is detected among the specified number of usage events detected during the specified time interval included in the second usage event information (e.g., usage events used to determine the time when the external electronic device (601) was last in use).

[0223] Referring to the graph (1010) of FIG. 10a, the electronic device (600) may determine the time of entry and / or wake-up of the user using only the motion information of the electronic device (600).

[0224] The electronic device (600) can determine the user's waking (e.g., while the user of the electronic device (600) is in a waking state) and, at the time when the activity score changes to below a first threshold (1007) indicating that the user of the electronic device (600) is in a sleeping state, determine the user's waking (e.g., confirm that the user's state changes from a waking state to a sleeping state).

[0225] The electronic device (600) may determine (or adjust) the first sleep time (1012) as the user's sleep time based on the fact that the first sleep time (1012) is later than the second sleep time (1011). The first sleep time (1012) may be the time when the activity score begins to decrease (e.g., the last time the activity score is greater than a specific value (1007-1) than the first threshold (1007)), and may be earlier than the time when the activity score becomes less than the first threshold (1007) (e.g., the time when the user confirms that they have changed from a waking state to a sleeping state).

[0226] The electronic device (600) can determine the user's wake-up (e.g., confirm that the user's state has changed from a sleep state to a wake-up state) when the activity score changes above a second threshold (1008) indicating that the user of the electronic device (600) is in a wake-up state after determining the user's sleep state (e.g., while the user of the electronic device (600) is in a sleep state).

[0227] The electronic device (600) may determine the first wake-up time (1015) as the user's wake-up time, based on the name, that the time when the activity score becomes greater than or equal to the second threshold (1008) (e.g., the time when the user's state is confirmed to have changed from a sleep state to a wake state, the time when the user's wake-up is determined) is earlier than the second wake-up time (1014). The first wake-up time (1015) may be the time when the activity score begins to increase (or the time when the user's motion becomes greater than or equal to a specified value), and may be earlier than the time when the user is confirmed to have changed from a sleep state to a wake state (1016).

[0228] Referring to the graph (1020) in FIG. 10b and the graph (1030) in FIG. 10c, the electronic device (600) can determine (or adjust) the user's wake-up time to a second wake-up time (1024, 1034) different from the first wake-up time (1025, 1035) based on usage event information received from an external electronic device (601).

[0229] The electronic device (600) can determine that the user's state has changed from a waking state to a sleeping state based on the activity score changing to less than a first threshold (1007) indicating that the user of the electronic device (600) is in a sleeping state after determining the user's sleep state (e.g., while the user of the electronic device (600) is in a waking state).

[0230] The electronic device (600) may determine (or adjust) the first sleep time (1022, 1032) as the user's sleep time based on the fact that the first sleep time (1022, 1032) is later than the second sleep time (1021, 1031). The first sleep time (1022, 1032) may be the time when the activity score begins to decrease (or the time when the user's motion becomes less than or equal to a specified value), and may be an earlier time than the time (1023, 1033) when the user confirms that they have changed from a waking state to a sleeping state.

[0231] The electronic device (600) can determine the user's wake-up (e.g., the user's state changes from sleep state to wake state) when it confirms that the external electronic device (601) is in use while the user of the electronic device (600) is in a sleep state.

[0232] The electronic device (600) may determine (adjust) the second wake-up time (1024, 1034) as the user's wake-up time, based more on the name than the time when the user's wake-up is determined (e.g., the time when the activity score changes above the second threshold (1008) (1026, 1036)). The second wake-up time (1024, 1034) may include the time when the first use event among the use events used to determine that the external electronic device (601) is in use is detected.

[0233] Referring to the graph (1110) of FIG. 11a and the graph (1120) of FIG. 11b, the electronic device (600) can determine (or adjust) the user's entry point to a second entry point (1111, 1121) different from the first entry point (1112, 1122) based on usage event information received from an external electronic device (601).

[0234] The electronic device (600) can determine the user's wake-up (e.g., confirm that the user's state changes from a wake-up state to a sleep state) based on the activity score changing to below a first threshold (1007) indicating that the user of the electronic device (600) is in a sleep state after determining the user's sleep state (e.g., while the user of the electronic device (600) is in a wake-up state).

[0235] The electronic device (600) may determine (or adjust) the second entry point (1111, 1121) as the user's entry point based on the fact that the second entry point (1111, 1121) is later than the first entry point (1112, 1122). The second entry point (1111, 1121) may include the time when the last usage event among the usage events used to determine that the external electronic device (601) is in use is detected.

[0236] The electronic device (600) can determine the user's wake-up (e.g., confirm that the user's state has changed from a sleep state to a wake-up state) when the activity score changes above a second threshold (1008) indicating that the user of the electronic device (600) is in a wake-up state after determining the user's sleep state (e.g., while the user of the electronic device (600) is in a sleep state).

[0237] The electronic device (600) may determine the first wake-up time (1115, 1125) as the user's wake-up time, based more on the name than the second wake-up time (1114, 1124), when the time at which the user's wake-up is determined (e.g., the time at which the user's state changes from sleep state to wake state (1116, 1126)) is determined.

[0238] Referring to the graph (1210) of FIG. 12a, the graph (1220) of FIG. 12b, and the graph (1230) of FIG. 12c, the electronic device (600) can determine multiple entry points of the user and multiple waking points of the user. Among the graph (1210) of FIG. 12a, the graph (1220) of FIG. 12b, and the graph (1230) of FIG. 12c, the content that overlaps with the graph (1010) of FIG. 10a (initial entry, final waking) is to be omitted.

[0239] The state of the user of the electronic device (600) can be changed multiple times. For example, the user of the electronic device (600) may wake up for a certain period of time while sleeping and then go back to sleep. The electronic device (600) can determine the user's wake-up (or detect that the user's state changes from a sleeping state to a waking state) and determine the user's descent after a certain period of time (detecting that the state changes from a waking state to a sleeping state).

[0240] The electronic device (600) determines the wake-up and / or entry into sleep of the user of the electronic device (600) who wakes up during sleep and then goes back to sleep after a certain period of time, and can sequentially determine (or measure, adjust) the wake-up time and the entry into sleep time. The wake-up time and entry into sleep time described in FIG. 12a, FIG. 12b, and FIG. 12c may be times that are measured (or determined, adjusted) separately from the entry into sleep time and wake-up time described in FIG. 10a.

[0241] Referring to the graph (1210) in FIG. 12a, the electronic device (600) can determine the user's wake-up time (e.g., confirming that the user's state has changed from sleep state to wake-up state) when it confirms that the external electronic device (601) is in use while the user of the electronic device (600) is in a sleep state. The electronic device (600) can determine the time (1217-1) at which the first use event among the use events used to determine that the external electronic device (601) is in use is detected as the time at which the user of the electronic device (600) wakes up.

[0242] The electronic device (600) can determine the user's waking (e.g., while the user of the electronic device (600) is in a waking state) and, if it confirms that the external electronic device (601) is not in use, determine the user's waking (e.g., confirm that the user's state changes from a waking state to a sleeping state). The electronic device (600) can determine the time (1217-2) at which the last detected usage event is detected among a specified number of usage events detected during a specified time interval (e.g., usage events used to determine the time when the external electronic device (601) was last in use) is detected as the time of the user's sleep (or the time of the user's re-sleep).

[0243] Referring to the graph (1220) in Fig. 12b, the electronic device (600) can determine the user's wake-up (or confirm that the user's state changes from sleep state to wake-up state) when it confirms that the external electronic device (601) is in use while the user of the electronic device (600) is in a sleep state.

[0244] The electronic device (600) may determine (or adjust) the second wake-up time (1227-1) (e.g., the time when the first use event among the use events used to determine that the external electronic device (601) is in use) as the user's wake-up time, rather than the first wake-up time (1228-1) (e.g., the time when the activity score changes above the second threshold (1008) or the time (1228-2)) which is more name-based.

[0245] The electronic device (600) can determine the user's waking (or confirm that the user's state changes from a waking state to a sleeping state) if, after determining the user's waking (or while the user of the electronic device (600) is in a waking state), the activity score changes to below a first threshold (1007) indicating that the user of the electronic device (600) is in a sleeping state.

[0246] The electronic device (600) may determine (or adjust) the second entry point (1227-2) as the user's entry point based on the fact that the second entry point (1227-2) is later than the first entry point (1228-2). The second entry point (1227-2) may include the time when the last usage event among the usage events used to determine that the external electronic device (601) is in use is detected.

[0247] Referring to the graph (1230) in FIG. 12c, the electronic device (600) can determine the user's wake-up (or confirm that the user's state has changed from sleep to wake-up) when the activity score changes above a second threshold (1008) indicating that the user of the electronic device (600) is in a wake-up state after determining the user's sleep state (or while the user of the electronic device (600) is in a sleep state). The electronic device (600) can determine (or adjust) the first wake-up time (e.g., when the activity score starts to increase (or when the user's motion becomes above a specified value)) (1238-1) as the user's sleep state based on the fact that the external electronic device (601) is not being used by the user.

[0248] The electronic device (600) may determine the user's wake-up (or confirm that the user's state has changed from a wake-up state to a sleep state) after determining the user's wake-up (or when the activity score changes to below a first threshold (1007) indicating that the user of the electronic device (600) is in a sleep state while the user of the electronic device (600) is in a wake-up state. The electronic device (600) may determine the user's sleep-initiating time (e.g., when the activity score begins to decrease (or when the user's motion becomes below a specified value)) (1238-2) as the user's sleep-initiating time based on the fact that the external electronic device (601) is not being used by the user.

[0249] Referring to the graph (1310) in FIG. 13a, the electronic device (600) can confirm that the activity score is below the first threshold (1007). However, the electronic device (600) can confirm that the user maintains a sleep state based on the fact that the external electronic device (601) is in use. The electronic device (600) may not determine the user's sleep time and wake time based on the fact that the user's state does not change.

[0250] Referring to the graph (1320) in FIG. 13b and the graph (1330) in FIG. 13c, the electronic device (600) can have its communication connection with the external electronic device (601) disconnected. Even if the communication connection with the external electronic device (601) is disconnected, the electronic device (600) can determine the time of entry and exit of the user.

[0251] Referring to the graph (1320) in FIG. 13b, if the time (1327) at which the communication connection to the external electronic device (601) is released is earlier than the first time at which the user enters sleep (e.g., the time at which the activity score begins to decrease) (1322), the electronic device (600) can determine the time at which the user enters sleep and wakes up without using the usage event information of the external electronic device. If the time (1327) at which the communication connection to the external electronic device (601) is released is later than the first time at which the user enters sleep (e.g., the time at which the activity score begins to decrease) (1322), the electronic device (600) can determine the time at which the user enters sleep and wakes up by using the usage event information of the external electronic device.

[0252] The electronic device (600) can determine the first time of entering sleep (e.g., when the activity score begins to decrease) (1327) as the time of entering sleep for the user. The electronic device (600) can determine the first time of waking up (e.g., when the activity score begins to increase) (1325) as the time of waking up for the user.

[0253] Referring to FIG. 13c, if the time at which the communication connection to the external electronic device (601) is disconnected (1337) is later than the first time at which the user enters sleep (e.g., the time at which the activity score begins to decrease) (1332), the electronic device (600) may determine the time at which the communication connection to the external electronic device (601) is disconnected (1337) as the time at which the user enters sleep. According to one embodiment, if the time at which the last usage event among the usage events used to determine that the external electronic device (601) is last in use is earlier than the time at which the activity score begins to decrease, the time at which the activity score begins to decrease may be determined as the time at which the user enters sleep.

[0254] The electronic device (600) can determine the first wake-up time (e.g., the time when the activity score begins to increase) (1335) as the user's wake-up time.

[0255] FIG. 14a is a diagram illustrating the operation of an electronic device that determines the elevation viewpoint.

[0256] The user of the electronic device (600) may perform low-motion activities of the electronic device (600) (e.g., reading a book, watching a movie, watching a video) before the electronic device (600) determines the user's entry into sleep (or before the user's state changes from a waking state to a sleeping state). For example, low-motion activities of the electronic device (600) may include activities that cause an activity score measured based on the motion of the electronic device (600) to be below a first threshold. When the low-motion activity is performed by the user, the electronic device (600) may determine the user's entry into sleep (or confirm that the user's state changes from a waking state to a sleeping state). Accordingly, the electronic device (600) may fail to collect information that should be collected while the user is in a waking state, as it determines the user's entry into sleep earlier than the actual time of the user's entry into sleep.

[0257] The electronic device (600) can measure the motion (1417) of the electronic device (600) and calculate an activity score based on the motion (1417) of the electronic device (600) (or feature information calculated based on the motion (1417) of the electronic device (600). The electronic device (600) can determine a first sleep time based on the activity score. The first sleep time (1415) may include a time when the activity score begins to decrease (e.g., the last time when it is greater than a specific value greater than the first threshold before falling below the first threshold). For example, the first sleep time (1415) may be a time when a low-motion activity is initiated by the user.

[0258] When the electronic device (600) determines the user's sleep time using a first sleep time (1415) determined based on an activity score (or motion information including an activity score), the user's low-motion activity may not be reflected in the determination of the user's sleep time. The electronic device (600) may also determine the user's sleep time as a first sleep time (1415) that is different from the end time of the user's low-motion activity (e.g., the time when the user's state changes from sleep state to wake state) (1414).

[0259] The electronic device (600) of the present disclosure may determine (or adjust) the time when the last detected usage event is detected as the second entry point (1416) among the usage events (1418) (e.g., usage events used to determine the time when the external electronic device (601) was last in use) that are detected during a specified time interval included in the usage event information (e.g., second usage event information).

[0260] The electronic device (600) can reflect activities with low user motion in determining the time of entry into sleep by determining the second time of entry into sleep (1416), which is later among the second time of entry into sleep (1416) and the first time of entry into sleep (1415) identified based on usage event information of the external electronic device (601). The electronic device (600) can determine the time of entry into sleep of the user as a time that is close to the end time of the user's activities with low user motion (e.g., the time when the user's state changes from sleep state to wake state).

[0261] FIG. 14b is a diagram illustrating the operation of an electronic device for determining the time of day.

[0262] A user of the electronic device (600) may perform low-motion activities of the electronic device (600) (e.g., reading a book, watching a movie, watching a video) before the electronic device (600) determines the user's wake-up (or after the user's state changes from a sleep state to a wake-up state (after sleep ends). For example, low-motion activities of the electronic device (600) may include activities that cause an activity score measured based on the motion of the electronic device (600) to be below a second threshold. When low-motion activities are performed by the user, the electronic device (600) may not determine the user's wake-up (or confirm that the user's state changes from a sleep state to a wake-up state). Accordingly, the electronic device (600) may not be able to collect information that should be collected while the user is in a wake-up state.

[0263] The electronic device (600) can measure the motion (1427) of the electronic device (600) and calculate an activity score based on the motion (1427) of the electronic device (600) (or feature information calculated based on the motion (1427) of the electronic device (600). The electronic device (600) can determine a first wake-up time (1425) based on the activity score. The first wake-up time (1425) may include a time when the activity score begins to increase (e.g., the last time when it is below a specific value smaller than the second threshold before reaching a second threshold). For example, the first wake-up time (1425) may be a time when a low-motion activity is terminated by the user and a high-motion activity is started by the user.

[0264] When the electronic device (600) determines the user's wake-up time using a first wake-up time (1425) determined based on an activity score (or motion information including an activity score), the user's low-motion activity may not be reflected in the determination of the user's wake-up time. The electronic device (600) may also determine (or adjust) the user's wake-up time to a first sleep time (1425) that is different from the start time of the user's low-motion activity (e.g., the time when the user's state changes from sleep state to sleep state) (1424).

[0265] The electronic device (600) of the present disclosure may determine (or adjust) the time when the first detected usage event (1428) (e.g., usage events used to determine the time when the external electronic device (601) was in use) among the usage event information (e.g., second usage event information) received from the external electronic device (601) and the usage event information (e.g., second usage event information) detected during a specified time interval is detected as the second wake-up time (1426).

[0266] The electronic device (600) can reflect the user's low-motion activity in determining the wake-up time by determining the second wake-up time (1426) as the user's wake-up time based on the name (earlier) than the time when the activity score started to increase, which is identified based on the usage event information of the external electronic device (601). The electronic device (600) can determine the user's wake-up time as a time (e.g., second wake-up time (1426)) that is close to the start time (1424) of the user's low-motion activity (e.g., the time when the user's state changed from sleep state to wake state).

[0267] FIG. 14c is a diagram illustrating the operation of an electronic device that determines the time of waking and the time of elevation.

[0268] The user of the electronic device (600) may perform an activity (e.g., using the restroom) for a certain period of time (e.g., less than a threshold time) after the user's state changes from a sleep state to a wake state (after sleep ends) and before the user's state changes from a sleep state to a wake state. For example, the activity for a certain period of time may include an activity that keeps the activity score measured based on the motion of the electronic device (600) below a second threshold. The electronic device (600) may not be able to determine the user's waking and falling asleep (or the user's state changes from a sleep state to a wake state and then back from a wake state to a sleep state) when the activity for a certain period of time is performed by the user.

[0269] The electronic device (600) can measure the motion (1437) of the electronic device (600) and calculate an activity score based on the motion (1437) of the electronic device (600) (or feature information calculated based on the motion (1437) of the electronic device (600). The electronic device (600) may not determine (or detect) the change in the user's state as the activity for a certain period of time begins and the user's waking up and sleeping as the activity for a certain period of time ends, based on the fact that the activity score does not exceed a second threshold value. The electronic device (600) may determine only the waking time indicating the user's final waking time.

[0270] The electronic device (600) of the present disclosure may determine the time when the first detected usage event (1438-1) (e.g., usage events used to determine the time when the external electronic device (601) was in use) among the usage event information (e.g., second usage event information) received from the external electronic device (601) that is detected during a specified time interval is detected as the second wake-up time (1436). Additionally, the electronic device (600) may determine the time when the last detected usage event (1438-2) (e.g., usage events used to determine the time when the external electronic device (601) was in use) among the usage event information (e.g., first usage event information) received from the external electronic device (601) that is detected during a specified time interval is detected as the second wake-up time (1436-1).

[0271] The electronic device (600) can determine the second wake-up time (1436) identified based on the usage event information of the external electronic device (601) as the user's wake-up time, and determine the second sleep entry time (1436-1) identified based on the usage event information of the external electronic device (601) as the user's sleep entry time. By reflecting the user's activity during a certain period in determining the wake-up time and sleep entry time, the electronic device (600) can determine the time that is close to the start time (1434) of the user's activity during a certain period as the user's wake-up time, and determine the time that is close to the end time (1434-1) of the user's activity during a certain period as the user's sleep entry time.

[0272] FIG. 14d is a diagram illustrating the operation of an electronic device that determines the time of waking and the time of elevation.

[0273] A user of the electronic device (600) may perform multiple activities (e.g., running an investment application) for a certain period of time (e.g., less than a threshold time) after the user's state changes from a sleep state to a wake state (after sleep ends) and before the user's state changes from a sleep state to a wake state. For example, the multiple activities for a certain period of time may include activities that cause an activity score measured based on the motion of the electronic device (600) to be less than a second threshold. When multiple activities for a certain period of time are performed by the user, the electronic device (600) may not be able to determine the user's wake-up and sleep state (or confirm that the user's state changes from a sleep state to a wake state and then changes back from a wake state to a sleep state).

[0274] The electronic device (600) can measure the motion of the electronic device (600) and calculate an activity score based on the motion of the electronic device (600) (or feature information calculated based on the motion of the electronic device (600)). The electronic device (600) may not detect the user's waking up (or change in the user's state) upon the start of each of the multiple activities for a set period of time and the user's falling asleep (or change in the user's state) upon the end of each of the multiple activities for a set period of time, based on the fact that the activity score does not exceed a second threshold value. The electronic device (600) may determine only the waking time indicating the user's final waking time.

[0275] The electronic device (600) of the present disclosure may determine the time when the first detected usage event is detected among the usage events (1447-1) (e.g., usage events used to determine the time when the external electronic device (601) was in use) that are detected during a specified time interval included in the usage event information (e.g., second usage event information) received from the external electronic device (601) for each of a plurality of activities over a specified period of time, as the second wake-up time. Additionally, the electronic device (600) may determine the time when the last detected usage event is detected among the usage events (1447-3) (e.g., usage events used to determine the time when the external electronic device (601) was in use) that are detected during a specified time interval included in the usage event information (e.g., first usage event information) received from the external electronic device (601) for each of a plurality of activities over a specified period of time, as the second wake-up time.

[0276] The electronic device (600) can determine the second wake-up time (1444-1, 1444-3) identified based on the usage event information of the external electronic device (601) as the user's wake-up time, and determine the second sleep entry time (1444-2, 1444-4) identified based on the usage event information of the external electronic device (601) as the user's re-sleep entry time. By reflecting the user's activities during multiple predetermined periods in the determination of the (re)wake-up time and (re)sleep entry time, the electronic device (600) can determine the time that is close to the start time (1446-1, 1446-3) of the user's activities during multiple predetermined periods as the user's wake-up time, and determine the time that is close to the end time (1446-2, 1446-4) of the user's activities during multiple predetermined periods as the user's re-sleep entry time.

[0277] FIG. 15 is a flowchart of the operation of an electronic device according to one embodiment.

[0278] In FIG. 15, the description of the electronic device (600) or external electronic device (601) described in FIG. 6 may be applied.

[0279] The electronic device (600) can determine the orientation of a user wearing a wearable device based on the first motion information and the first usage event information in operation 1510.

[0280] The electronic device (600) can check the state of a user, including at least one of the sleep state and the wake state of the electronic device (600). The sleep state refers to the state in which the user of the electronic device (600) is sleeping, and the wake state may refer to the state in which the user of the electronic device (600) is out of the sleep state or the state in which the user of the electronic device (600) is not sleeping. Checking the state of the user may include checking the user's offset of sleep (or the user's state changing from a sleep state to a wake state) or checking the user's onset of sleep (or the user's state changing from a wake state to a sleep state).

[0281] According to one embodiment, the electronic device (600) may determine (or confirm) the state of a user based on an activity score. For example, the processor may confirm that the state of the user is in a sleep state if the activity score is below a first threshold indicating that the user is in a sleep state. After determining the user's wake-up (or after confirming that the state of the user of the electronic device (600) has changed from a sleep state to a wake-up state, or while the user is in a wake-up state), the electronic device (600) may determine the user's initiation of sleep (or confirm that the state of the user of the electronic device (600) has changed from a wake-up state to a sleep state) based on confirming that the activity score has changed to below a first threshold indicating that the user of the electronic device (600) is in a sleep state (or that the activity score is below the first threshold).

[0282] The electronic device (600) can determine the time of the user's entry into sleep in response to (or based on) determining the user's entry into sleep (or confirming that the user's state changes from a waking state to a sleeping state). The time of the user's entry into sleep may indicate a time estimated by the electronic device (600) as the time when the user's state changes from a waking state to a sleeping state (e.g., the time when the user of the electronic device (600) enters sleep (starts sleeping).

[0283] The electronic device (600) may receive information indicating a second entry point from an external electronic device (601) connected to the electronic device (600), indicating the time when the last usage event was detected before determining the user's entry point. When the electronic device (600) determines the user's entry point, it may request usage event information (e.g., information indicating the second entry point) from the external electronic device (601) and receive the requested information. The second entry point may include the time when the last usage event indicating that the external electronic device (601) is in use was detected before determining the user's entry point.

[0284] The electronic device (600) can adjust the user's entry point from the first entry point to the second entry point if the second entry point is later than the first entry point.

[0285] Alternatively, the electronic device (600) may determine the user's status based on whether the activity score included in the first motion information is less than the first threshold and the external electronic device (601) is not in use. For example, the electronic device (600) may determine whether the activity score included in the first motion information is less than the first threshold. Based on determining that the activity score is less than the first threshold, the electronic device (600) may request information from the external electronic device indicating whether the external electronic device (601) is in use. The electronic device (600) may determine whether the external electronic device is in use based on receiving information from the external electronic device indicating whether the external electronic device is in use. When the electronic device (600) confirms that the external electronic device is in use, it may receive information from the external electronic device indicating whether the external electronic device is in use at predetermined time intervals until it receives the first usage event information containing information indicating that the external electronic device is not in use. The electronic device (600) can determine the user's profile when it confirms that the external electronic device is not in use.

[0286] When the electronic device (600) determines the user's entry point, it may determine the user's entry point based on motion information related to the motion of the electronic device (600) obtained through the motion sensor (630) (e.g., first motion information) and usage event information received by an external electronic device (e.g., first usage event information including information indicating that the external electronic device (601) is not in use). For example, when the electronic device (600) determines the user's entry point, it may determine the user's entry point based on a first entry point determined based on the first motion information and a second entry point determined based on the first usage event information.

[0287] For example, the electronic device (600) can determine the entry point of the user wearing the electronic device based on the later of a first entry point indicating the time when the motion of the electronic device began to decrease and a second entry point indicating the time when the external electronic device was last used before determining the entry point of the user wearing the electronic device.

[0288] The electronic device (600) can determine the wake-up time of a user wearing a wearable device based on second motion information or second usage event information in operation 1520.

[0289] After determining the user's entry into sleep (or after confirming that the user's state has changed from a sleeping state to a waking state, or while the user of the electronic device (600) is in a sleeping state), the processor (610) can determine the user's waking (confirming whether the user's state of the electronic device (600) has changed from a sleeping state to a waking state).

[0290] For example, the electronic device (600) can determine the user's wake-up (confirm that the user's state of the electronic device (600) changes from a sleep state to a wake-up state) based on the activity score changing above a second threshold indicating that the user of the electronic device (600) is in a wake-up state.

[0291] Alternatively, the electronic device (600) can determine the user's wake-up state (confirm that the user's state of the electronic device (600) has changed from a sleep state to a wake-up state) based on confirming information indicating that the external electronic device (601) is in use, which is included in the second usage event information received from the external electronic device.

[0292] The electronic device (600) can determine the user's wake-up time based on a first wake-up time indicating the point in time when the motion of the electronic device (600) begins to increase. The first wake-up time may include the last point in time when the activity score included in the second motion information is greater than or equal to a specific value smaller than the second threshold before it becomes greater than or equal to the second threshold. To adjust the user's wake-up time, the electronic device (600) may request usage event information (e.g., second usage event information) of the external electronic device (601) from the external electronic device (601).

[0293] The external electronic device (601) can transmit usage event information to the electronic device. Alternatively, the external electronic device (601) can transmit usage event information (e.g., second usage event information) to the electronic device (600) even if there is no request for usage event information from the electronic device (600), if it is confirmed that the external electronic device (601) is in use.

[0294] The electronic device (600) can receive usage event information (e.g., second usage event information) from an external electronic device (601). If the second wake-up time is earlier than the time when the user's wake-up time was determined, the electronic device (600) can adjust the user's wake-up time from the first wake-up time to the second wake-up time.

[0295] Alternatively, the electronic device (600) may use both motion information obtained through the motion sensor (630) (e.g., second motion information) or usage event information received from an external electronic device (e.g., second usage event information) to determine the user's wake-up time. The external electronic device (601) may transmit the usage event information (e.g., second usage event information) to the electronic device when it is confirmed that the external electronic device (601) is in use, even if there is no request for the usage event information from the electronic device (600).

[0296] The electronic device (600) can determine the user's wake-up time based on motion information related to the motion of the electronic device (600) obtained through the motion sensor (630) (e.g., second motion information) and usage event information received by an external electronic device (e.g., second usage event information). For example, the electronic device (600) can determine the user's wake-up time based on a first wake-up time determined based on the motion information of the electronic device (600) (e.g., second motion information) or a second wake-up time determined based on the usage event information (e.g., second usage event information).

[0297] When determining the user's wake-up time, the electronic device (600) may determine the second wake-up time as the user's wake-up time if the second wake-up time is earlier than the time when the activity score is greater than or equal to the second threshold. Alternatively, the electronic device (600) may determine the first wake-up time as the user's wake-up time if the second wake-up time is later than the time when the activity score is greater than or equal to the second threshold.

[0298] In the present disclosure, motion information used to determine the user's entry point is referred to as first motion information, and motion information used to determine the user's wake point may be referred to as second motion information. The first motion information and the second motion information may substantially be included in a single piece of information.

[0299] According to one embodiment, in a wearable device (e.g., the electronic device (600) of FIG. 6), the wearable device (e.g., the electronic device (600) of FIG. 6) may include a motion sensor. The wearable device (e.g., the electronic device (600) of FIG. 6) may include a communication circuit for connecting an external electronic device. The wearable device (e.g., the electronic device (600) of FIG. 6) may include at least one processor. The wearable device (e.g., the electronic device (600) of FIG. 6) may include a memory for storing at least one computer program including instructions. When the at least one computer program is executed individually or collectively by the at least one processor, the wearable device (e.g., the electronic device (600) of FIG. 6) may determine the position of a user wearing the wearable device (e.g., the electronic device (600) of FIG. 6) based on first motion information related to the motion of the wearable device (e.g., the electronic device (600) of FIG. 6) measured by the motion sensor and first usage event information related to whether the external electronic device is in use, received from an external electronic device connected to the wearable device (e.g., the electronic device (600) of FIG. 6). The external electronic device may be determined to be in use based on a usage event related to at least one of touch input information, motion information, display information, or camera information of the external electronic device. Determining the position of a user wearing the above-mentioned wearable device (e.g., the electronic device (600) of FIG. 6) may include determining whether the activity score included in the first motion information is less than a first threshold, and obtaining the first usage event information based on determining that the activity score is less than the first threshold.

[0300] In a wearable device (e.g., the electronic device (600) of FIG. 6) according to one embodiment, acquiring the first usage event information may include requesting information from the external electronic device indicating whether the external electronic device is in use. Acquiring the first usage event information may include confirming whether the external electronic device is in use based on receiving information from the external electronic device indicating whether the external electronic device is in use. Acquiring the first usage event information may include receiving information from the external electronic device indicating whether the external electronic device is in use at predetermined time intervals until receiving the first usage event information including information indicating that the external electronic device is not in use, when it is confirmed that the external electronic device is in use.

[0301] In a wearable device (e.g., the electronic device (600) of FIG. 6) according to one embodiment, when the at least one computer program is executed individually or collectively by the at least one processor, the wearable device (e.g., the electronic device (600) of FIG. 6) can determine the user's entry when it confirms that the external electronic device is not in use.

[0302] According to one embodiment, in a wearable device (e.g., the electronic device (600) of FIG. 6), the at least one computer program, when executed individually or collectively by the at least one processor, may determine the time of entry of the user wearing the wearable device (e.g., the electronic device (600) of FIG. 6) based on the later of a first time of entry indicating the time when the motion of the wearable device (e.g., the electronic device (600) of FIG. 6) began to decrease and a second time of entry indicating the time when the external electronic device was last used before determining the time of entry of the user.

[0303] In a wearable device (e.g., the electronic device (600) of FIG. 6) according to one embodiment, the first entry point may include the last point in time when the activity score included in the first motion information is greater than or equal to a specific value greater than the first threshold before falling below the first threshold.

[0304] In a wearable device (e.g., the electronic device (600) of FIG. 6) according to one embodiment, the second entry point may include a time when the last usage event indicating that the external electronic device was in use was detected before determining the entry point of the user.

[0305] According to one embodiment, in a wearable device (e.g., the electronic device (600) of FIG. 6), the at least one computer program, when executed individually or collectively by the at least one processor, may cause the wearable device (e.g., the electronic device (600) of FIG. 6) to determine the waking status of a user wearing the wearable device (e.g., the electronic device (600) of FIG. 6) based on second motion information related to the motion of the wearable device (e.g., the electronic device (600) of FIG. 6) measured by the motion sensor, or second usage event information related to whether the external electronic device is in use received from the external electronic device.

[0306] In a wearable device (e.g., the electronic device (600) of FIG. 6) according to one embodiment, the user's waking status may be determined based on determining that the activity score included in the second motion information is greater than or equal to a second threshold value, or confirming that an external electronic device is in use.

[0307] In a wearable device (e.g., the electronic device (600) of FIG. 6) according to one embodiment, the at least one computer program may be configured to determine the wake-up time of a user wearing the wearable device (e.g., the electronic device (600) of FIG. 6) based on a first wake-up time indicating a point in time when the motion of the wearable device (e.g., the electronic device (600) of FIG. 6) begins to increase, or a second wake-up time indicating a point in time when the external electronic device is first used after determining the user's sleep. The second usage event information may include information indicating the second wake-up time.

[0308] According to one embodiment, in a wearable device (e.g., the electronic device (600) of FIG. 6), the at least one computer program may, when executed individually or collectively by the at least one processor, cause the wearable device (e.g., the electronic device (600) of FIG. 6) to determine the wake-up time of a user wearing the wearable device (e.g., the electronic device (600) of FIG. 6) based on the second wake-up time when the second wake-up time is earlier than the time when the wake-up time is determined. The at least one computer program may, when executed individually or collectively by the at least one processor, cause the wearable device (e.g., the electronic device (600) of FIG. 6) to determine the wake-up time of a user wearing the wearable device (e.g., the electronic device (600) of FIG. 6) based on the first wake-up time when the second wake-up time is later than the time when the wake-up time is determined.

[0309] In a wearable device (e.g., the electronic device (600) of FIG. 6) according to one embodiment, the first waking time may include the last time when the activity score included in the second motion information is less than a specific value smaller than the second threshold before it becomes greater than or equal to the second threshold.

[0310] In a wearable device (e.g., the electronic device (600) of FIG. 6) according to one embodiment, the second waking time may include the time when the first usage event indicating that the external electronic device is in use is detected after determining the user's waking time.

[0311] In a wearable device (e.g., the electronic device (600) of FIG. 6) according to one embodiment, the first usage event information and / or the second usage event information may include information indicating whether the external electronic device is being used by the user and / or information indicating the times of usage events detected by the external electronic device.

[0312] A wearable device (e.g., the electronic device (600) of FIG. 6) may include a motion sensor. The wearable device (e.g., the electronic device (600) of FIG. 6) may include a communication circuit for connecting an external electronic device. The wearable device (e.g., the electronic device (600) of FIG. 6) may include at least one processor. The wearable device (e.g., the electronic device (600) of FIG. 6) may include a memory for storing at least one computer program containing instructions. When executed individually or collectively by the at least one processor, the at least one computer program may be configured to cause the wearable device (e.g., the electronic device (600) of FIG. 6) to determine the entry point of the user wearing the wearable device (e.g., the electronic device (600) of FIG. 6) based on first motion information related to the motion of the wearable device (e.g., the electronic device (600) of FIG. 6) measured by the motion sensor. When executed individually or collectively by the at least one processor, the at least one computer program may be configured to determine the entry point of the user based on a first entry point indicating the time when the motion of the wearable device (e.g., the electronic device (600) of FIG. 6) began to decrease. When executed individually or collectively by the at least one processor, the at least one computer program may be configured to receive information indicating a second entry point indicating the time when the last usage event was detected before determining the entry point of the user from an external electronic device connected to the electronic device. When the above at least one computer program is executed individually or collectively by the above at least one processor, if the second entry point is later than the first entry point, the user's entry point may be adjusted from the first entry point to the second entry point.

[0313] In a wearable device (e.g., electronic device (600) of FIG. 6), when the at least one computer program is executed individually or collectively by the at least one processor, the first entry point may include the last point in time when the activity score included in the first motion information is greater than or equal to a specific value greater than the first threshold before falling below the first threshold.

[0314] In a wearable device (e.g., electronic device (600) of FIG. 6), when the at least one computer program is executed individually or collectively by the at least one processor, the second entry point may include the time when the last usage event indicating that the external electronic device is in use is detected before determining the entry of the user.

[0315] In a wearable device (e.g., the electronic device (600) of FIG. 6), the at least one computer program, when executed individually or collectively by the at least one processor, may cause the wearable device (e.g., the electronic device (600) of FIG. 6) to determine the wake-up time of a user wearing the wearable device (e.g., the electronic device (600) of FIG. 6) based on second motion information related to the motion of the wearable device (e.g., the electronic device (600) of FIG. 6) measured by the motion sensor. The at least one computer program, when executed individually or collectively by the at least one processor, may cause the wake-up time of the user to be determined based on a first wake-up time indicating the point in time when the motion of the wearable device (e.g., the electronic device (600) of FIG. 6) began to increase.

[0316] In a wearable device (e.g., the electronic device (600) of FIG. 6), when the at least one computer program is executed individually or collectively by the at least one processor, the wearable device (e.g., the electronic device (600) of FIG. 6) may receive information indicating a second wake-up time from an external electronic device connected to the electronic device, indicating the time when the external electronic device is first used after the user has entered sleep. If the second wake-up time is earlier than the time when the user's wake-up is determined, the user's wake-up time may be adjusted from the first wake-up time to the second wake-up time.

[0317] In a wearable device (e.g., electronic device (600) of FIG. 6), the first waking time may include the last time when the activity score included in the second motion information is less than or equal to a specific value smaller than the second threshold before it becomes greater than or equal to the second threshold.

[0318] In a wearable device (e.g., the electronic device (600) of FIG. 6), the second waking time may include the time when the first usage event indicating that the external electronic device is in use is detected after determining the user's waking time.

[0319] The electronic device according to the various embodiments disclosed in this document may be of various forms. The electronic device may include, for example, a portable communication device (e.g., a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a consumer electronics device. The electronic device according to the embodiments of this document is not limited to the devices described above.

[0320] The various embodiments of this document and the 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 substitutions of said embodiments. 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 said items unless the relevant context clearly indicates otherwise. In this document, phrases such as "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 "at least one of A, B, or C" may each include any possible combination of items listed together in the corresponding phrase. Terms such as "first," "second," or "first" or "second" may be used simply to distinguish said components from other said components and do not limit said components in any other aspect (e.g., importance or order). Where any (e.g., 1st) component is referred to as “coupled” or “connected” to another (e.g., 2nd) component, with or without the terms “functionally” or “communicationly,” it means that said any component may be connected to said other component directly (e.g., via a wire), wirelessly, or through a third component.

[0321] As used in this document, the term "module" may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be a component formed as a whole, or a minimum unit of said component or a part thereof that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).

[0322] Various embodiments of the present document may be implemented as software (e.g., program (140)) comprising one or more instructions stored in a storage medium (e.g., internal memory (136) or external memory (138)) readable by a machine (e.g., electronic device (101)). For example, a processor (e.g., processor (120)) of the machine (e.g., electronic device (101)) may call at least one of the one or more instructions stored from the storage medium and execute it. This enables the machine to be operated to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. The storage medium readable by the machine may be provided in the form of a non-transitory storage medium. Here, 'non-temporary' merely means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic waves), and this term does not distinguish between cases where data is stored semi-permanently and cases where it is stored temporarily.

[0323] According to one embodiment, the method according to the various embodiments disclosed herein may be provided by being included in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)), or distributed online (e.g., download or upload) through an application store (e.g., Play Store™) or directly between two user devices (e.g., smartphones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily created on a device-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

[0324] According to various embodiments, each component (e.g., module or program) of the components described above may include a singular or multiple entities. According to various embodiments, one or more of the components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Generally or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the components of the multiple components in the same or similar manner as those performed by the corresponding component among the multiple components prior to the integration. According to various embodiments, operations performed by the module, program, or other components may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.

Claims

1. In a wearable device, Motion sensor; Communication circuit for connecting external electronic devices; At least one processor; It includes memory for storing at least one computer program containing instructions, and When the above at least one computer program is executed individually or collectively by the above at least one processor, the wearable device, Based on first motion information related to the motion of the wearable device measured by the motion sensor and first usage event information related to whether the external electronic device is in use, received from an external electronic device connected to the wearable device, the elevation of the user wearing the wearable device is determined, and The above external electronic device is determined to be in use based on a usage event associated with at least one of touch input information, motion information, display information, or camera information of the above external electronic device, and Determining the elevation of a user wearing the above-mentioned wearable device is, Determining whether the activity score included in the first motion information is less than the first threshold, A wearable device comprising acquiring the first usage event information based on determining that the activity score is less than a first threshold.

2. In paragraph 1, obtaining the first usage event information is, Request information from the external electronic device indicating whether the external electronic device is in use, and Based on receiving information from the external electronic device indicating whether the external electronic device is in use, determining whether the external electronic device is in use, and A wearable device comprising, when it is confirmed that the external electronic device is in use, receiving information from the external electronic device at predetermined time intervals indicating whether the external electronic device is in use, until receiving the first usage event information including information indicating that the external electronic device is not in use.

3. In paragraph 2, when the at least one computer program is executed individually or collectively by the at least one processor, the wearable device, A wearable device that determines the user's profile when it is confirmed that the above external electronic device is not in use.

4. In paragraph 1, when the at least one computer program is executed individually or collectively by the at least one processor, the wearable device, A wearable device that, when determining the inclination of a user wearing the wearable device, determines the inclination point of the user wearing the wearable device based on the later of a first inclination point indicating the time when the motion of the wearable device began to decrease and a second inclination point indicating the time when the external electronic device was last used prior to determining the inclination of the user.

5. A wearable device according to claim 4, wherein the first entry point includes the last point in time when the activity score included in the first motion information is greater than or equal to a specific value greater than the first threshold before falling below the first threshold.

6. In paragraph 4, the second elevation point mentioned above is, A wearable device comprising a point in time when the last usage event was detected indicating that the external electronic device was in use prior to determining the elevation of the user.

7. In paragraph 1, when the at least one computer program is executed individually or collectively by the at least one processor, the wearable device, A wearable device that determines the waking state of a user wearing the wearable device based on second motion information related to the motion of the wearable device measured by the motion sensor or second usage event information related to whether the external electronic device is in use received from the external electronic device.

8. A wearable device according to claim 7, wherein the user's weather is determined based on determining that the activity score included in the second motion information is greater than or equal to a second threshold value, or confirming that an external electronic device is in use.

9. In claim 7, when the at least one computer program is executed individually or collectively by the at least one processor, the wearable device, A wearable device that determines the wake-up time of a user wearing the wearable device based on a first wake-up time indicating a point in time when the motion of the wearable device begins to increase, or a second wake-up time indicating a point in time when the external electronic device is first used after determining the user’s sleep, wherein the second usage event information includes information indicating the second wake-up time.

10. In claim 9, when the at least one computer program is executed individually or collectively by the at least one processor, the wearable device, If the second wake-up time is earlier than the time when the wake-up was determined, the wake-up time of the user wearing the wearable device is determined based on the second wake-up time, and A wearable device that determines the wake-up time of a user wearing the wearable device based on the first wake-up time when the second wake-up time is later than the time when the wake-up time is determined.

11. A wearable device according to claim 9, wherein the first waking time includes the last time when the activity score included in the second motion information is less than a specific value smaller than the second threshold before becoming greater than or equal to the second threshold.

12. A wearable device according to claim 9, wherein the second waking time includes the time when the first usage event indicating that the external electronic device is in use is detected after determining the user's waking time.

13. In a wearable device, Motion sensor; Communication circuit for connecting external electronic devices; At least one processor; It includes memory for storing at least one computer program containing instructions, and When the above at least one computer program is executed individually or collectively by the above at least one processor, the wearable device, Based on first motion information related to the motion of the wearable device measured by the motion sensor, the elevation of the user wearing the wearable device is determined, and Based on a first entry point indicating the point in time when the motion of the wearable device begins to decrease, the entry point of the user is determined, and Receiving information indicating a second entry point, which indicates the time when the last usage event was detected before determining the user's entry point from an external electronic device connected to the above-mentioned wearable device, and A wearable device that adjusts the user's entry point from the first entry point to the second entry point when the second entry point is later than the first entry point.

14. In Paragraph 13, the above-mentioned first elevation point is, A wearable device comprising a last point in time when the activity score included in the first motion information is greater than or equal to a specific value greater than the first threshold before falling below the first threshold.

15. In Paragraph 13, the second elevation point mentioned above is, A wearable device comprising a point in time when the last usage event indicating that the external electronic device is in use is detected before determining the elevation of the above user.