Time length detection method and device, intelligent glasses and storage medium

By using both ambient light and inertial sensors in smart glasses for dual verification, the problem of insufficient accuracy in outdoor activity monitoring is solved, enabling precise timing of effective outdoor activity duration and supporting myopia prevention.

CN122632475APending Publication Date: 2026-08-25GEER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610923641.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-24
Publication Date
2026-08-25

AI Technical Summary

Technical Problem

Existing methods for monitoring outdoor activities suffer from insufficient scene recognition accuracy, making it difficult to accurately detect effective daytime outdoor activity duration and thus hindering the provision of reliable quantitative data for myopia prevention and control.

Method used

The smart glasses collect current light intensity data from the ambient light sensor and acceleration data from the inertial sensor. This data is then combined with preset outdoor activity requirements for dual verification to determine whether the user is engaging in activities in a daytime outdoor environment.

Benefits of technology

It improves the accuracy of outdoor scene recognition, can accurately time the duration of effective outdoor activities, and provides reliable quantitative data to support myopia prevention and control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122632475A_ABST
    Figure CN122632475A_ABST
Patent Text Reader

Abstract

The application discloses a time length detection method and device, intelligent glasses and a storage medium, and relates to the myopia prevention and control technical field. The method is applied to the intelligent glasses provided with an ambient light collecting component and an inertia collecting component. The method comprises the following steps: collecting the current illumination intensity of the environment where a user wears through the ambient light collecting component, and collecting the acceleration data of the user through the inertia collecting component; determining the current posture of the user according to the acceleration data; and timing when the current illumination intensity and the current posture both meet the corresponding preset outdoor activity requirements, so as to obtain the outdoor activity time length of the user. Compared with the existing timing mode which only depends on the positioning to determine the outdoor area, the application can perform double verification through the illumination intensity and the posture, improves the accuracy of the outdoor scene identification, and thus can accurately time the effective outdoor activity time length.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of myopia prevention and control technology, and in particular to a duration detection method, device, smart glasses, and storage medium. Background Technology

[0002] Currently, myopia in children and adolescents has become a major public health problem. Numerous epidemiological and clinical studies at home and abroad have confirmed that sufficient daytime outdoor activities are the core and effective means of preventing and controlling myopia. These activities can significantly reduce the risk of myopia onset and progression by promoting retinal dopamine secretion and slowing down abnormal axial elongation.

[0003] With the development of wearable technology, the methods for monitoring outdoor activity time have gradually evolved from initial manual log recording to using the positioning systems of smart devices (such as smartphones and smart glasses) to record changes in location areas, simply determining whether the user is in an outdoor environment and directly counting that time period as valid outdoor activity time. For example, smart glasses rely on signals from the Global Positioning System (GPS) to determine whether the user has left the indoor coordinate range such as home or school; once it is determined to be outdoors, the time begins to be accumulated.

[0004] However, this timing method suffers from insufficient scene recognition accuracy. For example, in outdoor scenes with insufficient light intensity, such as rainy weather, under trees, or in the shadow of buildings, although GPS indicates outdoor conditions, the actual lighting may not meet the requirements for daytime outdoor activities. Alternatively, even if a user is outdoors, they may be reading or using their phone without relaxing their eyes, which also does not meet the requirements for daytime outdoor activities. Therefore, existing outdoor activity monitoring methods struggle to accurately detect effective daytime outdoor activity duration, thus failing to provide reliable quantitative data for myopia prevention and control. Summary of the Invention

[0005] The main purpose of this application is to provide a duration detection method, device, smart glasses and storage medium, which aims to solve the technical problem that the existing outdoor activity monitoring methods have insufficient scene recognition accuracy, making it difficult to accurately detect the effective duration of daytime outdoor activities.

[0006] To achieve the above objectives, this application proposes a duration detection method, which is applied to smart glasses equipped with an ambient light acquisition component and an inertial acquisition component. The method includes: The ambient light acquisition component collects the current light intensity of the environment in which the wearer is located, and the inertial acquisition component collects the acceleration data of the wearer. The current posture of the wearer is determined based on the acceleration data; Timing is performed when both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements to obtain the outdoor activity duration of the wearer.

[0007] In one embodiment, the step of timing the outdoor activity duration of the wearer when both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements includes: If the current light intensity reaches a preset intensity threshold, it is determined that the wearer is in a daytime outdoor environment, and it is determined whether the current posture is an active state. If the current posture is the activity state, it is determined that the wearer is in a daytime outdoor activity state in the daytime outdoor environment; The duration of the daytime outdoor activity is timed to obtain a first duration; The outdoor activity duration of the user wearing the device is determined based on the first duration.

[0008] In one embodiment, the smart glasses are further provided with a camera component; After the step of determining whether the current posture is an active state, the method further includes: When the current posture is inactive, the camera component acquires a corneal reflection image containing the target object being viewed by the wearer; The relative distance between the wearer and the target object is determined based on the corneal reflection image; If the relative distance reaches a preset distance threshold, it is determined that the wearer is in a daytime outdoor resting state in the daytime outdoor environment; The duration of the daytime outdoor rest period is timed to obtain a second duration; The duration of the user's outdoor activities is determined based on the second duration.

[0009] In one embodiment, the step of determining that the wearer is in a daytime outdoor environment when the current light intensity reaches a preset intensity threshold includes: The ambient light acquisition component collects the light data of the environment in which the wearer is located; The illumination data is analyzed to obtain the current illumination fluctuation and current spectral characteristics; When the current light intensity reaches a preset intensity threshold, detect whether the current light fluctuation reaches a preset fluctuation and / or detect whether the current spectral characteristics meet preset spectral requirements; If the current light intensity fluctuation reaches the preset fluctuation and / or the current spectral characteristics meet the preset spectral requirements, it is determined that the wearer is in a daytime outdoor environment.

[0010] In one embodiment, the smart glasses are further provided with a camera component; The step of determining that the wearer is in a daytime outdoor environment when the current light intensity reaches a preset intensity threshold includes: The camera component captures multiple frames of eye images of the wearer's eye area; The pupil diameter is extracted from each frame of the eye image, and a pupil response curve as a function of light intensity is constructed based on each pupil diameter. Determine the pupil curve interval in the pupil response curve corresponding to the current light intensity reaching the preset intensity threshold, and determine the pupil constriction amplitude based on the pupil curve interval; If the pupil contraction amplitude reaches a preset amplitude threshold, it is determined that the wearer is in a daytime outdoor environment.

[0011] In one embodiment, the smart glasses are further provided with a camera component; The step of determining that the wearer is in a daytime outdoor environment when the current light intensity reaches a preset intensity threshold includes: The camera component captures multiple frames of eye images of the wearer's eye area; From each frame of the eye image, extract the pupil diameter and eyelid opening angle corresponding to the current light intensity reaching the preset intensity threshold; The pupil constriction rate is determined based on the pupil diameter, and the eyelid closure rate is determined based on the eyelid opening and closing angle. The pupil constriction rate and the eyelid closure rate are compared to obtain the degree of synergistic change; If the degree of coordination change reaches a preset coordination threshold, it is determined that the wearer is in a daytime outdoor environment.

[0012] In one embodiment, the smart glasses are further provided with a contact detection component; Before the step of acquiring the current light intensity of the environment in which the wearer is located through the ambient light acquisition component, the following steps are included: The contact detection component collects the clamping pressure between the smart glasses and the contact area of ​​the wearer. The smart glasses are provided with a left temple and a right temple. The clamping pressure includes a first clamping pressure on the left temple and a second clamping pressure on the right temple. The current clamping state is determined based on the first clamping pressure and the second clamping pressure; When the current clamping state is the wearing state, the step of collecting the current light intensity of the environment in which the wearer is located through the ambient light collection component is performed.

[0013] Furthermore, to achieve the above objectives, this application also proposes a duration detection device, the device comprising: The acquisition module is used to acquire the current light intensity of the environment in which the wearer is located through the ambient light acquisition component, and to acquire the acceleration data of the wearer through the inertial acquisition component; The posture module is used to determine the current posture of the wearer based on the acceleration data; The timing module is used to time the outdoor activity duration of the wearer when both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements.

[0014] In addition, to achieve the above objectives, this application also proposes a smart glasses, which is equipped with an ambient light acquisition component and an inertial acquisition component; The smart glasses further include: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the duration detection method described above.

[0015] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the duration detection method described above.

[0016] One or more technical solutions proposed in this application have at least the following technical effects: The duration detection method of this application is applied to smart glasses equipped with an ambient light acquisition component and an inertial acquisition component. The method includes: acquiring the current light intensity of the environment in which the wearer is located through the ambient light acquisition component, and acquiring the acceleration data of the wearer through the inertial acquisition component; determining the current posture of the wearer based on the acceleration data; and timing the outdoor activity duration of the wearer when both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements.

[0017] This application first collects the current light intensity using an ambient light acquisition component, and then collects acceleration data using an inertial acquisition component to determine the current posture. Timing begins when both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements. Compared to existing methods that rely solely on positioning to determine the outdoor area for timing, this application improves the accuracy of outdoor scene recognition through dual verification of light intensity and posture, thereby enabling precise timing of the effective duration of outdoor activities. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart illustrating the duration detection method of this application in Embodiment 1; Figure 2 This is a functional block diagram of the wearing status sensing provided in Embodiment 1 of this application; Figure 3 A functional module diagram for the duration reminder and report generation provided in Embodiment 1 of this application; Figure 4 An overall logic diagram for effective timing provided in Embodiment 1 of this application; Figure 5 This is a flowchart illustrating Embodiment 2 of the duration detection method of this application; Figure 6 This is a functional block diagram of the activity status verification provided in Embodiment 2 of this application; Figure 7 This is a flowchart illustrating Embodiment 3 of the duration detection method of this application; Figure 8 This is a functional module diagram of the scene judgment provided in Embodiment 3 of this application; Figure 9 This is a block diagram of the module structure of the duration detection device according to an embodiment of this application; Figure 10 This is a schematic diagram of the hardware operating environment involved in the smart glasses in this application embodiment.

[0021] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0022] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0023] The main solution proposed in this application is as follows: At present, myopia in children and adolescents has become a major public health problem. Numerous epidemiological and clinical studies at home and abroad have confirmed that sufficient daytime outdoor activities are the core and effective means of preventing and controlling myopia. They can significantly reduce the risk of myopia onset and progression by promoting retinal dopamine secretion and delaying abnormal axial elongation.

[0024] With the development of wearable technology, the methods for monitoring outdoor activity time have gradually evolved from initial manual log recording to using the positioning systems of smart devices (such as smartphones and smart glasses) to record changes in location areas, simply determining whether the user is in an outdoor environment and directly counting that time period as valid outdoor activity time. For example, smart glasses rely on signals from the Global Positioning System (GPS) to determine whether the user has left the indoor coordinate range such as home or school; once it is determined to be outdoors, the time begins to be accumulated.

[0025] However, this timing method suffers from insufficient scene recognition accuracy. For example, in outdoor scenes with insufficient light intensity, such as rainy weather, under trees, or in the shadow of buildings, although GPS indicates outdoor conditions, the actual lighting may not meet the requirements for daytime outdoor activities. Alternatively, even if a user is outdoors, they may be reading or using their phone without relaxing their eyes, which also does not meet the requirements for daytime outdoor activities. Therefore, existing outdoor activity monitoring methods struggle to accurately detect effective daytime outdoor activity duration, thus failing to provide reliable quantitative data for myopia prevention and control.

[0026] To address the aforementioned issues, this application provides a duration detection method. This method is applied to smart glasses equipped with an ambient light acquisition component and an inertial acquisition component. First, the ambient light acquisition component acquires the current light intensity. Then, the inertial acquisition component acquires acceleration data to determine the current posture. Timing begins when both the current light intensity and the current posture meet corresponding preset outdoor activity requirements. Compared to existing methods that rely solely on location to determine the outdoor area for timing, this application uses dual verification of light intensity and posture, improving the accuracy of outdoor scene recognition and thus enabling precise timing of effective outdoor activity duration.

[0027] Based on this, this application proposes a duration detection method in the first embodiment, referring to... Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the duration detection method of this application. In this embodiment, the duration detection method is applied to smart glasses equipped with an ambient light acquisition component and an inertial acquisition component.

[0028] The duration detection method may include steps S10~S30: Step S10: The ambient light acquisition component acquires the current light intensity of the environment in which the wearer is located, and the inertial acquisition component acquires the acceleration data of the wearer.

[0029] It should be noted that the executing entity of this application embodiment can be a smart glasses with data processing, timing, program running functions and execution of the duration detection method of this application. The following uses smart glasses as an example to describe this embodiment and the following embodiments.

[0030] It should be noted that the ambient light acquisition component can be any electronic device used to sense the intensity of ambient light, such as a photodiode or an ambient light sensor; this embodiment does not limit this. Through the ambient light acquisition component, the light intensity value representing the current light intensity can be detected at any given moment.

[0031] It should also be noted that the inertial acquisition unit can be a sensor used to measure the user's acceleration during activity, such as a six-axis inertial measurement unit (IMU). Through the inertial acquisition unit, acceleration data reflecting the changes in the speed of linear motion of the wearer in three orthogonal directions (typically the X, Y, and Z axes) can be acquired.

[0032] In practical use, smart glasses activate their built-in ambient light and inertial sensors to obtain the basic input parameters needed to determine outdoor activities. First, the ambient light sensor detects the lighting conditions at the user's location in real time, obtaining the current light intensity, which characterizes the brightness of the environment. Simultaneously, the inertial sensor continuously collects acceleration data generated by the user's body movements.

[0033] Step S20: Determine the current posture of the wearer based on the acceleration data.

[0034] Understandably, the current posture can be the wearer's current physical state or movement pattern, such as being still, walking, running, sitting, or lying down.

[0035] In practical use, after acquiring the acceleration data collected in real time by the inertial acquisition unit, the time domain features and acceleration amplitude of the acceleration data can be extracted first. Then, the attitude recognition algorithm is used to perform pattern matching on the time domain features and acceleration amplitude to determine the user's current attitude (such as walking, running, strolling, sitting, etc.) and complete the basic attitude determination of the user.

[0036] Step S30: When the current light intensity and the current posture both meet the corresponding preset outdoor activity requirements, time is taken to obtain the outdoor activity duration of the wearer.

[0037] It is also understandable that the preset outdoor activity requirements can be pre-defined conditions used to determine whether the current environment and posture fall within the scope of outdoor activity scenarios approved for myopia prevention. These preset outdoor activity requirements include a first sub-condition regarding light intensity and a second sub-condition regarding posture. For example, the preset outdoor activity requirement regarding light intensity could be that the current light intensity is greater than or equal to 1000 lux, excluding indoor and nighttime environments; the preset outdoor activity requirement regarding posture could be that the current posture is a non-static, non-seated activity state such as walking or running.

[0038] It should be understood that outdoor activity duration can be obtained through timing operations and is used to characterize the amount of time that the wearer actually engages in effective outdoor activities.

[0039] For example, if the smart glasses detect that the current light intensity is 5000 lux, exceeding the preset threshold of 1000 lux, and simultaneously detect that the current posture is walking, meeting the preset activity state requirements, then the smart glasses start timing, incrementing by one second every second. Assuming the user walks outdoors for 30 minutes, during which the light intensity remains above 1000 lux and the posture remains walking, the smart glasses will accumulate 1800 seconds, which is equivalent to 30 minutes, representing the outdoor activity time. If the user enters indoors and the light intensity drops to 200 lux, the requirement is not met, and the timing stops.

[0040] In practical use, after obtaining the current light intensity and current posture, the smart glasses compare these two parameters with preset outdoor activity requirements stored within the glasses. They determine whether the current light intensity meets the preset requirements for outdoor activity, and simultaneously determine whether the current posture meets the preset requirements for outdoor activity. If both the current light intensity and current posture meet their respective preset requirements, a timer is started. If either condition is no longer met, the timer is paused. Finally, the accumulated time value is determined as the user's outdoor activity duration.

[0041] Furthermore, in order to detect whether the smart glasses are being worn by the user, refer to Figure 2 , Figure 2 This is a functional block diagram of the wearing status sensing provided in Embodiment 1 of this application. In this embodiment, the smart glasses also include a contact detection component.

[0042] Before the step of acquiring the current light intensity of the environment in which the wearer is located through the ambient light acquisition component, the following steps are included: Step S01: The clamping pressure between the smart glasses and the contact area of ​​the wearer is collected by the contact detection component. The smart glasses are provided with a left temple and a right temple. The clamping pressure includes a first clamping pressure of the left temple and a second clamping pressure of the right temple.

[0043] It should be noted that the contact detection component can be a sensor element that senses changes in pressure or capacitance through physical contact, such as a capacitive contact sensor, a thin-film pressure sensor, or a piezoresistive sensor, etc. This embodiment does not limit this.

[0044] It should also be noted that the left temple and right temple refer to the two extended structural components located on the left and right sides of the smart glasses frame, used to hook onto the wearer's ears and hold the head.

[0045] Understandably, the clamping pressure can be the squeezing force generated between the temple of the smart glasses and the contact area on the side of the wearer's head. Specifically, the first clamping pressure can refer to the pressure value collected by the contact detection component located on the left temple, and the second clamping pressure can refer to the pressure value collected by the contact detection component located on the right temple.

[0046] Step S02: Determine the current clamping state based on the first clamping pressure and the second clamping pressure.

[0047] It is also understandable that the current clamping state can be the result of a comprehensive judgment of the first clamping pressure and the second clamping pressure of the left and right temples, which is used to characterize the current fixation of the smart glasses relative to the wearer's head.

[0048] Step S03: When the current clamping state is the wearing state, perform the step of collecting the current light intensity of the environment where the user is located through the ambient light collection component.

[0049] It should be noted that the current clamping state includes at least two states: wearing state and not wearing state. Among them, the wearing state can be a state in which the smart glasses are correctly worn on the user's face, both temples are in effective contact with the scalp, and the clamping pressure is within a preset reasonable range.

[0050] For example, when a user correctly wears the smart glasses on their face, the thin-film pressure sensor on the inside of the left temple measures a first clamping pressure of 25 gf, and the thin-film pressure sensor on the inside of the right temple measures a second clamping pressure of 28 gf. The smart glasses' preset wearing condition is that the pressure on both sides is greater than 15 gf and the difference is less than 10 gf. That is, both 25 gf and 28 gf are greater than 15 gf, and the difference is 3 gf less than 10 gf. Therefore, the current clamping state is determined to be the wearing state. At this time, the smart glasses activate the ambient light acquisition component and the inertial acquisition component, and perform data acquisition operations. If the smart glasses are placed on a table, and neither the left nor right temple is subjected to any pressure, the measured first clamping pressure is 0 gf, and the second clamping pressure is 0 gf. In this case, the smart glasses determine the current clamping state to be the non-wearing state and will not perform subsequent ambient light acquisition and acceleration data acquisition.

[0051] In this embodiment, before initiating environmental or activity monitoring, the smart glasses first perform a wear validity verification. First, contact detection components located on the inner sides of the left and right temples respectively collect real-time data on the first clamping pressure between the left temple and the left side of the user's head, and the second clamping pressure between the right temple and the right side of the user's head. Next, pre-stored wear status determination rules are obtained, such as the first and second clamping pressures both needing to be greater than a preset lower pressure threshold and less than a preset upper pressure threshold, while the pressure difference between the two sides must not exceed a preset deviation range. When the current clamping state is determined to be a wearing state, the step of collecting the current light intensity using an ambient light acquisition component is executed. If the current clamping state is a non-wearing state, the acquisition of light intensity and acceleration data is not initiated to avoid generating invalid data and save power. Thus, based on the contact detection components, it is determined in real-time whether the smart glasses are worn on the user's face, serving as a prerequisite for valid duration statistics to eliminate invalid data from non-wearing scenarios.

[0052] Furthermore, such as Figure 2As shown, in another feasible embodiment, in addition to wearing detection via the aforementioned contact detection components, proximity sensors, camera components (such as infrared cameras, color cameras, etc.), and PPG sensors (Photoplethysmography sensors) can be used for further detection of the wearing status. For example, proximity sensors can collect distance data between the smart glasses and the face, and when the distance data is less than a preset distance threshold, it can help confirm the wearing status and rule out accidental touch scenarios; or, a camera component facing inwards towards the eyes can perform eye feature recognition to confirm that the eyes are within the visible range of the glasses, verifying effective wearing; or, a PPG sensor can collect photoplethysmography signals, and based on the photoplethysmography signals, identify human heart rate characteristics to confirm that the smart glasses are being worn effectively, ruling out accidental triggering in an unworn state. The various sensors mentioned above for wearing status detection can independently determine the wearing status or be used in combination; this embodiment does not impose any limitations on this.

[0053] Furthermore, in order to achieve accurate timing, in this embodiment, the step of timing the user's outdoor activity duration when both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements includes: Step S31: When the current light intensity reaches a preset intensity threshold, determine that the wearer is in a daytime outdoor environment and determine whether the current posture is an active state.

[0054] It should be noted that the preset intensity threshold can be a pre-set light intensity value used to distinguish between daytime outdoor environments and non-daytime outdoor environments (such as indoor or nighttime environments). For example, the light intensity indoors is generally 1000 lux, so the preset intensity threshold can be set to 1000 lux.

[0055] It should also be noted that the daytime outdoor environment can refer to the scene where the wearer is in a natural daytime light condition and is in an open space, such as a playground, park or street during the day. The activity state can mean that the wearer's body is in motion rather than stationary, specifically including walking, running, jumping and other states involving limb displacement or shift of body center of gravity, but excluding static states such as sitting, standing still, or lying down.

[0056] Step S32: If the current posture is the activity state, determine that the wearer is in a daytime outdoor activity state in the daytime outdoor environment.

[0057] Understandably, the above-mentioned daytime outdoor activity status can be the result of determining when the wearer is simultaneously active in a daytime outdoor environment.

[0058] Step S33: Time the duration of the daytime outdoor activity state to obtain a first duration.

[0059] Step S34: Determine the outdoor activity duration of the user wearing the device based on the first duration.

[0060] It is also understandable that the first duration could be a numerical value obtained by accumulating the time that the wearer spends continuously in a daytime outdoor activity state.

[0061] For example, when a student wearing smart glasses leaves the teaching building and enters the playground at 10:00 AM, the smart glasses measure the current light intensity at 8000 lux, which is greater than the preset threshold of 1000 lux, thus determining that the student is in a daytime outdoor environment. Simultaneously, based on acceleration data, the student's current posture is determined to be walking, indicating an active state. Therefore, the student is determined to be in a daytime outdoor activity state, and the timer starts at 10:00 AM. The student walks continuously on the playground for 20 minutes, during which the light intensity remains above the threshold and the walking posture is maintained. The smart glasses then accumulate the first 20 minutes of time. Finally, these 20 minutes are added to the day's activity time to obtain the total outdoor activity time.

[0062] Furthermore, the aforementioned outdoor activity time can be accumulated in minutes, with real-time updates of the cumulative effective time for the day and week, to align with the myopia prevention standard of 2 hours per day and 14 hours per week. Meanwhile, if... Figure 3 As shown, Figure 3 The diagram below shows the functional modules for the duration reminder and report generation provided in Embodiment 1 of this application. After obtaining the duration of the outdoor activities, reminders and feedback can be provided based on the statistical results of the outdoor activity duration.

[0063] For example, during the daytime, if the cumulative effective outdoor activity time for the day does not meet the target, a short vibration reminder can be triggered at preset intervals using a vibration motor; during the weekend, if the cumulative outdoor activity time for the week does not meet the target, a tiered progressive vibration reminder can be triggered, thereby using a vibration motor to remind the user to complete the outdoor activity target.

[0064] When the cumulative effective outdoor activity time for a day or week reaches a threshold, a single vibration feedback can be triggered to inform the user that the target has been met. Similarly, when using smart glasses, the aforementioned camera components can be used to identify the user's visual fatigue state through blink frequency and gaze characteristics, triggering outdoor activity reminders accordingly.

[0065] It's also important to note that after obtaining the aforementioned outdoor activity duration, data storage and report generation are possible. The smart glasses can locally store valid data on daily or weekly outdoor activity duration, compliance status, and reminder records to achieve local storage of historical data. Then, periodically, a myopia prevention outdoor activity report is generated, providing eye care suggestions, and synchronized to the user's mobile app via Bluetooth or other means for viewing by the user, parents, or doctors.

[0066] In practical use, refer to Figure 4 , Figure 4 This is the overall logic diagram for effective timing provided in Embodiment 1 of this application. Before the smart glasses start timing, it first determines whether they are in a valid wearing state. If not, it means that the smart glasses are not being worn by the user; in this case, even if timing is performed, it is invalid, so it enters a low-power sleep mode and pauses the accumulation of time. If they are in a valid wearing state, the ambient light acquisition component collects the current light intensity again to determine whether the user is in a daytime outdoor scene; if the user is not in a daytime outdoor scene, the accumulation of time is also paused; if the user is in a daytime outdoor scene, the inertial acquisition component collects acceleration data again to determine whether the user is in a real activity state. If the user is not in a real activity state, such as reading or playing on a mobile phone, the accumulation of time is also paused; if the user is in a real activity state, timing continues until any of the above conditions are no longer met, and a valid user activity time is obtained. The above monitoring process is executed cyclically until the smart glasses are turned off or enter a sleep state. Thus, by performing dual verification through the daytime outdoor environment and activity state, the inclusion of invalid scenarios is reduced. Finally, based on the user's activity duration, reminders and feedback are provided, and data such as outdoor activity duration, achievement status, and reminder records are stored locally. Then, a myopia prevention outdoor activity report is generated periodically.

[0067] This application provides a duration detection method applied to smart glasses equipped with an ambient light acquisition component and an inertial acquisition component. First, the ambient light acquisition component collects the current light intensity. Then, the inertial acquisition component collects acceleration data to determine the current posture. Timing begins when both the current light intensity and the current posture meet corresponding preset outdoor activity requirements. Compared to existing methods that rely solely on location to determine the outdoor area for timing, this embodiment uses dual verification of light intensity and posture, improving the accuracy of outdoor scene recognition and thus enabling precise timing of effective outdoor activity duration.

[0068] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to the above embodiment can be referred to the above description, and will not be repeated hereafter. On this basis, a second embodiment of the dialogue method of this application is proposed, please refer to... Figure 5 , Figure 5This is a flowchart illustrating Embodiment 2 of the duration detection method of this application. Considering the scenario where a user is sitting quietly outdoors gazing into the distance, such as… Figure 5 As shown, in this embodiment, after the step of determining whether the current posture is an active state, the method further includes: Step S32': When the current posture is inactive, the camera component acquires a corneal reflection image containing the target object being viewed by the user.

[0069] It should be noted that the reference Figure 6 , Figure 6 This is a functional block diagram of the activity status verification provided in Embodiment 2 of this application. During the activity status verification process, in addition to using an inertial acquisition component, the smart glasses also include a camera component. The camera component can be an optical sensor used for image acquisition in the smart glasses, such as an infrared camera or a color camera, and can be installed inside the frame of the smart glasses and pointed towards the wearer's eye area.

[0070] It should also be noted that the target object can be an object that the wearer is currently looking at in their field of vision, such as a book, a mobile phone, a distant sign, or a tree.

[0071] Understandably, a corneal reflection image can be a spot or image captured by a camera component that includes light reflected from the surface of the user's cornea.

[0072] Step S33': Determine the relative distance between the wearer and the target object based on the corneal reflection image.

[0073] It is also understandable that relative distance can be the spatial straight-line distance between the wearer's eyes and the target object being viewed.

[0074] Step S34': When the relative distance reaches a preset distance threshold, it is determined that the wearer is in a daytime outdoor resting state in the daytime outdoor environment.

[0075] It should be understood that the preset distance threshold can be a pre-set distance value used to distinguish between near-field eye use (such as reading or looking at a screen) and far-field gaze (such as looking into the distance). For example, the preset distance threshold can be set to 50 centimeters, and anything greater than this preset distance threshold is considered far-field gaze.

[0076] It should also be understood that the daytime outdoor rest state can be a state in which the wearer is inactive in a daytime outdoor environment (such as sitting or standing still), but the distance of the target object is relatively far, which is consistent with the rest state of relaxing eye accommodation in myopia prevention and control.

[0077] For example, if a user is sitting on an outdoor bench looking down at their phone, and the corneal reflection image shows a relative distance of 30 centimeters or less than 50 centimeters, then the user does not meet the criteria for daytime outdoor rest, and the smart glasses will not record the time spent looking down at their phone.

[0078] Step S35': Time the duration of the daytime outdoor rest state to obtain the second duration.

[0079] Step S36': Determine the outdoor activity duration of the user wearing the device based on the second duration.

[0080] It should be noted that the second duration can be a numerical value obtained by accumulating the time that the wearer spends continuously in a daytime outdoor resting state.

[0081] In practical use, after determining that the current posture is inactive, the smart glasses do not immediately exclude this period from the valid outdoor time. Instead, they further activate the camera component facing inwards towards the eye to capture one or more frames of corneal reflection images containing the user's corneal region. The corneal reflection images are then processed to extract the position of the reflected light spot on the cornea or the offset of the target object's image point. Using a pre-calibrated mapping relationship, the relative distance between the user's eye and the target object being viewed is calculated. The calculated relative distance is then compared with a pre-stored preset distance threshold. If the relative distance is greater than or equal to the preset distance threshold, it is determined that although the user's body is inactive in the daytime outdoor environment, their eyes are focused on a distant object, meeting the requirements for relaxation and control. Therefore, the user's current overall state is determined as a daytime outdoor rest state. The duration of this daytime outdoor rest state is then timed until the condition is no longer met, obtaining a second duration. Finally, the above second duration is accumulated to determine the user's total outdoor activity time. This allows for the identification of whether a user is engaging in visually beneficial activities such as gazing into the distance or taking a resting gaze by detecting the gaze distance. This reduces misjudgments caused by simply remaining still and improves the scientific accuracy of outdoor effective rest duration statistics.

[0082] Furthermore, in another feasible embodiment, such as Figure 6As shown, in the process of activity status verification, in addition to the aforementioned inertial acquisition and camera components, PPG sensors or Time of Flight (ToF) sensors can also be used. For example, a PPG sensor can be used to acquire photoplethysmography (PPG) signals, and the heart rate or pulse rate variation characteristics in the PPG signals can be analyzed to assist in verifying whether the user is active. Alternatively, a ToF sensor can be used to acquire the continuous variation characteristics of the user's environmental spatial position, and these continuous variation characteristics can assist in verifying whether the user is in a continuous movement state. The various sensors mentioned above for activity status detection can independently complete activity status determination or be used in combination; this embodiment does not impose any limitations on this.

[0083] Based on the first and / or second embodiments of this application, in the third embodiment of this application, the content that is the same as or similar to that in embodiments one and two above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 7 , Figure 7 This is a flowchart illustrating Embodiment 3 of the duration detection method of this application. To improve the accuracy of daytime outdoor environment determination, such as... Figure 7 As shown, in this embodiment, the step of determining that the wearer is in a daytime outdoor environment when the current light intensity reaches a preset intensity threshold includes: Step S311: Collect the ambient light data of the environment where the wearer is located through the ambient light acquisition component.

[0084] It should be noted that the illumination data can be the raw measurement information reflecting the characteristics of ambient light collected by the ambient light acquisition component, which may include the light intensity sequence that changes over time and the light intensity distribution of different wavelengths.

[0085] Step S312: Analyze the illumination data to obtain the current illumination fluctuation and current spectral characteristics.

[0086] It should also be noted that the current light intensity fluctuation can be used to reflect the degree of change in ambient light intensity. Daytime outdoor natural light typically exhibits some irregular fluctuations due to cloud movement, tree shading, or changes in the sun's angle; while indoor artificial light sources usually exhibit stable periodic fluctuations of a DC component, and the two have different fluctuation characteristics. Therefore, the current light intensity fluctuation can be used to determine whether a user is in a daytime outdoor environment.

[0087] Understandably, the current spectral characteristics can refer to the proportion of light intensity distribution at different wavelengths in ambient light, such as the energy proportions of red, green, and blue light. Since the spectrum of natural outdoor light during the day typically exhibits a continuous and relatively smooth distribution, while the spectrum of indoor artificial light sources often shows peaks or gaps at certain wavelengths, the current spectral characteristics can be used to determine whether the user is in a daytime outdoor environment.

[0088] Step S313: When the current light intensity reaches a preset intensity threshold, detect whether the current light fluctuation reaches a preset fluctuation and / or detect whether the current spectral characteristics meet preset spectral requirements.

[0089] It is also understandable that the preset volatility can be a pre-defined threshold value for volatility parameters, used to distinguish between outdoor natural light volatility and indoor artificial light source volatility. The preset spectral requirements can be pre-defined spectral distribution characteristics, used to match the spectral characteristics of daytime outdoor natural light.

[0090] Step S314: If the current light intensity fluctuation reaches the preset fluctuation and / or the current spectral characteristics meet the preset spectral requirements, it is determined that the wearer is in a daytime outdoor environment.

[0091] In practical use, further refined scene verification is performed based on the current light intensity reaching a preset intensity threshold. The smart glasses continuously collect light data of the user's environment through an ambient light acquisition component. Then, a light intensity sequence within a sliding time window is extracted, and the dominant frequency component after the Fourier transform of this sequence is calculated to obtain the current light intensity fluctuation. Simultaneously, the proportion of light intensity at different wavelengths is extracted from the light data to obtain the current spectral characteristics. Subsequently, it is detected whether the current light intensity fluctuation is greater than or equal to a preset fluctuation, and whether the similarity between the current spectral characteristics and the preset spectral requirements reaches a matching threshold. If at least one of these conditions is met, it can be determined that the user is indeed in a daytime outdoor environment, rather than an indoor strong light source. Thus, by introducing dual verification of dynamic light changes and spectral characteristics, misjudgments caused by indoor strong light sources are reduced, improving the accuracy of daytime outdoor environment recognition.

[0092] Furthermore, to improve the robustness of daytime outdoor environment judgment, in this embodiment, reference is made to... Figure 8 , Figure 8 This is a functional module diagram of scene judgment provided in Embodiment 3 of this application. The smart glasses are also equipped with a camera component.

[0093] The step of determining that the wearer is in a daytime outdoor environment when the current light intensity reaches a preset intensity threshold includes: Step A311: Acquire multiple frames of eye images of the wearer's eye area using the camera component.

[0094] It should be noted that multi-frame eye images can be multiple images containing the area of ​​the user's eye that are continuously captured by the camera component at preset time intervals (e.g., one frame every 100 milliseconds).

[0095] Step A312: Extract the pupil diameter from each frame of the eye image and construct a pupil response curve that varies with light intensity based on each pupil diameter.

[0096] It should also be noted that the pupil diameter can be the horizontal or vertical length of the pupil region detected from an eye image. The pupil response curve can be a function curve plotted with ambient light intensity as the abscissa and pupil diameter as the ordinate. Since the pupil constricts when the light intensity increases and dilates when the light intensity decreases, it can be used to characterize the dynamic response relationship of the wearer's pupil diameter as the ambient light intensity changes.

[0097] Step A313: Determine the pupil curve interval in the pupil response curve corresponding to the current light intensity reaching the preset intensity threshold, and determine the pupil constriction amplitude based on the pupil curve interval.

[0098] Understandably, the pupil curve interval can refer to the curve segment in the pupil response curve corresponding to the event that the current light intensity reaches a preset intensity threshold.

[0099] It is also understandable that the pupil constriction amplitude can be the amount of reduction in pupil diameter during changes in light intensity, usually characterized by the difference between the initial pupil diameter and the final pupil diameter.

[0100] Step A314: If the pupil contraction amplitude reaches a preset amplitude threshold, it is determined that the wearer is in a daytime outdoor environment.

[0101] It should be understood that the preset amplitude threshold can be a pre-set value for pupil constriction, used to determine whether the current light change is drastic enough to prove that the wearer is in a real daytime outdoor environment.

[0102] For example, when a user opens a door and goes outdoors, the light intensity increases from 300 lux to 1200 lux within 0.5 seconds, exceeding the preset threshold of 1000 lux. During this period, the camera continuously captures 10 frames of eye images at a rate of 20 frames per second. The pupil diameter is extracted from each frame, showing that it gradually decreases from 5.0 mm to 3.5 mm. The smart glasses construct a response curve with light intensity as the x-axis and pupil diameter as the y-axis, and determine the pupil curve range when the light intensity reaches 1000 lux. Within this range, the initial pupil diameter is 3.8 mm, the ending pupil diameter is 3.5 mm, and the pupil constriction amplitude is 0.3 mm. The preset amplitude threshold is 0.2 mm; 0.3 mm is greater than 0.2 mm, therefore it can be determined that the wearer is in a daytime outdoor environment.

[0103] In practical use, after determining that the current light intensity has reached a preset threshold, the smart glasses further acquire multiple frames of eye images of the wearer's eye area through the camera component. Then, using Hough circle transform or a pupil segmentation model based on deep learning, the pixel coordinates of the pupil boundary are extracted from each frame, and the corresponding pupil diameter is calculated. Subsequently, based on the ambient light intensity at the acquisition time of each frame and the pupil diameter extracted from that frame, a pupil response curve that changes with light intensity is constructed. Next, the pupil curve interval corresponding to the current light intensity reaching the preset threshold is located on the pupil response curve, and the difference between the pupil diameter at the start and end points within this interval is calculated; this difference is the pupil constriction amplitude. Finally, the calculated pupil constriction amplitude is compared with a pre-stored preset amplitude threshold. If the pupil constriction amplitude is greater than or equal to the preset amplitude threshold, it indicates that the wearer's pupil has undergone a significant constriction response when the light intensity reaches the outdoor threshold, consistent with the physiological reflex caused by strong light exposure in a real daytime outdoor environment; therefore, it can be determined that the wearer is in a daytime outdoor environment. By using the pupil constriction amplitude as an environmental criterion, the misjudgment caused by wearing obstructions or equipment errors when relying solely on external sensors to measure light intensity is reduced, further improving the accuracy of daytime outdoor environment recognition.

[0104] Furthermore, to further improve the accuracy of determining the daytime outdoor environment, in this embodiment, the smart glasses are also equipped with a camera component. The step of determining that the wearer is in a daytime outdoor environment when the current light intensity reaches a preset intensity threshold includes: acquiring multiple frames of eye images of the wearer's eye area through the camera component; extracting the pupil diameter and eyelid opening / closing angle corresponding to the current light intensity reaching the preset intensity threshold from each frame of the eye image; determining the pupil contraction rate based on the pupil diameter and the eyelid closure rate based on the eyelid opening / closing angle; comparing the pupil contraction rate and the eyelid closure rate to obtain a degree of coordinated change; if the degree of coordinated change reaches a preset coordinated threshold, then determining that the wearer is in a daytime outdoor environment.

[0105] It should be noted that the eyelid opening angle can refer to the angle between the upper and lower eyelid edges extracted from an eye image, used to characterize the degree to which the eye is open or closed. The pupillary contraction rate can refer to the relative reduction in pupil diameter during changes in light intensity. The eyelid closure rate can refer to the relative change in the eyelid opening angle relative to a baseline angle when the eye is fully open.

[0106] It should also be noted that the degree of synergistic change can refer to the consistency or correlation between the changing trends of pupil contraction rate and eyelid closure rate, such as their ratio, absolute value of the difference, or correlation coefficient. The preset synergistic threshold can be a pre-set value of the degree of synergistic change, used to determine whether pupil contraction and eyelid closure exhibit a synergistic relationship consistent with the physiological reflex characteristics under strong outdoor light stimulation during the day.

[0107] In real daytime outdoor environments, strong light stimulation simultaneously causes pupil constriction and eyelid squinting, exhibiting a synergistic relationship. Therefore, this synergistic relationship can be used to further determine whether the wearer is in a daytime outdoor environment.

[0108] For example, a user wearing smart glasses is in sunlight where the current light intensity reaches 10,000 lux, exceeding the preset threshold of 1,000 lux. The camera captures a frame of eye image, extracting the pupil diameter as 3.0 mm, while the baseline pupil diameter (measured indoors at 300 lux) is 5.0 mm. The calculated pupil constriction rate is (5.0 - 3.0) / 5.0 = 40%. Simultaneously, the extracted eyelid opening angle is 15 degrees, while the baseline eyelid opening angle (fully open) is 30 degrees. The calculated eyelid closure rate is (30 - 15) / 30 = 50%. Next, the co-variance is calculated as the ratio of pupil constriction rate to eyelid closure rate, i.e., 40% / 50% = 0.8. The preset co-variance threshold is in the range of 0.6 to 1.4; 0.8 falls within this range. Therefore, the co-variance reaches the preset threshold, indicating that the student is in a daytime outdoor environment.

[0109] In practical use, the smart glasses first acquire images of the eyes through the camera component, then extract the pupil diameter and eyelid opening and closing angle, and then calculate the degree of coordinated change between the pupil contraction rate and the eyelid closure rate. This degree of coordinated change is compared with a preset coordination threshold. If the degree of coordinated change reaches the preset threshold, it indicates that the wearer's pupil contraction and eyelid squinting responses occur coordinatedly, consistent with the natural physiological reflexes under strong light in a real daytime outdoor environment. Therefore, it can be determined that the wearer is in a daytime outdoor environment. Thus, by introducing a dynamic coordination mechanism based on the dual physiological characteristics of the pupil and eyelids, misjudgments caused by individual differences due to a single feature are reduced, improving the robustness of daytime outdoor environment recognition.

[0110] Furthermore, such as Figure 8 As shown, in another feasible embodiment, in the process of determining daytime outdoor scenes, in addition to the ambient light acquisition component and camera component used above, a PPG sensor or a ToF distance sensor can also be used. For example, a ToF sensor can collect depth detection data of the user's ambient space, and this depth detection data can help distinguish between open outdoor spaces and enclosed indoor spaces, reducing the misjudgment rate in strong indoor lighting environments. The various sensors mentioned above for determining daytime outdoor scenes can independently complete the determination of daytime outdoor scenes, or they can be used in combination; this embodiment does not limit this. It can distinguish between daytime outdoor natural light, indoor artificial light sources, and nighttime environments to complete basic scene determination. It can accurately distinguish between outdoor and indoor scenes, and between daytime and nighttime periods, and can effectively lock onto daytime outdoor scenes recognized for myopia prevention and control.

[0111] In this embodiment, through multi-dimensional cross-validation of wearing status, outdoor scene, and activity status, daytime outdoor activities recognized for myopia prevention can be accurately identified, and various invalid data can be eliminated, providing objective and quantifiable monitoring evidence for myopia prevention in children and adolescents. The above process can be fully implemented based on the native hardware of the myopia prevention smart glasses, without affecting the daily wearing experience. Users do not need to carry additional devices such as mobile phones or wristbands, and no active operation is required. The monitoring, statistics, and reminders are completed automatically throughout the process, completely eliminating the dependence on additional devices and providing a feasible implementation process for routine myopia prevention at home.

[0112] It should be noted that the above examples are for understanding this application only and do not constitute a limitation on the duration detection method of this application. Any simple modifications based on this technical concept are within the scope of protection of this application. All actions involving the acquisition of signals, information, or data in this application are performed in accordance with the relevant data protection regulations of the country where the application is located and with authorization from the owner of the relevant device.

[0113] This application also provides a duration detection device, please refer to... Figure 9, Figure 9 This is a block diagram of the module structure of the duration detection device according to an embodiment of this application; in this embodiment, the duration detection device includes: The acquisition module 901 is used to acquire the current light intensity of the environment in which the wearer is located through the ambient light acquisition component, and to acquire the acceleration data of the wearer through the inertial acquisition component; Attitude module 902 is used to determine the current attitude of the wearer based on the acceleration data; The timing module 903 is used to time the outdoor activity duration of the wearer when both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements.

[0114] This embodiment first acquires the current light intensity using an ambient light acquisition component, and then acquires acceleration data using an inertial acquisition component to determine the current posture. Timing begins when both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements. Compared to existing methods that rely solely on positioning to determine the outdoor area for timing, this embodiment uses both light intensity and posture for dual verification, improving the accuracy of outdoor scene recognition and thus enabling precise timing of the effective duration of outdoor activities.

[0115] In one implementation, the timing module 903 is further configured to: determine that the user is in a daytime outdoor environment when the current light intensity reaches a preset intensity threshold, and determine whether the current posture is an active state; if the current posture is the active state, determine that the user is in a daytime outdoor activity state in the daytime outdoor environment; time the duration of the daytime outdoor activity state to obtain a first duration; and determine the user's outdoor activity duration based on the first duration.

[0116] In one implementation, the timing module 903 is further configured to: acquire a corneal reflection image of the target object being viewed by the user through the camera component when the current posture is inactive; determine the relative distance between the user and the target object based on the corneal reflection image; determine that the user is in a daytime outdoor resting state in the daytime outdoor environment when the relative distance reaches a preset distance threshold; time the duration of the daytime outdoor resting state to obtain a second duration; and determine the user's outdoor activity duration based on the second duration.

[0117] In one implementation, the timing module 903 is further configured to collect illumination data of the environment in which the wearer is located through the ambient light acquisition component; analyze the illumination data to obtain the current illumination fluctuation and the current spectral characteristics; when the current illumination intensity reaches a preset intensity threshold, detect whether the current illumination fluctuation reaches a preset fluctuation and / or detect whether the current spectral characteristics meet preset spectral requirements; when the current illumination fluctuation reaches the preset fluctuation and / or the current spectral characteristics meet the preset spectral requirements, determine that the wearer is in a daytime outdoor environment.

[0118] In one implementation, the timing module 903 is further configured to acquire multiple frames of eye images of the wearer's eye region through the camera component; extract the pupil diameter from each frame of the eye image, and construct a pupil response curve that varies with light intensity based on each pupil diameter; determine the pupil curve interval in the pupil response curve corresponding to the current light intensity reaching the preset intensity threshold, and determine the pupil constriction amplitude based on the pupil curve interval; if the pupil constriction amplitude reaches the preset amplitude threshold, it is determined that the wearer is in a daytime outdoor environment.

[0119] In one implementation, the timing module 903 is further configured to acquire multiple frames of eye images of the wearer's eye region through the camera component; extract the pupil diameter and eyelid opening / closing angle corresponding to the current light intensity reaching the preset intensity threshold from each frame of the eye image; determine the pupil contraction rate based on the pupil diameter and the eyelid closure rate based on the eyelid opening / closing angle; compare the pupil contraction rate and the eyelid closure rate to obtain a degree of coordinated change; if the degree of coordinated change reaches a preset coordinated threshold, it is determined that the wearer is in a daytime outdoor environment.

[0120] In one implementation, the acquisition module 901 is further configured to acquire the clamping pressure between the smart glasses and the contact area of ​​the wearer through the contact detection component. The smart glasses have a left temple and a right temple. The clamping pressure includes a first clamping pressure of the left temple and a second clamping pressure of the right temple. The current clamping state is determined based on the first clamping pressure and the second clamping pressure. If the current clamping state is a wearing state, the step of acquiring the current light intensity of the environment where the wearer is located through the ambient light acquisition component is performed.

[0121] Other embodiments or specific implementations of the duration detection device of this application can be found in the above-described method embodiments, and will not be repeated here.

[0122] The duration detection device provided in this application, employing the duration detection method described in the above embodiments, can solve the technical problem that existing outdoor activity monitoring methods suffer from insufficient scene recognition accuracy, leading to difficulties in accurately detecting the effective duration of daytime outdoor activities. Compared with the prior art, the beneficial effects of the duration detection device provided in this application are the same as those of the duration detection method provided in the above embodiments, and other technical features in the duration detection device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0123] This application provides a smart glasses, which includes an ambient light acquisition component and an inertial acquisition component; the smart glasses also include: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the duration detection method in the above embodiments.

[0124] The following is for reference. Figure 10 , Figure 10 This is a schematic diagram of the hardware operating environment involved in the smart glasses in the embodiments of this application, which shows a schematic diagram of the structure suitable for implementing the smart glasses in the embodiments of this application. Figure 10 The smart glasses shown are merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.

[0125] like Figure 10 As shown, smart glasses may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in read-only memory 1002 or a program loaded from storage device 1003 into random access memory 1004. Random access memory 1004 also stores various programs and data required for the operation of the smart glasses. The processing device 1001, read-only memory 1002, and random access memory 1004 are interconnected via bus 1005. Input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to input / output interface 1006: input devices 1007 including, for example, touchpads, image sensors, microphones, etc.; output devices 1008 including, for example, speakers, vibrators, etc.; storage devices 1003 including, for example, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the smart glasses to communicate wirelessly or wiredly with other devices to exchange data. Although smart glasses with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. It can be implemented alternatively or with more or fewer systems.

[0126] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0127] The smart glasses provided in this application, employing the duration detection method described in the above embodiments, can solve the technical problem that existing outdoor activity monitoring methods suffer from insufficient scene recognition accuracy, leading to difficulties in accurately detecting effective daytime outdoor activity duration. Compared with the prior art, the beneficial effects of the smart glasses provided in this application are the same as those of the duration detection method provided in the above embodiments, and other technical features of the smart glasses are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0128] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0129] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0130] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the duration detection method in the above embodiments.

[0131] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.

[0132] The aforementioned computer-readable storage medium may be included in the smart glasses; or it may exist independently and not assembled into the smart glasses.

[0133] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by the smart glasses, the smart glasses cause the following: the ambient light acquisition component to acquire the current light intensity of the environment in which the wearer is located, and the inertial acquisition component to acquire the acceleration data of the wearer; the wearer's current posture to be determined based on the acceleration data; and the wearer to obtain the duration of the wearer's outdoor activity when both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements.

[0134] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0135] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation that may be implemented in systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0136] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0137] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described duration detection method. This solves the technical problem that existing outdoor activity monitoring methods suffer from insufficient scene recognition accuracy, leading to difficulties in accurately detecting effective daytime outdoor activity duration. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the duration detection method provided in the above embodiments, and will not be repeated here.

[0138] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the duration detection method described above.

[0139] The computer program product provided in this application can solve the technical problem that existing outdoor activity monitoring methods have insufficient scene recognition accuracy, making it difficult to accurately detect the effective duration of daytime outdoor activities. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the duration detection method provided in the above embodiments, and will not be repeated here.

[0140] The above description is only a part of the embodiments of this application and does not limit the scope of protection of this application. All equivalent structural transformations made under the technical concept of this application and using the content of this application specification and drawings, or direct / indirect applications in other related technical fields, are included in the scope of protection of this application.

Claims

1. A duration detection method, characterized in that, The duration detection method is applied to smart glasses equipped with an ambient light acquisition component and an inertial acquisition component, and the method includes: The ambient light acquisition component collects the current light intensity of the environment in which the wearer is located, and the inertial acquisition component collects the acceleration data of the wearer. The current posture of the wearer is determined based on the acceleration data; Timing is performed when both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements to obtain the outdoor activity duration of the wearer.

2. The method as described in claim 1, characterized in that, The step of timing the outdoor activity duration of the wearer under the condition that both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements includes: If the current light intensity reaches a preset intensity threshold, it is determined that the wearer is in a daytime outdoor environment, and it is determined whether the current posture is an active state. If the current posture is the activity state, it is determined that the wearer is in a daytime outdoor activity state in the daytime outdoor environment; The duration of the daytime outdoor activity is timed to obtain a first duration; The outdoor activity duration of the user wearing the device is determined based on the first duration.

3. The method as described in claim 2, characterized in that, The smart glasses are also equipped with a camera component; After the step of determining whether the current posture is an active state, the method further includes: When the current posture is inactive, the camera component acquires a corneal reflection image containing the target object being viewed by the wearer; The relative distance between the wearer and the target object is determined based on the corneal reflection image; If the relative distance reaches a preset distance threshold, it is determined that the wearer is in a daytime outdoor resting state in the daytime outdoor environment; The duration of the daytime outdoor rest period is timed to obtain a second duration; The duration of the user's outdoor activities is determined based on the second duration.

4. The method as described in claim 2, characterized in that, The step of determining that the wearer is in a daytime outdoor environment when the current light intensity reaches a preset intensity threshold includes: The ambient light acquisition component collects the light data of the environment in which the wearer is located; The illumination data is analyzed to obtain the current illumination fluctuation and current spectral characteristics; When the current light intensity reaches a preset intensity threshold, detect whether the current light fluctuation reaches a preset fluctuation and / or detect whether the current spectral characteristics meet preset spectral requirements; If the current light intensity fluctuation reaches the preset fluctuation and / or the current spectral characteristics meet the preset spectral requirements, it is determined that the wearer is in a daytime outdoor environment.

5. The method as described in claim 2, characterized in that, The smart glasses are also equipped with a camera component; The step of determining that the wearer is in a daytime outdoor environment when the current light intensity reaches a preset intensity threshold includes: The camera component captures multiple frames of eye images of the wearer's eye area; The pupil diameter is extracted from each frame of the eye image, and a pupil response curve as a function of light intensity is constructed based on each pupil diameter. Determine the pupil curve interval in the pupil response curve corresponding to the current light intensity reaching the preset intensity threshold, and determine the pupil constriction amplitude based on the pupil curve interval; If the pupil contraction amplitude reaches a preset amplitude threshold, it is determined that the wearer is in a daytime outdoor environment.

6. The method as described in claim 2, characterized in that, The smart glasses are also equipped with a camera component; The step of determining that the wearer is in a daytime outdoor environment when the current light intensity reaches a preset intensity threshold includes: The camera component captures multiple frames of eye images of the wearer's eye area; From each frame of the eye image, extract the pupil diameter and eyelid opening angle corresponding to the current light intensity reaching the preset intensity threshold; The pupil constriction rate is determined based on the pupil diameter, and the eyelid closure rate is determined based on the eyelid opening and closing angle. The pupil constriction rate and the eyelid closure rate are compared to obtain the degree of synergistic change; If the degree of coordination change reaches a preset coordination threshold, it is determined that the wearer is in a daytime outdoor environment.

7. The method according to any one of claims 1 to 6, characterized in that, The smart glasses are also equipped with a contact detection component; Before the step of acquiring the current light intensity of the environment in which the wearer is located through the ambient light acquisition component, the following steps are included: The contact detection component collects the clamping pressure between the smart glasses and the contact area of ​​the wearer. The smart glasses are provided with a left temple and a right temple. The clamping pressure includes a first clamping pressure on the left temple and a second clamping pressure on the right temple. The current clamping state is determined based on the first clamping pressure and the second clamping pressure; When the current clamping state is the wearing state, the step of collecting the current light intensity of the environment in which the wearer is located through the ambient light collection component is performed.

8. A duration detection device, characterized in that, The device includes: The acquisition module is used to acquire the current light intensity of the environment in which the wearer is located through the ambient light acquisition component, and to acquire the acceleration data of the wearer through the inertial acquisition component; The posture module is used to determine the current posture of the wearer based on the acceleration data; The timing module is used to time the outdoor activity duration of the wearer when both the current light intensity and the current posture meet the corresponding preset outdoor activity requirements.

9. A type of smart glasses, characterized in that, The smart glasses are equipped with an ambient light acquisition component and an inertial acquisition component; The smart glasses further include: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the duration detection method as described in any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the duration detection method as described in any one of claims 1 to 7.