A flexible attendance alarm clock control method and terminal based on local behavior data
By collecting behavioral data locally on the mobile terminal to identify overtime status, generating a flexible alarm clock and restoring the original configuration, the flexibility and stability issues of the existing alarm clock function in overtime scenarios are solved, and the adaptability of alarm clock control and user experience are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN KUSAI INTELLIGENT CO LTD
- Filing Date
- 2026-03-18
- Publication Date
- 2026-06-12
AI Technical Summary
Existing mobile alarm clock functions are difficult to adjust flexibly according to the user's actual overtime status, making manual modification cumbersome and affecting the stability of the original work schedule. Furthermore, existing behavioral data recognition technology increases the burden on the terminal or frequently makes misjudgments.
By collecting behavioral data locally on mobile terminals, the system uses a rule-based overtime determination module to identify users' overtime status and generates flexible alarms for temporary adjustments when conditions are met, restoring the original alarm configuration and avoiding frequent manual modifications.
The alarm clock function has been improved in terms of adaptability and reliability in attendance scenarios, and the system resource consumption has been reduced, ensuring the stability and convenience of users' schedules.
Smart Images

Figure CN122200832A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mobile terminal intelligent control technology, and in particular to a flexible attendance alarm clock control method and terminal based on local behavioral data. Background Technology
[0002] With the widespread use of mobile devices, more and more users are setting alarms on smartphones and other devices to assist in daily routine management, especially in weekday attendance scenarios. Alarm clocks have become an important tool to ensure users wake up on time and arrive at work on time. Existing mobile devices typically allow users to set recurring alarms at fixed times, such as triggering reminders at fixed times on weekdays to meet users' daily commuting and attendance needs.
[0003] However, in actual use, users' sleep schedules are not always stable, especially when working overtime, at night, or having many unexpected tasks. Users often need to keep their devices active for extended periods at night. If users continue to use their devices late at night and trigger alarms at preset times, it can easily lead to insufficient sleep, affecting work efficiency and health the next day. Therefore, in practice, some users manually modify or turn off their alarms when working overtime to avoid being woken up too early.
[0004] However, the aforementioned method of relying on users to manually adjust alarm times has significant shortcomings. On the one hand, users often forget to reset their alarm settings after working overtime, leading to late wake-up times or attendance delays on subsequent workdays. On the other hand, frequently manually changing alarm times is not only cumbersome but also reduces the ease of use of the alarm function. Furthermore, existing alarm clock applications on mobile devices typically trigger alarms only based on fixed times set by the user, lacking the ability to perceive the user's actual behavior and making it difficult to dynamically adjust the alarm trigger time according to changes in the user's device usage at night.
[0005] On the other hand, while some smart devices attempt to identify user status through behavioral data analysis, these technologies often require continuous collection of various terminal behavioral data, increasing device power consumption and potentially placing an additional burden on terminal system resources. Furthermore, when applying user behavior recognition results to alarm clock control, existing technologies typically directly modify the original alarm clock configuration. If the recognition results are misjudged, it can easily disrupt the user's original schedule, and there is a lack of flexible and reliable alarm clock recovery mechanisms.
[0006] Therefore, how to identify users' overtime status through local behavior data of mobile terminals without increasing the burden on the terminal system, and how to achieve flexible adjustment of the alarm clock while maintaining the stability of the original alarm clock configuration, so as to improve the adaptability and reliability of the alarm clock function in attendance scenarios, has become an urgent technical problem to be solved in the field of mobile terminal alarm clock control technology.
[0007] Therefore, existing technologies still need to be improved. Summary of the Invention
[0008] In view of the shortcomings of the prior art, this invention provides a flexible attendance alarm clock control method and terminal based on local behavioral data. This method addresses the problems of existing mobile terminal alarm clock functions being unable to flexibly adjust according to the user's actual overtime work status, relying on cumbersome manual alarm clock settings modification by the user, and easily affecting the stability of the original alarm clock configuration after modification. By identifying and determining the local behavioral data of the mobile terminal, the method flexibly adjusts the original alarm clock when the user is identified as working overtime, and automatically restores the original alarm clock configuration when the conditions are met. This improves the intelligence and ease of use of the alarm clock function in attendance scenarios while ensuring the stability of the user's existing work schedule.
[0009] The technical solution of the present invention is as follows: This invention provides a flexible attendance alarm clock control method based on local behavioral data, applied to mobile terminals, comprising the following steps: Receive user-inputted attendance time parameters and behavior data collection parameters, and establish attendance control configuration locally on the mobile terminal; Within the preset overtime identification time window, the behavior data collection service is periodically activated through the background scheduling mechanism to collect local behavior data of the mobile terminal. The collected local behavior data is input into the rule-based overtime determination module, which identifies the user's behavior status through multiple behavior status determiners and generates overtime status determination results. When the overtime status determination result meets the preset overtime conditions, the original baseline alarm clock is temporarily adjusted through the flexible alarm clock generation mechanism to generate a single-use flexible alarm clock. When the elastic alarm is triggered or the preset recovery conditions are met, the original baseline alarm configuration is automatically restored through the alarm recovery mechanism.
[0010] In one embodiment, the preset overtime identification time window is the time interval between the preset evening period of the day and the early morning period of the next day, and the behavior data collection service is stopped outside the time interval.
[0011] In one embodiment, the local behavioral data includes at least one or more of the following: Terminal screen on / off status data Terminal screen unlocking behavior data Terminal charging status data.
[0012] In one embodiment, the rule-based overtime determination module includes multiple independent behavior state determiners, and the behavior state determiners include at least: Screen activity detector Hibernation state determiner Bedtime characteristic detector.
[0013] In one embodiment, the rule-based overtime determination module generates the overtime status determination result by performing logical combination operations on the determination results of each behavior status determiner.
[0014] In one embodiment, the flexible alarm clock generation mechanism includes: A one-time temporary alarm is generated while retaining the original baseline alarm configuration, and the original baseline alarm is set to a placeholder state.
[0015] In one embodiment, after the flexible alarm is triggered, the alarm recovery mechanism automatically restores the original trigger time and repetition strategy of the original baseline alarm.
[0016] In one embodiment, when a user marks the overtime status determination result as a misjudgment, the determination parameters in the rule-based overtime determination module are adaptively updated based on the misjudgment mark.
[0017] In another aspect, the present invention provides a mobile terminal, comprising: a processor, a memory, and a computer program stored in the memory, wherein the computer program, when executed by the processor, implements the flexible attendance alarm clock control method based on local behavioral data as described above.
[0018] In another aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the flexible attendance alarm clock control method based on local behavioral data as described above.
[0019] In summary, this invention identifies a user's overtime status by collecting local behavioral data from a mobile terminal and performing rule-based judgment on the behavioral data within a preset time window. When an overtime status is detected, a flexible alarm clock generation mechanism temporarily adjusts the original baseline alarm clock to generate a single-use flexible alarm clock. When the flexible alarm clock is triggered or a preset recovery condition is met, the original alarm clock configuration is automatically restored through an alarm clock recovery mechanism. Through this technical solution, this invention can flexibly adjust the alarm clock based on the user's actual terminal usage behavior without changing the user's existing alarm clock configuration, thereby improving the adaptability and reliability of the mobile terminal alarm clock function in attendance scenarios and enhancing the user experience.
[0020] Compared with the prior art, the present invention has at least the following beneficial effects: (1) The present invention collects local behavioral data of users in mobile terminals and judges the behavioral data based on the rule-based overtime judgment module, thereby identifying whether users are working overtime based on the actual behavior of users using the terminal. Compared with the traditional method of relying on fixed time to trigger the alarm clock, it can more accurately reflect the actual work and rest situation of users and improve the intelligence level of alarm clock control.
[0021] (2) This invention collects behavioral data within a preset overtime identification time window, thereby avoiding the collection of terminal behavioral data around the clock. While ensuring the accuracy of user status identification, it reduces the resource consumption and power consumption of the terminal system and improves the operating efficiency of the mobile terminal.
[0022] (3) When the present invention identifies that the user is working overtime, it temporarily adjusts the original baseline alarm clock through the flexible alarm clock generation mechanism and generates a single-use flexible alarm clock, thereby enabling flexible adjustment of the alarm clock trigger time without affecting the original alarm clock configuration, and improving the adaptability of the alarm clock function in the attendance scenario.
[0023] (4) By setting an alarm clock recovery mechanism, the present invention automatically restores the original baseline alarm clock configuration when the flexible alarm clock is triggered or the preset recovery conditions are met, thereby avoiding the problem that users forget to restore the original settings due to temporary modification of the alarm clock, and improving the stability and reliability of alarm clock control.
[0024] (5) By judging the local behavior data of the terminal and combining it with the flexible alarm clock control mechanism, the mobile terminal can automatically adjust the alarm clock strategy in the scenario of users working overtime, thereby improving the user experience while ensuring the stability of the user's existing work and rest schedule. It has good practical value and application prospects. Attached Figure Description
[0025] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings: Figure 1 A flowchart illustrating the steps of a flexible attendance alarm clock control method based on local behavioral data provided by this invention; Figure 2 The present invention provides a logic block diagram for overtime determination in a flexible attendance alarm clock control method based on local behavioral data. Figure 3 A cross-system alarm clock adjustment / restore comparison block diagram for a flexible attendance alarm clock control method based on local behavioral data provided by the present invention; Figure 4 The present invention provides a terminal module structure and signal transmission block diagram for a flexible attendance alarm clock control method based on local behavioral data. Detailed Implementation
[0026] To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention is further described in detail below. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. The embodiments of the invention are described below in conjunction with the accompanying drawings.
[0027] One embodiment of the present invention provides a flexible attendance alarm clock control method based on local behavioral data, applied to a mobile terminal. Please refer to [link / reference]. Figures 1-4 It includes the following steps: S1. Receive the attendance time parameters and behavior data collection parameters input by the user, and establish an attendance control configuration locally on the mobile terminal; S2. Within the preset overtime identification time window, the behavior data collection service is periodically activated through the background scheduling mechanism to collect the local behavior data of the mobile terminal. S3. Input the collected local behavior data into the rule-based overtime determination module, identify the user's behavior status through multiple behavior status determiners, and generate overtime status determination results. S4. When the overtime status determination result meets the preset overtime conditions, the original baseline alarm clock is temporarily adjusted through the flexible alarm clock generation mechanism to generate a single-time effective flexible alarm clock. S5. When the elastic alarm is triggered or the preset recovery conditions are met, the original baseline alarm configuration is automatically restored through the alarm recovery mechanism.
[0028] In one specific embodiment, the flexible attendance alarm clock control method based on local behavioral data provided by the present invention is applied to a mobile terminal device. The mobile terminal can be a smartphone, tablet computer, or other smart terminal device with alarm clock management functions. The mobile terminal internally includes a processor, memory, and an alarm clock control module, and uses the terminal operating system to achieve coordinated control between functional modules such as alarm clock management, background task scheduling, and terminal behavioral data collection. During system operation, the alarm clock control module manages the user-preset baseline alarm clock configuration and, combined with local terminal behavioral data, implements flexible alarm clock trigger control, thereby dynamically adjusting the alarm clock trigger time when the user is working overtime.
[0029] Subsequently, the mobile terminal receives the attendance time parameters and behavior data collection parameters input by the user, and establishes a corresponding attendance control configuration based on these parameters. Specifically, the attendance time parameters may include the user-preset weekday alarm trigger time, alarm repetition strategy, and attendance reminder strategy; the behavior data collection parameters may include control parameters such as the behavior data collection period, overtime identification time window, and behavior identification trigger threshold. After receiving the above parameters, the mobile terminal establishes the corresponding attendance control configuration locally and stores the configuration in the terminal's memory, thereby providing basic configuration data for the subsequent alarm control process.
[0030] After the attendance control configuration is established, the mobile terminal periodically initiates a behavior data collection service within a preset overtime identification time window through a background task scheduling mechanism to obtain local terminal behavior data. Specifically, when the system detects that the current time has entered the overtime identification time window, the terminal operating system activates the behavior data collection service through the background scheduling module and collects the terminal's current behavior status information according to the preset behavior data collection cycle. The local terminal behavior data can reflect the user's terminal usage during that time period and is directly obtained by the local terminal module, thereby avoiding reliance on remote servers or external data sources for data processing.
[0031] After acquiring the local behavior data of the terminal, the mobile terminal inputs the behavior data into the rule-based overtime determination module for processing. The rule-based overtime determination module internally contains multiple behavior state determiners, each used to identify different types of terminal behavior states and generate corresponding behavior state determination results. For example, different behavior state determiners can analyze different types of behavior data such as continuous terminal operation behavior, application usage behavior, or screen interaction behavior. Subsequently, the rule-based overtime determination module comprehensively analyzes the behavior state determination results and generates an overtime status determination result indicating whether the user is in an overtime work state.
[0032] When the overtime status determination result meets the preset overtime conditions, the mobile terminal temporarily adjusts the user's original baseline alarm clock through a flexible alarm clock generation mechanism. Specifically, the terminal first reads the user's original baseline alarm clock configuration, generates a flexible alarm clock that is only effective within the current cycle while keeping the original configuration unchanged, and uses the flexible alarm clock as the currently effective alarm clock to replace the original alarm clock triggering reminder, thereby temporarily delaying the alarm clock triggering time.
[0033] When the flexible alarm clock is triggered or the system detects that the preset recovery conditions are met, the mobile terminal restores the user's original baseline alarm clock configuration through the alarm clock recovery mechanism. Through this recovery mechanism, the terminal can automatically restore the user's original alarm clock trigger time and repetition strategy after the flexible alarm clock is triggered, thereby ensuring the stability of the user's existing alarm clock settings and avoiding the disruption of subsequent normal daily routines due to temporary alarm clock adjustments.
[0034] Through the above method, this implementation can identify whether a user is working overtime locally on the mobile terminal, and flexibly adjust the alarm trigger time without changing the original alarm clock configuration, thereby improving the adaptability of alarm clock control in attendance scenarios, while ensuring the stability and reliability of the terminal alarm clock management mechanism.
[0035] In a further embodiment, the preset overtime identification time window is the time interval between the preset evening period of the day and the early morning period of the next day, and the behavior data collection service is stopped outside the time interval.
[0036] To ensure low power consumption and avoid interfering with normal user operation, this invention limits the time range for behavioral data collection, specifically by setting a preset overtime identification time window. Specifically, the overtime identification time window can be set to the period between 20:00 on the current day and 02:00 on the next day. Within this time interval, the mobile terminal periodically wakes up the behavioral data collection service through the operating system's background scheduling mechanism to detect the user's terminal behavior status.
[0037] Preferably, in this embodiment, the background scheduling mechanism can be implemented through the JobScheduler or WorkManager component of the Android system for periodic scheduling, or through the BackgroundTask mechanism of the iOS system for waking up background tasks. After the data collection service is woken up, a behavior data collection operation is performed once at a preset time interval. In a preferred embodiment, the collection interval can be set to 30 seconds, thereby ensuring the accuracy of behavior recognition while keeping the system power consumption at a low level.
[0038] When the system detects that the current time is outside the overtime identification time window, the behavior data collection service will automatically enter a sleep state or stop execution, thereby avoiding the additional power consumption caused by continuous background operation. In this way, it can be ensured that the system only collects behavior data during the time period when overtime behavior is likely to occur, thus significantly reducing the resource consumption of the mobile terminal and improving the overall operating efficiency of the system.
[0039] In a further embodiment, the local behavioral data includes at least one or more of the following: Terminal screen on / off status data Terminal screen unlocking behavior data Terminal charging status data.
[0040] To accurately identify the user's working status, this invention collects various types of non-sensitive behavioral data locally on the terminal and determines the user's current activity status based on the behavioral data. Specifically, the local behavioral data includes at least one or more of the following: terminal screen on / off status data, terminal screen unlock behavior data, and terminal charging status data.
[0041] The terminal screen on / off status data reflects the user's usage of the terminal's display interface. For example, if the screen remains on for a period of time, it usually means that the user is reading, editing, or browsing. The terminal screen unlocking behavior data reflects the frequency of the user's active interaction with the terminal. For example, unlocking the terminal multiple times in a short period of time may indicate that the user is in a continuous working state. The terminal charging status data helps determine the user's usage scenario. For example, if the terminal is connected to a charger for a long time at night with the screen off, it can usually be considered that the user has entered a rest or sleep stage.
[0042] In a preferred embodiment, all the aforementioned behavioral data is collected, stored, and processed locally on the terminal, without uploading any data to a remote server. This effectively protects user privacy and avoids the risk of sensitive data leakage. All behavioral data can be obtained through system interfaces provided by the terminal operating system, such as the PowerManager, UsageStats, and BatteryManager interfaces in Android. By comprehensively collecting the aforementioned various behavioral data, a richer and more reliable data foundation can be provided for subsequent overtime status determination.
[0043] In a further embodiment, the rule-based overtime determination module includes multiple independent behavior state determiners, and the behavior state determiners include at least: Screen activity detector Hibernation state determiner Bedtime characteristic detector.
[0044] To improve the accuracy of overtime status identification, this invention constructs a rule-based overtime determination module, which consists of multiple independent behavior status determiners. Each behavior status determiner identifies the user status based on different types of behavior data.
[0045] Specifically, the behavior state determiner includes at least a screen activity determiner, a sleep state determiner, and a bedtime characteristic determiner. The screen activity determiner is used to determine whether the user is continuously using the terminal based on screen on-time and screen interaction frequency. For example, when the system detects that the cumulative screen on-time exceeds a set threshold (e.g., 40 minutes) within a preset time period, it can determine that the user is still in an active usage state.
[0046] The sleep state determiner is used to detect whether the terminal has entered a long-term non-interactive state. For example, when the system detects that the terminal has not performed an unlock operation for 60 consecutive minutes and the screen remains off, the state can be identified as a sleep state.
[0047] The bedtime feature determiner is used to identify whether the user has entered the sleep stage. For example, when the terminal is charging and the screen remains off for a preset period of time, accompanied by no interactive operation, it can be determined that the user has entered the bedtime stage.
[0048] In a preferred embodiment, the aforementioned multiple behavior state determiners are designed with a decoupled architecture. Each determiner outputs its corresponding determination result, which is then uniformly scheduled and managed by the rule engine. By splitting the overtime identification logic into multiple independent determination modules, the scalability and maintainability of the system can be effectively improved, and the system can be more flexibly adapted to the behavioral habits of different users.
[0049] In a further embodiment, the rule-based overtime determination module generates the overtime status determination result by performing logical combination operations on the determination results of each behavior status determiner.
[0050] To obtain a more stable and reliable overtime status determination result, the rule-based overtime determination module does not rely solely on a single behavior determination result, but rather generates the final overtime status determination result by logically combining the output results of multiple behavior status determiners.
[0051] Specifically, during system operation, each behavior state determiner independently executes its judgment logic based on the collected terminal behavior data and outputs the corresponding judgment result. For example, the screen activity determiner can output "continuously active" or "inactive" status, the sleep status determiner can output "sleeping" or "not sleeping" status, and the bedtime feature determiner can output "already in bed" or "not in bed" status.
[0052] Based on this, the rule-based overtime determination module can combine and analyze the above determination results through logical operation rules. For example, when the system detects that the user is within the preset overtime identification time window, and the screen activity determiner outputs a continuously active state, while the sleep state determiner does not detect a sleep state and the bedtime feature determiner does not detect a bedtime state, the system can identify the user's behavior state as "possibly in an overtime work state".
[0053] In a further implementation, to improve the stability of the determination, the system can also introduce a time-duration determination mechanism. This requires that the aforementioned behavioral state continuously meets preset conditions for a certain period of time, such as more than 20 minutes, before finally confirming the overtime status. This multi-determiner logic combination method can significantly reduce the probability of false judgment and improve the system's recognition accuracy.
[0054] In one specific embodiment of the present invention, to further improve the accuracy of user working status identification, the present invention generates a current behavior state vector of the terminal by comprehensively analyzing the output results of multiple behavior state determiners. The behavior state vector may include multiple dimensions of information such as screen activity indicators, terminal interaction frequency indicators, and device charging status indicators.
[0055] Specifically, after each behavior data collection cycle, the system acquires the cumulative screen-on time, the number of times the terminal has been unlocked, and the current charging status, and inputs this data into the behavior status determination module for processing. The behavior status determination module normalizes the behavior data according to preset rules and generates behavior feature parameters that reflect the intensity of terminal usage.
[0056] In a preferred embodiment, when the system detects that the terminal is continuously in active use within the overtime identification time window, such as when the screen-on time exceeds a set threshold and the terminal unlocks multiple times within a preset time period, the system can mark this behavior state as "continuous working state." This state information will serve as an important input condition for subsequent overtime identification logic. By constructing the above-mentioned behavior state vector, the present invention can more accurately describe the user's terminal usage behavior, thereby providing a more reliable data foundation for overtime status determination.
[0057] In a further embodiment, the flexible alarm clock generation mechanism includes: A one-time temporary alarm is generated while retaining the original baseline alarm configuration, and the original baseline alarm is set to a placeholder state.
[0058] When the system detects that a user is working overtime, the flexible alarm clock generation mechanism will automatically adjust the user's original alarm clock strategy temporarily to generate a flexible alarm clock suitable for the current overtime scenario.
[0059] Specifically, when a user uses the system of this invention for the first time, the mobile terminal will establish an initial baseline alarm configuration based on the attendance time parameters input by the user. For example, for a user who needs to start work at 08:30 on a weekday morning, the system can establish a periodically repeating baseline alarm in the terminal's alarm management module.
[0060] When the rule-based overtime determination module determines that a user will be working overtime that evening, the system will not directly modify the baseline alarm. Instead, it will use a flexible alarm generation mechanism to generate a temporary alarm that is only effective for this specific scenario, while keeping the original alarm configuration unchanged. For example, the system can automatically calculate the new wake-up time based on the user's overtime end time and generate a new alarm record.
[0061] In a preferred embodiment, the temporary alarm can be set to a "single-time" mode, meaning it only activates once the following day. Simultaneously, the system can temporarily set the original baseline alarm to a placeholder or paused state, thus preventing both alarms from triggering simultaneously. This ensures users get reasonable rest time after working overtime without permanently altering their existing alarm clock habits.
[0062] In one specific embodiment of the present invention, in order to achieve refined identification of users' overtime behavior, the present invention sets up multi-level overtime judgment rules to distinguish different degrees of overtime behavior.
[0063] Specifically, the system first determines whether the user is within the first overtime detection time interval based on the current time, such as between 22:00 and 24:00. Within this time interval, if the system detects that the terminal is continuously in active use, such as the screen being constantly on and the terminal exhibiting frequent interactive behavior, the system can determine that the user may be in a state of light overtime.
[0064] When the current time enters the second overtime identification time interval, such as between 24:00 and 02:00 the next day, the system will adopt stricter judgment rules. For example, if the system detects that the terminal is still in a state of continuous screen-on or frequent interaction within this time interval, and no sleep or bedtime characteristics are detected, the system can determine this state as a state of deep overtime.
[0065] By setting the above two-level overtime judgment rules, the present invention can more accurately identify the user's workload, thereby enabling the subsequent alarm clock adjustment strategy to better match the user's actual work and rest schedule.
[0066] In a further embodiment, after the elastic alarm is triggered, the alarm recovery mechanism automatically restores the original trigger time and repetition strategy of the original reference alarm.
[0067] To ensure the stability and recoverability of the alarm clock strategy, the system also has an alarm clock recovery mechanism. When the flexible alarm clock is triggered or the preset recovery conditions are met, the system will automatically restore the original baseline alarm clock configuration.
[0068] Specifically, after a flexible alarm is triggered, the mobile terminal can detect the alarm's execution status through the system alarm management interface. Once it detects that the temporary alarm has been triggered or manually turned off by the user, the system can automatically restore the original baseline alarm to its original trigger time and repetition strategy. For example, if the original alarm was set to "trigger at 08:30 every Monday to Friday," this setting will be retained after restoration.
[0069] In another implementation, the system can also be configured with multiple recovery trigger conditions. For example, the system can automatically trigger the recovery mechanism when it detects that a user manually deletes a temporary alarm, the terminal restarts, or a new workday cycle begins. This multi-condition recovery mechanism prevents temporary alarms from remaining in the system for extended periods, thus ensuring that the alarm settings remain clear and stable.
[0070] In one specific embodiment of the present invention, when the system detects that the user is working overtime, it will automatically adjust the alarm time for the next day to ensure that the user can get enough rest.
[0071] Specifically, the system first reads the preset default alarm time from the terminal and uses this default alarm time as the base start time. When the system detects that the user is in a state of light overtime, it can automatically delay the default alarm time by a preset amount of time, such as 30 minutes or 60 minutes.
[0072] When the system detects that a user is working long hours, it can adjust the alarm clock more significantly based on the duration of the overtime. For example, if the system detects that a user is still using their device in the early hours of the morning, it can delay the alarm clock time for the next day to 90 or 120 minutes after the original time, thus providing the user with a more reasonable rest time.
[0073] Preferably, the alarm clock adjustment strategy can be automatically executed locally on the terminal, and no manual operation is required from the user during the execution process, thereby achieving a truly seamless alarm clock management experience.
[0074] In a further embodiment, when a user marks the overtime status determination result as a misjudgment, the determination parameters in the rule-based overtime determination module are adaptively updated based on the misjudgment mark.
[0075] To further enhance the system's intelligence, this invention also introduces a misjudgment feedback and adaptive adjustment mechanism. When a user believes that the system's determination of overtime status is incorrect, they can mark the determination result as a misjudgment through the terminal interface.
[0076] Specifically, when the system generates a flexible alarm or displays the overtime assessment result, a "misjudgment feedback" option can be provided in the user interface. For example, if a user is not actually working overtime, but the system mistakenly identifies them as working overtime, the user can click the feedback button to mark it.
[0077] When the system receives a false alarm flag, it can adaptively update the judgment parameters in the rule-based overtime judgment module based on the feedback information. For example, the system can appropriately increase the screen activity threshold, extend the duration judgment condition, or adjust the bedtime characteristic judgment rule. Through this user feedback-driven parameter update mechanism, the system can gradually learn the user's real behavioral habits, thereby continuously improving the judgment accuracy in subsequent use.
[0078] To ensure that the alarm clock adjustment function can operate stably on different mobile terminal platforms, this invention designs corresponding alarm clock control strategies for different operating system platforms.
[0079] For example, in the iOS system environment, the system can access the system calendar and reminders interface through the EventKit framework, and automatically create or modify system alarm events after detecting overtime status, thereby realizing automatic adjustment of alarm time.
[0080] In the Android system environment, the system can manage terminal alarms through the AlarmManager interface and implement background task scheduling in conjunction with the WorkManager component. When the system detects overtime status, it can automatically update the alarm trigger time through background services.
[0081] Through the aforementioned cross-platform alarm clock control strategy, this invention can achieve unified overtime identification and automatic alarm clock adjustment functions in different mobile terminal system environments, thereby significantly improving the applicability of the system.
[0082] Another embodiment of the present invention provides a mobile terminal for implementing the above-described flexible attendance alarm clock control method based on local behavioral data. The mobile terminal may include a processor, a memory, and a computer program stored in the memory.
[0083] The processor may be a central processing unit (CPU), a system-on-a-chip (SoC), or other processing device capable of executing computer program instructions; the memory may include random access memory (RAM), read-only memory (ROM), flash memory, or other forms of non-volatile storage media.
[0084] During system operation, when the computer program is loaded and executed by the processor, the processor can execute the aforementioned steps according to the preset program logic, including functional modules such as behavior data collection, overtime status determination, flexible alarm clock generation, and alarm clock recovery control.
[0085] With the above structural configuration, mobile terminals can complete user behavior recognition and alarm clock policy adjustment entirely locally without relying on remote servers, thereby effectively protecting user privacy and improving system response speed.
[0086] In one specific embodiment of the present invention, in order to ensure the stability of system operation, the present invention further designs a multi-level fault tolerance and recovery mechanism.
[0087] Specifically, when the system is terminated in the background due to operating system resource scheduling or system policy restrictions, the terminal can automatically restart the behavior data collection service through a background task scheduling component. For example, in the Android system, the WorkManager or JobScheduler component can periodically check the service running status and automatically reschedule tasks when it detects that the service has stopped running.
[0088] In addition, when the terminal device restarts, the system can automatically resume the behavior data collection service through the power-on broadcast listening mechanism and continue to execute the overtime identification logic.
[0089] In another implementation, the system can also trigger a status check process when the user manually opens the application, thereby resuming the behavioral data collection task. Through the three mechanisms described above—background recovery, system restart recovery, and manual recovery—this invention ensures that the system can operate continuously and stably under various operating environments.
[0090] In another aspect, this invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the aforementioned flexible attendance alarm clock control method based on local behavioral data can be implemented.
[0091] The computer-readable storage medium can be any medium capable of storing program code and being read by a processor, such as flash memory, solid-state drive, optical disk, magnetic disk, memory card, or network storage device.
[0092] When the terminal device loads and executes the computer program from the storage medium, it can realize the functions of behavioral data collection, overtime status recognition, flexible alarm clock generation, and alarm clock recovery control described in this invention.
[0093] Through the above methods, the technical solution of the present invention can not only be deployed in mobile terminal devices in the form of software programs, but also distributed and installed through application software or system updates, thereby enabling more terminal devices to realize the intelligent flexible attendance alarm clock control function described in the present invention.
[0094] In another specific embodiment of the present invention, in order to protect user privacy and avoid leakage of sensitive data, the present invention adopts a fully localized data processing mechanism in the system design.
[0095] Specifically, all terminal behavior data is collected, stored, and processed locally on the user's device, without needing to be uploaded to a remote server. When storing behavior data in the local database, the system can use the AES encryption algorithm to encrypt the data to prevent unauthorized access by third parties.
[0096] Furthermore, this invention can also include a holiday adaptation mechanism. For example, the system can identify whether the current date is a statutory holiday or a weekend based on the terminal system's calendar information. When it detects that the next day is a non-working day, the system can automatically disable the alarm clock adjustment logic or allow the user to choose to skip the automatic alarm clock setting, thereby avoiding unnecessary interference with the user's rest time.
[0097] Through the aforementioned privacy protection and holiday adaptation mechanisms, this invention not only enables intelligent overtime identification and alarm clock management functions, but also provides a more user-friendly experience while ensuring user privacy and security.
[0098] In summary, this invention identifies a user's overtime status by collecting local behavioral data from a mobile terminal and performing rule-based judgment on the behavioral data within a preset time window. When an overtime status is detected, a flexible alarm clock generation mechanism temporarily adjusts the original baseline alarm clock to generate a single-use flexible alarm clock. When the flexible alarm clock is triggered or a preset recovery condition is met, the original alarm clock configuration is automatically restored through an alarm clock recovery mechanism. Through this technical solution, this invention can flexibly adjust the alarm clock based on the user's actual terminal usage behavior without changing the user's existing alarm clock configuration, thereby improving the adaptability and reliability of the mobile terminal alarm clock function in attendance scenarios and enhancing the user experience.
[0099] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.
Claims
1. A flexible attendance alarm clock control method based on local behavioral data, applied to a mobile terminal, characterized in that, Includes the following steps: Receive user-inputted attendance time parameters and behavior data collection parameters, and establish attendance control configuration locally on the mobile terminal; Within the preset overtime identification time window, the behavior data collection service is periodically activated through the background scheduling mechanism to collect local behavior data of the mobile terminal. The collected local behavior data is input into the rule-based overtime determination module, which identifies the user's behavior status through multiple behavior status determiners and generates overtime status determination results. When the overtime status determination result meets the preset overtime conditions, the original baseline alarm clock is temporarily adjusted through the flexible alarm clock generation mechanism to generate a single-use flexible alarm clock. When the elastic alarm is triggered or the preset recovery conditions are met, the original baseline alarm configuration is automatically restored through the alarm recovery mechanism.
2. The control method according to claim 1, characterized in that, The preset overtime identification time window is the time interval between the preset evening period of the day and the early morning period of the next day. Outside of the preset time interval, the behavior data collection service will be stopped.
3. The control method according to claim 1, characterized in that, The local behavioral data includes at least one or more of the following: Terminal screen on / off status data Terminal screen unlocking behavior data Terminal charging status data.
4. The control method according to claim 1, characterized in that, The rule-based overtime determination module includes multiple independent behavior status determiners, and the behavior status determiners include at least: Screen activity detector Hibernation state determiner Bedtime characteristic detector.
5. The control method according to claim 4, characterized in that, The rule-based overtime determination module generates the overtime status determination result by logically combining the determination results of each behavior status determiner.
6. The control method according to claim 1, characterized in that, The flexible alarm clock generation mechanism includes: A one-time temporary alarm is generated while retaining the original baseline alarm configuration, and the original baseline alarm is set to a placeholder state.
7. The control method according to claim 6, characterized in that, After the flexible alarm is triggered, the alarm recovery mechanism automatically restores the original trigger time and repeat strategy of the original reference alarm.
8. The control method according to claim 1, characterized in that, When a user marks the overtime status determination result as a misjudgment, the determination parameters in the rule-based overtime determination module are adaptively updated based on the misjudgment mark.
9. A mobile terminal, characterized in that, include: A processor, a memory, and a computer program stored in the memory, wherein the computer program, when executed by the processor, implements the flexible attendance alarm clock control method based on local behavioral data as described in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the flexible attendance alarm clock control method based on local behavioral data as described in any one of claims 1 to 8.