Real-time feedback online training timing method, computer equipment and storage medium
By monitoring the network status in real time and performing local cache and asynchronous transmission technology when the network fluctuates, the existing online training system's timing error and data update lag when the network is unstable is solved, the timeliness and accuracy of timing data is achieved, and the students' learning experience is improved.
Patent Information
- Application Number
- CN202411746077.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-04-15
AI Technical Summary
The existing online training system is prone to timing errors and data update lag when the network is unstable, which affects the students' learning experience and training effect.
By monitoring the network status of students in real time, local cache is performed when the network fluctuates, and synchronously timed data to the network server after the network is restored, asynchronous transmission technology is used to ensure data timeliness and accuracy in a weak network environment.
It realizes the timeliness and accuracy of timing data in network fluctuations and weak network environments, improves students' learning experience, and reduces the negative impact of timing errors.
Smart Images

Figure CN119835483A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of online education, and in particular relates to a real-time feedback online training timing method, a computer device and a storage medium. Background Art
[0002] Most existing online training systems use a fixed timing method, that is, after the trainee enters the training course, the system starts timing and records the trainee's online time. Most of these systems rely on a stable network environment to ensure the accuracy and timeliness of timing. In the case of large network fluctuations, the timing function of these systems may have errors or interruptions, affecting the students' learning experience. In other words, the existing system is highly dependent on the network environment and is prone to timing errors when the network is unstable. At the same time, the existing system also has the problem of delayed timing data update, that is, the system cannot update the timing data in real time, resulting in poor data timeliness. These problems will further lead to poor student experience and reduce the training effect. Summary of the invention
[0003] In view of the above problems, the present invention provides a real-time feedback online training timing method, a computer device and a storage medium.
[0004] The real-time feedback online training timing method provided by the present invention comprises the following steps:
[0005] S1. Real-time monitoring, including real-time monitoring of the network status of the student's client. When the network fluctuates or is disconnected, the system of the student's client records the change of the network status;
[0006] S2, local cache, that is, when the network fluctuates, the system locally caches the student's timing data, and synchronizes the timing data to the network server after the network is restored. The timing data includes: current course ID, current lesson ID, start viewing time, effective learning time, i.e., current learning time;
[0007] S3, data synchronization, that is, the system synchronizes the locally cached data to the network server without error after the network is restored;
[0008] S4, feedback to the user, that is, the system provides feedback to the user, that is, the student, so that the student can view his / her own learning time and timing status in real time;
[0009] S5, time-limited time;
[0010] S6. System load balancing.
[0011] further,
[0012] In step S1,
[0013] When the network status is offline, the system reminds the user, i.e. the student, that the current network is disconnected and the local network status should be checked; when the network status is restored to online, the system prompts the user that the network is restored.
[0014] further,
[0015] In step S2,
[0016] When the network is normal, the network server that provides the video will periodically count the time at predetermined intervals until the video ends. At the same time, the student's client detects the network status. If it is detected that the network condition is a weak network environment and the network server cannot respond in time, the student's client will cache the timing data that is not currently saved into the local browser cache and continue to accumulate it. Once the network condition is restored, the student's client will send the cached learning progress data that has not been stored in the database to the network server to record and store it.
[0017] further,
[0018] In step S3,
[0019] When the network is unobstructed, synchronous transmission technology is used to feed back the data cached locally on the student's client to the network server. When synchronous transmission is performed, the time delay between the student's client sending a request to the network server and receiving a response is controlled within an acceptable level, that is, lower than a preset time delay threshold. In the case of a weak network, the data cached locally on the student's client is temporarily stored locally on the student's client, and after the network is restored, asynchronous transmission technology is used.
[0020] further,
[0021] In step S4,
[0022] When the network fluctuates, remind the students to pay attention to the current network status;
[0023] When the user successfully synchronizes the study time, the current study time and timing status are obtained synchronously. The study time includes the effective study time and the total study time. The timing status includes: learning and completed. For videos in the learning state, the effective study time and the total study time will be accumulated during the viewing process; for videos in the completed state, only the total study time will be recorded.
[0024] further,
[0025] The step S5 comprises:
[0026] Error range setting: set an error threshold. If the error in the last preset time period is less than the expected ratio, the error is considered acceptable.
[0027] Learning hours supplement: The system monitors and records the learning hours that students have learned in the video course. When it is detected that the client where the student is located is abnormally closed, the system will calculate the difference between the actual learning time and the recorded learning hours, and compare it with the error threshold. If the difference is less than the set threshold, the system will supplement the additional learning hours based on the existing learning hours until the total duration of the course is reached. Otherwise, no learning hours will be supplemented;
[0028] Recording and feedback: The system records the supplemented study hours and feeds this information back to the learner.
[0029] further,
[0030] The step S6 comprises:
[0031] The system adopts a unified cache pool for data buffering, and its server is only responsible for processing business data.
[0032] further,
[0033] During the timing process, the system adjusts the timing strategy of sending the timing data in real time or saving it locally and delaying it according to the success or failure response status of sending the timing data: if sending the timing data fails, the timing data is saved locally and delayed, otherwise the timing data is sent in real time.
[0034] The present invention also provides a computer device, which includes a memory, a first processor, and a first computer program stored in the memory and executable on the first processor, wherein the first computer program implements the above-mentioned real-time feedback online training timing method when executed by the first processor.
[0035] The present invention also provides a computer-readable storage medium, which is used to store a second computer program. The second computer program can be executed by at least one second processor to enable the at least one second processor to execute the above-mentioned real-time feedback online training timing method.
[0036] The present invention can timely adjust the timing strategy by real-time monitoring of the network status; when the network fluctuates, the local cache and asynchronous / synchronous data synchronization technology are used to ensure the timeliness and accuracy of the timing data; when a small error occurs in the student's timing, the system calculates whether the error value is within the range and makes timely compensation, while ensuring technical reliability, optimizing the student's learning experience, reducing the negative impact of timing errors, and using technical solutions to improve the learning experience for students' unpredictable and unconventional operations; under the premise of ensuring the timing effect and the student's learning experience, it can carry more users for learning and can be horizontally expanded according to the scale of users.
[0037] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flow chart of a real-time feedback online training timing method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", "third", etc. in the specification and claims of this application or the above-mentioned figures are used to distinguish different objects, not to describe a specific order or a primary and secondary relationship. "Multiple" appearing in this application refers to more than two (including two).
[0042] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0043] Figure 1 The flowchart of the real-time feedback online training timing method provided by the present invention is shown. The real-time feedback online training timing method comprises the following steps.
[0044] S1. Real-time monitoring.
[0045] The network connection status (abbreviated as network status) of the client (abbreviated as client) where the student is located is monitored in real time. When the network fluctuates or is disconnected, the client system (abbreviated as system) records the change in network status. When the network status is offline, the system reminds the user, i.e. the student, "The current network is disconnected, check the local network status" to improve the user's learning experience; when the network status is restored to the online state, the system prompts the user "Network restored".
[0046] S2, local cache.
[0047] When the network fluctuates, the system caches the student's timing data locally, and synchronizes the timing data to the network server after the network is restored. The timing data includes: current course identifier, current class identifier, start viewing time, effective learning time, i.e., current learning time. Among them, when the network is normal, the timing is performed periodically at predetermined intervals such as 1 minute on the network service end that provides the video until the video playback ends. Timing on the server end avoids the problem of a large number of users causing the system to carry a huge amount of visits when the user timing data is recorded on the client in real time. The reason for periodic timing is that when the user enters the online course playback page at different times, this timing method can effectively improve the system access capability; at the same time, the client detects the network status. If it is detected that the network situation belongs to a weak network environment and the network service end cannot respond in time, the client will cache the current unsaved learning progress data, i.e., the timing data, to the local browser cache and continue to accumulate. Once the network conditions are restored, the client will send the cached learning progress data that has not been stored to the network service end to record the storage operation. The weak network environment refers to a network environment with weak network signals, slow network transmission speed, and instability.
[0048] S3. Data synchronization.
[0049] The system will synchronize the locally cached data to the network server without error after the network is restored, ensuring the integrity and accuracy of the timing data. In particular, when the network is unobstructed, synchronous transmission technology is used to timely feed back the client's locally cached data to the network server. When performing synchronous transmission, the time delay between the client sending a request to the network server and receiving a response is controlled within an acceptable level, that is, below a preset time delay threshold. In the case of a weak network, the client's locally cached data is temporarily stored locally on the client. After the network is restored, asynchronous transmission technology is used to timely feed back the client's locally cached data to the network server to ensure the accuracy of the technology.
[0050] S4. Feedback to users.
[0051] The system provides feedback to users, i.e. students, so that students can view their learning time and timing status in real time. Among them, when the network fluctuates, students are promptly reminded to pay attention to the current network status. When the user successfully synchronizes the learning time, the current learning time and timing status are obtained synchronously. Learning time includes effective learning time and total learning time. The effective learning time is the learning time when the student is currently watching the video and has watched the video, which shall not exceed the total length of the video; the total learning time is the cumulative length of the student's previous video viewings. Timing status includes: learning and completed. For videos in the learning status, the effective learning time and total learning time will be accumulated during the viewing process; for videos in the completed status, only the total learning time will be recorded.
[0052] S5. Add time.
[0053] Considering that the system timing may result in inaccurate study time records: because students close the client through unconventional means, the system may not be able to accurately record the last period of time, such as the last 20 seconds of study time, resulting in inconsistency between the actual study time and the system record, that is, a slight error in the student's timing. This situation will lead to a decline in user experience: if the system fails to make up this period of study time, students may feel unfair or confused, affecting their learning experience and satisfaction. The unconventional means include forced shutdown of applications, forced restart of computers, abnormal restart of the system, etc.
[0054] In order to handle the above situation, the system can ensure the accuracy of the learning time records, improve the overall learning experience of students, and reduce the loss of learning time due to technical problems. The system takes the following steps to make up the time:
[0055] A. Error range setting: Set an error threshold, such as a certain expected proportion of the student's total study time (such as 5%). If the error in the last preset time period, such as the last 20 seconds, is less than the expected proportion, the error is considered acceptable.
[0056] B. Learning hours supplement. The system will monitor and record the learning hours that students have learned in the video course. When the client is detected to be abnormally closed, the system will calculate the difference between the actual learning time and the recorded learning hours, and compare it with the preset error threshold. If the difference is less than the set threshold, the system will supplement the additional learning hours based on the existing learning hours until the total duration of the course is reached. Otherwise, no learning hours will be supplemented.
[0057] C. Records and feedback. The system records the additional study hours and provides feedback to the students to enhance transparency and trust, improve user experience, and ensure that students understand why their study hours have increased.
[0058] S6. System load balancing.
[0059] The system uses a unified cache pool for data buffering, and its server is only responsible for processing business data. When students are watching videos, the system puts the data transmitted by the students into the cache pool.
[0060] During the timing process, the system adjusts the timing strategy of sending the timing data in real time or saving it locally for delayed sending according to the success or failure response status of sending the timing data: if sending the timing data fails, the timing data is saved locally for delayed sending; otherwise, the timing data is sent in real time. When the network fluctuates, a more secure timing method is used to ensure that the timing data is sent to the server accurately and effectively. The system intelligently adjusts the technical strategy of real-time or delayed sending according to network conditions such as smooth, low latency, high latency, network interruption, and real-time response and high latency response (more than 200ms) of the server, and synchronously or asynchronously records the server, that is, stores the timing data into the database.
[0061] The present invention also provides a computer device, which includes a memory, a first processor, and a first computer program stored in the memory and executable on the first processor, wherein the first computer program implements the above-mentioned real-time feedback online training timing method when executed by the first processor.
[0062] The present invention also provides a computer-readable storage medium, which is used to store a second computer program. The second computer program can be executed by at least one second processor to enable the at least one second processor to execute the above-mentioned real-time feedback online training timing method.
[0063] The present invention can maintain the timeliness and accuracy of timing data under both stable network conditions and weak network environments, thus improving the learning experience of students. While ensuring user experience, it can also carry more users for centralized learning; it can be applied to various online education platforms and systems that record the time users watch videos.
[0064] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A real-time feedback online training timing method, characterized in that: Includes steps: S1. Real-time monitoring, including real-time monitoring of the network status of the student's client. When the network fluctuates or is disconnected, the system of the student's client records the change of the network status; S2, local cache, that is, when the network fluctuates, the system caches the student's timing data locally, and synchronizes the timing data to the network server after the network is restored. The timing data includes: current course ID, current lesson ID, start viewing time, effective learning time, i.e., current learning time; S3, data synchronization, that is, the system synchronizes the locally cached data to the network server without error after the network is restored; S4, feedback to the user, that is, the system provides feedback to the user, that is, the student, so that the student can view his / her own learning time and timing status in real time; S5, time-limited time; S6. System load balancing.
2. The real-time feedback online training timing method according to claim 1, characterized in that: In step S1, When the network status is offline, the system reminds the user, i.e. the student, that the current network is disconnected and the local network status should be checked; when the network status is restored to online, the system prompts the user that the network is restored.
3. The real-time feedback online training timing method according to claim 1, characterized in that: In step S2, When the network is normal, the network server that provides the video will periodically count the time at predetermined intervals until the video ends. At the same time, the student's client detects the network status. If it is detected that the network condition is a weak network environment and the network server cannot respond in time, the student's client will cache the timing data that is not currently saved into the local browser cache and continue to accumulate it. Once the network condition is restored, the student's client will send the cached learning progress data that has not been stored in the database to the network server to record and store it.
4. The real-time feedback online training timing method according to claim 3 is characterized in that: In step S3, When the network is unobstructed, synchronous transmission technology is used to feed back the data cached locally on the student's client to the network server. When synchronous transmission is performed, the time delay between the student's client sending a request to the network server and receiving a response is controlled within an acceptable level, that is, lower than a preset time delay threshold. In the case of a weak network, the data cached locally on the student's client is temporarily stored locally on the student's client, and after the network is restored, asynchronous transmission technology is used.
5. The real-time feedback online training timing method according to claim 4 is characterized in that: In step S4, When the network fluctuates, remind the students to pay attention to the current network status; When the user successfully synchronizes the study time, the current study time and timing status are obtained synchronously. The study time includes the effective study time and the total study time. The timing status includes: learning and completed. For videos in the learning state, the effective study time and the total study time will be accumulated during the viewing process; for videos in the completed state, only the total study time will be recorded.
6. The real-time feedback online training timing method according to claim 5, characterized in that: The step S5 comprises: Error range setting: set an error threshold. If the error in the last preset time period is less than the expected ratio, the error is considered acceptable. Learning hours supplement: The system monitors and records the learning hours that students have learned in the video course. When it is detected that the client where the student is located is abnormally closed, the system will calculate the difference between the actual learning time and the recorded learning hours, and compare it with the error threshold. If the difference is less than the set threshold, the system will supplement the additional learning hours based on the existing learning hours until the total duration of the course is reached. Otherwise, no learning hours will be supplemented; Recording and feedback: The system records the supplemented study hours and feeds this information back to the learner.
7. The real-time feedback online training timing method according to claim 6, characterized in that: The step S6 comprises: The system adopts a unified cache pool for data buffering, and its server is only responsible for processing business data.
8. The real-time feedback online training timing method according to claim 7, characterized in that: During the timing process, the system adjusts the timing strategy of sending the timing data in real time or saving it locally and delaying it according to the success or failure response status of sending the timing data: if sending the timing data fails, the timing data is saved locally and delayed, otherwise the timing data is sent in real time.
9. Computer device, characterized in that The invention comprises a memory, a first processor and a first computer program stored in the memory and executable on the first processor, wherein the first computer program implements the real-time feedback online training timing method according to any one of claims 1 to 8 when executed by the first processor.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store a second computer program, and the second computer program can be executed by at least one second processor, so that the at least one second processor executes the real-time feedback online training timing method according to any one of claims 1-8.