A punch-in recommendation method, device and terminal device
By obtaining the user's off-duty time records and clock-in rules, the clock-in time period and point can be accurately determined, which solves the problem of low success rate of clock-in recommendation in the existing technology, and achieves more efficient clock-in recommendation and user experience improvement.
Patent Information
- Application Number
- CN202310475915.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-12-28
AI Technical Summary
Existing check-in recommendation methods fail to accurately consider users' personal habits and needs, resulting in low recommendation success rates and inability to effectively prevent users from forgetting to check in, affecting user experience.
By obtaining the user's off-duty time record, the first time period and time point are determined, and combined with the user's check-in rules and historical data, it accurately recommends a quick check-in interface, promptly reminds the user to check in, and improves the recommendation success rate.
It improves the accuracy and success rate of clock-in recommendation, simplifies the clock-in steps, reduces waiting time, improves user experience, and ensures that users can complete clock-in in time.
Smart Images

Figure CN116644243B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a punch-in recommendation method, apparatus, and terminal device. Background Art
[0002] Quick clock-in recommendation is a function for realizing one-click clock-in. The terminal device can prominently display the quick clock-in interface on the screen interface. By clicking the quick clock-in interface, the user can quickly reach the clock-in interface of the third-party application. After that, the user can realize one-click clock-in by clicking the clock-in interface. This eliminates the steps of searching for the third-party application on the screen interface, opening the third-party application, and switching to the clock-in interface, which is convenient and quick. The third-party application can be an application that provides attendance clock-in service.
[0003] At present, the method of recommending clocking in or out of get off work generally includes the following steps: when the time reaches the agreed working time or off-duty time of the work system, a clocking-in recommendation is made to the user, so that the user can receive the clocking-in recommendation when the agreed working time or off-duty time arrives, thereby realizing quick clocking-in.
[0004] However, this punch-in recommendation method only considers that users may punch in at the agreed working hours or off-get off work hours, but does not consider the personal habits and needs of users when they actually punch in. Therefore, this recommendation method cannot accurately recommend the quick punch-in interface to users when they need to punch in, and the recommendation success rate is low. This recommendation method cannot avoid the situation where users forget to punch in, resulting in a poor user experience. Summary of the invention
[0005] The embodiments of the present application provide a check-in recommendation method, apparatus, and terminal device to solve the problem that the existing recommendation method does not meet user needs and has a low recommendation success rate.
[0006] In a first aspect, an embodiment of the present application provides a punch-in recommendation method, the method comprising: obtaining a first user's off-get off work time record for N days before today; determining a first time period and a first time point based on the off-get off work time record; wherein the start time of the first time period is equal to or later than the earliest time of the N first punch-in times, and the end time of the first time period is earlier than or equal to the latest time of the N first punch-in times; the N first punch-in times include the latest off-get off work punch-in time of each of the N days; the first time point is within the first time period; receiving the first user's on-work punch-in record; displaying a first object at the start time of the first time period, the first object being used for the user to punch in; if the first user is a first feature user, displaying a second object at the first time point, the second object being used for the user to punch in, and the second object being the same as or different from the first object; the discreteness of the N first punch-in times of the first feature user meets a preset condition, or the time interval between the N first punch-in times of the first feature user and the corresponding first time point meets the preset condition.
[0007] The punch-in recommendation method provided in the embodiment of the present application can determine the first time period and the first time point, recommend all users to get off work in the first time period, and recommend some users with regular off-get off work times to get off work at the first time point, which can accurately meet the user's expectations of punching in after work, effectively prevent users from missing punching in, and improve the success rate of punching in after work recommendations. In addition, the method provided in the embodiment of the present application also simplifies the punching steps and reduces the waiting time for punching in, thereby improving the user experience.
[0008] In an achievable manner, the first time period is determined by the following steps: obtaining a first time set, the first time set including N first punch-in times of the first user, and / or N first punch-in times of the second user, the terminal device of the first user and the terminal device of the second user are connected to the same first target network, and the first target network is located within the company; sorting the first punch-in times in the first time set to obtain a first sequence; removing outliers at the head and / or tail of the first sequence to obtain a second sequence; determining the first punch-in time at the head of the second sequence as the start time of the first time period, and determining the first punch-in time at the tail of the second sequence as the end time of the first time period. In this way, outliers that are not conducive to off-get off work recommendations can be removed from the N first punch-in times, and the first time period can be subject to multiple screening conditions, with a higher accuracy rate.
[0009] In one achievable manner, after the step of displaying the first object at the start time of the first time period, the method further includes: if the first user is not a first characteristic user, before the end time of the first time period, when the first user completes clocking out, stop displaying the first object; or, stop displaying the first object at the end time of the first time period. In this way, for the first user who is not a first characteristic user, the user can continue to receive recommendations to clock in before clocking in, and no longer receive recommendations to clock in after clocking in. Moreover, for the first user who is not a first characteristic user, not making recommendations at the first time point can avoid giving the user an experience of inaccurate recommendations.
[0010] In an achievable manner, after the step of displaying the first object at the start time of the first time period, the method further includes: if the first user is a first characteristic user, displaying the second object at a second time point; wherein the second time point is between the start time of the first time period and the first time point, and the time interval between the second time point and the first time point is equal to a first preset time length. In this way, the success rate of the second object recommendation can be improved.
[0011] In an achievable manner, if the first user is a first characteristic user, before the step of displaying the second object at the second time point, the method further includes: if the first user is a first characteristic user, before the third time point, when the first user completes clocking out, the first object is stopped from being displayed, or the first object is stopped from being displayed at the third time point; wherein the third time point is between the start time of the first time period and the second time point, and the time interval between the third time point and the start time of the first time period is equal to the second preset duration, or the third time point coincides with the second time point. In this way, the user can be reminded to punch in the "insurance card" and the user experience can be improved.
[0012] In an achievable manner, the first time point is determined by the following steps: obtaining first information and second information of each day in the N days before today and today; the first information includes the day of the week in which the day is, the month of the year in which the day is, whether the day is Monday, Tuesday or Thursday, whether the day is Saturday or Sunday, and the week of the month in which the day is; the second information includes: a first difference, a second difference, a third difference, a first mean and a second mean, the first difference being equal to the difference between the latest clock-in time one day ago and the latest clock-in time two days ago in the N days. The first mean is equal to the average of the first difference and the second difference, and the second mean is equal to the average of the first difference, the second difference and the third difference. The first information and the second information of each day of the N days before today are input into the first prediction model to obtain the first time point. In this way, the first time point is closer to the actual time when the user clocks out of get off work, and the accuracy is higher.
[0013] In one achievable manner, if the first user is a first feature user, after the step of displaying the second object at a first time point, the method further includes: stopping displaying the second object when the first user completes clocking out before the end time of the first time period; or stopping displaying the second object at the end time of the first time period.
[0014] In one achievable manner, the first characteristic user is determined by the following steps: calculating the first standard deviation of N first punch-in times; if the first standard deviation is less than the first preset threshold, determining the first user as the first characteristic user. The first characteristic user is also determined by the following steps: sorting the N first punch-in times to obtain a third sequence; removing part of the first punch-in times at the beginning, the end, or both of the beginning and the end of the third sequence to obtain a first number of first punch-in times, wherein the ratio of the first number to N is equal to the second preset threshold; calculating the second standard deviation of the first number of first punch-in times; if the second standard deviation is less than the third preset threshold, determining the first user as the first characteristic user. The first characteristic user is also determined by the following steps: calculating the third standard deviation of the second punch-in time, wherein the second punch-in time is m of the N first punch-in times, and m is less than N; if the third standard deviation is less than the fourth preset threshold, determining the first user as the first characteristic user. The first characteristic user is further determined by the following steps: determining a third punch-in time and its corresponding first time point, the third punch-in time being n of the N first punch-in times, n being less than N; calculating the accuracy of the first time point based on the third punch-in time and the first time point; if the accuracy is greater than a fifth preset threshold, determining the first user as the first characteristic user. In this way, the first user whose off-get off work time is relatively regular can be determined.
[0015] In one achievable manner, the method also includes: when the current time is a preset time, determining whether the first user's sleeping place is within a personal clock-in fence, the personal clock-in fence being a geographic fence determined by the first user's historical clock-in location; if the first user's sleeping place is within the personal clock-in fence, determining a first historical day, the first historical day including R days before today, R being less than or equal to the number of days of data aging of the second prediction model; determining a second historical day based on the first historical day; the second historical day being before the first historical day, the difference between the second historical day and the first historical day being greater than the number of days of data aging; the information on whether the second historical day is for going to work is the same as that of the first historical day, and whether the week in which the second historical day falls is an odd week of the year is the same as that of the first historical day; obtaining third information of today, the first historical day, and the second historical day, the third information including the day of the week that the day is, the month of the year that the day is, and whether the day is a Sunday 1. Tuesday or Thursday, whether the current day is Saturday or Sunday, whether the current day is Saturday, the day number of the current month, the week number of the current month, the positive week number T of the current month, and the penultimate week number T of the current month, where week T is any day from Monday to Sunday, and whether the week of the current day is an odd week of the current year; input the third information of today, the first historical day and the second historical day into the second prediction model, and input the information of whether the first historical day and the second historical day are working into the second prediction model to determine whether the user needs to go to work on the current day; if the user needs to go to work on the current day, display the third object in the second time period, the third object is used for the user to punch in, the start time of the second time period is the earliest time for the first user to punch in, and the end time of the second time period is the latest time for the first user to punch in; stop displaying the third object when the first user finishes punching in. In this way, users can avoid missing the punching time and causing missed punching.
[0016] In one achievable method, the second historical day is determined by the following steps: based on the information of whether the first historical day is at work, the first historical day is divided into positive samples and negative samples to obtain K positive samples and V negative samples, where the positive samples correspond to the first historical day at work and the negative samples correspond to the first historical day when the person is not at work, K represents the number of positive samples, and V represents the number of negative samples; for each positive sample, V-1 second historical days corresponding to the positive sample are determined, where V-1 represents the number of second historical days corresponding to each positive sample; for each negative sample, K-1 second historical days corresponding to the positive sample are determined. Historical day, K-1 represents the number of second historical days corresponding to each negative sample; wherein, when the data aging days of the second prediction model is equal to W days, the Xth second historical day is the X×(W+Y)th day before the positive sample, the Xth second historical day is any one of the V-1 second historical days, X is a natural number, and 0<X≤V-1; the Zth second historical day is the Z×(W+Y)th day before the negative sample, the Zth second historical day is any one of the K-1 second historical days, Z is a natural number, and 0<Z≤K-1; Y is a natural number, and Y≥1. In this way, the number of days without work and the number of days on the job can be increased to be equal, while expanding the amount of data and improving the accuracy of the second prediction model.
[0017] In an achievable manner, the method further includes: obtaining a holiday schedule notification; and modifying the second prediction model based on the holiday schedule notification. In this way, the accuracy of work recommendations can be improved, and the user experience can be improved.
[0018] In an achievable manner, the method further includes: if the sleeping place of the first user is not within the personal clock-in fence, when the first user enters the personal clock-in fence, a fourth object is displayed, the fourth object is displayed in the application recommendation card on the main screen interface of the terminal device, and the fourth object is used for the user to clock in; when the terminal device of the first user is connected to the second target network, if the first user has not completed the clock-in, a fifth object is displayed; the second target network is within the company, the fifth object is a notification bar that is continuously suspended on the main screen interface of the terminal device, and the fifth object is used for the user to clock in. In this way, the fourth object can be used to remind the first user to clock in for work, and the fifth object can be used to strongly remind again to avoid missing the clock-in.
[0019] In an achievable manner, the method further includes: stopping displaying the fourth object or the fifth object when the first user completes clocking in. Since clocking in multiple times is not required, after the user completes clocking in, the clocking in interface may stop being recommended to the user to avoid invalid recommendations.
[0020] In a second aspect, an embodiment of the present application further provides a punch-in recommendation device, comprising: an acquisition module, used to acquire the off-get off work time records of a first user N days before today; a determination module, used to determine a first time period and a first time point based on the off-get off work time records; wherein the start time of the first time period is equal to or later than the earliest time of the N first punch-in times, and the end time of the first time period is earlier than or equal to the latest time of the N first punch-in times; the N first punch-in times include the latest off-get off work punch-in time of each of the N days; the first time point is within the first time period; a receiving module, used to receive the on-work punch-in record of the first user; a first display module, used to display a first object at the start time of the first time period, the first object being used for the user to punch in; a second display module, if the first user is a first characteristic user, the second display module is used to display a second object at a first time point, the second object being used for the user to punch in, and the second object being the same as or different from the first object; the discreteness of the N first punch-in times of the first characteristic user meets a preset condition, or the time interval between the N first punch-in times of the first characteristic user and the corresponding first time point meets a preset condition.
[0021] The punch-in recommendation device provided in the embodiment of the present application can determine the first time period and the first time point, recommend all users to get off work in the first time period, and recommend some users with regular off-get off work time to get off work at the first time point, which can accurately meet the user's expectations of punching in after work, effectively prevent users from missing punching in, and improve the success rate of punching in after work recommendations. In addition, the device provided in the embodiment of the present application also simplifies the punching steps and reduces the waiting time for punching in, thereby improving the user experience.
[0022] In a third aspect, an embodiment of the present application further provides a terminal device, comprising: a processor and a memory; the memory stores a computer program, and when the computer program is executed by the processor, the terminal device executes the method in the aforementioned first aspect and its various implementation methods.
[0023] In a fourth aspect, an embodiment of the present application further provides a chip system, comprising: a memory and a processor; the memory stores a computer program, and when the computer program is executed by the processor, the chip system executes the method in the aforementioned first aspect and its various implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A schematic diagram of the user's clock-in requirements;
[0025] Figure 2 This is a diagram of the recommended interface for quick check-in;
[0026] Figure 3 is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;
[0027] Figure 4 is a software structure block diagram of the terminal device 100 according to an embodiment of the present application;
[0028] Figure 5 A schematic diagram of a first process flow of the punch-in recommendation method provided in an embodiment of the present application;
[0029] Figure 6 A schematic diagram of the off-duty time record provided in an embodiment of the present application;
[0030] Figure 7 A schematic diagram of a first object provided in an embodiment of the present application;
[0031] Figure 8 A schematic diagram of a process for determining a first time period provided in an embodiment of the present application;
[0032] Fig. 9 A schematic diagram of a recommendation for a first user to get off work provided in an embodiment of the present application;
[0033] Fig.10 A schematic diagram of another first user's off-get off work recommendation provided in an embodiment of the present application;
[0034] Fig.11 A schematic diagram of a first user's off-get off work recommendation process provided in an embodiment of the present application;
[0035] Fig.12 A schematic diagram of another first user's off-get off work recommendation provided in an embodiment of the present application;
[0036] Fig.13 A schematic diagram of a process for determining a first time point provided in an embodiment of the present application;
[0037] FIG. 14( a ) is a schematic diagram of a first process for determining a first characteristic user provided in an embodiment of the present application;
[0038] FIG14( b ) is a schematic diagram of a second process for determining a first characteristic user provided in an embodiment of the present application;
[0039] FIG14( c ) is a schematic diagram of a third process for determining a first characteristic user provided in an embodiment of the present application;
[0040] FIG14( d ) is a schematic diagram of a fourth process for determining a first characteristic user provided in an embodiment of the present application;
[0041] Fig.15 A second flow chart of the punch-in recommendation method provided in an embodiment of the present application;
[0042] Fig.16 A schematic diagram of a personal clock-in fence provided in an embodiment of the present application;
[0043] Fig.17A schematic diagram of a process for determining a second historical day provided in an embodiment of the present application;
[0044] Fig.18 A schematic diagram of the first historical day and related information provided by an embodiment of the present application;
[0045] Fig.19 A first schematic diagram of data enhancement provided in an embodiment of the present application;
[0046] Fig. 20 A second schematic diagram of data enhancement provided in an embodiment of the present application;
[0047] Fig.21 A schematic diagram of a fourth object and a fifth object provided in an embodiment of the present application;
[0048] Fig. 22 A schematic diagram of a process for correcting the second prediction model provided in an embodiment of the present application;
[0049] Fig.23 A schematic diagram of the structure of a check-in recommendation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.
[0051] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0052] The terms used in the implementation method part of this application are only used to explain the specific embodiments of this application, and are not intended to limit this application. The embodiments of this application will be described in detail below in conjunction with the accompanying drawings.
[0053] First, the application scenarios of the embodiments of the present application are described with reference to the accompanying drawings.
[0054] Figure 1 This is a diagram of the user's clock-in requirements. Figure 1As shown, the user's journey on a workday may include leaving home, walking or taking public transportation such as the subway to work, arriving near the company, opening the clock-in software, turning on the location positioning service such as the general packet radio service (GPRS) switch, and completing the clock-in by clicking the clock-in control. After finishing work, the user generally needs to open the clock-in software, turn on the location positioning service, complete the clock-in by clicking the clock-in control, and then leave the company area.
[0055] Figure 2 This is a schematic diagram of the quick check-in recommended interface. Figure 2 As shown, the quick clock-in recommendation is a function for realizing one-click clock-in. The terminal device can prominently display the quick clock-in interface on the screen interface. By clicking the quick clock-in interface, the user can quickly reach the clock-in interface of the third-party application. Then, the user can realize one-click clock-in by clicking the clock-in interface. This eliminates the steps of searching for the third-party application in the screen interface, opening the third-party application, and switching to the clock-in interface, which is convenient and quick. The third-party application can be an application that provides attendance clock-in services.
[0056] At present, the method of recommending clocking in or out of get off work generally includes the following steps: when the time reaches the agreed working time or off-duty time of the work system, a clocking-in recommendation is made to the user, so that the user can receive the clocking-in recommendation when the agreed working time or off-duty time arrives, thereby realizing quick clocking-in.
[0057] However, this punch-in recommendation method only considers that users may punch in at the agreed working hours or off-get off work hours, but does not consider the personal habits and needs of users when they actually punch in. Therefore, this recommendation method cannot accurately recommend the quick punch-in interface to users when they need to punch in, and the recommendation success rate is low. This recommendation method cannot avoid the situation where users forget to punch in, resulting in a poor user experience.
[0058] In order to solve the above technical problems, the embodiment of the present application provides a punch-in recommendation method, which can determine a first time period and a first time point. The first time period is determined based on the latest time of punching in after work of each of the first user's N days. Therefore, the first time period can cover the first user's habitual time of punching in after work, and the first user is reminded to punch in during the first time period, with a high success rate. If the first user is a first characteristic user, the first user can also be reminded to punch in at the first time point, wherein the first characteristic user can be a user whose latest time of getting off work is relatively regular in history. For such a first user, the first time point can accurately cover the first user's real time of getting off work, and the first user is reminded to punch in at the first time point, with a high success rate, and can improve the user experience of the first user, effectively avoiding the situation of missing a punch-in.
[0059] This method can be applied to terminal devices, including but not limited to smart phones, tablet computers, personal computers, workstation devices, large-screen devices (for example, smart screens, smart TVs, etc.), wearable devices (for example, smart bracelets, smart watches), handheld game consoles, home game consoles, virtual reality devices, augmented reality devices, mixed reality devices, etc., in-vehicle smart terminals, etc.
[0060] Figure 3 Schematic diagram of the hardware structure of the terminal device provided in the embodiment of the present application. Figure 3 As shown, the terminal device 100 may include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, a camera 192, a display screen 193, and a subscriber identification module (SIM) card interface 194, etc. Among them, the sensor module 180 may include a touch sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a geomagnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, etc. Among them, the gyroscope sensor 180B, the air pressure sensor 180C, the geomagnetic sensor 180D, the acceleration sensor 180E, etc. can all be used to detect the motion state of the terminal device, and therefore, can also be called motion sensors.
[0061] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0062] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0063] The memory 120 can be used to store computer executable program codes, which include instructions. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal device 100 (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the memory 120, and / or instructions stored in a memory provided in the processor.
[0064] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other terminal devices, such as AR devices, etc.
[0065] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0066] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. While the charging management module 140 is charging the battery 142, it may also power the terminal device through the power management module 141.
[0067] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the memory 120, the display screen 193, the camera 192, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0068] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0069] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0070] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0071] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 193. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0072] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0073] In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0074] The terminal device 100 implements the display function through a GPU, a display screen 193, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 193 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute computer programs to generate or change display information.
[0075] The display screen 193 is used to display images, videos, etc. The display screen 193 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 193, where N is a positive integer greater than 1.
[0076] The terminal device 100 can realize the shooting function through ISP, camera 192, video codec, GPU, display screen 193 and application processor.
[0077] The ISP is used to process the data fed back by the camera 192. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 192.
[0078] The camera 192 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, RYYB, YUV or other format. In some embodiments, the terminal device 100 may include 1 or N cameras 192, where N is a positive integer greater than 1.
[0079] The terminal device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0080] The touch sensor 180A is also called a "touch control device". The touch sensor 180A can be arranged on the display screen 193, and the touch sensor 180A and the display screen 193 form a touch screen, also called a "touch control screen". The touch sensor 180A is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 193. In other embodiments, the touch sensor 180A can also be arranged on the surface of the terminal device 100, which is different from the position of the display screen 193.
[0081] The gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the terminal device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the terminal device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0082] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0083] The geomagnetic sensor 180D includes a Hall sensor. The terminal device 100 can use the geomagnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the terminal device 100 is a flip phone, the terminal device 100 can detect the opening and closing of the flip cover according to the geomagnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover automatic unlocking and other features are set.
[0084] The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device and applied to applications such as horizontal and vertical screen switching and pedometers.
[0085] The distance sensor 180F is used to measure the distance. The terminal device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0086] The proximity light sensor 180G may include, for example, a light emitting diode and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light outward through the light emitting diode. The terminal device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100. The terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and pocket mode automatically unlocks and locks the screen.
[0087] The fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0088] The temperature sensor 180J is used to detect temperature. In some embodiments, the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the terminal device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the terminal device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0089] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100.
[0090] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 193, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0091] The SIM card interface 194 is used to connect a SIM card. The SIM card can be connected to and separated from the terminal device 100 by inserting it into the SIM card interface 194 or pulling it out from the SIM card interface 194. The terminal device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 194 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 194 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 194 can also be compatible with different types of SIM cards. The SIM card interface 194 can also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
[0092] The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The present application embodiment takes the Android system of the layered architecture as an example to exemplify the software structure of the terminal device 100.
[0093] Figure 4 It is a software structure block diagram of the terminal device 100 according to an embodiment of the present application.
[0094] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0095] The application layer can include a series of application packages.
[0096] like Figure 4 As shown, the application package may include applications such as battery management, camera, gallery, calendar, call, map, navigation, music, video, short message, etc.
[0097] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0098] like Figure 4As shown, the application framework layer may include a window manager, an input manager, a sensor manager, a phone manager, a resource manager, a notification manager, and the like.
[0099] The input manager can be used to monitor user input events, such as click events and slide events performed by the user's finger on the display screen 193 of the terminal device 100. By monitoring the input events, the terminal device 100 can determine whether the terminal device is being used.
[0100] The sensor manager is used to monitor the data returned by each sensor in the terminal device, such as motion sensor data, proximity light sensor data, temperature sensor data, etc. Using the data returned by each sensor, the terminal device can determine whether it is shaking, or whether the display screen 193 is blocked, etc.
[0101] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0102] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0103] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0104] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0105] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0106] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0107] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0108] A 2D graphics engine is a drawing engine for 2D drawings.
[0109] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0110] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0111] The following is an exemplary description of each step of the punch-in recommendation method provided in the embodiment of the present application.
[0112] Figure 5 This is a schematic diagram of the first process of the punch-in recommendation method provided in the embodiment of the present application. Figure 5 As shown, the punch-in recommendation method provided in the embodiment of the present application includes the following steps S201-S205:
[0113] S201: Obtain the first user's off-get off work time records N days before today.
[0114] The off-duty time record may include the first user's off-duty punch-in time, which can be obtained from the log file of a third-party application. The third-party application may be an application that provides attendance punch-in. The log file may be stored in the local memory of the terminal device or in a cloud server. If the first user punches in multiple times on a certain day, the off-duty time record of that day should include the punch-in time of each time. In this way, the off-duty time records of N days can be used to determine the first user's off-duty punch-in habits, so as to determine the specific time for recommending off-duty punch-in.
[0115] In an embodiment of the present application, in order to accurately analyze the first user's clock-in / out habits, N should be greater than a preset threshold, which may be, for example, 10. A clock-in / out recommendation is made only when more than ten days of clock-in / out time records are included. In this way, the success rate of the recommendation for clock-in / out can be improved. In actual applications, the specific value of N depends on how many days of clock-in / out time can be determined at most. For example, if a clock-in / out time of at most 50 days can be determined from the log file of a third-party application, then N is equal to 50.
[0116] It is understandable that the N days before today may be N consecutive days or N discontinuous days.
[0117] S202: Determine a first time period and a first time point based on the off-duty time record; wherein the start time of the first time period is equal to or later than the earliest time among the N first clock-in times, and the end time of the first time period is earlier than or equal to the latest time among the N first clock-in times; the N first clock-in times include the latest off-duty clock-in time of each day in N days; and the first time point is within the first time period.
[0118] Figure 6 This is a schematic diagram of the off-duty time record provided in the embodiment of the present application. Figure 6 As shown, in the embodiment of the present application, the N first clock-in times include the latest clock-in time of each of the N days. For example, for the i-th day before today, i≤N, the user clocked in three times, and the specific clock-in times of the three clock-in times were 18:01, 18:05 and 21:30, respectively. Then, the i-th first clock-in time of the N first clock-in times is 21:30. For another example, for the j-th day before today, j≤N, the user clocked in once, and the specific clock-in time was 18:30, then, the j-th clock-in time of the N first clock-in times is 18:30.
[0119] It is understandable that users may clock in multiple times in a day, and the first clock in usually occurs after the earliest clock out time agreed upon in the work system. The work system refers to the agreement between the company and the employee on working hours. For example, if the company and the employee agree on a 9-to-6-hour work system, then the employee can start work at 9 a.m. on weekdays and get off work at 6 p.m., then 9 a.m. is the start time agreed upon in the work system, and 6 p.m. is the get off time agreed upon in the work system. Under the constraints of this work system, the user's first clock out time usually occurs after 6 p.m. (18 p.m.).
[0120] For users who clock in multiple times a day, their first clock in is generally called an "insurance card" to prevent them from forgetting to clock in on the same day. Such users will generally clock in again after finishing work that day, that is, the last clock in occurs when the user actually gets off work. It can be seen that based on the user's latest clock-in time at the end of each day, the user's clock-in habit when actually leaving get off work can be determined.
[0121] Therefore, in the embodiment of the present application, the first time period is determined based on the N first punch-in times. In one implementation, the start time of the first time period can be equal to the earliest time among the N first punch-in times, and the end time of the first time period can be equal to the latest time among the N first punch-in times. In this way, the first time period can completely cover the last punch-in habit of the user in each of the N days, and there will be no missed recommendations. In another implementation, the outliers in the N first punch-in times can be removed. The outliers can correspond to the situation where the user takes leave and leaves early. The latest punch-in time corresponding to this situation is generally earlier. If the last punch-in time corresponding to this situation is used as the start time of the first time period, and the punch-in recommendation is made based on the first time period, it is easy to cause trouble to the user and is not conducive to improving the user experience. The outlier may also correspond to the situation where the user works overtime for a long time, such as the user punches out for the last time at 1 a.m. on a certain day. Obviously, the outlier does not conform to the normal punch-in habit of the user. The outlier may also be the situation where the user accidentally touches the terminal device and punches in too early or too late.
[0122] Therefore, after removing the outliers, the first time period can be made more consistent with the user's habit of clocking in after get off work, and the impact of the above abnormal situation on the clocking in recommendation can be eliminated. At this time, the start time of the first time period is later than the earliest time of the N first clocking in times, and the end time of the first time period is earlier than the latest time of the N first clocking in times. It can be understood that the outlier can be the earliest time, the second earliest time, the latest time and / or the second latest time of the N first clocking in times, and the specific time of the outlier is related to the actual situation.
[0123] It can be seen that the first time period can cover all the times when the user expects to punch in as much as possible, and the first time period does not include abnormal punch-in times among the N first punch-in times. In this way, recommending users to punch in after get off work at the start time of the first time period can increase the recommendation success rate and enhance the user experience.
[0124] In the embodiment of the present application, the first time point may be, for example, a time point predicted by the model after learning the user's historical clocking-in habits. Since the first time period may cover as many times as possible when the user expects to clock in, the first time point predicted by machine learning may be within the first time period.
[0125] The time span of the first time point is smaller than the time span of the first time period, and the embodiment of the present application can also make recommendations for clocking in after get off work within a small time range such as the first time point. It can be seen that the embodiment of the present application can provide recommendations for clocking in after get off work with multiple time spans, which can meet the user's multiple clocking-in needs and improve the user experience.
[0126] Furthermore, the embodiments of the present application can also modify the recommendation method based on the changes in the user's historical clock-in time. For example, for users whose latest clock-in time during multiple days fluctuates little, it is possible to only recommend clocking in at the first time point, thus avoiding long-term recommendations from causing trouble to the user. For users whose clock-in time fluctuates greatly every day, it is possible to choose to recommend clocking in at the first clock-in time period, so that users can receive recommendations when they expect to clock in, thereby increasing the recommendation success rate. In this way, the user experience of users with small clock-in time fluctuations can be improved, and the user experience of users with large clock-in time fluctuations can also be improved.
[0127] In some implementations, if the first time point predicted by machine learning is not within the first time period, it may be determined whether to use the first time point as a time point for making a recommendation to leave work based on the relationship between the first time point and the first time period. For example, when the first time point is earlier than the start time of the first time period, a recommendation to clock in and out of get off work may not be made at the first time point to avoid causing trouble to the user by recommending the time too early. When the first time point is later than the end time of the first time period, it may be determined whether to make a recommendation to clock in and out of get off work based on additional conditions. The additional conditions may be, for example, whether the user is within the company. If the user is within the company, a recommendation to clock in and out of get off work is made at the first time point. If the user is not within the company, a recommendation to clock in and out of get off work is not made at the first time point.
[0128] S203: Receive the clock-in record of the first user.
[0129] The clock-in record may indicate that the user is at work on that day, and the clock-in record may be generated by a third-party application. In this way, the embodiment of the present application may make a clock-in recommendation only when the user is at work, and not make a clock-in recommendation when the user is not at work. Invalid recommendations may be avoided, thereby improving the user experience.
[0130] S204: Displaying a first object at the start time of a first time period, where the first object is used for the user to clock in.
[0131] In an embodiment of the present application, a first object is displayed at the start time of a first time period, and some text information may be provided in the first object, such as "attendance clock-in", "clock-in reminder", etc., so that the user can visually observe the first object and consider whether to clock in, which can serve as a reminder for the user to clock in after work. Furthermore, by clicking on the first object, you can jump to the corresponding interface of the third-party application to achieve quick clock-in. It can be seen that the embodiment of the present application can recommend clocking in after work to the user at a time that matches the user's clock-in habit, avoiding the user from missing the clock-in, and at the same time, it can save the user the steps of searching for the third-party application in the screen interface, opening the third-party application, and switching to the clock-in interface, which is convenient and quick.
[0132] Figure 7 This is a schematic diagram of a first object provided in an embodiment of the present application. Figure 7 As shown, exemplarily, when the terminal device is in a locked screen state, the first object may be, for example, a message notification displayed on the lock screen interface. After the user clicks on the message notification and unlocks the device, the terminal device may directly jump to the application interface corresponding to the first object, and the application interface may be a clock-in interface provided by a third-party application. Alternatively, when the terminal device is unlocked, the first object may be, for example, a message notification suspended at the top of the main screen interface. After the user clicks on the message notification, the terminal device may also directly jump to the clock-in interface corresponding to the first object. When the terminal device displays the main screen interface, the first object may also be one of the cards in the desktop card set on the main screen interface, or the first object may also be a desktop component independently displayed on the main screen interface. Accordingly, clicking on the first object may directly jump to the clock-in interface of the third-party application. The embodiments of the present application do not limit the specific implementation method of the first object.
[0133] S205: If the first user is a first feature user, a second object is displayed at a first time point, the second object is used for the user to check in, and the second object is the same as or different from the first object; the discreteness of the N first check-in times of the first feature user meets a preset condition, or the time interval between the N first check-in times of the first feature user and the corresponding first time point meets the preset condition.
[0134] Exemplarily, in some implementations, the discrete degree of the N first clock-in times of the first feature user may be less than a preset threshold, or the discrete degree of some of the first clock-in times of the first feature user may be less than a preset threshold, which shows that the first feature user may be a user whose latest time off work is relatively regular. For such a user, the model is more likely to learn their regularity of leaving get off work, and the success rate of recommendation at the first time point is also higher. Therefore, for the first user who is the first feature user, a clock-in recommendation for leaving work may be made for him at the first time point. For the first user who is not the first feature user, since his latest time off work is irregular, the model is not easy to learn, and the accuracy at the first time point is low, therefore, he may not be recommended to leave work at the first time point to avoid causing trouble to him. The first feature user may also be called a regular user.
[0135] In some other implementations, the time interval between the N first punch-in times of the first characteristic user and the corresponding first time point may be less than a preset threshold, or the time interval between some of the first punch-in times of the first characteristic user and the corresponding first time point may be less than the preset threshold. It can be seen that the first characteristic user may also be a user with a high model learning accuracy, so for the first user who is the first characteristic user, a punch-in recommendation for leaving get off work may be made at the first time point. For the first user who is not the first characteristic user, a punch-in recommendation for leaving get off work may not be made at the first time point.
[0136] It is understandable that, in the embodiment of the present application, a first time point can be predicted based on machine learning for any first user, and then a clock-in recommendation is made for the first user who is a first characteristic user, while no clock-in recommendation is made for the first user who is not a first characteristic user. Therefore, for any first user, each first clock-in time corresponds to a first time point.
[0137] In an embodiment of the present application, by clicking on the second object, you can also jump directly to the corresponding interface of the third-party application to achieve quick clocking in. The second object can be the same as the first object. For example, the second object can be a message notification displayed on the lock screen interface, a message notification suspended at the top of the screen interface, one of the cards in the desktop card set on the main screen interface, or a desktop component displayed independently on the main screen interface. The second object can also be different from the first object. For example, the second object can be a message notification accompanied by a strong vibration, or a message notification that continues to float on the main screen interface and disappears after the user clicks it. The embodiment of the present application does not limit the specific implementation method of the second object.
[0138] In this way, regular users can receive a recommendation of the first object at the start time of the first time period, and users can rely on the first object to complete the "insurance card" or the last clock-in of the day. Furthermore, if a regular user does not clock in or punches in the "insurance card" at the start time of the first time period, he or she can also receive a recommendation of the second object at the first time point, and the user can rely on the second object to complete the actual clock-in after work. Therefore, when the second object is a message notification accompanied by a strong vibration, or a message notification that is continuously suspended on the main screen interface, it can also serve to more obviously remind the user when the user actually gets off work, which can increase the recommendation success rate and enhance the user experience.
[0139] It can be understood that, based on the method provided in the embodiment of the present application, the terminal devices of all first users can display the first object at the start time of the first time period, and the terminal devices of some regular users can display the second object at the first time point.
[0140] It can be seen from the above technical solution that the present application provides a punch-in recommendation method, which includes obtaining the first user's off-get off work time records for N days before today. Determine the first time period and the first time point based on the off-work time records, the start time of the first time period is equal to or later than the earliest time of the N first punch-in times, and the end time of the first time period is earlier than or equal to the latest time of the N first punch-in times, and the N first punch-in times include the latest off-get off work punch-in time of each day in N days. The first time point is within the first time period. The first object is displayed at the start time of the first time period, and the first object is used for the user to punch in. If the first user is a first characteristic user, the second object is displayed at the first time point, and the second object is used for the user to punch in. Based on the method of the embodiment of the present application, all users can receive recommendations for the first object, and regular users can also receive recommendations for the second object, which can improve the recommendation success rate and enhance the user experience.
[0141] Figure 8 A schematic diagram of a process for determining a first time period provided in an embodiment of the present application. Figure 8 As shown, in the embodiment of the present application, the first time period can be performed by the following steps S301-S304:
[0142] S301: Obtain a first time set, where the first time set includes N first clock-in times of a first user and / or N first clock-in times of a second user. A terminal device of the first user and a terminal device of the second user are connected to the same first target network, and the first target network is within the company.
[0143] In a first implementation manner, the embodiment of the present application can determine the first time period based on the first user's N first clock-in times, so that the first time period is more in line with the first user's habit of clocking in after get off work.
[0144] In the second implementation, the embodiment of the present application can also determine the first time period based on the N first punch-in times of the second user. Specifically, the embodiment of the present application takes into account that the amount of personal clock-in data for leaving get off work is too small, which may cause the first time period to be inaccurate. For example, a first user may have the following abnormal clock-in situations in N days: Case 1, the first user asked for leave and punched in early on one or several days in N days, and worked overtime for a long time on one or several days in N days. If the first time period is determined based on the N first punch-in times of the first user, the range of the first time period will be too large, which is not conducive to improving the user experience. Case 2, the first user accidentally punched in when he did not leave work, and forgot to punch in when he really left work, resulting in the time of the accidentally punched in becoming the first punch-in time of the day. Determining the first time period based on such a first punch-in time may lead to premature recommendation. It can be seen that there is a large randomness in the first user's personal clock-in for leaving get off work. The first time period determined based on the first user's N first punch-in times may reduce the user experience and result in a low recommendation success rate.
[0145] Therefore, the embodiment of the present application can also determine the first time period of the first user based on the N first clock-in times of the second user. The second user may be a user associated with the first user, for example, subject to the same work system constraints as the first user. Furthermore, the second user may be all or part of the colleagues of the first user. Specifically, the terminal device of the first user may be connected to the same first target network as the terminal device of the second user. The first target network is located within the company scope. The company scope may refer to the scope of the company and its surrounding rooms and floors. The first target network may cover part or all of the company scope. When the first user or the second user are both connected to the first target network, it is determined that the first user and the second user are associated with each other. In this way, the interval of the first time period can be changed.
[0146] In a third implementation manner, the embodiment of the present application may also jointly determine the first time period based on the N first clock-in times of the first user and the N first clock-in times of the second user.
[0147] Specifically, this implementation can correct the problem of abnormal clocking in of the first user. For example, when determining the first time period based only on the first user's N first clocking in times, if the N first clocking in times include a value such as 16:00 that is earlier than the agreed off-duty time of the work system, the start time of the first time period may be advanced to 16:00. When determining the first time period based on the first user's N first clocking in times and the second user's N first clocking in times, since the amount of data of the first clocking in times is large, by comparing the distribution of a large number of first clocking in times, it can be found that 16:00 is an abnormal clocking in time. In this way, the abnormal clocking in time can be removed when determining the first time period, thereby improving the accuracy of the first time period.
[0148] The embodiment of the present application can use any one of the above three implementation methods to determine the first time period. Furthermore, the embodiment of the present application can also filter the above three implementation methods for any first user. Specifically, the first time period of the next A days is determined based on the above three implementation methods, and the earliest clock-in time is obtained after the user clocks in every day in the next A days. The first time period and the earliest clock-in time are used to form a test set, and then the test set is used to calculate the accuracy of the first time period corresponding to each implementation method, and based on the test results, it is determined which implementation method is used to make recommendations for the first user.
[0149] It should be noted that the number of the first clock-in times of the second users may not be limited to N, and may be determined by the actual clock-in situations of the second users before today, and the number of first clock-in times of different second users may be the same or different.
[0150] S302: Sort the first clock-in time in the first time set to obtain a first sequence.
[0151] For example, the first time set may consist of 13 first punch-in times, and the 13 first punch-in times are 15:00, 15:30, 19:30, 20:00, 18:00, 20:30, 21:00, 21:30, 18:40, 19:00, 22:00, 23:00, and 18:00. After sorting the 13 first punch-in times in ascending order of time, the first sequence is as follows: 15:00, 15:30, 18:00, 18:00, 18:40, 19:00, 19:30, 20:00, 20:30, 21:00, 21:30, 22:00, and 23:00.
[0152] S303: Remove outliers at the beginning and / or the end of the column in the first sequence to obtain a second sequence.
[0153] In order to improve the accuracy of the first time period, the embodiment of the present application can also remove smaller or larger outliers in the first sequence. For example, outliers can be removed based on the interquartile range (IQR) method. Based on the interquartile range method, it can be found that the first quartile Q1 of the first sequence is 18:00, the second quartile (median) Q2 is 19:30, and the third quartile Q3 is 21:00. The interquartile range IQR = Q3-Q1 = 21:00-18:00. At this time, it can be considered that the interquartile range is equal to 3 hours. Then the first punch-in time within 3 hours before the median 19:30 and the first punch-in time within 3 hours after the median 19:30 are non-outliers, and the remaining first punch-in times are outliers. The outliers are specifically 15:00, 15:30 and 23:00.
[0154] It should be noted that, for ease of understanding, the interquartile range method is introduced here using the first punch-in time based on a 60-point system. In the actual calculation process, the first punch-in time should be converted from a 60-point system to a 100-point system.
[0155] In practical applications, other statistical methods may also be used to remove outliers, which is not specifically limited in the embodiments of the present application.
[0156] S304: Determine the first clock-in time at the head of the second sequence as the start time of the first time period, and determine the first clock-in time at the end of the second sequence as the end time of the first time period.
[0157] In this way, the first time period can be constrained by multiple screening conditions, with higher accuracy.
[0158] Fig. 9 A schematic diagram of the first user's off-get off work recommendation provided in an embodiment of the present application. Fig. 9 The image (a) shows a schematic diagram of the first user completing the clock-in before the end time of the first time period. Fig. 9 The image (b) shows a schematic diagram in which the first user does not complete the clock-in before the end time of the first time period.
[0159] In the embodiment of the present application, the following step S401 is also included after step S204:
[0160] S401: If the first user is not a first characteristic user, before the end time of the first time period, when the first user completes clocking out, stop displaying the first object; or, stop displaying the first object at the end time of the first time period.
[0161] In the embodiment of the present application, for the first user who is not a first characteristic user, the first object can be displayed in the first time period. In addition, if the user jumps to the third-party application to complete the clock-in by clicking on the first object in the first time period, or if the user reaches the clock-in interface of the third-party application through other means in the first time period and completes the clock-in, the first object can be stopped from being displayed. In this way, for the first user who is not a first characteristic user, the user can continue to receive clock-in recommendations before clocking in, and no longer receive clock-in recommendations after completing the clock-in.
[0162] Furthermore, when the first object is one of the cards in the desktop card set on the main screen interface, or when the first object is a desktop component displayed independently on the main screen interface, before the first object stops being displayed, the user can see the first object in the main screen interface each time the user returns to the main screen interface, which serves as a continuous recommendation, so that the user can conveniently check in through the first object when he needs to check in.
[0163] Fig.10 Another schematic diagram of a first user's off-get off work recommendation provided in an embodiment of the present application. Fig.11 This is a schematic diagram of the first user's off-get off work recommendation process provided in the embodiment of the present application. Fig.10 and Fig.11 As shown, the embodiment of the present application further includes the following step S501 after step S204:
[0164] S501: If the first user is a first characteristic user, display a second object at a second time point; wherein the second time point is between the start time of the first time period and the first time point, and the time interval between the second time point and the first time point is equal to a first preset duration.
[0165] The embodiment of the present application can display the second object within a period of time before the second time point, so that the success rate of recommending the second object can be improved. The first preset time length can be, for example, 5 minutes, 10 minutes or 15 minutes, and the embodiment of the present application does not limit the specific value of the first preset time length.
[0166] like Fig.10 and Fig.11 As shown, the method provided in the embodiment of the present application may further include the following step S502 before step S205:
[0167] S502: If the first user is a first characteristic user, the first object is stopped from being displayed before a third time point when the first user completes clocking out from get off work, or the first object is stopped from being displayed at the third time point; wherein the third time point is between the start time of the first time period and the second time point, and the time interval between the third time point and the start time of the first time period is equal to the second preset duration, or the third time point coincides with the second time point.
[0168] In an embodiment of the present application, when the time span of the obtained off-duty time record is long, the off-duty time record includes rich off-duty time information. For example, the time span of the off-duty time record completely covers a week, a month, or a quarter, and the off-duty time record can fully show the user's habit of clocking in and out of get off work within a week, a month, or a quarter. Specifically, the off-duty time record includes but is not limited to the situation where the user clocks in once and leaves work immediately, and the user punches in the "insurance card" after the agreed time of the work system and punches in for the last time when actually leaving get off work. Therefore, the first time period of the embodiment of the present application can also cover the time when the user is accustomed to punching in the "insurance card", and displaying the first object at the start time of the first time period can also serve to remind the user to punch in the "insurance card".
[0169] The embodiment of the present application can display the first object between the start time of the first time period and the third time point, so that the first user can punch the "insurance card" between the start time of the first time period and the third time point. When the user completes the punch-in between the start time of the first time period and the third time point, the first object can be stopped from being displayed. Furthermore, if the user does not complete the punch-in between the start time of the first time period and the third time point, the embodiment of the present application can also stop displaying the first object at the third time point, so that the first object can be prevented from affecting the user experience.
[0170] Continue to see Fig.10 and Fig.11 In the embodiment of the present application, the following step S503 may be further included after step S205:
[0171] S503: Before the end time of the first time period, when the first user completes clocking out, the second object is stopped from being displayed. Alternatively, the second object is stopped from being displayed at the end time of the first time period.
[0172] Fig.10 The image (a) in the middle shows a schematic diagram of the first user completing the clock-out before the end time of the first time period. Fig.10 The image (b) is a schematic diagram showing that the display of the second object stops at the end time of the first time period.
[0173] In summary, for the first user who is a first characteristic user, the embodiment of the present application can remind him to punch in the "insurance card" at the start time of the first time period, and can also predict his real time off work (first time point), and recommend him to punch in again near the real time off work. The method for recommending punching in after work provided by the embodiment of the present application is more in line with the user's usage needs and punching in habits, has a high recommendation success rate, and can improve the user experience.
[0174] Fig.12A further schematic diagram of a first user's off-get off work recommendation provided in an embodiment of the present application.
[0175] like Fig.12 As shown in the image (a), in some implementations, if the time period from the start time of the first time period to the third time point overlaps with the time period from the second time point to the first time point, the embodiment of the present application can advance the third time point to the second time point, so that the user can successfully receive the reminder of the second object and successfully complete the real clocking out of get off work.
[0176] like Fig.12 As shown in the image (b), in some implementations, if the first time point predicted by the model coincides with the start time of the first time period, then the embodiment of the present application can continuously display the first object or the second object between the start time (first time point) of the first time period and the end time of the first time period. Furthermore, if the user completes a check-in between the start time (first time point) of the first time period and the end time of the first time period, the first object or the second object can be stopped from being displayed.
[0177] like Fig.12 As shown in the image (c), in some implementations, if the first time point predicted by the model coincides with the start time of the first time period, then the embodiment of the present application can continuously display the first object or the second object from the start time of the first time period (the first time point) to the fourth time point, the fourth time point is earlier than the end time of the first time period, and the duration between the start time of the first time period and the fourth time point can be equal to the preset duration, for example, it can be equal to 10 minutes, 20 minutes or 30 minutes. In this way, the first object or the second object can be prevented from affecting the user's use. Furthermore, if the user completes a punch-in between the start time of the first time period (the first time point) and the fourth time point, the first object or the second object can be stopped from being displayed.
[0178] Furthermore, based on the above steps, the embodiment of the present application can also determine whether the first user is in the company fence before displaying the first object or the second object. If the first user is in the company fence, the first object or the second object is displayed; if the first user is not in the company fence, the first object or the second object is not displayed. In this way, it is possible to avoid the recommendation of clocking in after get off work when the user is not around the company.
[0179] The company fence can be a geographic fence determined by the user's historical activity location. For example, the company fence can be surrounded by a 1-kilometer range around the user's clock-in location. The embodiment of the present application can specifically determine the company fence based on the user profile. The user profile is a collection of tags that collects information such as user behavior habits. Each tag specifies the angle of observing, understanding, and describing the user, and labels the user's behavior habits, which is easy to understand and convenient for computer processing, and can be used to accurately and quickly analyze user behavior habits. In this embodiment, the company fence can be determined by a tag in the user image that records the user's activity location. For example, the tag records the location information of the place where the user stays for more than 90 minutes from 9:00 to 12:00, or the tag records the location information of the place where the user clocks in or clocks out every day. The location information can be represented by longitude and latitude. In this way, the company fence can be determined based on the tag.
[0180] Furthermore, the embodiment of the present application can determine the first time point at a preset time point, and the preset time point can be, for example, 4:00 a.m. In this way, regardless of whether the user is at work today, the model can predict the first time point, and after receiving the user's clock-in record, the second object can be displayed based on the first time point. In this way, the model operation can be prevented from affecting the user's experience.
[0181] Fig.13 A schematic diagram of a process for determining a first time point provided in an embodiment of the present application. Fig.13 As shown, the method provided in the embodiment of the present application also includes the following steps S601-S602:
[0182] S601: Obtain the first information and the second information of each day in the N days before today; the first information includes the day of the week in which the day is, the month of the year in which the day is, whether the day is Monday, Tuesday or Thursday, whether the day is Saturday or Sunday, and the week of the month in which the day is; the second information includes: a first difference, a second difference, a third difference, a first mean and a second mean, the first difference is equal to the difference between the latest clock-in time one day ago and the latest clock-in time two days ago in the N days, the second difference is equal to the difference between the latest clock-in time one day ago and the latest clock-in time three days ago in the N days, the third difference is equal to the difference between the latest clock-in time one day ago and the latest clock-in time four days ago in the N days, the first mean is equal to the average of the first difference and the second difference, and the second mean is equal to the average of the first difference, the second difference and the third difference.
[0183] Among them, the first information can be used to analyze the relationship between the time when the user gets off work and the natural information of the day (for example, the day is the day of the week, etc.), and the second information can be used to analyze the regularity of the user's time to get off work. Based on the first information and the second information, each day can also be distinguished and classified. For example, the embodiment of the present application can further determine the association between the user's time to clock in and out of work and the first information and the second information by comparing and determining the days when the overlap of the first information is higher than a threshold, or by comparing and determining the days when the overlap of the second information is higher than a threshold, and determine the changing regularity of the time to clock in and out of get off work, and then determine the first time point of today.
[0184] It is understandable that the aforementioned first information and second information are only part of the information shown in the embodiment of the present application. In actual application, the embodiment of the present application can also determine more information based on the information of the first punch-in time. For example, whether each first punch-in time coincides with the earliest punch-in time of the day, or whether each first punch-in time crosses the midnight, etc.
[0185] It should be noted that when calculating the second information, each day in N days should be sorted in order of date. For the first four days in N days, when the first difference, the second difference, the third difference, the first mean or the second mean cannot be calculated, the corresponding value can be set to empty. For example, the N days before today are November 1, November 2, November 3, November 4, November 8, November 9, and November 10, then the first difference on November 10 is equal to the difference between the latest clock-in time on November 10 and the latest clock-in time on November 9. Since the latest clock-in time on the day before November 1 is unknown, the first difference on November 1 can be set to empty. The calculation steps of the second difference, the third difference, the first mean and the second mean are not repeated here.
[0186] S602: Input the off-duty time record, the first information of today and each of the N days before today, and the second information into the first prediction model to obtain the first time point.
[0187] Among them, the first prediction model can be a regression model determined by the model structure of the gradient boosting machine (Light Gradient Boosting Machine, LightGBM). LightGBM is a distributed gradient boosting framework based on the decision tree algorithm, which has the advantages of fast and efficient, low memory usage, high accuracy, support for parallelism and large-scale data processing. In the training stage of the first prediction model, the model can be trained based on a large number of user samples and using rich feature information. Specifically, the model can be used to classify and sort the feature information, and then obtain the prediction results determined based on different feature information. The feature information is selected based on the accuracy of the prediction results, and the feature information with a higher correlation with the predicted off-duty time is retained as the first information and second information for the first prediction model to finally predict the off-duty time, completing the training process.
[0188] The first prediction model provided in the embodiment of the present application can determine the regularity of the time of leaving get off work, and can determine the factors that affect the time of leaving get off work, and finally predict a time of leaving get off work. Afterwards, a punch-in recommendation can be made based on the predicted time of leaving get off work, which can make the punch-in recommendation more accurate.
[0189] FIG14( a ) is a schematic diagram of a first process for determining a first characteristic user provided in an embodiment of the present application. As shown in FIG14( a ), the embodiment of the present application further includes the following steps S701-S702:
[0190] S701: Calculate the first standard deviation of N first clock-in times.
[0191] The standard deviation can be used to indicate the degree of dispersion of data in a data set. The larger the standard deviation, the greater the degree of dispersion, and the smaller the standard deviation, the smaller the degree of dispersion. Therefore, the standard deviation of N first clock-in time periods can be calculated, and based on the size of the standard deviation, it can be determined whether the first user is a first characteristic user with a relatively regular off-get off work time.
[0192] S702: If the first standard deviation is smaller than a first preset threshold, the first user is determined as a first characteristic user.
[0193] The first preset threshold value may be, for example, 30 minutes or 60 minutes, and the embodiment of the present application does not limit the specific value of the first preset threshold value. For the first user who is a first characteristic user, the first prediction model can easily learn the law of his / her off-get off work time and can predict a relatively accurate first time point, thereby enabling him / her to obtain a good user experience. For the first user who is not a first characteristic user, not making recommendations at the first time point can avoid giving him / her an experience of inaccurate recommendations.
[0194] FIG14( b ) is a schematic diagram of a second process for determining a first characteristic user provided in an embodiment of the present application. As shown in FIG14( b ), the embodiment of the present application may further include the following steps S703-S706:
[0195] S703: Sort the N first clock-in times to obtain a third sequence.
[0196] When sorting the N first clock-in times, they may be sorted in ascending order of time or in descending order of time.
[0197] S704: Remove some first punch-in times at the beginning, the end, or both of the third sequence to obtain a first number of first punch-in times, where a ratio of the first number to N is equal to a second preset threshold.
[0198] In the embodiment of the present application, the first number may be equal to 70%, and then 70% of the first punch-in times among the N first punch-in times may be selected to calculate the standard deviation.
[0199] S705: Calculate a second standard deviation of the first number of first clock-in times.
[0200] For example, for the 10 first punch-in times in the third sequence, 7 (70%) of the first punch-in times may be selected to calculate the standard deviation. The 7 first punch-in times may be, for example, the first 3 punch-in times excluding the first punch-in times, or the first 3 punch-in times excluding the last punch-in times, or the first 1 punch-in time excluding the first punch-in time and the last 2 punch-in times, or the first 2 punch-in times excluding the first punch-in time and the last 1 punch-in time.
[0201] In the embodiment of the present application, the second standard deviation can be calculated for the first clock-in time obtained by each removal method.
[0202] S706: If the second standard deviation is less than the third preset threshold, determine the first user as a first characteristic user.
[0203] The third preset threshold value may be, for example, 30 minutes or 60 minutes, and the embodiment of the present application does not limit the specific value of the first preset threshold value. If the second standard deviation corresponding to one or more of the removal methods is less than the third preset threshold value, the first user may be determined as a first characteristic user.
[0204] FIG14( c ) is a schematic diagram of a third process for determining a first characteristic user provided in an embodiment of the present application. As shown in FIG14( c ), the embodiment of the present application may further include the following steps S707-S708:
[0205] S707: Calculate the third standard deviation of the second clock-in time, where the second clock-in time is m of the N first clock-in times, where m is less than N.
[0206] It can be understood that the N first clock-in times include one or more first clock-in times corresponding to Mondays, one or more first clock-in times corresponding to Tuesdays, one or more first clock-in times corresponding to Wednesdays, etc. The second clock-in time can be the first clock-in time of all Wednesdays and Fridays, or the second clock-in time can be the first clock-in time of all Mondays, Tuesdays, and Thursdays. In this way, it can be determined whether the first user is a user with a relatively regular time off work on certain working days (Wednesdays and Fridays), or whether the first user is a user with a relatively regular time off work on certain other working days (Mondays, Wednesdays, and Thursdays).
[0207] S708: If the third standard deviation is less than a fourth preset threshold, determine the first user as a first characteristic user.
[0208] Among them, the fourth preset threshold can be equal to 30 minutes or 60 minutes, for example. The embodiment of the present application does not limit the specific value of the fourth preset threshold.
[0209] FIG14( d ) is a schematic diagram of a fourth process for determining a first characteristic user provided in an embodiment of the present application. As shown in FIG14( d ), the embodiment of the present application may further include the following steps S709-S711:
[0210] S709: Determine a third clock-in time and its corresponding first time point, the third clock-in time being n of the N first clock-in times, where n is less than N.
[0211] S710: Calculate the accuracy of the first time point based on the third clock-in time and the first time point.
[0212] S711: If the accuracy rate is greater than a fifth preset threshold, the first user is determined as a first characteristic user.
[0213] The embodiment of the present application can select n from N first punch-in times, and obtain n first time points corresponding to the n first punch-in times. For each first punch-in time, if the first punch-in time is within the third time period, it is determined that the prediction of the first time point is accurate; if the first punch-in time is not within the third time period, it is determined that the prediction of the first time point is inaccurate. The first time period can be, for example, half an hour before the first time point, or half an hour before and after the first time point. Furthermore, the ratio of the number of accurately predicted first time points to n can be determined as the accuracy of the first time point. If the accuracy is greater than the fifth preset threshold, the first user is determined to be a first characteristic user. It can be seen that based on this method, users whose models are easy to learn can be found.
[0214] In some implementations, the third clock-in time may be the latest clock-out time of each of the n days closest to today (the day to be predicted).
[0215] The fifth preset threshold value may be equal to 0.7, for example. The embodiment of the present application does not limit the specific value of the fifth preset threshold value.
[0216] In practical applications, the first characteristic user can be determined based on one or more of the above methods. The embodiment of the present application does not specifically limit which method is used.
[0217] Fig.15 A second flow chart of the punch-in recommendation method provided in an embodiment of the present application.
[0218] like Fig.15 As shown, the embodiment of the present application also provides a method for clocking in and out recommendation, which may specifically include the following steps S801-S807:
[0219] S801: When the current time is a preset time, determine whether the sleeping place of the first user is within a personal clock-in fence, where the personal clock-in fence is a geographical fence determined by the first user's historical clock-in locations.
[0220] Fig.16 A schematic diagram of a personal clock-in fence is shown. Fig.16 As shown, the personal clock-in fence can be determined by the user's historical clock-in or clock-out locations. For example, the personal clock-in fence can include sub-fence 1, sub-fence 2, sub-fence 3, sub-fence 4, etc. Sub-fence 1 encloses a 10-meter range around location A, sub-fence 2 encloses a 10-meter range around location B, sub-fence 3 encloses a 10-meter range around location C, and sub-fence 4 encloses a 10-meter range around location D. Location A, location B, location C, and location D are all historical clock-in locations of the user. When the user enters the range enclosed by each sub-fence, it can be determined that the user has entered his or her personal clock-in fence. Alternatively, when the user's radiation range includes any sub-fence, it can also be determined that the user has entered his or her personal clock-in fence. The user's radiation range can be, for example, a range of 10 meters, 20 meters, or 30 meters around the user.
[0221] The user's journey to work generally includes leaving home, walking or taking public transportation to the vicinity of the company, and then entering the personal clock-in fence and completing the clock-in. Therefore, when the user has the action of entering the personal clock-in fence, it can be considered that the user needs to clock in for work. However, for some special users, such as users whose homes are near the company, since they can clock in at home or around their homes, the range of their personal clock-in fence may include part or all of the home area. In this case, the work journey of such users may not include the action of entering the personal clock-in fence, or may include the action of frequently stepping in and out of the personal clock-in fence. For example, some users who stay overnight in the company, their journey to work does not include the action of entering the personal clock-in fence, and the clock-in recommendation for work cannot be made based on the action of entering the personal clock-in fence. Therefore, in order to cover the clock-in needs of more users, the embodiment of the present application can first determine whether the user's sleeping place is within the personal clock-in fence to determine whether the user has the action of entering the personal clock-in fence when going to work.
[0222] In some implementations, in order to accurately determine the user's sleeping place, some terminal device usage features can be preset. For example, the current time is later than 12 o'clock in the morning, the terminal device is in a charging state, the terminal device remains in a screen-off state for more than a preset time, etc. Exemplarily, at 12 o'clock in the morning, the terminal device is in a charging state, and the terminal device remains in a screen-off state for more than 120 seconds, it can be determined that the user is in a sleeping state, and the user's location at this time is the sleeping place. The sleeping place can be represented by longitude and latitude.
[0223] In some implementations, the actual sleeping location of the user can be determined based on the user portrait. Specifically, the user portrait can learn features such as the location of the user's home, the location of the company, and the distance between the home and the company to accurately determine the user's sleeping location. The user portrait can also learn other features of the user, such as the length of time the user stays at home every weekday, etc., which is not specifically limited in this application.
[0224] In some implementations, the preset time may be 4:00 a.m., and the actual value of the preset time may be determined based on actual conditions, as long as the preset time is earlier than the user's earliest clock-in time.
[0225] S802: If the sleeping place of the first user is within the personal clock-in fence, determine a first historical day, where the first historical day includes R days before today, where R is less than or equal to the data aging days of the second prediction model.
[0226] Among them, if the user's sleeping place is within the clock-in fence, the user generally will not enter the clock-in fence when going to work, and a clock-in recommendation cannot be made based on this action. Therefore, the embodiment of the present application can also determine whether to make a clock-in recommendation based on a second prediction model. The second prediction model can be a classification model determined based on LightGBM. During the training stage of the second prediction model, the model can be trained based on a large number of user samples and using rich feature information. Specifically, the model can be used to classify and sort the feature information of past working days or non-working days, and then obtain the prediction results determined based on different feature information, and make choices based on the accuracy of the prediction results. The feature information is retained, and the feature information with a higher correlation with predicting whether the user goes to work is retained as the feature information for the second prediction model to finally predict whether to go to work, and the training process is completed.
[0227] Furthermore, the embodiment of the present application can first determine the data input into the second prediction model. The first historical day can be R consecutive days before today, where R should be greater than a preset threshold, such as 10 or 30, so that the span of the first historical day can at least cover one week, so the user's work pattern can be determined by analyzing whether the user goes to work on the first historical day.
[0228] Data aging days refers to the data threshold set for it during the training phase of the second prediction model. When the time interval between the data and the current moment exceeds the data aging days, the data will be deleted and will not be input into the second prediction model. Since the number of working days in the first historical day is far more than the number of non-working days, and limited by the data aging days of the model, the amount of data input into the model may be small, which will affect the accuracy of the model's prediction results. The embodiment of the present application can perform data enhancement based on the first historical day and its related data, so that the number of non-working days and working days are enhanced to be equal, while expanding the amount of data.
[0229] S803: Determine the second historical day based on the first historical day; the second historical day is before the first historical day, and the difference between the second historical day and the first historical day is greater than the number of days of data aging; the information on whether the person is at work on the second historical day is the same as that on the first historical day, and whether the week in which the second historical day falls is an odd week of the year is the same as that on the first historical day.
[0230] In the embodiment of the present application, the second historical day is the number of days deduced based on the timestamp of the first historical day, and the difference between the second historical day and the first historical day is greater than the data aging days, so the relevant data of the second historical day will not conflict with the non-aged data.
[0231] Fig.17 A schematic diagram of a process for determining a second historical day provided in an embodiment of the present application. Fig.17As shown, the embodiment of the present application also includes the following steps S8031-S8033:
[0232] S8031: Based on the information of whether the first historical day was for work, the first historical day is divided into positive samples and negative samples, and K positive samples and V negative samples are obtained. The positive samples correspond to the first historical day for work, and the negative samples correspond to the first historical day for not working. K represents the number of positive samples, and V represents the number of negative samples.
[0233] Fig.18 A schematic diagram of the first historical day and related information provided in an embodiment of the present application. Fig.18 The first historical day of 14 consecutive days from July 25, 2022 to August 7, 2022 is shown in the figure, where "ID" represents the event ID of the data enhancement, and "Timestamp" represents the timestamp of the first historical day, specifically the date of the first historical day. "label" indicates whether the first historical day is working, "1" means working, "0" means not working, and "is_odd_week" indicates whether the week in which the first historical day is located is an odd week, "1" means an odd week, and "0" means not an odd week. It can be seen that the number of working days and the number of non-working days from July 25, 2022 to August 7, 2022 are obviously not equal. In order to enhance the number of non-working days and the number of working days to be equal, the embodiment of the present application first divides the first historical day into positive samples and negative samples.
[0234] S8032: For each positive sample, determine the V-1 second historical days corresponding to it, where V-1 represents the number of second historical days corresponding to each positive sample.
[0235] For each positive sample, its corresponding V-1 second historical days are determined, and the information of whether the person is at work on the second historical day is the same as the corresponding first historical day. Then K positive samples are enhanced to K×(V-1) positive samples, and the total number of positive samples is enhanced to K×V.
[0236] Fig.19 This is a schematic diagram of data enhancement provided in an embodiment of the present application. Fig.19 As shown, for the first historical day of the 14 consecutive days from July 25, 2022 to August 7, 2022, there are 12 positive samples and 2 negative samples. Then each positive sample corresponds to (2-1) second historical days, and each negative sample corresponds to (12-1) second historical days. For example, a positive sample with a timestamp of "2022-07-25" corresponds to 1 second historical day.
[0237] S8033: For each negative sample, determine its corresponding K-1 second historical days.
[0238] For each negative sample, its corresponding K-1 second historical days are determined, and the information of whether the person went to work on the second historical day is the same as that on the corresponding first historical day. Then V negative samples are enhanced to V×(K-1) negative samples, and the total number of negative samples is enhanced to V×K. Fig.19 As shown, the negative sample with the timestamp “2022-08-07” corresponds to the (12-1) second historical day.
[0239] It can be seen that after enhancement, the number of positive samples and negative samples is the same, both K×V.
[0240] The following is a detailed description of the steps for determining the timestamp of the second historical day with examples.
[0241] Further, when the data aging days of the second prediction model is equal to W days, the Xth second historical day is the X×(W+Y)th day before the positive sample, the Xth second historical day is any one of the V-1 second historical days, X is a natural number, and 0<X≤V-1; the Zth second historical day is the Z×(W+Y)th day before the negative sample, the Zth second historical day is any one of the K-1 second historical days, Z is a natural number, and 0<Z≤K-1; Y is a natural number, and Y≥1.
[0242] It is understandable that the present application can, based on the timestamp of the first historical day, back-calculate the second historical day whose time interval from the first historical day exceeds the data aging days. Where W+Y is the difference between the first historical day and the second historical day closest to it, X×(W+Y) represents the difference between the positive sample and its corresponding Xth second historical day, and correspondingly, Z×(W+Y) represents the difference between the negative sample and its corresponding Zth second historical day. The values of the data aging days W and the parameter Y can be determined based on actual conditions.
[0243] For example, Fig.19 As shown, the preset data aging days W can be 90 days, and the parameter Y can be equal to 1, so that the difference between the second historical day and its corresponding first historical day can be greater than the data aging days. Exemplarily, the first historical day with a timestamp of "2022-07-25" and the corresponding second historical day with a timestamp of "2022-04-25" have a difference of 91 days. The first historical day with a timestamp of "2022-08-07" and the corresponding first second historical day with a timestamp of "2022-05-08" also have a difference of 91 days. The corresponding second second historical day with a timestamp of "2022-02-06" has a difference of 2×91=182 days. Fig.19 The timestamp of the second historical day corresponding to each first historical day can be found in Fig. 20 , which will not be elaborated here.
[0244] It should be noted that, in order to avoid the difference in the number of odd weeks and even weeks from being magnified, in the embodiment of the present application, whether the week in which the second historical day is located is an odd week is the same as the first historical day corresponding to it.
[0245] like Fig. 20 As shown in the figure, after data enhancement, the total data volume increases from 14 to 48, the number of days off work and the number of days on work have also been enhanced to be equal, and the data structure of the first historical day is maintained without being destroyed.
[0246] Therefore, after the second historical day is enhanced, the number of days not working and the number of days working can be enhanced to be equal, and the amount of data can be expanded. The accuracy of the second prediction model can be improved by jointly predicting whether to work based on the first historical day and the second historical day.
[0247] S804: Obtain the third information of today, the first historical day and the second historical day, the third information including the day of the week in which the current day is, the month of the current year in which the current day is, whether the current day is Monday, Tuesday or Thursday, whether the current day is Saturday or Sunday, whether the current day is Saturday, the day of the month in which the current day is, the week of the month in which the current day is, the week T of the current month in which the current day is, and the week T of the current month in which the current day is, where the week T is any day from Monday to Sunday, and whether the week in which the current day is an odd week of the current year.
[0248] In the embodiment of the present application, the second information can be used to analyze the user's work pattern and then determine whether the user needs to go to work today.
[0249] It is understandable that the information on whether the second historical day is working is the same as the corresponding first historical day, and the third information of the second historical day, whether it is an odd week of the year is the same as the corresponding first historical day, and other information such as the day of the week and the month of the year are real information. For example, the second historical day with a timestamp of "2022-05-08" is the seventh day of the week, the fifth month of the year, not Monday, Tuesday or Thursday, Saturday or Sunday, not Saturday, on the eighth day of the month, in the second week of the month, the day is the second Sunday of the month, the day is the fourth Sunday of the month, the week is not an odd week of the year, and the second historical day is not working.
[0250] S805: Input the third information of today, the first historical day and the second historical day into the second prediction model, and input the information of whether the user went to work on the first historical day and the second historical day into the second prediction model to determine whether the user needs to go to work on that day.
[0251] It can be seen that the second prediction model provided by the embodiment of the present application can determine whether the user needs to go to work based on the third information of today, the first historical day, and the second historical day. After that, the embodiment of the present application can predict the result to determine whether to make a clock-in recommendation for work. Therefore, the clock-in recommendation provided by the embodiment of the present application is more accurate, can avoid invalid recommendations, and can improve user experience.
[0252] S806: If the user needs to go to work on the same day, a third object is displayed within the second time period. The third object is used for the user to clock in. The start time of the second time period is the earliest clock-in time of the first user in history, and the end time of the second time period is the latest clock-in time of the first user in history.
[0253] The third object can be, for example, a message notification displayed on the lock screen interface, a message notification suspended at the top of the main screen interface, or one of the cards in the desktop card set on the main screen interface, or a desktop component independently displayed on the main screen interface. After receiving the third object, the user can click on the third object, so that the user can directly jump to the user interface of the third application for clocking in and clocking in.
[0254] The second time period of the embodiment of the present application is determined based on the earliest clock-in time and the latest clock-in time in history of the first user, so that the user can avoid missing the clock-in time and causing missed clock-ins. When determining the second time period, the outliers in the user's historical clock-in time can be removed first, and then the earliest clock-in time and the latest clock-in time can be determined. For example, on certain weekdays, the user is late for work or takes leave, and the clock-in time at this time is later than the agreed working time of the work system. Such working time data has no reference function for determining the second time period, so it can be deleted.
[0255] S807: Stop displaying the third object when the first user completes clocking in.
[0256] Since it is not necessary to punch in multiple times to go to work, after the user completes the punch in, the clock in interface can be stopped from being recommended to the user to avoid invalid recommendations.
[0257] Continue to see Fig.15 The method provided in the embodiment of the present application further includes the following steps S808-S810:
[0258] S808: If the sleeping place of the first user is not within the personal clock-in fence, when the first user enters the personal clock-in fence, the fourth object is displayed. The fourth object is displayed in the application recommendation card on the main screen interface of the terminal device, and the fourth object is used for the user to clock in.
[0259] If the user's sleeping place is not within the clock-in fence, then if the user needs to go to work, the user must enter the clock-in fence when going to work. Therefore, the embodiment of the present application can also recommend the user to clock in at work when the user enters the clock-in fence, so that the user can clock in in time and avoid missing a clock-in.
[0260] S809: When the terminal device of the first user is connected to the second target network, if the first user has not completed clocking in, the fifth object is displayed; the second target network is within the company, and the fifth object is a notification bar that is continuously suspended on the main screen interface of the terminal device, and the fifth object is used for the user to clock in.
[0261] The second target network is located within the company, which may refer to the company and its surrounding rooms and floors, and the second target network may cover part or all of the company. When the first user's terminal device is connected to the second target network, it can be determined that the first user has entered the company. If the user has not completed clocking in, the fifth object may be displayed to remind the user to clock in.
[0262] Fig.21 Schematic diagram of the fourth object and the fifth object provided in the embodiment of the present application. Fig.21 In the image (a), the fourth object is displayed in the application recommendation card. Since there are other objects in the application recommendation card besides the fourth object, which may affect the first user's observation, the embodiment of the present application can perform a strong reminder after the terminal device is connected to the second target network. The specific step of the strong reminder can be to display the fifth object. Fig.21 In the image (b), the fifth object may be a floating ball that enters from the left or right side of the main screen interface of the terminal device and floats on the main screen interface. When the floating ball enters the main screen interface, it may serve to remind the user, and the floating ball may only display information about the user's clocking in, which is easier for the first user to observe and click.
[0263] S810: Stop displaying the fourth object or the fifth object when the first user completes clocking in.
[0264] Since it is not necessary to punch in and out multiple times when going to work, after the user completes punching in and out, the clock-in and out interface can be stopped from being recommended to the user to avoid invalid recommendations. The time for stopping displaying the fourth object can also be the time for starting to display the fifth object.
[0265] In some implementations, if a user enters a personal clock-in fence but has not clocked in, the user does not need to clock in at work. Therefore, the embodiment of the present application can also make clock-in recommendations within a specific time period. If the user does not complete the clock-in within the specific time period, no further recommendations will be made, which can improve the recommendation efficiency. The specific time period can be a period of time before the agreed working time on a working day, and this application does not make specific limitations on this.
[0266] It can be seen from the above technical solutions that the punch-in recommendation method provided in the embodiment of the present application can select a work punch-in recommendation method specifically based on the user's sleeping location. The punch-in recommendation success rate and accuracy are higher, and can cover more user punch-in needs.
[0267] Fig. 22 A schematic diagram of a process for correcting the second prediction model provided in an embodiment of the present application.
[0268] In some implementations, such as Fig. 22 As shown, the embodiment of the present application also includes the following steps S901-S902:
[0269] S901: Get holiday arrangement notification;
[0270] S902: Based on the holiday schedule notification, modify the second prediction model.
[0271] The holiday schedule notification includes a plan for adjusting holidays within a year. Based on the holiday schedule notification, the second prediction model can be modified. For example, if the second prediction model predicts that a certain day needs to be worked, but the holiday schedule notification shows that the day is a holiday, then the user will not be recommended to clock in for work. If the second prediction model predicts that a certain day does not need to be worked, but the holiday schedule notification shows that the day needs to be made up, then the user will still be recommended to clock in for work. In this way, the accuracy of work recommendations can be improved, and the user experience can be improved.
[0272] It is understandable that the holiday schedule notification may be updated on an annual basis.
[0273] The embodiment of the present application can divide the above-mentioned terminal device into functional modules or functional units according to the above-mentioned method example. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.
[0274] The embodiment of the present application also provides a software device for realizing the functions of a terminal device such as a mobile phone, including: an acquisition module, used to obtain the off-get off work time records of a first user N days before today; a determination module, used to determine a first time period and a first time point according to the off-get off work time records; wherein the start time of the first time period is equal to or later than the earliest time of the N first punch-in times, and the end time of the first time period is earlier than or equal to the latest time of the N first punch-in times; the N first punch-in times include the latest off-get off work punch-in time of each of the N days; the first time point is within the first time period; a receiving module, used to receive the on-work punch-in record of the first user; a first display module, used to display a first object at the start time of the first time period, the first object is used for the user to punch in; a second display module, if the first user is a first characteristic user, the second display module is used to display a second object at a first time point, the second object is used for the user to punch in, and the second object is the same as or different from the first object; the discreteness of the N first punch-in times of the first characteristic user meets a preset condition, or the time interval between the N first punch-in times of the first characteristic user and the corresponding first time point meets a preset condition.
[0275] The present application also provides a hardware device for realizing the functions of a mobile phone or other terminal device. Fig.23 As shown, the information sharing device for implementing the terminal device function may include: a display screen 1001, a memory 1002, a processor 1003 and a communication module 1004. The above-mentioned components may be connected via one or more communication buses 1005. The display screen 1001 may include a display panel 10011 and a touch sensor 10012, wherein the display panel 10011 is used to display an image, and the touch sensor 10012 may pass the detected touch operation to the application processor to determine the type of touch event, and provide a visual output related to the touch operation through the display panel 10011. The processor 1003 may include one or more processing units, for example: the processor 1003 may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor, etc. Among them, different processing units may be independent devices or integrated in one or more processors. The memory 1002 is coupled to the processor 1003 and is used to store various software programs and / or computer instructions. The memory 1002 may include a volatile memory and / or a non-volatile memory. When the processor executes the computer instructions, the terminal device can execute each function or step executed by the mobile phone in the above method embodiment.
[0276] The embodiment of the present application also provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through lines. For example, the interface circuit can be used to receive signals from other devices (such as the memory of the terminal device). For another example, the interface circuit can be used to send signals to other devices. Exemplarily, the interface circuit can read the instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the terminal device can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiment of the present application.
[0277] The present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are in the above-mentioned terminal device (such as Figure 3 When the method is executed on the terminal device 100 shown in the figure, the terminal device executes each function or step executed by the mobile phone in the above method embodiment.
[0278] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step executed by the mobile phone in the above method embodiment.
[0279] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0280] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0281] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0282] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0283] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0284] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A check-in recommendation method, It is characterized in that The method comprises: Get the first user's off-get off work time records for N days before today; Determine a first time period and a first time point according to the off-duty time record; wherein the start time of the first time period is equal to or later than the earliest time of the N first punch-in times, and the end time of the first time period is earlier than or equal to the latest time of the N first punch-in times; the N first punch-in times include the latest off-duty punch-in time of each of the N days; and the first time point is within the first time period; Receiving the clock-in record of the first user; Displaying a first object at the start time of the first time period, the first object being used for a user to clock in; If the first user is a first feature user, a second object is displayed at the first time point, the second object is used for user clocking in, and the second object is the same as or different from the first object; the discreteness of the N first clocking-in times of the first feature user meets a preset condition, or the time interval between the N first clocking-in times of the first feature user and the corresponding first time point meets a preset condition; The method further comprises: When the current time is a preset time, determining whether the sleeping location of the first user is within a personal clock-in fence, where the personal clock-in fence is a geographic fence determined by the first user's historical clock-in locations; If the sleeping place of the first user is within the personal clock-in fence, determine a first historical day, where the first historical day includes R days before today, where R is less than or equal to the data aging days of the second prediction model; Determine a second historical day based on the first historical day; the second historical day is before the first historical day, and the difference between the second historical day and the first historical day is greater than the data aging days; Based on the information about whether the user needs to go to work on the first historical day and the second historical day, using the second prediction model to determine whether the user needs to go to work on that day; If the user needs to go to work on the same day, a third object is displayed within the second time period. The third object is used for the user to clock in. The start time of the second time period is the earliest clock-in time of the first user in history, and the end time of the second time period is the latest clock-in time of the first user in history.
2. The punch-in recommendation method according to claim 1, It is characterized in that The first time period is determined by the following steps: Acquire a first time set, where the first time set includes the N first clock-in times of the first user and / or the N first clock-in times of the second user, where a terminal device of the first user and a terminal device of the second user are connected to the same first target network, and the first target network is within the company; Sorting the first punch-in times in the first time set to obtain a first sequence; Remove outliers located at the beginning and / or the end of the first sequence to obtain a second sequence; The first clock-in time at the head of the second sequence is determined as the start time of the first time period, and the first clock-in time at the end of the second sequence is determined as the end time of the first time period.
3. The punch-in recommendation method according to claim 1, It is characterized in that After the step of displaying the first object at the start time of the first time period, the method further includes: If the first user is not the first characteristic user, before the end time of the first time period, when the first user completes clocking out, the first object stops being displayed; Alternatively, the first object stops being displayed at the end time of the first time period.
4. The punch-in recommendation method according to claim 1, It is characterized in that After the step of displaying the first object at the start time of the first time period, the method further includes: If the first user is the first characteristic user, the second object is displayed at a second time point; wherein the second time point is between the start time of the first time period and the first time point, and the time interval between the second time point and the first time point is equal to a first preset duration.
5. The punch-in recommendation method according to claim 4, It is characterized in that If the first user is a first characteristic user, before the step of displaying the second object at the second time point, the method further includes: If the first user is the first characteristic user, before a third time point, when the first user completes clocking out, the first object stops being displayed, or the first object stops being displayed at the third time point; wherein the third time point is between the start time of the first time period and the second time point, and the time interval between the third time point and the start time of the first time period is equal to a second preset duration, or the third time point coincides with the second time point.
6. The punch-in recommendation method according to claim 1, It is characterized in that The first time point is determined by the following steps: Obtain the first information and the second information of each day in the N days before today and today; the first information includes the day of the week in which the day is, the month of the year in which the day is, whether the day is Monday, Tuesday or Thursday, whether the day is Saturday or Sunday, and the week of the month in which the day is; the second information includes: a first difference, a second difference, a third difference, a first mean, and a second mean, the first difference is equal to the difference between the latest clock-in time off work one day ago and the latest clock-in time off work two days ago in the N days, the second difference is equal to the difference between the latest clock-in time off work one day ago and the latest clock-in time off work three days ago in the N days, the third difference is equal to the difference between the latest clock-in time off work one day ago and the latest clock-in time off work four days ago in the N days, the first mean is equal to the average of the first difference and the second difference, and the second mean is equal to the average of the first difference, the second difference, and the third difference; The off-duty time record, the first information of today and each of the N days before today, and the second information are input into a first prediction model to obtain the first time point.
7. The punch-in recommendation method according to claim 1, It is characterized in that If the first user is a first characteristic user, after the step of displaying the second object at the first time point, the method further includes: Before the end time of the first time period, when the first user completes clocking out, the second object stops being displayed; Alternatively, the second object stops being displayed at the end time of the first time period.
8. The punch-in recommendation method according to claim 1, It is characterized in that The first characteristic user is determined by the following steps: Calculate a first standard deviation of the N first clock-in times; If the first standard deviation is smaller than a first preset threshold, the first user is determined as the first characteristic user.
9. The punch-in recommendation method according to claim 1, It is characterized in that The first characteristic user is also determined by the following steps: Sorting the N first clock-in times to obtain a third sequence; Removing part of the first punch-in times at the beginning, the end, or both of the beginning and the end of the third sequence to obtain a first number of the first punch-in times, wherein a ratio of the first number to N is equal to a second preset threshold; calculating a second standard deviation of the first number of said first punch-in times; If the second standard deviation is smaller than a third preset threshold, the first user is determined as the first characteristic user.
10. The punch-in recommendation method according to claim 1, It is characterized in that The first characteristic user is also determined by the following steps: Calculating a third standard deviation of a second clock-in time, where the second clock-in time is m of the N first clock-in times, where m is less than N; If the third standard deviation is smaller than a fourth preset threshold, the first user is determined as the first characteristic user.
11. The punch-in recommendation method according to claim 1, It is characterized in that The first characteristic user is also determined by the following steps: Determine a third clock-in time and the first time point corresponding thereto, the third clock-in time being n of the N first clock-in times, where n is less than N; Calculate the accuracy of the first time point based on the third clock-in time and the first time point; If the accuracy rate is greater than a fifth preset threshold, the first user is determined as the first characteristic user.
12. The punch-in recommendation method according to claim 1, It is characterized in that The information of whether the second historical day is for work is the same as that of the first historical day, and whether the week in which the second historical day falls is an odd week of the year is the same as that of the first historical day; Based on the information about whether the user needs to go to work on the first historical day and the second historical day, the step of using the second prediction model to determine whether the user needs to go to work on that day includes: Obtain third information of today, the first historical day, and the second historical day, the third information including the day of the week in which the current day is, the month of the current year in which the current day is, whether the current day is Monday, Tuesday, or Thursday, whether the current day is Saturday or Sunday, whether the current day is Saturday, the day of the month in which the current day is, the week of the month in which the current day is, the first week of the month in which the current day is, and the last week of the month in which the current day is, where the week T is any day from Monday to Sunday, and whether the week in which the current day is located is an odd week of the current year; Input the third information of today, the first historical day and the second historical day into the second prediction model, and input the information of whether the user needs to go to work on the first historical day and the second historical day into the second prediction model to determine whether the user needs to go to work on that day; If the user needs to go to work on that day, after the step of displaying the third object in the second time period, the method further includes: When the first user completes clocking in, the third object stops being displayed.
13. The punch-in recommendation method according to claim 12, It is characterized in that The second historical day is determined by the following steps: Based on the information of whether the first historical day was for work, the first historical day was divided into positive samples and negative samples to obtain K positive samples and V negative samples, wherein the positive samples correspond to the first historical day when the worker was at work, and the negative samples correspond to the first historical day when the worker was not at work, where K represents the number of the positive samples and V represents the number of the negative samples; For each of the positive samples, determine V-1 of the second historical days corresponding to the positive sample, where V-1 represents the number of the second historical days corresponding to each of the positive samples; For each of the negative samples, determine K-1 of the second historical days corresponding to the negative sample, where K-1 represents the number of the second historical days corresponding to each of the negative samples; Among them, when the data aging days of the second prediction model is equal to W days, the Xth second historical day is the X×(W+Y)th day before the positive sample, the Xth second historical day is any one of the V-1 second historical days, X is a natural number, and 0<X≤V-1; the Zth second historical day is the Z×(W+Y)th day before the negative sample, the Zth second historical day is any one of the K-1 second historical days, Z is a natural number, and 0<Z≤K-1; Y is a natural number, and Y≥1.
14. The punch-in recommendation method according to claim 12, It is characterized in that The method further comprises: Get holiday schedule notifications; Based on the holiday schedule notification, the second prediction model is modified.
15. The punch-in recommendation method according to claim 12, It is characterized in that The method further comprises: If the sleeping place of the first user is not within the personal clock-in fence, when the first user enters the personal clock-in fence, a fourth object is displayed, the fourth object is displayed in an application recommendation card on the main screen interface of the terminal device, and the fourth object is used for user clocking in; When the terminal device of the first user is connected to the second target network, if the first user has not completed the clocking in, the fifth object is displayed; the second target network is within the company, and the fifth object is a notification bar that is continuously suspended on the main screen interface of the terminal device, and the fifth object is used for the user to clock in.
16. The punch-in recommendation method according to claim 15, It is characterized in that The method further comprises: When the first user completes clocking in, the fourth object or the fifth object stops being displayed.
17. A check-in recommendation device, It is characterized in that include: An acquisition module is used to acquire the first user's off-get off work time records N days before today; A determination module, configured to determine a first time period and a first time point according to the off-duty time record; wherein the start time of the first time period is equal to or later than the earliest time among the N first punch-in times, and the end time of the first time period is earlier than or equal to the latest time among the N first punch-in times; the N first punch-in times include the latest off-duty punch-in time of each of the N days; and the first time point is within the first time period; A receiving module, configured to receive the clock-in record of the first user; A first display module, configured to display a first object at the start time of the first time period, wherein the first object is used for a user to clock in; a second display module, wherein if the first user is a first feature user, the second display module is used to display a second object at the first time point, the second object is used for user clocking in, and the second object is the same as or different from the first object; the discreteness of the N first clocking-in times of the first feature user meets a preset condition, or the time interval between the N first clocking-in times of the first feature user and the corresponding first time point meets a preset condition; The determination module is further used to: when the current time is a preset time, determine whether the sleeping place of the first user is within a personal clock-in fence, where the personal clock-in fence is a geographical fence determined by the first user's historical clock-in location; If the sleeping place of the first user is within the personal clock-in fence, determine a first historical day, where the first historical day includes R days before today, where R is less than or equal to the data aging days of the second prediction model; Determine a second historical day based on the first historical day; the second historical day is before the first historical day, and the difference between the second historical day and the first historical day is greater than the data aging days; Based on the information about whether the user needs to go to work on the first historical day and the second historical day, using the second prediction model to determine whether the user needs to go to work on that day; If the user needs to go to work on the same day, within the second time period, the first display module or the second display module is also used to display a third object, and the third object is used for the user to clock in. The start time of the second time period is the earliest clock-in time of the first user in history, and the end time of the second time period is the latest clock-in time of the first user in history.
18. A terminal device, It is characterized in that include: A processor and a memory; the memory stores a computer program, and when the computer program is executed by the processor, the terminal device executes the method described in any one of claims 1-16.
19. A chip system, It is characterized in that include: A memory and a processor; the memory stores a computer program, and when the computer program is executed by the processor, the chip system executes the method described in any one of claims 1-16.
Citation Information
Patent Citations
Travel reminding method and terminal
CN106248093A
Intelligent reminding method and device
CN107864298A
Content pushing method, terminal device and electronic device
CN109040281A
Attendance management method, server and computer readable storage medium
CN110889671A
Employee attendance checking condition judgment method and device, storage medium and electronic equipment
CN112184939A
