Electronic device, method, and non-transitory computer-readable storage medium for identifying external light source

By employing a light sensor to identify light sources and adjust operation modes, the device addresses inaccuracies in indoor/outdoor location detection, enhancing accuracy and reducing power consumption.

WO2026038677A1PCT designated stage Publication Date: 2026-02-19SAMSUNG ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2025/008638
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-09-13
Filing Date
2025-06-20
Publication Date
2026-02-19

AI Technical Summary

Technical Problem

Existing electronic devices struggle to accurately determine their location indoors or outdoors using GPS and WLAN signals, leading to potential inaccuracies and increased power consumption.

Method used

Utilizing a light sensor to identify the type of light source, such as the sun, incandescent, or fluorescent lamps, by analyzing wavelength ranges and flickering information, enabling the device to set appropriate operation modes based on indoor or outdoor environments.

Benefits of technology

Enhances location determination accuracy and reduces power consumption by allowing the device to adapt its operation mode based on the identified light source, improving user experience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2025008638_19022026_PF_FP_ABST
    Figure KR2025008638_19022026_PF_FP_ABST
Patent Text Reader

Abstract

A method performed by an electronic device, according to one embodiment, comprises the operations of: acquiring first illuminance data on the basis of a first detection period by using an illuminance sensor for detecting the intensity of light in a plurality of wavelength ranges of the electronic device; acquiring second illuminance data on the basis of a second detection period longer than the first detection period by using the illuminance sensor; obtaining flickering information for each of the plurality of wavelength ranges on the basis of the first illuminance data; obtaining intensity ratio information between the plurality of wavelength ranges on the basis of the second illuminance data; and identifying the type of a light source related to an area in which the electronic device is located on the basis of the flickering information and the intensity ratio information.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic device, method, and non-transitory computer-readable storage medium for identifying an external light source

[0001] The following descriptions relate to electronic devices, methods, and non-transitory computer-readable storage media for identifying external light sources.

[0002] An electronic device may include a light sensor for identifying the illuminance of an external environment of the electronic device. The light sensor may be configured to identify the intensity of light and identify the illuminance based on the intensity of light.

[0003] The above information may be provided as background art to aid in understanding the present disclosure. No claim or determination is made as to whether any of the above-described matters constitute prior art related to the present disclosure.

[0004] According to one embodiment, an electronic device may include an illuminance sensor for detecting an intensity of light in a plurality of wavelength ranges, a memory storing instructions and including one or more storage media, and at least one processor including a processing circuit. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to obtain first illuminance data based on a first detection period, obtain second illuminance data based on a second detection period longer than the first detection period, obtain flickering information for each of the plurality of wavelength ranges based on the first illuminance data, obtain intensity ratio information between the plurality of wavelength ranges based on the second illuminance data, and identify a type of light source with respect to an area in which the electronic device is located based on the flickering information and the intensity ratio information.

[0005] According to one embodiment, a method performed by an electronic device may include: using an illuminance sensor for detecting light intensities of a plurality of wavelength ranges of the electronic device, obtaining first illuminance data based on a first detection period; using the illuminance sensor, obtaining second illuminance data based on a second detection period longer than the first detection period; obtaining flickering information for each of the plurality of wavelength ranges based on the first illuminance data; obtaining intensity ratio information between the plurality of wavelength ranges based on the second illuminance data; and identifying a type of light source with respect to an area in which the electronic device is located based on the flickering information and the intensity ratio information.

[0006] According to one embodiment, a non-transitory computer-readable storage medium may store one or more programs. The one or more programs may include instructions that, when executed by at least one processor of an electronic device having an illuminance sensor for detecting light intensity of a plurality of wavelength ranges, cause the electronic device to obtain first illuminance data based on a first detection period, obtain second illuminance data based on a second detection period longer than the first detection period, obtain flickering information for each of the plurality of wavelength ranges based on the first illuminance data, obtain intensity ratio information between the plurality of wavelength ranges based on the second illuminance data, and identify a type of light source with respect to an area in which the electronic device is located based on the flickering information and the intensity ratio information.

[0007] FIG. 1 is a block diagram of an electronic device within a network environment according to one embodiment.

[0008] Figure 2 illustrates an example of an electronic device including a light sensor.

[0009] FIG. 3A is a simplified block diagram of an electronic device according to one embodiment.

[0010] FIG. 3b illustrates functional blocks included in a processor according to one embodiment.

[0011] Figure 4 illustrates a flowchart of the operation of an electronic device for identifying the type of light source.

[0012] Figures 5a and 5b illustrate flicker ratios according to light sources, according to one embodiment.

[0013] Figures 6a and 6b illustrate flicker ratios over wavelength range, according to one embodiment.

[0014] Figures 7a, 7b, 7c and 7d illustrate the intensity of light over a wavelength range according to one embodiment.

[0015] Figure 8 illustrates the intensity of light transmitted through a glass window according to one embodiment.

[0016] FIGS. 9A and 9B illustrate examples of inputs and outputs of a light source prediction model, according to one embodiment.

[0017] FIG. 10 illustrates an example of operation of an electronic device indoors or outdoors, according to one embodiment.

[0018] FIG. 11 illustrates an example of operation of an electronic device indoors or outdoors, according to one embodiment.

[0019] FIG. 12 illustrates an example of an operation of an electronic device performed based on a type of light source, according to one embodiment.

[0020] FIGS. 13A and 13B illustrate examples of a user interface for setting the operation of an electronic device, according to one embodiment.

[0021] FIG. 14A illustrates an example of an electronic device including a plurality of light sensors, according to one embodiment.

[0022] FIG. 14b is a flowchart illustrating the operation of an electronic device including a plurality of light sensors according to one embodiment.

[0023] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings so that those skilled in the art can easily implement the present disclosure. However, the present disclosure may be implemented in various different forms and is not limited to the embodiments described herein. In connection with the description of the drawings, the same or similar reference numerals may be used for identical or similar components. Furthermore, in the drawings and related descriptions, descriptions of well-known functions and configurations may be omitted for clarity and conciseness.

[0024] FIG. 1 is a block diagram of an electronic device within a network environment according to one embodiment.

[0025] Referring to FIG. 1, in a network environment (100), an electronic device (101) may communicate with an electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of an electronic device (104) or a server (108) via a second network (199) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include a processor (120), a memory (130), an input module (150), an audio output module (155), a display module (160), an audio module (170), a sensor module (176), an interface (177), a connection terminal (178), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the connection terminal (178)), or may have one or more other components added. In some embodiments, some of these components (e.g., the sensor module (176), the camera module (180), or the antenna module (197)) may be integrated into one component (e.g., the display module (160)).

[0026] The processor (120) may control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) by executing, for example, software (e.g., a program (140)), and may perform various data processing or calculations. According to one embodiment, as at least a part of the data processing or calculation, the processor (120) may store a command or data received from another component (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the command or data stored in the volatile memory (132), and store the resulting data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or a secondary processor (123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together therewith. For example, if the electronic device (101) includes a main processor (121) and a secondary processor (123), the secondary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a specified function. The secondary processor (123) may be implemented separately from the main processor (121) or as a part thereof.

[0027] The auxiliary processor (123) may control at least a part of functions or states associated with at least one component (e.g., a display module (160), a sensor module (176), or a communication module (190)) of the electronic device (101), for example, on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. In one embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (180) or a communication module (190)). In one embodiment, the auxiliary processor (123) (e.g., a neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. The artificial intelligence models may be generated through machine learning. This learning can be performed, for example, on the electronic device (101) itself where the artificial intelligence model is executed, or can be performed through a separate server (e.g., server (108)). The learning algorithm can include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model can include multiple artificial neural network layers.The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to, or alternatively to, a hardware structure, an artificial intelligence model may include a software structure.

[0028] The memory (130) can store various data used by at least one component (e.g., processor (120) or sensor module (176)) of the electronic device (101). The data can include, for example, software (e.g., program (140)) and input data or output data for commands related thereto. The memory (130) can include volatile memory (132) or non-volatile memory (134).

[0029] The program (140) may be stored as software in the memory (130) and may include, for example, an operating system (142), middleware (144), or an application (146).

[0030] The input module (150) can receive commands or data to be used in a component of the electronic device (101) (e.g., a processor (120)) from an external source (e.g., a user) of the electronic device (101). The input module (150) can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).

[0031] The audio output module (155) can output audio signals to the outside of the electronic device (101). The audio output module (155) can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. According to one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.

[0032] The display module (160) can visually provide information to an external party (e.g., a user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of a force generated by the touch.

[0033] The audio module (170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150), output sound through the sound output module (155), or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphone) directly or wirelessly connected to the electronic device (101).

[0034] The sensor module (176) can detect the operating status (e.g., power or temperature) of the electronic device (101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to one embodiment, the sensor module (176) can include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0035] The interface (177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (101) with an external electronic device (e.g., the electronic device (102)). In one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

[0036] The connection terminal (178) may include a connector through which the electronic device (101) may be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0037] A haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

[0038] The camera module (180) can capture still images and videos. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.

[0039] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

[0040] A battery (189) may power at least one component of the electronic device (101). In one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0041] The communication module (190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may operate independently from the processor (120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module (194) (e.g., a local area network (LAN) communication module, or a power line communication module). Among these communication modules, the corresponding communication module can communicate with an external electronic device (104) via a first network (198) (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network (199) (e.g., a long-range communication network such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules can be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can verify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) by using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (196).

[0042] The wireless communication module (192) can support 5G networks and next-generation communication technologies following the 4G network, such as NR access technology (new radio access technology). The NR access technology can support high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and connection of multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module (192) can support, for example, a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate. The wireless communication module (192) can support various technologies for securing performance in a high-frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), an external electronic device (e.g., the electronic device (104)), or a network system (e.g., the second network (199)). According to one embodiment, the wireless communication module (192) may support a peak data rate (e.g., 20 Gbps or more) for eMBB realization, a loss coverage (e.g., 164 dB or less) for mMTC realization, or a U-plane latency (e.g., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for URLLC realization.

[0043] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). According to one embodiment, the antenna module (197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). According to one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as the first network (198) or the second network (199), may be selected from the plurality of antennas, for example, by the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device through the selected at least one antenna. According to some embodiments, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (197).

[0044] According to various embodiments, the antenna module (197) may form a mmWave antenna module. According to one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent a first side (e.g., a bottom side) of the printed circuit board and capable of supporting a designated high-frequency band (e.g., a mmWave band), and a plurality of antennas (e.g., an array antenna) disposed on or adjacent a second side (e.g., a top side or a side side) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.

[0045] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).

[0046] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) via a server (108) connected to a second network (199). Each of the external electronic devices (102 or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations executed in the electronic device (101) may be executed in one or more of the external electronic devices (102, 104, or 108). For example, when the electronic device (101) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (101) may, instead of or in addition to executing the function or service by itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may process the result as is or additionally and provide it as at least a portion of a response to the request. For this purpose, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device (101) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example. In another embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server utilizing machine learning and / or a neural network. According to one embodiment, the external electronic device (104) or the server (108) may be included in the second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

[0047] According to one embodiment, an electronic device may identify a location of the electronic device based on at least one signal identified in the electronic device using a communication circuit. For example, the electronic device may identify the location of the electronic device based on a global positioning system (GPS) signal and / or a wireless local area network (WLAN) signal (or a Bluetooth signal). For example, the electronic device may identify that the electronic device is located indoors based on identifying that the strength of a GPS signal is less than a first reference strength and the strength of a WLAN signal is greater than a second reference strength. For example, the electronic device may identify that the electronic device is located outdoors based on identifying that the strength of a GPS signal is greater than a first reference strength and the strength of a WLAN signal is less than a second reference strength.

[0048] However, even when an electronic device is located indoors, the strength of the GPS signal may exceed the first reference strength if the walls or ceiling of the room are made of materials (or thicknesses) that easily transmit GPS signals (e.g., wood, glass). Therefore, the electronic device may not be able to accurately identify whether the electronic device is located indoors based on GPS signals and wireless LAN signals. Furthermore, power consumption may increase due to the identification of GPS signals.

[0049] According to one embodiment, the electronic device (200) can use a light sensor to identify whether the electronic device is located indoors (or outdoors). For example, the electronic device can use the light sensor to identify the type of light source, and based on the type of light source, can identify whether the electronic device is located indoors (or outdoors). For example, the electronic device (e.g., electronic device (101)) can set different operation modes of the electronic device depending on the location of the electronic device. For example, the electronic device can set the operation mode of the electronic device to an indoor operation mode based on identifying that the electronic device is located indoors. The electronic device can set the operation mode of the electronic device to an outdoor operation mode based on identifying that the electronic device is located outdoors.

[0050] In the following specification, technical features for identifying the type of light source using a light sensor and setting the operating mode of an electronic device according to the type of light source will be described.

[0051] Figure 2 illustrates an example of an electronic device including a light sensor.

[0052] Referring to FIG. 2, the electronic device (200) may include a light sensor (220) and a display (250). Unlike the electronic device (200) illustrated in FIG. 2, the electronic device (200) may be configured in a different form factor. For example, the electronic device (200) may be configured to be wearable on a part of the user's body (e.g., wrist, head, finger, neck, ankle, ear). For example, the electronic device (200) may be configured to be foldable.

[0053] According to one embodiment, the display (250) may include a display area (281). The light sensor (220) may be positioned below a sensing area (282) in the display area (281) of the display (250). For example, the display (250) may include a display panel (not shown) having a front side including the display area (281) and a back side opposite to the front side. The light sensor (220) may be positioned below the display panel (not shown) facing the back side of the display panel (not shown).

[0054] According to one embodiment, the electronic device (200) can identify light emitted by a light source (290) using a light sensor (220). For example, the electronic device (200) can identify the illuminance (or illuminance level) outside the electronic device (200) based on identifying the intensity (or amount) of light entering the light sensor (220).

[0055] According to one embodiment, the light source (290) may include various types of light sources. For example, a first type (291) of light source may correspond to the sun. A second type (292) of light source may correspond to an incandescent lamp. A third type (293) of light source may correspond to a fluorescent lamp. The light sources of the first type (291) to the third type (293) are exemplary and are not limited thereto.

[0056] The electronic device (200) can identify the type of the light source (290) using the light sensor (220). The electronic device (200) can identify the type of the light source (290) based on the wavelength range of the light identified using the light sensor (220) and / or flickering information of the light source (290).

[0057] For example, the wavelength range of the emitted light may vary depending on the type of the light source (290). Since the wavelength range of the emitted light varies depending on the type of the light source (290), the electronic device (200) can identify the type of the light source (290) based on the wavelength range of the light identified using the light sensor (220). As an example, the electronic device (200) can identify the type of the light source (290) based on identifying the dominant wavelength range of the identified light.

[0058] For example, flickering information may vary depending on the type of light source (290). The flickering information may indicate the degree to which the intensity of light emitted from the light source (290) periodically changes. For example, flickering may occur when the light source (290) is driven by an AC power source. Since the flickering information varies depending on the type of the light source (290), the electronic device (200) may identify the type of the light source (290) based on the flickering information.

[0059] According to one embodiment, the electronic device (200) can identify the type of the light source (290) using a light source prediction model. For example, the light source prediction model can be configured based on artificial intelligence. For example, the light source prediction model can be configured based on at least one artificial intelligence model. For example, the electronic device (200) can input the wavelength range of light identified using the light sensor (220) and / or flickering information of the light source (290) into the light source prediction model. The electronic device (200) can identify the type of the light source (290) based on the output of the light source prediction model.

[0060] According to one embodiment, the electronic device (200) may set the operating mode of the electronic device (200) based on the wavelength range of light identified using the light sensor (220) and / or flickering information of the light source (290). For example, the electronic device (200) may set (or change) the operating mode of the electronic device (200) to an indoor operating mode based on identifying that the electronic device (200) is located indoors. For example, the electronic device (200) may set (or change) the operating mode of the electronic device (200) to an outdoor operating mode based on identifying that the electronic device (200) is located outdoors.

[0061] For example, the operation of the electronic device (200) in the indoor operation mode and / or the outdoor operation mode may be set (or changed) by the user. For example, in the indoor operation mode, a notification provided by the electronic device (200) may be provided through vibration. In the outdoor operation mode, a notification provided by the electronic device (200) may be provided through sound. For example, in the indoor operation mode, the brightness value of the display (250) of the electronic device (200) may be set to a first brightness value. In the outdoor operation mode, the brightness value of the display (250) of the electronic device (200) may be set to a second brightness value that is greater than the first brightness value.

[0062] FIG. 3A is a simplified block diagram of an electronic device according to one embodiment.

[0063] Referring to FIG. 3A, the electronic device (200) may correspond to the electronic device (101) of FIG. 1. The electronic device (200) may include at least some or all of the components of the electronic device (101) of FIG. 1.

[0064] According to one embodiment, the electronic device (200) may include a processor (210), a light sensor (220), a memory (230), a communication circuit (240), a display (250), a speaker (260), and / or an actuator (270). According to an embodiment, the electronic device (200) may include at least one of the processor (210), the light sensor (220), the memory (230), the communication circuit (240), the display (250), the speaker (260), and the actuator (270). For example, at least some of the processor (210), the light sensor (220), the memory (230), the communication circuit (240), the display (250), the speaker (260), and the actuator (270) may be omitted depending on the embodiment.

[0065] According to one embodiment, the processor (210) may correspond to the processor (120) of FIG. 1. The processor (210) may be operatively or operably coupled with or connected with a light sensor (220), a memory (230), a communication circuit (240), a display (250), a speaker (260), and / or an actuator (270). For example, operatively coupling the processor (210) with another component may mean that the processor (210) can control the other component. For example, the processor (210) may control the light sensor (220), the memory (230), the communication circuit (240), the display (250), the speaker (260), and / or the actuator (270). For example, the processor (210) may control a detection cycle of the light sensor (220). The processor (210) can increase or decrease the detection cycle of the light sensor (220). The processor (210) can process light data obtained from the light sensor (220).

[0066] According to one embodiment, the processor (210) may be composed of at least one processor. The processor (210) may include at least one processor. According to one embodiment, the processor (210) may include a hardware component for processing data based on one or more instructions. The hardware component for processing data may include, for example, an arithmetic and logic unit (ALU), a field programmable gate array (FPGA), and / or a central processing unit (CPU).

[0067] For example, the processor (210) may include an NPU and / or a GPU for operating an artificial intelligence model (e.g., LLM, generative AI model). The processor (210) may include an MCU (micro controller unit) for processing illumination data acquired through an illumination sensor (220).

[0068] According to one embodiment, the electronic device (200) may include a light sensor (220). For example, the light sensor (220) may include at least a portion of the sensor module (176) of FIG. 1. For example, the light sensor (220) may be used to obtain a light level (or data representing a light level) around the electronic device (200). However, the present invention is not limited thereto.

[0069] For example, the light sensor (220) may include a light receiving circuit. The light receiving circuit may include a photodiode whose electrical characteristics change depending on the amount of light received. The light sensor (220) may obtain sensing data regarding the amount of light using an analog-to-digital converter (ADC).

[0070] For example, the light sensor (220) may operate based on a detection cycle (or exposure time, integration time). The light sensor (220) may obtain light data indicating the amount of light obtained during the detection cycle.

[0071] For example, if the waveform of the light corresponds to a direct current waveform, the sensing data acquired from the light sensor (220) may be the same at all times when the light is emitted. For example, if the waveform of the light corresponds to an alternating current waveform, the sensing data acquired from the light sensor (220) may be different at each time when the light is acquired. If the waveform of the light corresponds to an alternating current waveform, the processor (210) may identify the waveform of the light using the light sensor (220).

[0072] For example, the light sensor (220) may include a plurality of channels. Each of the plurality of channels may be configured to identify the intensity of light in a plurality of wavelength ranges. For example, the light sensor (220) may include two channels. The light sensor (220) may identify the intensity of light in a first wavelength range (e.g., the wavelength range of visible light) through a first channel. The light sensor (220) may identify the intensity of light in a second wavelength range (e.g., the wavelength range of infrared light) through a second channel. For example, the light sensor (220) may include three channels. The light sensor (220) may identify the intensity of light in a first wavelength range (e.g., the wavelength range of red light) through the first channel. The light sensor (220) may identify the intensity of light in a second wavelength range (e.g., the wavelength range of blue light) through the second channel. The light sensor (220) can identify the intensity of light in a third wavelength range (e.g., a green wavelength range) through a third channel.

[0073] For example, the processor (210) can obtain information on intensity ratios between multiple wavelength ranges. The processor (210) can obtain information on intensity ratios between multiple wavelength ranges based on illuminance data obtained through multiple channels of the illuminance sensor (220).

[0074] For example, the light sensor (220) may include three channels. The processor (210) may identify a first ratio of a first intensity of light in a first wavelength range and a second intensity of light in a second wavelength range. The processor (210) may identify a second ratio of a second intensity of light in a second wavelength range and a third intensity of light in a third wavelength range. The processor (210) may identify a third intensity of light in a third wavelength range and a third ratio of the first intensity of light in the first wavelength range. The processor (210) may obtain intensity ratio information between a plurality of wavelength ranges including the first ratio, the second ratio, and the third ratio. The processor (210) may identify a dominant wavelength range of the identified light based on the intensity ratio information between the plurality of wavelength ranges. In the above example, an example in which the light sensor (220) includes three channels has been described, but this is for convenience of explanation and is not limited thereto.

[0075] According to one embodiment, the electronic device (200) may include a memory (230). The memory (230) may be used to store information or data. For example, the memory (230) may be used to store data obtained from a user. For example, the memory (230) may correspond to the memory (130) of FIG. 1. For example, the memory (230) may be a volatile memory unit or units. For example, the memory (230) may be a non-volatile memory unit or units. For example, the memory (230) may be another form of computer-readable media, such as a magnetic or optical disk. For example, the memory (230) may store data obtained based on operations performed by the processor (210) (e.g., algorithm execution operations). For example, the memory (230) may store illumination data obtained from the illumination sensor (220).

[0076] For example, the memory (230) may include an artificial intelligence model (e.g., a generative AI model, a large multimodal model (LMM), a large language model (LLM)) as a program.

[0077] According to one embodiment, the electronic device (200) may include a communication circuit (240). For example, the communication circuit (240) may correspond to at least a portion of the communication module (190) of FIG. 1.

[0078] For example, the communication circuit (240) can be used for various radio access technologies (RATs). For example, the communication circuit (240) can be used to perform Bluetooth communication, Bluetooth low energy (BLE) communication, wireless local area network (WLAN) communication, or ultra wideband (UWB) communication. For example, the communication circuit (240) can be used to perform cellular communication.

[0079] For example, the processor (210) may identify (or measure) the location of the electronic device (200) based on a wireless signal (e.g., a global positioning system (GPS) signal, a global navigation satellite system (GNSS) signal) received or transmitted by using the communication circuit (240). For example, the electronic device (200) may include a circuit (or module) for at least one of the global positioning system (GPS), the global navigation satellite system (GNSS), the global navigation satellite system (GLONASS), the Beidou Navigation Satellite System (hereinafter, "Beidou"), the quasi-zenith satellite system (QZSS), the Indian reginal satellite system (IRNSS), and / or the European global satellite-based navigation system (Galileo), depending on the usage area or bandwidth. According to an embodiment, the communication circuit (240) may be configured to be integrated with the processor (210).

[0080] According to one embodiment, the electronic device (200) may include a display (250). The display (250) of the electronic device (200) may output visualized information (e.g., a screen, an image, a video) to a user. For example, the display (250) may be controlled by a controller, such as a graphic processing unit (GPU), to output visualized information to the user. The display (250) may include a liquid crystal display (LCD), a plasma display panel (PDP), and / or one or more light emitting diodes (LEDs). The LEDs may include organic LEDs (OLEDs). The display (250) may include a flat panel display (FPD) and / or electronic paper. The embodiment is not limited thereto, and the display (250) may have an at least partially curved shape or a deformable shape. A display (250) having a deformable shape may be referred to as a flexible display.

[0081] According to one embodiment, the electronic device (200) may include a speaker (260). For example, the speaker (260) may be used to output (or provide) sound. The processor (210) may output an audio signal through the speaker (260). For example, the speaker (260) may correspond to the audio output module (155) of FIG. 1.

[0082] According to one embodiment, the electronic device (200) may include an actuator (270). The actuator (270) may include a motor for providing vibration. The actuator (270) may be used to convert an electrical signal into vibration. Vibration may refer to a mechanical stimulus that a user can perceive through tactile or kinesthetic senses. The actuator (270) is not limited to a device that simply generates vibration, but may refer to a device that can transmit a mechanical stimulus through a medium. Based on the vibration of the actuator (270), vibration may be provided to the outside of the electronic device (200). For example, the actuator (270) may include a linear resonance actuator.

[0083] FIG. 3b illustrates functional blocks included in a processor according to one embodiment.

[0084] Referring to FIG. 3b, the processor (210) may include a light sensor controller (211), a light data processor (212), an intensity ratio information generator (213), a flickering information generator (214), a light source predictor (215), a light source type outputter (216), and / or a light source prediction model learner (217).

[0085] For example, the light sensor controller (211) may be configured to control the light sensor (220). The light sensor controller (211) may be configured to set a detection cycle (or exposure time) of the light sensor (220). The light sensor controller (211) may set the detection cycle of the light sensor (220) to either a first detection cycle or a second detection cycle. For example, the second detection cycle may be set to be longer than the first detection cycle.

[0086] For example, the illuminance data processor (212) can process data acquired through the illuminance sensor (220). The illuminance data processor (212) can be configured to process raw data (or time series data) acquired through the illuminance sensor (220). The illuminance data processor (212) can acquire first illuminance data based on data acquired from the illuminance sensor (220) according to a first detection cycle. The illuminance data processor (212) can acquire second illuminance data based on data acquired from the illuminance sensor (220) according to a second detection cycle.

[0087] For example, the flickering information generator (214) may be configured to generate (or obtain) flickering information for each of a plurality of wavelength ranges based on the first illuminance data.

[0088] For example, if the light sensor (220) includes two channels, the flickering information generator (214) can identify a flicker rate in a first wavelength range and a flicker rate in a second wavelength range. Based on identifying the flicker rate in the first wavelength range and the flicker rate in the second wavelength range, the flickering information generator (214) can generate (or obtain) flickering information for each of the plurality of wavelength ranges.

[0089] For example, if the light sensor (220) includes four channels, the flickering information generator (214) can identify a flicker rate in a first wavelength range, a flicker rate in a second wavelength range, a flicker rate in a third wavelength range, and a flicker rate in a fourth wavelength range. The flickering information generator (214) can generate (or obtain) flickering information for each of the plurality of wavelength ranges based on identifying the flicker rate in the first wavelength range, the flicker rate in the second wavelength range, the flicker rate in the third wavelength range, and the flicker rate in the fourth wavelength range.

[0090] For example, the intensity ratio information generator (213) may be configured to generate (or obtain) intensity ratio information between a plurality of wavelength ranges based on the second illumination data.

[0091] For example, if the light sensor (220) includes two channels, the intensity ratio information generator (213) can identify the ratio of the intensity of light in a first wavelength range and the intensity of light in a second wavelength range. The intensity ratio information generator (213) can generate (or obtain) intensity ratio information between a plurality of wavelength ranges based on identifying the ratio of the intensity of light in the first wavelength range and the intensity of light in the second wavelength range.

[0092] For example, when the light sensor (220) includes three channels, the intensity ratio information generator (213) can identify a first ratio of the intensity of light in a first wavelength range and the intensity of light in a second wavelength range. The intensity ratio information generator (213) can identify a second ratio of the intensity of light in a second wavelength range and the intensity of light in a third wavelength range. The intensity ratio information generator (213) can identify the intensity of light in a third wavelength range and the third ratio of the intensity of light in the first wavelength range. The intensity ratio information generator (213) can generate (or obtain) intensity ratio information between a plurality of wavelength ranges based on identifying the first ratio, the second ratio, and the third ratio.

[0093] According to one embodiment, the flickering information generator (214) may generate (or obtain) flickering information for each of a plurality of wavelength ranges using first illuminance data obtained according to a first detection cycle. The intensity ratio information generator (213) may obtain intensity ratio information between a plurality of wavelength ranges using second illuminance data obtained according to a second detection cycle. For example, the second detection cycle may be set longer than the first detection cycle. Flickering information may be obtained in a short detection cycle. Intensity ratio information between a plurality of wavelength ranges may be obtained in a long detection cycle. The illuminance sensor controller (211) may set the detection cycle of the illuminance sensor (220) to the first detection cycle in order to obtain the first illuminance data. The light sensor controller (211) can set the detection cycle of the light sensor (220) to a second detection cycle to obtain second light data.

[0094] For example, the light source predictor (215) can be configured to identify the type of light source using a light source prediction model. The light source prediction model can be configured based on an artificial intelligence model. The light source predictor (215) can input intensity ratio information between a plurality of wavelength ranges obtained through the intensity ratio information generator (213) and flickering information for each of a plurality of wavelength ranges obtained through the flickering information generator (214) into the light source prediction model. The light source predictor (215) can identify the type of light source based on the output of the light source prediction model. For example, the light source predictor (215) can identify whether the electronic device (200) is located indoors (or outdoors) based on the output of the light source prediction model.

[0095] For example, the light source type output unit (216) may be configured to provide (or output) information about the light source type identified using the light source predictor (215) to a user of the electronic device (200). As an example, the light source type output unit (216) may provide information about the identified light source type through the display (250) of the electronic device (200). As an example, the light source type output unit (216) may change the operating mode of the electronic device (200) according to the identified light source type. As an example, the light source type output unit (216) may provide information about the light source type to a component for providing a service according to the identified light source type.

[0096] According to one embodiment, the light source prediction model learner (217) may be configured to train the light source prediction model. For example, the light source prediction model learner (217) may obtain feature information (e.g., flickering information for each of a plurality of wavelength ranges or intensity ratio information between a plurality of wavelength ranges) using illuminance data according to the type of light source. The light source prediction model learner (217) may train the light source prediction model based on the feature information. For example, the light source prediction model (217) may obtain illuminance data in an indoor environment and illuminance data in an outdoor environment. The light source prediction model (217) may obtain feature information (e.g., flickering information for each of a plurality of wavelength ranges or intensity ratio information between a plurality of wavelength ranges) based on the illuminance data in an indoor environment and the illuminance data in an outdoor environment. The light source prediction model learner (217) may train the light source prediction model based on the feature information.

[0097] Figure 4 illustrates a flowchart of the operation of an electronic device for identifying the type of light source. In the following embodiments, the operations may be performed sequentially, but are not necessarily sequential. For example, the order of the operations may be changed, and at least two operations may be performed in parallel.

[0098] Referring to FIG. 4, in operation 410, the processor (210) of the electronic device (200) may obtain first illuminance data based on a first detection cycle (or a first exposure time) using the illuminance sensor (220). For example, the processor (210) may set the detection cycle of the illuminance sensor (220) to the first detection cycle in order to obtain flickering information of a light source. For example, the processor (210) may set the detection cycle of the illuminance sensor (220) to the first detection cycle in order to identify flickering occurring at 120 [Hz] to 960 [Hz]. The first detection cycle may be set based on the Nyquist sampling theory. In order to identify flickering occurring at 120 [Hz] to 960 [Hz], a sampling frequency of 2 [kHz] or more may be required. The processor (210) can set the first detection cycle to be shorter than 0.5 [ms].

[0099] In operation 420, the processor (210) may acquire second illuminance data based on a second detection cycle using the illuminance sensor (220). For example, the processor (210) may set the detection cycle of the illuminance sensor (220) to the second detection cycle in order to identify an intensity ratio between multiple wavelength ranges. For example, the processor (210) may set the detection cycle of the illuminance sensor (220) to be longer than a cycle in which flickering occurs. For example, when an AC power source of 50 [Hz] is used, the light source may operate at 100 [Hz]. Accordingly, the processor (210) may set the second detection cycle to be 10 [ms] or more.

[0100] According to operations 410 and 420, the processor (210) can acquire time series data of multiple channels of the light sensor (220). The processor (210) can acquire light data for each of the multiple channels. For example, the multiple channels can respectively correspond to multiple wavelength ranges.

[0101] According to one embodiment, the processor (210) may receive illumination data from at least one external electronic device connected to the electronic device (200). The processor (210) may identify that the illumination sensor (220) of the electronic device (200) is obscured by an external object and thus cannot obtain accurate illumination data. The processor (210) may also receive illumination data from at least one external electronic device connected to the electronic device (200) and positioned around the electronic device (200).

[0102] In one embodiment, the processor (210) can identify an external electronic device having a light sensor having the most channels. The processor (210) can request light data from the identified external electronic device and receive light data from the identified external electronic device.

[0103] In operation 430, the processor (210) may obtain flickering information for each of a plurality of wavelength ranges based on the first illuminance data. The flickering information for each of the plurality of wavelength ranges may be used to distinguish between artificial light sources (e.g., incandescent lamps, fluorescent lamps) and natural light sources (e.g., the sun). The flickering information for each of the plurality of wavelength ranges may include a flickering ratio for each of the plurality of wavelength ranges. For example, a natural light source may be identified as having a flickering ratio lower than a reference ratio. For example, an artificial light source may be identified as having a flickering ratio higher than a reference ratio because it is operated by a power source (e.g., an AC power source).

[0104] For example, the processor (210) may obtain intensity values ​​for one of a plurality of wavelength ranges within a first time interval according to a first detection cycle based on the first illuminance data. The processor (210) may obtain flickering information for the wavelength range based on a difference between a maximum value and a minimum value among the obtained intensity values. For example, the first time interval may correspond to one cycle in which flickering occurs. For example, the processor (210) may identify a flickering rate within one cycle in which flickering occurs. The processor (210) may identify a maximum value and a minimum value within one cycle in which flickering occurs. The processor (210) may identify a flickering rate based on the identified maximum value and minimum value. The flickering rate may be identified according to the following mathematical equation.

[0105]

[0106]

[0107] The processor (210) can identify flickering ratios for a plurality of wavelength ranges according to mathematical equation 1. Based on the identification of the flickering ratios for the plurality of wavelength ranges, the processor (210) can obtain flickering information for each of the plurality of wavelength ranges. Specific examples of flickering information according to a light source will be described below with reference to FIGS. 5A, 5B, 6A, and 6B.

[0108] In operation 440, the processor (210) may obtain intensity ratio information between a plurality of bands based on the second illuminance data. For example, the processor (210) may obtain intensity values ​​of each of the plurality of wavelength ranges within a second time interval according to a second detection cycle. The processor (210) may identify a ratio of intensity values ​​between two wavelength ranges among the plurality of wavelength ranges. The processor (210) may obtain intensity ratio information between the plurality of wavelength ranges based on identifying the ratio of intensity values ​​between two wavelength ranges among the plurality of wavelength ranges. For example, the intensity values ​​of each of the plurality of wavelength ranges may include a representative intensity value (e.g., a correction value, an average value, or an integration value) for each of the plurality of wavelength ranges.

[0109] According to one embodiment, the intensity value of each of the plurality of wavelength ranges may include an intensity value identified in each of the plurality of channels of the light sensor (220). For example, the light sensor (220) may include three channels. The processor (210) may identify a first intensity of light in a first wavelength range through a first channel of the light sensor (220). The processor (210) may identify a second intensity of light in a second wavelength range through a second channel of the light sensor (220). The processor (210) may identify a third intensity of light in a third wavelength range through a third channel of the light sensor (220). The processor (210) may identify a first ratio of the first intensity of light in the first wavelength range and the second intensity of light in the second wavelength range. The processor (210) may identify a second ratio of the second intensity of light in the second wavelength range and the third intensity of light in the third wavelength range. The processor (210) can identify a third intensity of light in a third wavelength range and a third ratio of the first intensity of light in a first wavelength range. Based on identifying the first ratio, the second ratio, and the third ratio, the processor (210) can obtain (or identify) intensity ratio information between a plurality of wavelength ranges. Based on the intensity ratio information between the plurality of wavelength ranges, the processor (210) can identify a dominant wavelength range of the identified light. In the above example, an example in which the light sensor (220) includes three channels has been described, but this is for convenience of explanation and is not limited thereto.

[0110] For example, the spectrum of light emitted from a light source can be identified based on intensity ratio information between multiple wavelength ranges. The processor (210) can identify the type of light source based on the spectrum of light emitted from the light source.

[0111] At step 450, the processor (210) may identify the type of light source in the area where the electronic device (200) is located. For example, the processor (210) may input flickering information and intensity ratio information into a light source prediction model. Based on the output of the light source prediction model, the processor (210) may identify the type of light source in the area where the electronic device (200) is located. The processor (210) may identify the type of light source that emits light acquired through the light sensor (220). The processor (210) may identify the light source as at least one of the sun, a fluorescent lamp, an incandescent lamp, and a halogen lamp. The light source may include a light source that provides light that is changed according to transmission and / or reflection. For example, the processor (210) may identify sunlight in a shade and / or sunlight transmitted through a window. A specific example of the light source prediction model will be described below with reference to FIGS. 9A and 9B.

[0112] According to one embodiment, the processor (210) can identify whether the electronic device (200) is located indoors (or outdoors) based on flickering information and intensity ratio information. For example, the processor (210) can input the flickering information and intensity ratio information into a light source prediction model. The processor (210) can identify whether the electronic device (200) is located indoors (or outdoors) based on the output of the light source prediction model. According to one embodiment, the processor (210) can train the light source prediction model. The processor (210) can identify whether the electronic device (200) is located indoors using the communication circuit (240). For example, the processor (210) can identify whether the electronic device (200) is located indoors based on a GPS signal and / or a wireless LAN (or Bluetooth) signal. As an example, the processor (210) can identify GPS-based information and wireless LAN-based information. GPS-based information may include the number of satellites from which GPS signals are transmitted and / or signal-to-noise ratio (SNR) information. Wireless LAN-based information may include signal strength information transmitted from an access point (AP), service set identifier (SSID) pattern information, wireless LAN name information, and / or information on whether a password is set. The processor (210) may identify that there is a high probability that the electronic device (200) is located outdoors when the wireless LAN name includes “public.” The processor (210) may identify that there is a high probability that the electronic device (200) is located indoors when there is a high proportion of wireless LANs with set passwords among the connectable wireless LAN lists. Based on the examples described above, the processor (210) may identify whether the electronic device (200) is located indoors and then use the acquired data to train a light source prediction model.

[0113] For example, the processor (210) can identify that the electronic device (200) is located indoors based on whether an external electronic device (e.g., a washing machine, an air conditioner, a refrigerator, a vacuum cleaner) located indoors is operating. Based on identifying that the electronic device (200) is located indoors, the processor (210) can train a light source prediction model using the first illuminance data and the second illuminance data.

[0114] According to one embodiment, the processor (210) may set the operation mode of the electronic device (200) to an indoor operation mode based on identifying that the electronic device (200) is located indoors. The processor (210) may set the operation mode of the electronic device (200) to an outdoor operation mode based on identifying that the electronic device (200) is located outdoors.

[0115] For example, the processor (210) may provide a notification via vibration using the actuator (270) while the electronic device (200) is operating in the indoor operation mode. The processor (210) may reduce the brightness of the display (250) while the electronic device (200) is operating in the indoor operation mode.

[0116] For example, the processor (210) may provide a notification via sound using the speaker (260) while the electronic device (200) is operating in the outdoor operation mode. The processor (210) may increase the brightness of the display (250) while the electronic device (200) is operating in the outdoor operation mode.

[0117] According to one embodiment, the processor (210) may transmit information regarding whether the electronic device (200) is located indoors to an external electronic device. The information regarding whether the electronic device (200) is located indoors may cause the external electronic device to provide a notification indicating whether the electronic device (200) is located indoors.

[0118] According to one embodiment, the processor (210) may use a light source prediction model to identify whether the electronic device (200) is located indoors. Based on identifying that the electronic device (200) is located indoors, the processor (210) may suspend at least some of the functions of the communication circuit (240) (e.g., GPS function). By suspending at least some of the functions of the communication circuit (240) (e.g., GPS function), the processor (210) may reduce power consumption of the electronic device (200). The processor (210) may provide a service according to the location of the electronic device (200). For example, the processor (210) may suspend at least some of the functions of the communication circuit (240) (e.g., GPS function) until the electronic device (200) moves outdoors.

[0119] Figures 5a and 5b illustrate flicker ratios according to light sources, according to one embodiment.

[0120] Referring to FIGS. 5a and 5b, graph (510) shows the intensity of light emitted from an incandescent lamp over time. Graph (520) shows the intensity of sunlight over time.

[0121] Referring to the graph (510), the processor (210) of the electronic device (200) can identify the light emitted from the incandescent lamp using the light sensor (220). The incandescent lamp can be operated by AC power. Therefore, flickering may occur in the light emitted from the incandescent lamp. The processor (210) can identify the flickering rate of the light emitted from the incandescent lamp according to the above-described mathematical expression 1 to identify the flickering rate. The processor (210) can identify the maximum and minimum values ​​of the light intensity within the time interval (511) according to the first detection cycle. The time interval (511) can be set longer than the cycle in which the flickering occurs. The processor (210) can set the maximum value of the light intensity within the time interval (511) to 3500 [mW / m 2] can be identified. The processor (210) sets the minimum value of the light intensity within the time interval (511) to 2950 [mW / m 2 ] can be identified. The processor (210) can identify the flickering ratio of light emitted from the incandescent lamp as 8.5% according to mathematical expression 1.

[0122] Referring to the graph (520), the processor (210) of the electronic device (200) can identify sunlight using the light sensor (220). The processor (210) can identify the flickering rate of sunlight. In order to identify the flickering rate of sunlight, the processor (210) can identify the flickering rate of sunlight according to the above-described mathematical expression 1. The processor (210) can identify the maximum and minimum values ​​of the light intensity within the time interval (521) according to the first detection cycle. The time interval (521) can be set longer than the cycle in which flickering occurs. The processor (210) can set the maximum value of the sunlight intensity within the time interval (521) to be 1100 [mW / m 2 ] can be identified. The processor (210) determines the minimum value of the intensity of sunlight within the time interval (521) to be 1065 [mW / m 2 ] can be identified. The processor (210) can identify the flickering ratio of sunlight as 1.6% according to mathematical expression 1.

[0123] Referring to graphs (510) and (520), flicker rates may vary depending on the light source. The processor (210) may identify the type of light source based on the flicker rate. For example, the processor (210) may identify the light source emitting the identified light as either an artificial light source or a natural light source based on the flicker rate.

[0124] Figures 6a and 6b illustrate flicker ratios over wavelength range, according to one embodiment.

[0125] Referring to FIGS. 6A and 6B, the light sensor (220) may include two channels. The light sensor (220) may identify light in a first wavelength band (e.g., a visible light wavelength band) through the first channel. The light sensor (220) may identify light in a second wavelength band (e.g., an infrared wavelength band) through the second channel. Graphs (611) to (614) of FIG. 6A represent the flicker ratio of light in the first wavelength band over time. Graphs (621) to (624) of FIG. 6B represent the flicker ratio of light in the second wavelength band over time.

[0126] Referring to FIG. 6A, graph (611) represents a flicker ratio over time of light of a first wavelength band emitted from an incandescent lamp. Graph (612) represents a flicker ratio over time of light of a first wavelength band emitted from an LED (light emitting diode) light. Graph (613) represents a flicker ratio over time of sunlight of a first wavelength band transmitted through a window. Graph (614) represents a flicker ratio over time of sunlight of a first wavelength band.

[0127] Referring to FIG. 6B, graph (621) represents the flicker ratio over time of light in the second wavelength band emitted from an incandescent lamp. Graph (612) represents the flicker ratio over time of light in the second wavelength band emitted from an LED light. Graph (623) represents the flicker ratio over time of sunlight in the second wavelength band transmitted through a window. Graph (624) represents the flicker ratio over time of sunlight in the second wavelength band.

[0128] According to graphs (611) and (621), for light emitted from an incandescent lamp, the flicker ratios of the first wavelength band and the second wavelength band can be identified similarly.

[0129] According to graph (612) and graph (622), for light emitted from an LED, the flicker ratio of the first wavelength band can be identified as being higher than the flicker ratio of the second wavelength band.

[0130] According to graph (613) and graph (623), for sunlight transmitted through a window, the flicker ratios of the first wavelength band and the second wavelength band can both be identified as being lower than the reference flicker ratio (e.g., 5 [%]).

[0131] According to graph (614) and graph (624), for sunlight, the flicker ratio of the second wavelength band can be identified as being higher than the flicker ratio of the first wavelength band.

[0132] According to one embodiment, the processor (210) may identify a light source with a different flicker rate depending on the wavelength range. Accordingly, the processor (210) may identify the type of light source based on flickering information for each of the plurality of wavelength ranges.

[0133] Figures 7a, 7b, 7c and 7d illustrate the intensity of light over a wavelength range according to one embodiment.

[0134] Figure 8 illustrates the intensity of light transmitted through a glass window according to one embodiment.

[0135] Referring to FIGS. 7A to 7D , the processor (210) of the electronic device (200) can identify the intensity of light in a visible light wavelength band (e.g., 360 [nm] to 760 [nm]) using the light sensor (220). For example, the light sensor (220) can include three channels for the visible light wavelength band. The processor (210) can identify the intensity of light in a first wavelength band (701) through a first channel of the light sensor (220). The processor (210) can identify the intensity of light in a second wavelength band (702) through a second channel of the light sensor (220). The processor (210) can identify the intensity of light in a third wavelength band (703) through a third channel of the light sensor (220).

[0136] Referring to Fig. 7a, a graph (710) represents the intensity of sunlight according to its wavelength in the visible light wavelength band. According to the graph (710), the processor (210) can identify that the intensity of light in the first wavelength band (701) is the lowest. The processor (210) can identify that the intensity of light in the second wavelength band (702) is the highest. The processor (210) can identify that the intensity of light in the third wavelength band (703) is between the intensity of light in the first wavelength band (701) and the intensity of light in the third wavelength band (703).

[0137] Referring to Fig. 7b, the graph (720) represents the intensity of light according to the wavelength emitted from an LED light in the visible light wavelength band. According to the graph (720), the processor (210) can identify that the intensity of light in the first wavelength band (701) is the greatest. The processor (210) can identify that the intensity of light in the third wavelength band (703) is the smallest. The processor (210) can identify that the intensity of light in the second wavelength band (702) is between the intensity of light in the first wavelength band (701) and the intensity of light in the third wavelength band (703).

[0138] Referring to Fig. 7c, a graph (730) represents the intensity of light according to the wavelength emitted from a fluorescent lamp in the visible light wavelength band. According to the graph (730), the processor (210) can identify that the intensity of light in the second wavelength band (702) is the greatest. The processor (210) can identify that the intensity of light in the first wavelength band (701) is the smallest. The processor (210) can identify that the intensity of light in the third wavelength band (703) is between the intensity of light in the first wavelength band (701) and the intensity of light in the second wavelength band (702).

[0139] Referring to FIG. 7D, a graph (740) represents the intensity of light according to the wavelength emitted from an incandescent lamp in the visible light wavelength band. According to the graph (740), the processor (210) can identify that the light intensity of the first wavelength band (701) is the smallest. The processor (210) can identify that the light intensity of the third wavelength band (703) is the largest. The processor (210) can identify that the light intensity of the second wavelength band (702) is between the light intensity of the first wavelength band (701) and the light intensity of the third wavelength band (703).

[0140] Referring to FIGS. 7A to 7D, the spectrum may be configured differently depending on the light source. Accordingly, the processor (210) can identify the type of light source based on intensity ratio information between multiple wavelength ranges.

[0141] Although not shown, in LED lights and fluorescent lights, a low proportion of the infrared wavelength band, which is a wavelength range of 700 [nm] or more, can be identified. Based on identifying a low proportion of the infrared wavelength band in the identified light, the processor (210) can identify the type of light source as either an LED light or a fluorescent light.

[0142] According to one embodiment, the processor (210) can distinguish the composition of a light source by identifying intensity ratio information between multiple wavelength ranges. The processor (210) can accurately distinguish the type of light source as the number of multiple wavelength ranges increases and as the number of unique characteristics of the light source increases.

[0143] Referring to FIG. 8, graphs (810), (820), and (830) represent the transmittance of a window according to wavelength. Graph (810) represents the transmittance according to wavelength in normal glass. Graph (820) represents the transmittance according to wavelength in low-E glass. Graph (830) represents the transmittance according to wavelength in double low-E glass.

[0144] Referring to graphs (810), (820), and (830), light in the ultraviolet wavelength range (801) may barely penetrate the glass window. Light in the visible wavelength range (802) may mostly penetrate the glass window. The transmittance of light in the infrared wavelength range (803) may vary depending on the type of glass.

[0145] According to one embodiment, the light sensor (220) may include two channels. A first channel (ch0) of the light sensor (220) may identify the intensity of light in the visible light wavelength range. A second channel (ch1) of the light sensor (220) may identify the intensity of light in the infrared wavelength range. The processor (210) may obtain intensity ratio information between a plurality of wavelength ranges based on sunlight, sunlight transmitted through a window, light emitted from an incandescent lamp, and light emitted from an LED lamp. For example, intensity ratio information between the visible light wavelength range and the infrared wavelength range may be identified as shown in the table below.

[0146]

[0147] Referring to Table 1, the intensity ratio between the visible light wavelength range and the infrared wavelength range may be highest in LED lights. The intensity ratio between the visible light wavelength range and the infrared wavelength range may be lowest in incandescent lights. As illustrated in FIG. 8, as sunlight is transmitted through a window, the intensity of the infrared wavelength band may decrease. The intensity ratio between the visible light wavelength range and the infrared wavelength range of sunlight transmitted through a window may be identified as being higher than the intensity ratio between the visible light wavelength range and the infrared wavelength range of sunlight that is not transmitted. For example, the processor (210) may identify whether sunlight is transmitted through a window based on information about the intensity ratio between the visible light wavelength range and the infrared wavelength range.

[0148] The processor (210) can identify the number of intensity ratios between the plurality of wavelength ranges based on the number of channels. For example, the processor (210) can identify the number of intensity ratios between the plurality of wavelength ranges based on the following mathematical equation.

[0149]

[0150] Referring to mathematical expression 2, l is the number of intensity ratios between multiple wavelength ranges identified by the processor (210). n is the number of multiple channels of the light sensor (220). C is a combination operation. For example, if the light sensor (220) includes four channels, the number of intensity ratios between multiple wavelength ranges identified by the processor (210) may be six.

[0151] FIGS. 9A and 9B illustrate examples of inputs and outputs of a light source prediction model, according to one embodiment.

[0152] Referring to FIGS. 9A and 9B, the processor (210) can obtain first illuminance data based on a first detection cycle (or first exposure time). The processor (210) can obtain second illuminance data based on a second detection cycle (or second exposure time) that is longer than the first detection cycle.

[0153] For example, the processor (210) may obtain flickering information for each of a plurality of wavelength ranges based on the first illuminance data. The flickering information for each of the plurality of wavelength ranges may include a flickering ratio for each of the plurality of wavelength ranges. In FIGS. 9A and 9B , the Ch1 flicker ratio represents a flickering ratio for the first wavelength range. The ChN flicker ratio represents a flickering ratio for the Nth wavelength range.

[0154] For example, the processor (210) can obtain intensity ratio information between multiple wavelength ranges based on the second illuminance data. In FIGS. 9A and 9B , the Ch1 / Ch2 ratio represents the ratio of the intensity of light in the first wavelength range and the intensity of light in the second wavelength range. The ChN-1 / ChN ratio represents the ratio of the intensity of light in the (N-1)th wavelength range and the intensity of light in the Nth wavelength range.

[0155] Referring to FIG. 9A, the processor (210) can input flickering information for each of a plurality of wavelength ranges and intensity ratio information between the plurality of wavelength ranges into the light source prediction model (900). Based on the output of the light source prediction model (900), the processor (210) can identify whether the electronic device (200) is located outdoors or indoors.

[0156] Referring to FIG. 9B, the processor (210) can input flickering information for each of a plurality of wavelength ranges and intensity ratio information between the plurality of wavelength ranges into the light source prediction model (900). Based on the output of the light source prediction model (900), the processor (210) can identify the type of light source (e.g., incandescent lamp, fluorescent lamp, direct sunlight, shaded sunlight, halogen lamp) of the electronic device (200).

[0157] Referring to FIGS. 9A and 9B , in the light source prediction model (900), feature information can be extracted (or acquired, generated) based on flickering information for each of a plurality of wavelength ranges and intensity ratio information between the plurality of wavelength ranges. The extracted feature information can be input to a dense layer. Based on the output of the dense layer, the output of the light source prediction model (900) can be identified. According to one embodiment, the light source prediction model (900) can be configured based on a sequential model. However, the present invention is not limited thereto. According to one embodiment, the light source prediction model (900) can be utilized by the processor (210) without the intervention of an external server.

[0158] According to one embodiment, the light source prediction model (900) may vary depending on the form factor of the electronic device (200), the location where the light sensor (220) is placed within the electronic device (200), and / or the number of multiple channels.

[0159] For example, if the light sensor (220) includes two channels and the light source prediction model (900) outputs whether the electronic device (200) is located outdoors or indoors, the processor (210) can train the light source prediction model (900) using the data in the table below.

[0160]

[0161] For example, if the light sensor (220) includes two channels and the light source prediction model (900) outputs the type of light source, the processor (210) can train the light source prediction model (900) using the data in the table below.

[0162]

[0163] According to one embodiment, data for training a light source prediction model (900) may be constructed based on data identified over a long period of time under various conditions. Depending on the embodiment, various preprocessing operations may be performed to improve the performance of the light source prediction model (900). For example, outliers may be removed from the data for training the light source prediction model (900). Data scaling according to normalization and standardization may be performed on the data for training the light source prediction model (900).

[0164] According to an embodiment, the light source prediction model (900) may be included in an external electronic device (e.g., a server) that is distinct from the electronic device (200). For example, the processor (210) may transmit the first illuminance data and / or the second illuminance data to the external electronic device and obtain output data of the light source prediction model (900) from the external electronic device. For example, the processor (210) may transmit flickering information for each of a plurality of wavelength ranges and intensity ratio information between the plurality of wavelength ranges to the external electronic device and obtain output data of the light source prediction model (900) from the external electronic device.

[0165] FIG. 10 illustrates an example of operation of an electronic device indoors or outdoors, according to one embodiment.

[0166] Referring to FIG. 10, in state (1010), the electronic device (200) may be located outdoors. The processor (210) may obtain flickering information for each of a plurality of wavelength ranges and intensity ratio information between the plurality of wavelength ranges for light entering the light sensor (220). Based on the flickering information for each of the plurality of wavelength ranges and intensity ratio information between the plurality of wavelength ranges, the processor (210) may identify that the electronic device (200) is located outdoors.

[0167] For example, the processor (210) may set the operating mode of the electronic device (200) to an outdoor operating mode based on identifying that the electronic device (200) is located outdoors. As an example, the processor (210) may provide a notification through sound using the speaker (260) while the electronic device (200) is operating in the outdoor operating mode. As an example, the processor (210) may increase the brightness of the display (250) while the electronic device (200) is operating in the outdoor operating mode.

[0168] In state (1020), the electronic device (200) may be located indoors. The processor (210) may obtain flickering information for each of a plurality of wavelength ranges and intensity ratio information between the plurality of wavelength ranges for light entering the light sensor (220). Based on the flickering information for each of the plurality of wavelength ranges and intensity ratio information between the plurality of wavelength ranges, the processor (210) may identify that the electronic device (200) is located indoors.

[0169] For example, the processor (210) may set the operating mode of the electronic device (200) to the indoor operating mode based on identifying that the electronic device (200) is located indoors. As an example, the processor (210) may provide a notification through vibration using the actuator (270) while the electronic device (200) is operating in the indoor operating mode. As an example, the processor (210) may reduce the brightness of the display (250) while the electronic device (200) is operating in the indoor operating mode.

[0170] According to one embodiment, the processor (210) may change the operation mode of the electronic device (200) as the space (e.g., indoors or outdoors) in which the electronic device (200) is located changes. For example, the processor (210) may change the operation mode of the electronic device (200) from an outdoor operation mode to an indoor operation mode based on identifying that the electronic device (200) has entered indoors. For example, the processor (210) may change the operation mode of the electronic device (200) from an indoor operation mode to an outdoor operation mode based on identifying that the electronic device (200) has entered outdoors. According to one embodiment, the processor (210) may provide a notification to the user indicating that the operation mode of the electronic device (200) has changed. As an example, the processor (210) may provide a notification indicating that the operation mode of the electronic device (200) has changed through the display (250). For example, the processor (210) may provide a notification through sound or vibration using a speaker (260) or actuator (270) indicating that the operating mode of the electronic device (200) has changed.

[0171] FIG. 11 illustrates an example of operation of an electronic device indoors or outdoors, according to one embodiment.

[0172] Referring to FIG. 11, the electronic device (200) can be connected to an external electronic device (1100) using a communication circuit (240). For example, the user of the electronic device (200) and the user of the external electronic device (1100) can be different. For example, the user of the external electronic device (1100) can be a guardian of the user of the electronic device (200). In an embodiment, the electronic device (200) can be worn by a pet of the user of the external electronic device (1100).

[0173] According to one embodiment, the processor (210) of the electronic device (200) may obtain flickering information for each of a plurality of wavelength ranges and intensity ratio information between the plurality of wavelength ranges for light entering the light sensor (220). Based on the flickering information for each of the plurality of wavelength ranges and the intensity ratio information between the plurality of wavelength ranges, the processor (210) may identify that the electronic device (200) has entered an indoor (or outdoor) environment.

[0174] The processor (210) can transmit information indicating that the electronic device (200) has entered the indoor (or outdoor) space to an external electronic device (1100) based on identifying that the electronic device (200) has entered the indoor (or outdoor) space. The information indicating that the electronic device (200) has entered the indoor (or outdoor) space can cause the external electronic device (1100) to provide a notification indicating that the electronic device (200) has entered the indoor (or outdoor) space. The external electronic device (1100) can provide a notification indicating that the electronic device (200) has entered the indoor (or outdoor) space based on the information indicating that the electronic device (200) has entered the indoor (or outdoor) space.

[0175] According to one embodiment, the processor (210) may transmit information regarding whether the electronic device (200) is located indoors (or outdoors) to an external electronic device (1100). The information regarding whether the electronic device (200) is located indoors (or outdoors) may cause the external electronic device (1100) to provide a notification indicating whether the electronic device (200) is located indoors (or outdoors). The external electronic device (1100) may provide a notification indicating whether the electronic device (200) is located indoors (or outdoors) based on the information regarding whether the electronic device (200) is located indoors (or outdoors).

[0176] FIG. 12 illustrates an example of an operation of an electronic device performed based on a type of light source, according to one embodiment.

[0177] Referring to FIG. 12, the processor (210) of the electronic device (200) can obtain flickering information for each of a plurality of wavelength ranges and intensity ratio information between the plurality of wavelength ranges for light entering the light sensor (220). The processor (210) can identify the type of light source based on the flickering information for each of the plurality of wavelength ranges and intensity ratio information between the plurality of wavelength ranges.

[0178] In state (1210), the processor (210) can identify the type of light source in the area where the electronic device (200) is located. The processor (210) can identify the light source (1211) placed in the area where the electronic device (200) is located. The processor (210) can identify that the light source (1211) is an incandescent lamp. The processor (210) can perform an operation set according to the incandescent lamp. According to one embodiment, the processor (210) can set the brightness level of the display (250) to a first brightness level based on identifying that the light source (1211) is an incandescent lamp.

[0179] In state (1220), the processor (210) can identify the type of light source in the area where the electronic device (200) is located. The processor (210) can identify the light source (1221) placed in the area where the electronic device (200) is located. The processor (210) can identify that the light source (1221) is a fluorescent lamp. The processor (210) can perform an operation set according to the fluorescent lamp. According to one embodiment, the processor (210) can set the brightness level of the display (250) to a second brightness level based on identifying that the light source (1221) is a fluorescent lamp.

[0180] Although FIG. 12 illustrates an example of changing the brightness level of a display (250) depending on the type of light source, the present invention is not limited thereto. The processor (210) can map various operations to the type of light source. The processor (210) can perform operations mapped to the type of light source.

[0181] FIGS. 13A and 13B illustrate examples of a user interface for setting the operation of an electronic device, according to one embodiment.

[0182] Referring to FIGS. 13A and 13B , the processor (210) of the electronic device (200) may provide an interface for setting an indoor operation mode and an outdoor operation mode. The processor (210) may set the indoor operation mode and / or the outdoor operation mode based on a user input to the interface.

[0183] According to one embodiment, the processor (210) may display a screen (1310) for setting various operation modes of the electronic device (200) through the display (250). For example, the screen (1310) may include an object (1311) for setting an operation mode while the user is sleeping. For example, the screen (1310) may include an object (1312) for setting an operation mode while the user is watching a movie. For example, the screen (1310) may include an object (1313) for setting an operation mode while the user is driving. For example, the screen (1310) may include an object (1314) for setting an operation mode while the user is exercising. For example, the screen (1310) may include an object (1315) for setting an operation mode while the electronic device (200) is located indoors / outdoors.

[0184] The processor (210) may change the screen (1310) to the screen (1320) based on the input to the object (1315). The screen (1320) may include an area (1323) for setting a function to be performed by the electronic device (200) while it is located indoors / outdoors. The area (1323) may include an object (1321) for setting a function related to sound or vibration. The area (1323) may include an object (1322) for setting a function related to the display (250).

[0185] According to one embodiment, the processor (210) may display the screen (1330) based on an input to an object (1321) of the screen (1320). The screen (1330) may include an area (1331) for setting a function related to sound or vibration while the electronic device (200) is located indoors. The screen (1330) may include an area (1332) for setting a function related to sound or vibration while the electronic device (200) is located outdoors. The screen (1330) may include an area (1333) for adjusting the volume of the electronic device (200). The screen (1330) may include an area (1334) for setting a notification method according to an incoming call. The screen (1330) may include an area (1335) for setting a notification method for an event distinct from an incoming call.

[0186] According to one embodiment, the processor (210) may display a screen (1340) based on an input for an object (1322) of the screen (1320). The screen (1340) may include an area (1341) for setting a display method (e.g., light mode or dark mode) of a user interface displayed on the display (250). The screen (1340) may include an area (1342) for setting the brightness of the display (250) when the external light source is identified as sunlight. The screen (1340) may include an area (1343) for setting the brightness of the display (250) when the external light source is identified as an incandescent lamp. The screen (1340) may include an area (1344) for setting the brightness of the display (250) when the external light source is identified as a fluorescent lamp.

[0187] FIG. 14A illustrates an example of an electronic device including a plurality of light sensors, according to one embodiment.

[0188] Figure 14b is a flowchart illustrating the operation of an electronic device including multiple light sensors, according to one embodiment. In the following embodiments, the operations may be performed sequentially, but are not necessarily sequential. For example, the order of the operations may be changed, and at least two operations may be performed in parallel.

[0189] Referring to FIG. 14A, the electronic device (200) may include a plurality of light sensors. For example, the electronic device (200) may include a first light sensor (220-1) and a second light sensor (220-2). The first light sensor (220-1) may be used to identify light emitted toward a surface corresponding to the display (250) of the electronic device (200). The second light sensor (220-2) may be used to identify light emitted toward a surface opposite to the display (250) of the electronic device (200).

[0190] Example (1410) may represent the front of the electronic device (200). The first light sensor (220-1) may be positioned below the sensing area (282) in the display area (281) of the display (250). For example, the display (250) may include a display panel (not shown) that includes a front side including the display area (281) and a back side opposite to the front side. The light sensor (220) may be positioned below the display panel (not shown) facing the back side of the display panel (not shown).

[0191] Example (1420) may represent the rear of the electronic device (200). A second light sensor (220-2) may be arranged together with at least one camera (1401). The second light sensor (220-2) may be used to change exposure setting information (e.g., aperture value, shutter speed, ISO (International Organization for Standardization)) of at least one camera (1401). The processor (210) may change the exposure setting information to change the amount of light for shooting based on the brightness of the external environment identified through the second light sensor (220-2).

[0192] Referring to FIG. 14b, in operation 1410, the processor (210) can identify the orientation of the electronic device (200). The processor (210) can identify the orientation of the electronic device (200) using a sensor (not shown) (e.g., an acceleration sensor or a gyro sensor).

[0193] At operation 1420, the processor (210) may identify whether the electronic device (200) is in an upside-down state. For example, the processor (210) may identify whether the electronic device (200) is in an upside-down state based on the orientation of the electronic device (200). For example, the processor (210) may identify whether the display (250) of the electronic device (200) is facing the floor.

[0194] In operation 1430, if the electronic device (200) is in an upside-down state, the processor (210) can identify the type of light source using the second light sensor (220-2). Based on identifying that the electronic device (200) is in an upside-down state, the processor (210) can identify the type of light source using the second light sensor (220-2). The processor (210) can stop the operation of the first light sensor (220-1) and identify the type of light source using the second light sensor (220-2).

[0195] In operation 1440, if the electronic device (200) is not in an upside-down state, the processor (210) can identify the type of light source using the first light sensor (220-1). Based on identifying that the electronic device (200) is not in an upside-down state, the processor (210) can identify the type of light source using the first light sensor (220-1). The processor (210) can stop the operation of the second light sensor (220-2) and identify the type of light source using the first light sensor (220-1).

[0196] According to one embodiment, an electronic device (e.g., electronic device (200)) may include a light sensor (e.g., light sensor (220)) for detecting light intensity of a plurality of wavelength ranges, a memory (e.g., memory (230)) storing instructions and including one or more storage media, and at least one processor (e.g., processor (210)) including a processing circuit. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to obtain first illuminance data based on a first detection period, obtain second illuminance data based on a second detection period longer than the first detection period, obtain flickering information for each of the plurality of wavelength ranges based on the first illuminance data, obtain intensity ratio information between the plurality of wavelength ranges based on the second illuminance data, and identify a type of light source with respect to an area in which the electronic device is located based on the flickering information and the intensity ratio information.

[0197] For example, the instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to identify whether the electronic device is located indoors based on the flickering information and the intensity ratio information.

[0198] For example, the instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to set an operating mode of the electronic device to an indoor operating mode based on identifying that the electronic device is located indoors.

[0199] For example, the instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to set the operating mode of the electronic device to an outdoor operating mode based on identifying that the electronic device is located outdoors.

[0200] For example, the electronic device may include a display, a speaker, and an actuator for providing vibration. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to provide a notification via vibration and decrease the brightness of the display based on the operating mode of the electronic device set to the indoor operating mode, and to provide a notification via sound and increase the brightness of the display based on the operating mode of the electronic device set to the outdoor operating mode.

[0201] For example, the electronic device may include a communication circuit. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to transmit information regarding whether the electronic device is located indoors to an external electronic device. The information regarding whether the electronic device is located indoors may cause the external electronic device to provide a notification indicating whether the electronic device is located indoors.

[0202] For example, the instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to obtain intensity values ​​for one of the plurality of wavelength ranges within a first time interval according to the first detection period based on the first illuminance data, and to obtain flickering information for the wavelength range based on a difference between a maximum value and a minimum value among the intensity values.

[0203] For example, the instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to obtain intensity values ​​of each of the plurality of wavelength ranges within a second time interval according to the second detection period, and to obtain intensity ratio information between the plurality of wavelength ranges based on identifying a ratio of intensity values ​​between two of the plurality of wavelength ranges. A first wavelength range of the plurality of wavelength ranges may correspond to infrared light. A second wavelength range of the plurality of wavelength ranges may correspond to visible light.

[0204] For example, the instructions, when executed individually or collectively by the at least one processor, may cause the electronic device to input the flickering information and the intensity ratio information into a light source prediction model and, based on an output of the light source prediction model, identify a type of light source relative to an area in which the electronic device is located.

[0205] For example, the electronic device may include a communication circuit. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to use the communication circuit to identify that the electronic device is located indoors, and to train the light source prediction model using the first illuminance data and the second illuminance data based on identifying that the electronic device is located indoors.

[0206] According to one embodiment, a method performed by an electronic device may include: using an illuminance sensor for detecting light intensities of a plurality of wavelength ranges of the electronic device, obtaining first illuminance data based on a first detection period; using the illuminance sensor, obtaining second illuminance data based on a second detection period longer than the first detection period; obtaining flickering information for each of the plurality of wavelength ranges based on the first illuminance data; obtaining intensity ratio information between the plurality of wavelength ranges based on the second illuminance data; and identifying a type of light source with respect to an area in which the electronic device is located based on the flickering information and the intensity ratio information.

[0207] For example, the method may include an operation of identifying whether the electronic device is located indoors based on the flickering information and the intensity ratio information.

[0208] For example, the method may include setting an operating mode of the electronic device to an indoor operating mode based on identifying that the electronic device is located indoors.

[0209] For example, the method may include setting the operating mode of the electronic device to an outdoor operating mode based on identifying that the electronic device is located outdoors.

[0210] For example, the method may include an operation of providing a notification through vibration using an actuator of the electronic device and reducing the brightness of a display of the electronic device based on the operation mode of the electronic device set to the indoor operation mode, and an operation of providing a notification through sound using a speaker of the electronic device and increasing the brightness of the display based on the operation mode of the electronic device set to the outdoor operation mode.

[0211] For example, the method may include transmitting information regarding whether the electronic device is located indoors to an external electronic device. The information regarding whether the electronic device is located indoors may cause the external electronic device to provide a notification indicating whether the electronic device is located indoors.

[0212] For example, the method may include an operation of obtaining intensity values ​​for one of the plurality of wavelength ranges within a first time interval according to the first detection cycle based on the first illuminance data, and an operation of obtaining flickering information for the wavelength range based on a difference between a maximum value and a minimum value among the intensity values.

[0213] For example, the method may include an operation of obtaining an intensity value of each of the plurality of wavelength ranges within a second time interval according to the second detection cycle, and an operation of obtaining intensity ratio information between the plurality of wavelength ranges based on identifying a ratio of intensity values ​​between two wavelength ranges among the plurality of wavelength ranges. A first wavelength range among the plurality of wavelength ranges may correspond to infrared light. A second wavelength range among the plurality of wavelength ranges may correspond to visible light.

[0214] For example, the method may include inputting the flickering information and the intensity ratio information into a light source prediction model, and identifying a type of light source in an area where the electronic device is located based on an output of the light source prediction model.

[0215] According to one embodiment, a non-transitory computer-readable storage medium may store one or more programs. The one or more programs may include instructions that, when executed by at least one processor of an electronic device having an illuminance sensor for detecting light intensity of a plurality of wavelength ranges, cause the electronic device to obtain first illuminance data based on a first detection period, obtain second illuminance data based on a second detection period longer than the first detection period, obtain flickering information for each of the plurality of wavelength ranges based on the first illuminance data, obtain intensity ratio information between the plurality of wavelength ranges based on the second illuminance data, and identify a type of light source with respect to an area in which the electronic device is located based on the flickering information and the intensity ratio information.

[0216] According to the above-described embodiments, an electronic device (e.g., electronic device (200)) can identify whether the electronic device (200) is located indoors (or outdoors) using only a light sensor, without using a communication circuit (e.g., a GPS circuit). The electronic device can identify whether the electronic device (200) is located indoors (or outdoors) using the light sensor, even for a location that is difficult to distinguish through a communication circuit. The electronic device can identify the type of light source. The electronic device can perform an operation corresponding to the type of light source (e.g., changing the brightness of a display, taking a picture, changing the exposure settings of a camera).

[0217] Electronic devices according to embodiments disclosed herein may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to embodiments disclosed herein are not limited to the aforementioned devices.

[0218] The embodiments of this document and the terminology used herein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the 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 the items, unless the context clearly indicates otherwise. In this document, each of the phrases "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" can include any one of the items listed together in the corresponding phrase among the phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another component (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.

[0219] In one embodiment of this document, the term "module" used 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 an integral component, or a minimum unit or part of such a component 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).

[0220] One embodiment of the present document may be implemented as software (e.g., a program (140)) including one or more instructions stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one instruction among the one or more instructions stored from the storage medium and execute it. This enables the machine to operate 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 executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.

[0221] According to one embodiment, the method according to one embodiment disclosed in the present document may be provided as included in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., a compact disc read only memory (CD-ROM)), or may be distributed online (e.g., downloaded or uploaded) via an application store (e.g., Play Store™) or directly between two user devices (e.g., smart phones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.

[0222] According to one embodiment, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and arranged in other components. According to one embodiment, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to one embodiment, the operations performed by a module, program, or other component 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 electronic devices, A light sensor for detecting the intensity of light of a plurality of wavelength ranges; A memory storing instructions and including one or more storage media; and At least one processor comprising a processing circuit, The above instructions, when individually or collectively executed by the at least one processor, Acquire the first illumination data based on the first detection cycle, Acquire second illumination data based on a second detection cycle longer than the first detection cycle, Based on the above first illuminance data, flickering information for each of the plurality of wavelength ranges is obtained, Based on the second illumination data, intensity ratio information between the plurality of wavelength ranges is obtained, Causing the electronic device to identify a type of light source in an area where the electronic device is located based on the flickering information and the intensity ratio information. Electronic devices.

2. In the first paragraph, when the instructions are individually or collectively executed by the at least one processor, Causing the electronic device to identify whether the electronic device is located indoors based on the flickering information and the intensity ratio information. Electronic devices.

3. In the second paragraph, when the instructions are individually or collectively executed by the at least one processor, Causing the electronic device to set the operating mode of the electronic device to an indoor operating mode based on identifying that the electronic device is located indoors; Electronic devices.

4. In the third paragraph, when the instructions are individually or collectively executed by the at least one processor, Causing the electronic device to set the operating mode of the electronic device to an outdoor operating mode based on identifying that the electronic device is located outdoors; Electronic devices.

5. In the fourth paragraph, the electronic device, display; Speaker; and including an actuator for providing vibration, The above instructions, when individually or collectively executed by the at least one processor, Based on the operation mode of the electronic device set to the indoor operation mode, providing a notification through vibration and reducing the brightness of the display, Based on the operation mode of the electronic device set to the outdoor operation mode, causing the electronic device to provide a notification through sound and increase the brightness of the display, Electronic devices.

6. In the second paragraph, the electronic device, Contains communication circuits, The above instructions, when individually or collectively executed by the at least one processor, Causing the electronic device to transmit information to an external electronic device as to whether the electronic device is located indoors; The above information as to whether the electronic device is located indoors, Causing said external electronic device to provide a notification indicating whether said electronic device is located indoors; Electronic devices.

7. In the first paragraph, when the instructions are individually or collectively executed by the at least one processor, Based on the first irradiance data, intensity values ​​for one of the plurality of wavelength ranges are obtained within a first time interval according to the first detection cycle, Causing the electronic device to obtain flickering information for the wavelength range based on the difference between the maximum and minimum values ​​among the above intensity values. Electronic devices.

8. In the first paragraph, when the instructions are individually or collectively executed by the at least one processor, Within the second time interval according to the second detection cycle, the intensity values ​​of each of the plurality of wavelength ranges are obtained, Causing the electronic device to obtain intensity ratio information between the plurality of wavelength ranges based on identifying a ratio of intensity values ​​between two wavelength ranges among the plurality of wavelength ranges, Among the above plurality of wavelength ranges, the first wavelength range corresponds to infrared, Among the above plurality of wavelength ranges, the second wavelength range corresponds to visible light. Electronic devices.

9. In the first paragraph, when the instructions are individually or collectively executed by the at least one processor, Input the above flickering information and the above intensity ratio information into the light source prediction model, Causing the electronic device to identify the type of the light source in the area where the electronic device is located, based on the output of the light source prediction model. Electronic devices.

10. In the 9th paragraph, the electronic device, Contains communication circuits, The above instructions, when individually or collectively executed by the at least one processor, Using the above communication circuit, it is identified that the electronic device is located indoors, Causing the electronic device to train the light source prediction model using the first illuminance data and the second illuminance data based on identifying that the electronic device is located indoors. Electronic devices.

11. In a method performed by an electronic device, An operation of acquiring first illuminance data based on a first detection cycle by using an illuminance sensor for detecting light intensities of multiple wavelength ranges of the electronic device; An operation of obtaining second illuminance data based on a second detection cycle longer than the first detection cycle using the above illuminance sensor; An operation of obtaining flickering information for each of the plurality of wavelength ranges based on the first illuminance data; An operation of obtaining intensity ratio information between the plurality of wavelength ranges based on the second illumination data; and An operation for identifying a type of light source in an area where the electronic device is located, based on the flickering information and the intensity ratio information, method.

12. In the 11th paragraph, the method, An operation for identifying whether the electronic device is located indoors based on the flickering information and the intensity ratio information, method.

13. In the 12th paragraph, the method, An operation comprising: setting an operation mode of the electronic device to an indoor operation mode based on identifying that the electronic device is located indoors; method.

14. In the 13th paragraph, the method, An operation comprising: setting the operation mode of the electronic device to an outdoor operation mode based on identifying that the electronic device is located outdoors; method.

15. In a non-transitory computer-readable storage medium storing one or more programs, the one or more programs, when executed by at least one processor of an electronic device having a light sensor for detecting the intensity of light of one or more plurality of wavelength ranges, Acquire the first illumination data based on the first detection cycle, Acquire second illumination data based on a second detection cycle longer than the first detection cycle, Based on the above first illuminance data, flickering information for each of the plurality of wavelength ranges is obtained, Based on the second illumination data, intensity ratio information between the plurality of wavelength ranges is obtained, instructions for causing the electronic device to identify a type of light source in an area in which the electronic device is located based on the flickering information and the intensity ratio information; Non-transitory computer-readable storage medium.

Citation Information

Patent Citations

  • Sensor circuit and electronic apparatus

    JP2013050422A

  • Communication device and communication method, and computer program

    JP2022119394A

  • Lateral flow assay strip and method of molecular diagnosing using same

    KR1020210116149A

  • Conducting polymer nanostructure based multifunction sensor and preparation method therof

    KR1020230020591A

  • Display device and calibration method thereof

    KR102042419B1