Patent Description:
Wearable electronic devices, such as a three-axis accelerometer, a gyro or other type of motion sensor, and a global positioning system (GPS) module, may be worn on user body portions and are able to sense information according to user motion. The wearable electronic device may provide a user's exercise or workout information based on the user's motion information identified as the user moves and/or position information identified by the GPS module.

Waterproof wearable electronic devices allow users to swim while wearing the devices on a body part, such as their wrist. Such a wearable electronic device may provide swimming workout information based on sensed information. The wearable electronic device may provide the user's swimming-related information, such as distance, lap time, or swimming style. The lap time information may be of importance when the user swims in a pool. The swim distance may be critical, such as during outdoor swimming.

As used herein, pool or swimming pool may refer to a space with a uniform standard size, in which the user may swim, and outdoor environment may refer to an open space, such as a river, sea, or lake. Swimming in the outdoor environment may be free from spatial limitations. A wearable electronic device may provide different types of data in the pool environment and outdoor environment.

<CIT>) discloses a wearable device for tracking swimming activities of a user. The wearable device includes one or more sensors configured to generate sensor data, and based on the sensor data, the wearable device determines swim metrics.

Typically, upon receiving an input to indicate start of a swim from the user, the electronic device may gather, process, manage, or provide data for providing workout information. The electronic device needs to receive an input for designating a workout environment from the user in order to provide data appropriate for the pool environment and outdoor environment. The user's explicit designation is needed to separately provide information corresponding to the pool environment and the outdoor environment. Conventional electronic devices lack the capability of auto-determining whether a swim starts or differentiating between the pool environment and the outdoor environment.

Thus, there is a need in the art for a method and apparatus that distinguishes between such environments and automatically discerns a start time of the swim.

Accordingly, an aspect of the disclosure is to provide an electronic device capable of automatically identifying the workout environment based on position-associated information and providing workout information per workout environment, and a method of operating the electronic device.

Another aspect of the disclosure is to provide an electronic device capable of automatically identifying whether a swim starts and a method of operating the electronic device.

In accordance with an aspect of the disclosure, an electronic device includes a display, a position measurement module configured to receive a satellite signal from a satellite and output position information about the electronic device, at least one sensor configured to sense at least one of a motion of the electronic device and a posture of the electronic device, at least one processor operatively connected with the display, the position measurement module, and the at least one sensor, and a memory operatively connected with the at least one processor, wherein the memory stores instructions configured to, when executed, enable the at least one processor to identify, based on the position information about the electronic device not being obtained by the position measurement module, a workout environment of a user of the electronic device as a pool environment, and control the display to display a first screen including at least part of information corresponding to the pool environment based on sensing data obtained via the at least one sensor, obtain the position information about the electronic device by the position measurement module, identify the workout environment as the pool environment, based on the obtained position information about the electronic device corresponding to a recursive pattern, and control the display to display the first screen, and identify the workout environment as an outdoor environment, based on the obtained position information about the electronic device not corresponding to the recursive pattern, and control the display to display a second screen including at least part of information corresponding to the outdoor environment based on the sensing data and the obtained position information about the electronic device.

According to various embodiments, there may be provided an electronic device capable of automatically identifying the workout environment based on position-associated information and providing workout information per workout environment and a method of operating the electronic device. According to various embodiments, there may be provided an electronic device capable of automatically identifying whether a swim starts and a method of operating the electronic device. Therefore, even when the user starts a workout without explicit entry, the electronic device may identify the workout environment and provide workout information fitting the workout environment, thereby providing high-reliability workout information.

The same or similar reference denotations may be used to refer to the same or similar elements throughout the specification and the drawings.

Embodiments of the disclosure will be described with reference to accompanying drawings. Accordingly, those of ordinary skill in the art will recognize that modifications, equivalents, and/or alternatives on the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Descriptions of well-known functions and/or configurations will be omitted for the sake of clarity and conciseness.

The electronic device as described herein may be one of various types of electronic devices, including a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. However, the electronic device is not limited to the above-listed types.

It should be appreciated that embodiments and the terms used herein are not intended to limit the technological features set forth herein to particular embodiments and include various changes, equivalents, or replacements for a corresponding embodiment.

As used herein, such terms as "1st" and "2nd," or "first" and "second" may be used to simply distinguish a corresponding component from another and do not limit the components in importance or order. It is to be understood that if an element, such as a first element, is referred to, with or without the term "operatively" or "communicatively", as "coupled with," "coupled to," "connected with," or "connected to" another element, such as a second element, this indicates that the first element may be coupled with the second element directly (e.g., wiredly), wirelessly, or via a third element.

The processor <NUM> may execute, e.g., software (e.g., a program <NUM>) to control at least one other component (e.g., a hardware or software component) of the electronic device <NUM> connected with the processor <NUM> and may process or compute various data. According to an embodiment, the processor <NUM> may include a main processor <NUM> (e.g., a central processing unit (CPU) or an application processor (AP)), and an auxiliary processor <NUM> (e.g. , a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is operable independently from, or in conjunction with, the main processor <NUM>.

The auxiliary processor <NUM> may control at least some of functions or states related to at least one (e.g., the display device <NUM>, the sensor module <NUM>, or the communication module <NUM>) of the components of the electronic device <NUM>, instead of the main processor <NUM> while the main processor <NUM> is in an inactive (e.g., sleep) state or along with the main processor <NUM> while the main processor <NUM> is an active state (e.g., executing an application). According to an embodiment, the auxiliary processor <NUM> (e.g., an ISP or a CP) may be implemented as part of another component (e.g., the camera module <NUM> or the communication module <NUM>) functionally related to the auxiliary processor <NUM>.

According to an embodiment, the audio module <NUM> may obtain a sound through the input device <NUM> or output a sound through the sound output device <NUM> or an external electronic device (e.g., an electronic device <NUM> (e.g., a speaker or a headphone) directly or wirelessly connected with the electronic device <NUM>.

The sensor module <NUM> may detect an operational state (e.g., power or temperature) of the electronic device <NUM> or an environmental state (e.g. , a state of a user) external to the electronic device <NUM>, and then generate an electrical signal or data value corresponding to the detected state.

According to an embodiment, the connecting terminal <NUM> may include, for example, a HDMI connector, a USB connector, a SD card connector, or an audio connector (e.g. , a headphone connector).

According to an embodiment, the camera module <NUM> may include one or more lenses, image sensors, ISPs, or flashes.

The communication module <NUM> may support establishing a direct (e.g. , wired) communication channel or wireless communication channel between the electronic device <NUM> and an external electronic device (e.g., the electronic device <NUM>, the electronic device <NUM>, or the server <NUM>) and performing communication through the established communication channel. The communication module <NUM> may include one or more CPs that are operable independently from the processor <NUM> (e.g., the AP) and supports a direct (e.g., wired) communication or a wireless communication.

According to an embodiment, the antenna module may include one antenna including a radiator formed of a conductor or conductive pattern formed on a substrate (e.g., a printed circuit board (PCB)). In this case, at least one antenna appropriate for a communication scheme used in a communication network, such as the first network <NUM> or the second network <NUM>, may be selected from the plurality of antennas by, e.g., the communication module <NUM>. The signal or the power may then be transmitted or received between the communicat ion module <NUM> and the external electronic device via the selected at least one antenna. According to an embodiment, other parts (e.g., radio frequency integrated circuit (RFIC)) than the radiator may be further formed as part of the antenna module <NUM>.

The first and second external electronic devices <NUM> and <NUM> each may be a device of the same or a different type from the electronic device <NUM>.

<FIG> illustrates a method for operating an electronic device according to an embodiment. The operations of <FIG> are not limited in order, and other operation(s) may intervene between two adjacent operations. At least some of the operations of <FIG> may be omitted, and the description herein may apply likewise to all of the flowcharts. In the disclosure, when the electronic device <NUM> performs a specific operation, the processor <NUM> of the electronic device <NUM> may perform the specific operation, or the processor <NUM> may control other hardware to perform the specific operation. In the disclosure, when the electronic device <NUM> performs a specific operation, instructions stored in the memory <NUM> may be executed to enable the processor <NUM> or other hardware to perform the specific operation, and instructions that trigger the specific operation may be stored in the memory <NUM>.

Referring to <FIG>, according to various embodiments, an electronic device <NUM> may drive a position measurement module in step <NUM>. The position measurement module may detect a satellite signal from a satellite and output information indicating the position from the detected satellite signal. The position measurement module may be implemented as a GNSS communication module, and schemes of the GNSS communication module may include, but are not limited in type to, GPS, global navigation satellite system (GLONASS), GALILEO, Beidou, quasi-zenith satellite system (QZSS), and Indian regional navigation satellite system (IRNSS) schemes. The position measurement module may detect satellite signals individually from a plurality of satellites and identify the position information about the electronic device <NUM> based on the plurality of satellite signals. The position measurement module may transfer the position information to the processor <NUM> of the electronic device <NUM>. If a designated number (e.g., four) of satellite signals is not detected, the position measurement module may fail to identify the position information. The electronic device <NUM> may keep the position measurement module on or, depending on implementation, the electronic device <NUM> may drive the position measurement module periodically only during a designated period. Alternatively, if a designated condition is met, the electronic device <NUM> may keep the position measurement module running or drive the position measurement module for a designated period, such as based on meeting a condition for determining whether a workout starts. However, the driving of the position measurement module is not limited thereto.

According to various embodiments, in step <NUM>, the electronic device <NUM> may identify whether the position information about the electronic device <NUM> is identified. The processor <NUM> may identify whether position information is received from the position measurement module. As set forth above, the position measurement module may identify and output the position information about the electronic device <NUM> based on satellite signals. Upon failure in measuring position information, the position measurement module outputs no position information or may output information indicating the failure in measurement of position information. For example, the electronic device <NUM> may fail to measure position information if positioned indoors. Specifically, at least some of the plurality of satellite signals may not be detected by the position measurement module indoors, in which case the position measurement module may fail to measure position information.

According to various embodiments, if position information is identified to have failed in identification (no in step <NUM>), the electronic device <NUM> may identify that the workout environment is a pool environment in step <NUM>. As set forth above, detection of position information indoors has a high chance of failure. For example, if the user enters an indoor pool with the electronic device <NUM> on, the electronic device <NUM> may fail to identify position information. The electronic device <NUM> may identify that the workout environment is a pool environment in response to failure in detection of position information. If the workout environment is identified to be a pool environment, the electronic device <NUM> may identify and provide information corresponding to the pool environment in step <NUM>. The electronic device <NUM> may activate each sensor for measuring the type of at least one piece of data that needs to be identified corresponding to the pool environment. The electronic device <NUM> may keep sensors which have been already activated active and may deactivate other sensors than those that need to be activated corresponding to the pool environment.

According to various embodiments, the electronic device <NUM> may activate all of the sensors to obtain sensing data and may be configured to process and provide sensing data corresponding to the pool environment. The electronic device <NUM> may provide information (e.g., workout information) corresponding to the pool environment, via an output device of the electronic device <NUM> (e.g., a display, microphone, or haptic module), or may control the communication module <NUM> to provide the workout information to an external electronic device. The external electronic device (e.g., a contact lens-type electronic device, a swimming goggles-type electronic device, or an earset-type electronic device) may output at least part of the received workout information.

According to various embodiments, if the position information is identified to have been identified (yes in step <NUM>), the electronic device <NUM> may identify whether the position of the electronic device <NUM> corresponds to a recursive pattern in step <NUM>. When the user swims in a pool with the electronic device <NUM> on, the electronic device <NUM> may receive satellite signals and identify the position information. In this case, however, the electronic device <NUM> needs to provide information corresponding to the pool environment. The electronic device <NUM>, upon identifying the position information, may track the position information during a designated period set to a time required for an ordinary user to swim at least a predetermined number (e.g., two) of back-and-forth laps in the pool, and the designated period may be a default value or a value adjusted based on the user's prior record.

The recursive pattern may be a pattern indicating that the position information is varied only within a predetermined range or a pattern in which a proportion of a position within a predetermined range is a threshold proportion or more. The recursive pattern may be a pattern in which the distances between a reference point and positions are a threshold distance or less or in which a ratio of the number of distances exceeding the threshold distance to the total number of distances is a threshold ratio or less. The recursive pattern may be a pattern indicating that the progress direction periodically varies. Based on position information over time, the electronic device <NUM> may identify information about the progress direction and may identify whether the progress direction periodically varies.

As will be appreciated by one of ordinary skill in the art, any pattern in which position information moves within a predetermined range may be taken as the recursive pattern. Upon identifying that it corresponds to the recursive pattern (yes in step <NUM>), the electronic device <NUM> may identify that the workout environment is the pool environment. According to various embodiments, upon identifying the position information, the electronic device <NUM> may be configured to identify that the workout environment is the outdoor environment.

<FIG> illustrates position information in a pool environment and position information in an outdoor environment according to an embodiment.

For example, the electronic device <NUM> may identify a position information record <NUM> as shown in <FIG> during a designated period. Although it is illustrated that the position information record <NUM> is composed of indicators <NUM> to <NUM> indicating positions on the map, this is solely for ease of description, and the position information record <NUM> may be constituted with GPS coordinates during the designated period. The indicators <NUM> to <NUM> in the position information record <NUM> are visual representations of GPS coordinates identified during a preset period, and may be greater or fewer in number than those shown in <FIG>. The electronic device <NUM> may identify that the indicators <NUM> to <NUM> are included in a designated range 300a and, based thereupon, may identify that the position information corresponding to the indicators <NUM> to <NUM> is a recursive pattern. The length of each edge L1 and L2 of the designated range 300a may be designated corresponding to the size of a regular swimming pool, but designation is not limited to a specific manner.

Although <FIG> illustrates the indicators <NUM> to <NUM> ideally corresponding to the user's actual positions, some indicators may be off the designated range 300a due to measurement errors in the position measurement module. The electronic device <NUM> may identify that a ratio of the number of indicators included in the designated range 300a to the total number of all the indicators is greater than or equal to a threshold ratio and, based thereupon, the electronic device <NUM> may identify that the position information corresponds to the recursive pattern.

As another example, the electronic device <NUM> may identify a position information record <NUM> as shown in <FIG> during a designated period. The electronic device <NUM> may identify the moving direction of the electronic device <NUM> based on variations in position information. Based upon detecting that the moving direction changes to the opposite direction, the electronic device <NUM> may identify that the workout environment is the pool environment. The electronic device <NUM> may identify that the workout environment is the pool environment based on whether the changes in moving direction periodically arise or similarity between the times required for the moving direction to change.

Returning to the method of <FIG>, upon identifying that the position of the electronic device <NUM> does not correspond to the recursive pattern (no in step <NUM>), the electronic device <NUM> may identify that the workout environment is the outdoor environment in step <NUM>. In step <NUM>, the electronic device <NUM> may identify and provide information corresponding to the outdoor environment. The workout information that the electronic device <NUM> identifies and provides in the outdoor environment may at least partially differ from the workout information that the electronic device <NUM> identifies and provides in the pool environment. At least one sensor that the electronic device <NUM> has activated to sense data in the outdoor environment may at least partially differ from at least one sensor that the electronic device <NUM> has activated to sense data in the pool environment.

For example, the electronic device <NUM> may identify a position information record <NUM> as shown in <FIG> during a designated period. Although it is illustrated that the position information record <NUM> is composed of indicators <NUM> to <NUM> indicating positions on the map, this is solely for ease of description, and the position information record <NUM> may be constituted with GPS coordinates during the designated period. The electronic device <NUM> may identify that at least some of the indicators <NUM> to <NUM> are included within the designated range 300a, and the others are not included within the designated range 300a. Based on the identification that the others are not included within the designated range 300a, the electronic device <NUM> may identify that the position information about the electronic device <NUM> is not the recursive pattern. Based on identifying that the ratio of the number of indicators <NUM> to <NUM> not included within the designated range 300a to the number of all of the indicators <NUM> to <NUM> is greater than or equal to the threshold ratio, the electronic device <NUM> may identify that the position information about the electronic device <NUM> is not the recursive pattern. The electronic device <NUM> may also set an area 300b including all of the indicators <NUM> to <NUM> and, based on the lengths L3 and L4 of the edges of the area 300b being longer than the threshold edge lengths (e.g., L1 and L2), the electronic device <NUM> may identify that the position information about the electronic device <NUM> is not the recursive pattern. Based on failure in detecting that the moving direction changes to the opposite direction, the electronic device <NUM> may identify that the position information is not the recursive pattern.

<FIG> illustrates a process of identifying whether a pattern is a recursive pattern based on the distance between indicators according to an embodiment. The electronic device <NUM> may obtain position information over time using, e.g., the position measurement module. <FIG> illustrates indicators <NUM>, <NUM>, <NUM>, and <NUM> indicating the position information. The electronic device <NUM> may identify the distances X1, X2, and X3 between a reference point (e.g., the indicator <NUM>) and the indicators <NUM>, <NUM>, and <NUM> and, if at least a threshold distance is among the distances X1, X2, and X3, the electronic device <NUM> may identify that the workout environment is the outdoor environment. The reference point may be set to any one of the indicators <NUM>, <NUM>, <NUM>, and <NUM>. However, this is merely an example. For example, the reference point may be set to a mean of the positions of the indicators <NUM>, <NUM>, <NUM>, and <NUM>. Alternatively, the electronic device <NUM> may identify the workout environment based on whether the ratio of the number of distances greater than or equal to the threshold distance to the number of all of the distances X1, X2, and X3 is a threshold ratio.

As set forth above in the method of <FIG>, if the position information has been identified (yes in step <NUM>), the electronic device 101may identify the workout environment based on whether the position corresponds to the recursive pattern. Thus, a time may be required to identify the workout environment. Until before the workout environment is definitely confirmed, the electronic device <NUM> may sense all data corresponding to both the workout environments and provide and/or store all of the workout information corresponding to both the workout environments. The electronic device <NUM> may also sense data corresponding to any one of both the workout environments and provide and/or store workout information corresponding to the environment. The number of the workout environments is merely an example, and thus, is not limited to two.

According to various embodiments, the electronic device <NUM> may identify the workout environment further using additional information other than the position information from the position measurement module. For example, the electronic device <NUM> may identify the workout environment based on detection of a direction turn event by a motion sensor, the periodicity of the number of strokes between direction turn events, or the periodicity of time required between direction turn events. <FIG> illustrates a method for operating an electronic device according to an embodiment, and is described in greater detail with reference to <FIG> which illustrates a direction turn event according to an embodiment.

According to various embodiments, in <FIG>, the electronic device <NUM> may drive a sensor module <NUM> in step <NUM>. The sensor module <NUM>, described above, may output sensing data associated with the motion of the electronic device <NUM>. Upon identifying the start of a swim, the electronic device <NUM> may drive the sensor module <NUM>. However, the driving of the sensor module <NUM> is not limited to a specific time. At least part of the sensor module <NUM> may be previously activated regardless of whether the swim starts. In step <NUM>, the electronic device <NUM> may analyze sensing data from the sensor module <NUM>. In step <NUM>, the electronic device <NUM> may identify whether a progress direction turn event is detected as a result of analysis. The direction turn event may indicate that the sensing data corresponds to at least one of a value, feature, or waveform corresponding to the user's turn of the exercise direction.

For example, as shown in <FIG>, the user <NUM> may swim in a first direction <NUM>, with the electronic device <NUM> on. The electronic device <NUM> may display a screen <NUM> indicating by an icon that the user is swimming or may additionally display at least part of swimming information. According to various embodiments, the electronic device <NUM> may pop up an icon indicating that the user is swimming.

After reaching one end <NUM> of the pool, the user <NUM> may turn the direction of exercise to a second direction <NUM>. The electronic device <NUM> may detect an exercise direction turn event based on sensing data from the sensor module <NUM>. For example, the electronic device <NUM> may detect an angular change <NUM> in the yaw direction according to the direction turn. The angular change <NUM> in the yaw direction that is greater than or equal to a threshold angle is not detected during strokes according to various swimming styles and, when direction turns, a yaw-direction angular change <NUM> greater than or equal to the threshold angle may be detected. The electronic device <NUM> may detect a direction turn event based on detection of a yaw-direction angular change <NUM> greater than or equal to the threshold angle. The yaw direction is merely an example. The electronic device <NUM> may previously store the features of the yaw/roll/pitch directions when direction turns and, if the identified sensing data matches the stored features, the electronic device <NUM> may detect the direction turn event. The electronic device <NUM> may previously store at least one of the value, feature, and waveform of sensing data corresponding to a specific gesture when the user turns the direction and use the same for comparison.

According to various embodiments, the electronic device <NUM> may detect a direction turn event based on sensing data from the acceleration sensor, rather than the gyro sensor. For example, the electronic device <NUM> may detect a direction turn event if an acceleration in a second direction <NUM> is measured while an acceleration in a first direction <NUM> is measured. The user may commonly kick one end <NUM> of the pool when changing direction and, thus, a relatively large acceleration in the second direction <NUM> may be measured. The electronic device <NUM> may detect a direction turn event if at least a threshold magnitude of acceleration is measured. The electronic device <NUM> may store per-user sensing data obtained from the acceleration sensor when the direction turns and use the data for future comparison.

According to various embodiments, the electronic device <NUM> may identify the direction in which the electronic device <NUM> faces in the absolute coordinate system based on sensing data from the geomagnetic sensor. The electronic device <NUM> may be placed in different directions between when the user <NUM> swims in the first direction <NUM> and when the user <NUM> swims in the second direction <NUM>, and the electronic device <NUM> may detect a direction turn event based on a change in direction. According to various embodiments, the electronic device <NUM> may detect the direction turn event using at least one of the sensing data from the gyro sensor, the sensing data from the acceleration sensor, and the sensing data from the geomagnetic sensor.

Returning to the method of <FIG>, according to various embodiments, upon identifying that a direction turn event is detected (yes in step <NUM>), the electronic device <NUM> may identify that the workout environment is the pool environment in step <NUM>. Upon identifying that a direction turn event is not detected (no in step <NUM>), the electronic device <NUM> may identify that the workout environment is the outdoor environment in step <NUM>.

According to various embodiments, the electronic device <NUM> may identify the workout environment using whether the direction turn event occurs, alone, or in conjunction with the position information described above in connection with <FIG>. After detecting the workout environment using the position information, the electronic device <NUM> may use the direction turn event for identifying the lap time and the number of strokes per lap interval or updating distance, in which case the direction turn event may not be used during the course of identifying the workout environment.

<FIG> illustrates a method for operating an electronic device according to an embodiment. Among the operations of <FIG>, those already described above in connection with <FIG> are briefly described.

According to various embodiments, the electronic device <NUM> (e.g., the processor <NUM>) may drive a sensor module <NUM> in step <NUM>. The electronic device <NUM> may analyze sensing data from the sensor module <NUM> in step <NUM>. In step <NUM>, the electronic device <NUM> may identify whether progress direction turn events repeatedly occur based on the result of analysis. In the pool environment, the user may swim while repeatedly changing the swimming direction.

Upon identifying that progress direction turn events repeatedly occur (yes in step <NUM>), the electronic device <NUM> may identify that the workout environment is the pool environment in step <NUM>. In the outdoor environment, the user changes direction, but the number of repeated direction turns may be fewer than in the pool environment. Upon identifying that progress direction turn events do not repeatedly occur (no in step <NUM>), the electronic device <NUM> may identify that the workout environment is the outdoor environment in step <NUM>. For example, the electronic device <NUM> may identify that the workout environment is the outdoor environment if the number of repetitions of a progress direction turn event is less than or equal to a threshold number.

According to various embodiments, the electronic device <NUM> may also determine the workout environment based on whether the interval between progress direction turn events follows a predetermined period. The electronic device <NUM> may also identify that the workout environment is the pool environment if a similarity of the number of strokes occurring between direction turn events is equal to or greater than a designated threshold similarity and/or a similarity of the time difference between direction turn events is equal to or greater than a designated threshold similarity.

According to various embodiments, if progress direction turn events are repeatedly detected, the electronic device <NUM> may identify whether the workout environment is the pool environment or outdoor environment based on whether an additional condition is met. For example, a common swimming pool is a maximum <NUM> meters (m) in length, and it takes three minutes for an ordinary swimmer to swim the full length, or <NUM> strokes may be detected. This may indicate that when a time of at least three minutes is taken or at least <NUM> strokes are detected, the workout environment may be the outdoor environment. According to various embodiments, although repeated progress direction turn events are detected, if the time taken between when progress direction turn events are detected is at least the threshold time or the number of detected strokes is at least a threshold number, the electronic device <NUM> may identify that the workout environment is the outdoor environment.

<FIG> illustrates a screen displayed on an electronic device corresponding to a pool environment according to an embodiment.

In <FIG>, the electronic device <NUM> may provide full workout summary information <NUM>. The full workout summary information <NUM> may include the total workout time, the total workout distance, and time taken per reference unit (e.g., <NUM>) but is not limited to a specific type. In the pool environment, the electronic device <NUM> may identify the total workout distance based on the number of direction turn events. The electronic device <NUM> may identify the total workout distance by multiplying the number of direction turn events by the pre-identified length of the pool, or may detect one stroke based on sensing data from the motion sensor and/or pressure sensor. The electronic device <NUM> may previously identify the distance corresponding to one stroke based on the number of strokes detected between direction turn events, which may differ from user to user or may be a default value. The electronic device <NUM> may identify the workout distance based on information about the distance corresponding to one stroke and the number of strokes detected. The electronic device <NUM> may identify the workout distance using both the number of direction turn events and the result of detection of strokes.

According to various embodiments, the electronic device <NUM> may provide heartbeat information <NUM>. The electronic device <NUM> may display the per-hour heartbeat in the form of a graph, but heartbeat information may be displayed in any format without limitations. The electronic device <NUM> may include a heartbeat sensor (e.g., an illumination device and a light receiving device), such as a photoplethysmograph (PPG) sensor and may obtain heartbeat information based on sensing data. It will be easily appreciated by one of ordinary skill in the art that the heartbeat sensor is not limited to a specific type.

According to various embodiments, the electronic device <NUM> may provide workout strength information <NUM>. The electronic device <NUM> may divide the workout strength into, e.g., medium, high, and maximum, and may provide times required per workout strength in the form of a graph, but without limitation to a specific representation format. The electronic device <NUM> may identify the workout strength based on at least one of the measured heartbeat, number of strokes per unit time, and distance swum per unit time, but without limitations to a specific identification algorithm.

According to various embodiments, the electronic device <NUM> may provide interval record information <NUM>. As set forth above, the electronic device <NUM> may identify that the user has moved in one interval based on detection of a direction turn event. The electronic device <NUM> may classify and manage at least one of the number of strokes, time swum, swimming style, heartbeat, calorie consumption, and speed per interval. The electronic device <NUM> may display information about an interval designated by the user or the current interval. The electronic device <NUM> may provide a designated type of workout information or may also provide various types of workout information based on a change type command from the user or lapse of a designated time.

According to various embodiments, the electronic device <NUM> may provide per-interval records. For example, the electronic device <NUM> may identify information about a plurality of intervals and, based thereon, provide per-interval records.

The per-interval records may include the number of strokes, swimming style, or time swum (lap time) in each interval but are not limited to a specific type.

According to various embodiments, the electronic device <NUM> may provide workout time information <NUM> and/or total time information <NUM>. The electronic device <NUM> may classify, e.g., a time interval during which a stroke is detected, as a workout time and a time interval during which no stroke is detected as a break time. The electronic device <NUM> may provide a workout distance <NUM>.

According to various embodiments, the electronic device <NUM> may provide information <NUM> about calories consumed by the workout and/or information <NUM> about total consumed calories. The electronic device <NUM> may identify the calories consumed by the workout based on the heartbeat measured during the workout time. The electronic device <NUM> may identify the calories consumed by the workout based on the heartbeat measured during the break time. The electronic device <NUM> may identify the total calorie consumption based on the identified total calorie consumption. According to various embodiments, the electronic device <NUM> may identify the calorie consumption based on (or additionally using) other sensing data than the heartbeat, such as the number of strokes and/or stroke posture, but calculation of the calorie consumption is not limited to a specific scheme.

According to various embodiments, the electronic device <NUM> may provide total strokes information <NUM>. The electronic device <NUM> may identify an occurrence of a stroke based on sensing data from the pressure sensor and/or sensing data from the motion sensor.

According to various embodiments, the electronic device <NUM> may identify pool length information <NUM> based on the user's input or sensing data. For example, the electronic device <NUM> may identify that the moving distance between the times direction turn events have been detected is the pool length based on the result of measurement by the position measurement module. According to various embodiments, the electronic device <NUM> may identify the pool length based on the number of strokes between the times of detection of direction turn events. According to various embodiments, the electronic device <NUM> may identify the pool length based on position information about the current point. For example, the electronic device <NUM> may transmit information about the position of the electronic device <NUM> to an external electronic device, which may identify information about the building or facility corresponding to the position and return information about the pool length, which is at least part of the information, to the electronic device <NUM>.

According to various embodiments, the electronic device <NUM> may provide information <NUM> about the number of times of repetition of one interval of the pool, such as based on the number of times of detection of direction turn events.

According to various embodiments, the electronic device <NUM> may provide information <NUM> about an average swolf index and/or information <NUM> about the maximum swolf index. The swolf index may be the sum of the total time taken to swim a designated distance (e.g., <NUM>) and the number of strokes made in the designated distance.

According to various embodiments, the electronic device <NUM> may provide workout environment information <NUM>. The configuration for identifying the workout environment has been described above in detail, and no further description thereof is given below.

According to various embodiments, the electronic device <NUM> may provide at least one of average pace information <NUM> and/or maximum pace information <NUM>. The electronic device <NUM> has identified the distance swum and the time taken and, based on this information, the electronic device <NUM> may identify pace information.

According to various embodiments, the electronic device <NUM> may provide average heartbeat information <NUM> and/or maximum heartbeat information <NUM>.

According to various embodiments, the electronic device <NUM> may provide at least part of the information of <FIG>.

<FIG> illustrates a screen displayed on an electronic device corresponding to an outdoor environment according to an embodiment.

In <FIG>, according to various embodiments, the electronic device <NUM> may provide movement trajectory information, including the start point <NUM>, end point <NUM>, and movement trajectory <NUM> on a map. The electronic device <NUM> may generate movement trajectory information based on the position information about the electronic device <NUM> identified by the position measurement module. The electronic device <NUM> may receive map data from the external electronic device and may constitute the movement trajectory information using the received map data and position information. Upon receiving no map data, the electronic device <NUM> may display the start point <NUM>, end point <NUM>, and movement trajectory <NUM> on a grid constituted of designated GPS coordinates. The electronic device <NUM> may store the movement trajectory of GPS coordinates, and when map data is received, synthesize the movement trajectory with the map data and provide the movement trajectory information obtained by synthesizing the movement trajectory with the map data. According to various embodiments, the electronic device <NUM> may determine the validity of movement trajectory and may selectively provide the movement trajectory based on the result of determination. For example, if the validity is less than or equal to a threshold, the electronic device <NUM> may be configured not to provide the movement trajectory.

According to various embodiments, the electronic device <NUM> may provide the total workout summary information <NUM> about the total time. The full workout summary information <NUM> may include the total workout time, the total workout distance, and time taken per reference unit (e.g., <NUM>) but is not limited to a specific type.

According to various embodiments, the electronic device <NUM> may provide an icon <NUM> for providing the speed, an icon <NUM> for providing the heartbeat, and/or an icon <NUM> for providing the altitude (or elevation). The electronic device <NUM> may provide information (e.g., per-time speed information <NUM>) corresponding to a selected icon.

According to various embodiments, the electronic device <NUM> may provide information <NUM> indicating the current pace and the current time taken on the time bar. The information <NUM> indicating the pace may be identified and provided, e.g., per designated distance unit or per distance unit selected by the user. For example, if <NUM> is designated as the distance unit, the electronic device <NUM> may provide the average pace, stroke count, and consumed time information every <NUM>.

According to various embodiments, the electronic device <NUM> may provide workout time information <NUM> and/or total consumed time information <NUM>.

According to various embodiments, the electronic device <NUM> may provide information <NUM> about the distance swum, information <NUM> about calories consumed by the workout and/or information <NUM> about total consumed calories.

According to various embodiments, the electronic device <NUM> may provide workout environment information <NUM>.

According to various embodiments, the electronic device <NUM> may provide average speed information <NUM>, maximum speed information <NUM>, average pace information <NUM>, and/or maximum pace information <NUM>.

According to various embodiments, the electronic device <NUM> may provide altitude information (for example, lowest elevation <NUM>). The electronic device <NUM> may obtain the altitude information based on sensing data from the pressure sensor, or by using the altitude based on the GPS value. The electronic device <NUM> may modify the altitude information obtained based on the sensing data from the pressure sensor with the GPS value and provide the result, or vice versa.

According to various embodiments, the electronic device <NUM> may provide at least part of the information of <FIG>. Information provided in the outdoor environment may at least partially differ from the information provided in the pool environment of <FIG>. For example, in the outdoor environment of <FIG>, movement trajectory information indicating the user's total workout trajectory and, in the pool environment, the corresponding time (lap time) and stroke count while swimming along one edge of the swimming pool, such as interval record summary information, may be provided. The algorithms for identifying the workout information in the outdoor environment and pool environment may be implemented to be different from each other, and sensors activated in the outdoor environment and the pool environment may also be implemented to be different from each other.

<FIG> illustrates a method for operating an electronic device according to an embodiment. <FIG> illustrates a pressure change waveform over time according to an embodiment.

In <FIG>, according to various embodiments, the electronic device <NUM> (e.g., the processor <NUM>) may drive the pressure sensor in step <NUM>. In step <NUM>, the electronic device <NUM> may obtain a pressure change waveform over time. In step <NUM>, the electronic device <NUM> may identify whether the obtained pressure change waveform corresponds to a pre-stored reference. For example, the electronic device <NUM> may compare a feature obtained from the sensed pressure change waveform with a feature of the pre-stored reference, such as a graph of variations in pressure with respect to a reference pressure when the user moves his or her arms in and out of the water, with the electronic device <NUM> on his or her wrist. The reference pressure may be set to a pressure measured while the pressure change remains substantially zero.

Since a stroke is determined based on the variation in pressure with respect to the reference pressure, misrecognition due to an altitude change may be prevented. The pressure in the water may be higher than the atmospheric pressure. Thus, while the electronic device <NUM> is led into the water by a stroke, the pressure sensed by the pressure sensor may sharply increase (e.g., <NUM> hectopascals (hPa) to 6hPa). The pressure sensed while the electronic device <NUM> exits the water may drastically reduce.

<FIG> illustrates measured pressure values. The electronic device <NUM> may identify the sharp pressure increase <NUM> and the sharp pressure decrease <NUM>. The reference may include at least one of a value, feature, and waveform indicating the sharp pressure increase and pressure decrease. Returning to the method in <FIG>, the electronic device <NUM> may identify whether a swim workout starts based on the result of comparison between the measured data and the reference in step <NUM>. The swim workout may be identified to have started.

According to various embodiments, the electronic device <NUM> may identify whether a swim workout starts by keeping the pressure sensor which consumes relatively little power on (or periodically activating the pressure sensor). The electronic device <NUM> may be configured to keep the touchscreen panel (TSP) on (or periodically activate the TSP). The electronic device <NUM> may identify whether a swim starts based on a change in capacitance from the TSP. For example, if the TSP enters the water, the capacitance (e.g., mutual capacitance and/or self capacitance) of the TSP may instantaneously vary. If the TSP exits the water, the capacitance of the TSP may momentarily change as opposed to when the TSP enters the water. The electronic device <NUM> may identify whether there is a stroke based on a change in the capacitance over time of the TSP, and may thus identify whether a swim starts.

According to various embodiments, the electronic device <NUM> may identify whether a swim starts based on a change in the humidity value sensed by a humidity sensor or a change in the value sensed by a water sensor.

Although the sensing data from the pressure sensor and the sensing data from the TSP have been described to identify whether a swim commences, this is merely an example, and the sensing data from the pressure sensor and the sensing data from the TSP may also be available in the process of identifying the workout environment and/or workout information. It will be easily appreciated by one of ordinary skill in the art that data (e.g., sensing data from the motion sensor) for detecting a stroke is available in identifying whether a swim begins.

<FIG> illustrates a method for operating an electronic device according to an embodiment.

In <FIG>, according to various embodiments, the electronic device <NUM> (e.g., the processor <NUM>) may identify that the workout environment is the pool environment in step <NUM>. In step <NUM>, the electronic device <NUM> may drive at least one motion sensor, thereby obtaining sensing data indicating motion. In step <NUM>, the electronic device <NUM> may detect a stroke from the sensing data. The electronic device <NUM> may perform low pass filtering on the sensing data from the motion sensor, thereby obtaining noise-free sensing data. The electronic device <NUM> may generate a physical quantity variation feature based on the reference data and noise-free sensing data. The electronic device <NUM> may divide into stroke units based on the physical quantity feature and identify the number of strokes according to the result of division. The electronic device <NUM> may identify the swimming style based on the waveform feature of sensing data (e.g., at least one of the shape of waveform, distribution, peak-to-valley value, maximum value, and/or minimum value). Different determination references may apply to strokes, e.g., per swimming style.

In step <NUM>, the electronic device <NUM> may identify workout information based on the detected stroke. For example, the electronic device <NUM> may provide information about per-interval stroke counts according to the number of strokes between the times of occurrence of direction turn events. The above-described stroke detection scheme may also apply to the outdoor environment.

In <FIG>, according to various embodiments, the electronic device <NUM> (e.g., the processor <NUM>) may identify that the workout environment is the pool environment in step <NUM>. In step <NUM>, the electronic device <NUM> may obtain information about the size of the swimming pool. For example, the electronic device <NUM> may previously obtain the pool size information. The electronic device <NUM> may estimate the pool size information based on the stroke count and the swum distance corresponding to one stroke. The electronic device <NUM> may receive the pool size information from an external electronic device. In step <NUM>, the electronic device <NUM> may drive at least one motion sensor, thereby obtaining sensing data indicating motion. In step <NUM>, the electronic device <NUM> may detect a stroke from the sensing data.

According to various embodiments, the electronic device <NUM> may detect a progress direction turn event in step <NUM>. If a progress direction turn event is detected (yes in step <NUM>), the electronic device <NUM> may update the swum distance based on the pool size information in step <NUM>. For example, if the distance swum thus far is <NUM>, and the pool size is <NUM>, and a progress direction turn event is detected, then the electronic device <NUM> may update the total swum distance as <NUM>. The electronic device <NUM> may provide the total swum distance in such a manner as to update the swum distance with the size of the swimming pool or as to update the swum distance per stroke and, if a progress direction turn event occurs, modifies the swum distance.

Upon detecting a progress direction turn event, the electronic device <NUM> may restart the timer of per-interval consumed time (lap time). The electronic device <NUM> may set the timer to zero and, upon determining the start of a swim (e.g., when a stroke is detected or when an acceleration not less than a threshold acceleration in a specific direction is detected) may start the timer. The break time identified during the above-described course may be managed separately from the workout time. In step <NUM>, the electronic device <NUM> may determine whether the workout ends. If a swim is identified not to start within a threshold time after the timer is set to zero, the electronic device <NUM> may identify that the workout has been terminated.

According to various embodiments, the electronic device <NUM> (e.g., the processor <NUM>) may identify that the workout environment is the outdoor environment in step <NUM>. In step <NUM>, the electronic device <NUM> may drive the position measurement module. For example, the electronic device <NUM> may keep the position measurement module active after the position measurement module has been driven, or may maintain the active state of the position measurement module which has already been activated.

In step <NUM>, the electronic device <NUM> may track the position of the electronic device <NUM> based on satellite signals. If positioned in the water, the electronic device <NUM> may fail to obtain position information. This may indicate that the user may obtain position information only when the electronic device <NUM> is positioned out of the water when making a stroke. As acquisition of position information fails, tracking accuracy likely decreases as compared with tracking by continuous movements on the ground. According to various embodiments, the electronic device <NUM> may perform smoothing on the obtained position information and may identify the movement trajectory of the electronic device <NUM> based on the smoothed data. In step <NUM>, the electronic device <NUM> may provide movement trajectory information.

According to various embodiments, the electronic device <NUM> may identify the movement trajectory further considering the detected stroke. For example, although the user takes a break in place with the electronic device <NUM> on, the moving distance may be treated as continuing to increase due to errors in the position information. The electronic device <NUM> may prevent a moving distance error from occurring due to an error in the position information by refraining from updating the moving distance in the interval where no stroke is detected.

According to various embodiments, the electronic device <NUM> may set different resonance frequencies of the antenna for receiving satellite signals between when the electronic device <NUM> is in the water and when the electronic device <NUM> is out of the water. For example, unless the electronic device <NUM> is in the water, the antenna resonance frequency may be adjusted to a first frequency band designated by a first permittivity of the air via a resonance frequency adjustment circuit. When the electronic device <NUM> is in the water, the antenna resonance frequency may be adjusted to a second frequency band designated by a second permittivity of the water via the resonance frequency adjustment circuit. The resonance frequency adjustment circuit may include a switching element and at least one capacitor and/or at least one inductor available for adjusting the resonance frequency.

In <FIG>, according to various embodiments, the electronic device <NUM> (e.g., the processor <NUM>) may drive at least one of the motion sensor and pressure sensor in step <NUM>. In step <NUM>, the electronic device <NUM> may obtain sensing data from at least one of the motion sensor and pressure sensor. In step <NUM>, the electronic device <NUM> may identify whether the current state is in workout as a result of obtaining sensing data. Specifically, the electronic device <NUM> may identify whether a stroke occurs based on the result of analysis of data from the motion sensor and/or the result of analysis of data from the pressure sensor. Upon identifying that a stroke occurs, the electronic device <NUM> may identify that the current state is a workout. Upon identifying that no stroke occurs, the electronic device <NUM> may identify that the current state is not a workout, i.e., a break state.

According to various embodiments, upon identifying that the current state is a workout (yes in step <NUM>), the electronic device <NUM> may apply the consumed time of the current state to the workout time in step <NUM>. Upon identifying that the current state is not a workout (no in step <NUM>), the electronic device <NUM> may exclude the consumed time of the current state from the workout time in step <NUM>. In step <NUM>, the electronic device <NUM> may provide the total workout time which is the total consumed time less the break time.

In <FIG>, according to various embodiments, the electronic device <NUM> (e.g., the processor <NUM>) may obtain sensing data indicating motion by driving at least one motion sensor in step <NUM>. In step <NUM>, the electronic device <NUM> may detect a stroke from the sensing data. In step <NUM>, the electronic device <NUM> may identify whether the workout environment is the pool environment. If the workout environment is identified to be the pool environment (yes in step <NUM>), the electronic device <NUM> may calculate calorie consumption based on the stroke and calorie consumption algorithm corresponding to the pool environment in step <NUM>. If the workout environment is identified to be the outdoor environment (no in step <NUM>), the electronic device <NUM> may calculate calorie consumption based on the stroke and calorie consumption algorithm corresponding to the outdoor environment in step <NUM>. The per-stroke calorie consumption in the pool environment may be set to differ from the per-stroke calorie consumption in the outdoor environment. In step <NUM>, the electronic device <NUM> may provide information about the calculated calorie consumption.

Although it has been described in the above-described embodiment that the electronic device <NUM> stores different calorie consumption calculation algorithms per workout environment, this is merely an example, and various algorithms for producing workout information may be set to differ per workout environment. Alternatively, the electronic device <NUM> may yield workout information based on the same algorithm regardless of the workout environment. For example, the electronic device <NUM> may calculate the calorie consumption based on the heartbeat sensed by the heartbeat sensor, in which case the same algorithm may be used for workout environments.

<FIG> illustrates a method for operating an electronic device and an external electronic device according to an embodiment. <FIG> illustrates an electronic device and an external electronic device receiving data from the electronic device and outputting according to an embodiment. The steps of <FIG> that have already been described above will be briefly described.

In <FIG>, according to various embodiments, the electronic device <NUM> (e.g., the processor <NUM>) may form a communication session with an external electronic device <NUM> in step <NUM>, based on a short-range communication scheme or via a relay device. In step <NUM>, the electronic device <NUM> may detect the start of a workout. In step <NUM>, the electronic device <NUM> may identify the workout environment. In step <NUM>, the electronic device <NUM> may identify information corresponding to the workout environment. In step <NUM>, the electronic device <NUM> may transmit the identified information to the external electronic device <NUM>. The external electronic device <NUM> may output the received information in step <NUM>. For example, the external electronic device <NUM> may be implemented as swimming goggles as shown in <FIG> and may include a transparent display.

The electronic device <NUM> may display a screen <NUM> indicating that the user is swimming and may transmit workout information to the external electronic device <NUM>. The external electronic device <NUM> may display at least part <NUM> of the received workout information on the transparent display. Thus, the user may identify the workout information in real-time. The external electronic device <NUM> is not limited to a specific type, nor is the received workout information limited to a specific output format. For example, if the external electronic device <NUM> is implemented as an earphone, the workout information may be output in a voice. According to various embodiments, the electronic device <NUM> may identify type information about the external electronic device <NUM> and may identify the workout information to be transmitted based on the type information. For example, if the external electronic device <NUM> is identified to be a type of swimming goggles, the electronic device <NUM> may transmit text indicating pace information and lap time information among multiple pieces of workout information to the external electronic device <NUM>. For example, if the external electronic device <NUM> is identified to be a type of smartphone, the electronic device <NUM> may transmit the entire workout information. If the external electronic device <NUM> is identified to be a type of earphone, the electronic device <NUM> may transmit data resultant from converting at least part of the workout information into voice to the external electronic device <NUM>. As set forth above, the electronic device <NUM> may select the type of data to be transmitted and/or convert the data format depending on the type of the external electronic device <NUM>.

<FIG> illustrates a method for operating an electronic device and an external electronic device according to an embodiment.

In <FIG>, according to various embodiments, the electronic device <NUM> (e.g., the processor <NUM>) may form a communication session with an external electronic device <NUM> in step <NUM>. In step <NUM>, the electronic device <NUM> may detect the start of a workout. The electronic device <NUM> may start to identify the workout environment after detecting the start of workout. As described above, it may take time to definitely confirm the workout environment. In step <NUM>, the electronic device <NUM> may identify default information based on sensing data. For example, the electronic device <NUM> may provide pace, real-time per-interval consumed time (lap time) information, and total distance information, as the default information. The real-time per-interval consumed time may be provided in such a form as a timer and, thus, it may be provided even before the workout environment is definitely confirmed. In step <NUM>, the electronic device <NUM> may transmit the identified information to the external electronic device <NUM>. In step <NUM>, the external electronic device <NUM> may output the received information. According to various embodiments, the electronic device <NUM> may be configured to transmit any one type of information of information corresponding to the outdoor environment or information corresponding to the pool environment to the external electronic device <NUM>.

In step <NUM>, according to various embodiments, the electronic device <NUM> may identify information corresponding to the workout environment. After the workout environment is definitely confirmed, the electronic device <NUM> may identify the information corresponding to the confirmed workout environment. In step <NUM>, the electronic device <NUM> may transmit the identified information to the external electronic device <NUM>. In step <NUM>, the external electronic device <NUM> may output the identified information.

In <FIG>, according to various embodiments, the electronic device <NUM> (e.g., the processor <NUM>) may identify at least one of distance and calorie consumption information corresponding to the per-user stroke based on stored data in step <NUM>. The electronic device <NUM> may identify the total number of strokes and the total distance based on the prior workout information and, thus, the electronic device <NUM> may identify user-specified information about the per-stroke distance. The electronic device <NUM> may identify information specified per user for per-stroke calorie consumption based on the total distance and the total calorie consumption information.

According to various embodiments, the electronic device <NUM> may detect the start of a workout in step <NUM>. In step <NUM>, the electronic device <NUM> may identify a stroke. As described above, the electronic device <NUM> may identify the occurrence of a stroke based on sensing data from the motion sensor and/or pressure sensor. In step <NUM>, the electronic device <NUM> may provide workout information based on information corresponding to the user wearing the electronic device <NUM> and the identified stroke. For example, the electronic device <NUM> may update and provide the total moving distance in such a manner as to add per-stroke distances to the total moving distance information. In step <NUM>, the electronic device <NUM> may identify whether a user modification is entered. If a user modification is entered (yes in step <NUM>), the electronic device <NUM> may update the workout information in step <NUM>. The electronic device <NUM> may also update per-stroke distance or per-stroke calorie consumption information. If a user modification is not entered, the method ends.

According to an embodiment, an electronic device <NUM> may comprise a display (e.g., the display (e.g., the display device <NUM>) device <NUM>), a position measurement module (e.g., a GNSS module) configured to receive a satellite signal from a satellite and output position information about the electronic device <NUM>, at least one sensor (e.g., at least one sensor of the sensor module <NUM>) configured to sense at least one of a motion of the electronic device <NUM> or a posture of the electronic device <NUM>, at least one processor (e.g., the processor <NUM>) operatively connected with the display (e.g., the display device <NUM>), the position measurement module (e.g., a GNSS module), and the at least one sensor (e.g., at least one sensor of the sensor module <NUM>), and a memory (e.g., the memory <NUM>) operatively connected with the at least one processor (e.g., the processor <NUM>). The memory (e.g., the memory <NUM>) may store instructions executed to enable the at least one processor (e.g., the processor <NUM>) to identify a workout environment of a user of the electronic device <NUM> as a pool environment based on the position information about the electronic device <NUM> not being obtained by the position measurement module (e.g., a GNSS module) and control the display (e.g., the display device <NUM>) to display a first screen including at least part of information corresponding to the pool environment based on sensing data obtained via the at least one sensor (e.g., at least one sensor of the sensor module <NUM>). The memory (e.g., the memory <NUM>) may store instructions executed to enable the at least one processor (e.g., the processor <NUM>) to obtain the position information about the electronic device <NUM> by the position measurement module (e.g., a GNSS module), identify the workout environment as the pool environment based on the position information about the electronic device <NUM> corresponding to a recursive pattern and control the display (e.g., the display device <NUM>) to display the first screen, identify the workout environment as an outdoor environment based on the position information about the electronic device <NUM> not corresponding to the recursive pattern and control the display (e.g. , the display device <NUM>) to display a second screen including at least part of information corresponding to the outdoor environment based on the sensing data and the position information about the electronic device <NUM>.

According to an embodiment, the instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to identify whether the position information about the electronic device <NUM> corresponds to the recursive pattern based on whether a plurality of pieces of position information of the electronic device <NUM> obtained during a designated time meet a designated condition.

According to an embodiment, the instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to identify whether a progress direction turn event indicating a change in a progress direction of a user wearing the electronic device <NUM> is detected based on the sensing data obtained via the at least one sensor (e.g., at least one sensor of the sensor module <NUM>).

According to an embodiment, the instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to, as part of identifying whether the progress direction turn event is detected, detect the progress direction turn event based on at least one of detection of a rotation of the electronic device <NUM> to a designated direction based on the sensing data or detection of an acceleration greater than or equal to a threshold acceleration based on the sensing data.

According to an embodiment, the instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to identify the workout environment as the pool environment based on the detected progress direction turn event.

According to an embodiment, the instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to identify at least one of a time taken to swim along an interval of swimming pool corresponding to the pool environment or a total workout distance of the user based on the progress direction turn event and an additional progress direction turn event detected after the progress direction turn event. The information corresponding to the pool environment may include at least one of the time taken to swim along the interval of swimming pool or the total workout distance.

According to an embodiment, the instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to detect a plurality of strokes and a number of the plurality of strokes based on the sensing data obtained via the at least one sensor (e.g., at least one sensor of the sensor module <NUM>) between when the progress direction turn event occurs and when the additional progress direction turn event occurs. The information corresponding to the pool environment may include the number of the plurality of strokes in the interval of the swimming pool.

According to an embodiment, the instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to, as part of detecting the number of the plurality of strokes, filter the sensing data, divide the filtered sensing data per stroke unit, and detect the number of the plurality of strokes based on a result of the division.

According to an embodiment, the electronic device <NUM> may further comprise a pressure sensor configured to sense a pressure around the electronic device <NUM>. According to an embodiment, the instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to determine that the user starts a workout based on detecting a pressure change with a designated feature using the pressure sensor.

According to an embodiment, the electronic device <NUM> may further comprise a touchscreen panel configured to detect a touch on the display (e.g., the display device <NUM>). According to an embodiment, the instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to determine that the user starts a workout based on detecting a capacitance change with a designated feature using the touchscreen panel.

According to an embodiment, the instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to, while controlling the display (e.g. , the display device <NUM>) to display the second screen, control the display (e.g., the display device <NUM>) to the second screen including information about a trajectory along which the electronic device <NUM> moves.

According to an embodiment, the instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to perform smoothing on the position information about the electronic device <NUM> measured by the position measurement module (e.g., a GNSS module) and obtain the information about the trajectory along which the electronic device <NUM> moves based on the smoothed position information.

According to an embodiment, the electronic device <NUM> may further comprise a communication module (e.g., the communication module <NUM>) configured to communicate with an external electronic device (e.g., the external electronic device <NUM>). The instructions may be further configured to enable the at least one processor (e.g., the processor <NUM>) to control the communication module (e.g., the communication module <NUM>) to transmit at least part of the information corresponding to the pool environment or the information corresponding to the outdoor environment to the external electronic device (e.g., the external electronic device <NUM>).

According to an embodiment, a method of operating an electronic device <NUM> may comprise identifying a workout environment of a user of the electronic device <NUM> as a pool environment based on position information about the electronic device <NUM> not being obtained by a position measurement module (e.g., a GNSS module) of the electronic device <NUM> and providing, through a display (e.g., the display device <NUM>) of the electronic device <NUM>, at least part of information corresponding to the pool environment based on sensing data obtained via at least one sensor (e.g., at least one sensor of the sensor module <NUM>) of the electronic device <NUM>, obtaining the position information about the electronic device <NUM> by the position measurement module (e.g., a GNSS module), identifying the workout environment as the pool environment based on the position information about the electronic device <NUM> corresponding to a recursive pattern, and providing, through the display (e.g., the display device <NUM>), at least part of the information corresponding to the pool environment, and obtaining the position information about the electronic device <NUM> by the position measurement module (e.g., a GNSS module), identifying the workout environment as an outdoor environment based on the position information about the electronic device <NUM> not corresponding to the recursive pattern, and providing, through the display (e.g., the display device <NUM>), at least part of information corresponding to the outdoor environment based on the sensing data and the position information about the electronic device <NUM>.

According to an embodiment, the method may further comprise identifying whether the position information about the electronic device <NUM> corresponds to the recursive pattern based on whether a plurality of pieces of position information of the electronic device <NUM> obtained during a designated time meet a designated condition.

According to an embodiment, the method may further comprise identifying whether a progress direction turn event indicating a change in a progress direction of a user wearing the electronic device <NUM> is detected based on the sensing data obtained via the at least one sensor (e.g., at least one sensor of the sensor module <NUM>).

According to an embodiment, identifying whether the progress direction turn event is detected may include detecting the progress direction turn event based on at least one of detection of a rotation of the electronic device <NUM> to a designated direction based on the sensing data or detection of an acceleration greater than or equal to a threshold acceleration based on the sensing data.

According to an embodiment, the method may further comprise identifying the workout environment as the pool environment based on the detected progress direction turn event.

According to an embodiment, the method may further comprise identifying at least one of a time taken to swim along an interval of a swimming pool corresponding to the pool environment or a total workout distance of the user based on the progress direction turn event and an additional progress direction turn event detected after the progress direction turn event. The information corresponding to the pool environment may include at least one of the time taken to swim along the interval of swimming pool or the total workout distance.

According to an embodiment, the method may further comprise sensing a pressure around the electronic device <NUM> using a pressure sensor of the electronic device <NUM> and determining that the user starts a workout based on detecting a pressure change with a designated feature using the pressure sensor.

According to an embodiment, the method may further comprise transmitting at least part of the information corresponding to the pool environment or the information corresponding to the outdoor environment to an external electronic device.

Various embodiments as set forth herein may be implemented as software (e.g., the program) including one or more instructions that are stored in a storage medium (e.g., internal memory or external memory) that is readable by a machine (e.g., a master device or a device performing tasks). For example, a processor of the machine (e.g., a master device or a device performing tasks) may invoke at least one of the one or more instructions stored in the storage medium, and execute it, with or without using one or more other components under the control of the processor.

Alternatively or additionally, a plural ity of components (e.g. , modules or programs) may be integrated into a single component. In such a case, according to various embodiments, the integrated component may still perform one or more functions of each of the plural ity of components in the same or similar manner as they are performed by a corresponding one of the plurality of components before the integration.

Claim 1:
An electronic device (<NUM>), comprising:
a display (<NUM>);
a position measurement module configured to receive a satellite signal from a satellite and output position information about the electronic device;
at least one sensor configured to sense at least one of a motion of the electronic device and a posture of the electronic device;
at least one processor (<NUM>) operatively connected with the display (<NUM>), the position measurement module, and the at least one sensor; and
a memory (<NUM>) operatively connected with the at least one processor (<NUM>), wherein the memory (<NUM>) stores instructions configured to, when executed, enable the at least one processor (<NUM>) to:
based on the position information about the electronic device (<NUM>) not being obtained by the position measurement module, identify, a workout environment of a user of the electronic device (<NUM>) as a pool environment, and control the display (<NUM>) to display a first screen including at least part of information corresponding to the pool environment based on sensing data obtained via the at least one sensor, obtain the position information about the electronic device (<NUM>) by the position measurement module, based on the obtained position information about the electronic device (<NUM>) corresponding to a recursive pattern, identify the workout environment as the pool environment, and control the display (<NUM>) to display the first screen, based on the obtained position information about the electronic device (<NUM>) not corresponding to the recursive pattern, identify the workout environment as an outdoor environment, and control the display (<NUM>) to display a second screen including at least part of information corresponding to the outdoor environment based on the sensing data and the obtained position information about the electronic device. (<NUM>)