Sports clock-in method and system
By creating multi-dimensional personalized task rules in the sports check-in system and collecting and analyzing multi-dimensional running data, combining intelligent route prompts and real-time early warning, the shortcomings of sports check-in methods in the existing technology are solved, and the scientificity, fairness and safety of sports check-in are achieved.
Patent Information
- Application Number
- CN202411953684.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-25
AI Technical Summary
The existing sports check-in methods have shortcomings in task rules, data processing and guidance feedback mechanisms, and have failed to fully consider the differences in personnel of different genders, grades, and departments, and cannot accurately measure exercise effectiveness and prevent cheating.
A sports check-in method and system is proposed. By creating multi-dimensional personalized task rules, collecting and analyzing multi-dimensional running data, combining intelligent route prompts and real-time warnings, we can accurately assess sports performance and improve sports safety.
Effectively mobilize the enthusiasm of different groups of exercise, accurately measure exercise effectiveness, improve exercise safety and participant experience, and ensure the fairness and scientificity of exercise check-in.
Smart Images

Figure CN119888880A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a sports clock-in method and system. Background Art
[0002] In today's society, as people's health awareness improves, sports clock-in activities are becoming increasingly popular, especially in group settings such as schools and enterprises, to motivate members to keep exercising. On the one hand, the traditional sports clock-in method has a single task rule and does not fully consider the differences in physical fitness and time arrangements among people of different genders, grades, and departments. For example, the athletic ability and disposable exercise time of boys and girls, and junior and senior students are completely different, and it is difficult to effectively mobilize the enthusiasm of all employees with a unified standard. On the other hand, there are shortcomings in data collection and analysis. It only simply records the running mileage and number of times, ignoring key information such as running speed and compliance of the clock-in points. It is impossible to accurately measure the effectiveness of exercise, and it is difficult to effectively control cheating.
[0003] Moreover, the lack of intelligent route guidance and real-time warning can easily lead to poor sports experience for participants, or even accidents caused by unsafe behaviors such as speeding. A new sports clock-in method is urgently needed to comprehensively optimize task rules, data processing, and guidance feedback mechanisms to improve the scientificity and practicality of sports clock-in;
[0004] Therefore, there is an urgent need for a sports clock-in method that can achieve the scientificity and fairness of sports clock-in and ensure the sports experience of participants. Summary of the invention
[0005] In view of this, the present invention proposes a sports clock-in method and system, which creates sports clock-in task rules with multi-dimensional personalized settings, combines the precise collection of running data with in-depth analysis and calculation, and cooperates with intelligent route prompts and real-time warnings. It can effectively mobilize the enthusiasm of people of different genders, grades, and departments, accurately evaluate sports performance, and improve sports safety and participant experience.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A sports clock-in method, comprising:
[0008] In response to a request to create a sports punch-in task, create sports punch-in task rules, wherein the sports punch-in task rules include gender setting, semester setting, semester start and end time setting, target mileage setting, target number setting, single basic mileage setting, speed limit setting, warning speed setting, grade setting, department setting, daily score effective start and end time setting, mobile terminal recommended route display setting, point setting, required punch-in point number setting, and score setting;
[0009] Collecting running data, wherein the running data includes running time, running mileage, running speed, runner information and running check-in points, wherein the runner information includes gender, grade and college department;
[0010] Analyze and calculate the running data based on the exercise punch-in task rules to obtain a single running score;
[0011] Get all the single running scores corresponding to each runner in this semester, and calculate the total running score corresponding to each runner based on all the single running scores corresponding to each runner.
[0012] On the basis of the above technical solution, the present invention can also be improved as follows:
[0013] Optionally, the exercise clock-in method further includes:
[0014] Real-time collection of current running speed V i , determine the current running real-time speed V i Is a warning required? warn <V i <V max Generate early warning information when
[0015] When V i >V max , it is determined that the running data is invalid.
[0016] Optionally, analyzing and calculating the running data based on the exercise punch-in task rule includes:
[0017] When 0<M i <M 1 When , the mileage score is calculated by formula (1);
[0018]
[0019] In the formula, For mileage score, M i is the single running mileage, M 1 Set a value for single base mileage;
[0020] When M i ≥M 1 hour,
[0021] When V warn <V i <V max When , the speed score is calculated by formula (2);
[0022]
[0023] In the formula, For speed score, V i is the single running speed, V max is the speed upper limit setting value, V warn Set a value for the warning speed;
[0024] When V i ≤V warn , S speed =30;
[0025] When V i >V max When S speed =0;
[0026] When the time is included in the daily score effective start and end time settings,
[0027] When the time is not included in the daily score effective start and end time settings,
[0028] When n i <N 0 When , the check-in score is calculated by formula (3);
[0029]
[0030] In the formula, To score points for the check-in, n i is the actual number of check-in points, N 0 Set a value for the number of points where you must punch in;
[0031] When n i =N 0 hour,
[0032] Optionally, analyzing and calculating the running data based on the exercise punch-in task rule to obtain a single running score includes:
[0033] The single running score is calculated by formula (4);
[0034]
[0035] In the formula, S i To score a single run, Score points for mileage, Score for speed, Score for time, Score points for punching the card.
[0036] Optionally, the obtaining of all single running scores corresponding to each runner in this semester and calculating the total running score corresponding to each runner based on all single running scores corresponding to each runner include:
[0037] The total running score is calculated by formula (5);
[0038]
[0039] In the formula, S total is the total running score, S total-mileage is the total mileage score, S total-times Score the total number of times you reach the target;
[0040] When the total running mileage M of this semester ≥ the set mileage M 0 When S total-mileage =100;
[0041] When the total running mileage M of this semester is less than the set mileage M 0 hour,
[0042] When the number of running times N ≥ the set number of times reaching the target N 1 When S total-times =100;
[0043] When the number of running times N is less than the set number of times N 1 hour,
[0044] Optionally, the exercise clock-in method further includes:
[0045] When the time is not included in the daily performance effective start and end time setting values, a prompt message is generated to remind the runner of the correct performance effective start and end time.
[0046] Optionally, the exercise clock-in method further includes:
[0047] The coordinate points of each runner's movement trajectory are collected in real time. The current mileage is calculated based on the coordinate points of the movement trajectory. If the mileage has not reached the target, a path planning algorithm is used to generate a recommended movement route starting from the current position, passing through the required check-in points in sequence, and with a total mileage as close to the target mileage as possible, combined with the coordinate subset of the required check-in points.
[0048] If the required mileage has been reached, a shortest path starting from the current location and passing through the remaining check-in points will be generated as a recommended exercise route;
[0049] The recommended exercise route is pushed to the corresponding runner user terminal.
[0050] A sports clock-in system, comprising:
[0051] A rule creation module, for responding to a request to create a sports punch-in task, creating a sports punch-in task rule, wherein the sports punch-in task rule includes gender setting, semester setting, semester start and end time setting, target mileage setting, target number setting, single basic mileage setting, speed limit setting, warning speed setting, grade setting, department setting, daily score effective start and end time setting, mobile terminal recommended route display setting, point setting, required punch-in point number setting, and score setting;
[0052] A collection module is used to collect running data, wherein the running data includes running time, running mileage, running speed, runner information and running check-in points, wherein the runner information includes gender, grade and college department;
[0053] A single score calculation module, used to analyze and calculate the running data based on the exercise punch-in task rules to obtain a single running score;
[0054] The total score calculation module is used to obtain all single running scores corresponding to each runner in this semester, and calculate the total running score corresponding to each runner based on all single running scores corresponding to each runner.
[0055] An electronic device comprises a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the method when executing the computer program.
[0056] A non-transitory computer-readable storage medium stores a computer program, which implements the steps of the method when executed by a processor.
[0057] The present invention has the following advantages:
[0058] The sports punch-in method of the present invention is set by gender, grade, and department, fully considering the differences in physical fitness and academic arrangements of different groups, and tailoring punch-in tasks for participants. It can greatly improve the enthusiasm of various groups to participate in sports and avoid the problem of frustrated enthusiasm of some people caused by a "one-size-fits-all" approach. For example, departments with sports majors can set higher-intensity tasks, and the difficulty can be appropriately reduced for lower-grade students.
[0059] The sports clock-in method of the present invention collects and analyzes multi-dimensional data such as running time, mileage, speed and clock-in points, comprehensively reflects the exercise process, breaks the traditional limitation of only focusing on mileage or number of times, and accurately measures the effectiveness of each running. The single and total running scores obtained can truly reflect the individual's sports level and provide a reliable basis for evaluation and assessment.
[0060] The sports clock-in method of the present invention has a speed upper limit and a warning speed setting, monitors the running speed in real time, prevents the risk of injury caused by high-speed exercise, and ensures the safety of participants; the point setting and the number of points that must be clocked in are set, and the recommended route display on the mobile phone is coordinated to standardize the running route, prevent cheating, ensure the fairness of sports clock-in, and guide orderly exercise.
[0061] The exercise clock-in method of the present invention sets the start and end times of the semester and the effective start and end times of daily scores, so that participants can clearly know the exercise cycle and the reasonable exercise time of the day, arrange exercise plans reasonably, avoid ineffective exercise, improve time utilization efficiency, and facilitate unified management and statistical data for organizers. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] For the purpose of illustration and not limitation, the present invention is now described in conjunction with the embodiments of the present invention and the accompanying drawings, in which:
[0063] Figure 1 A schematic diagram of a flow chart of a sports clock-in method according to an embodiment of the present invention;
[0064] Figure 2 A schematic diagram of the main components of the sports clock-in system according to an embodiment of the present invention;
[0065] Figure 3 A schematic diagram of creating a sports punch-in task rule in an embodiment of the present invention;
[0066] Figure 4 This is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0067] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solution in the implementation of the present invention will be clearly and completely described below in conjunction with the drawings in the implementation of the present invention. Obviously, the described implementation is only a part of the implementation of the present invention, not all of the implementations. Based on the implementation of the present invention, all other implementations obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0068] It should be noted that the terms "first", "second", etc. in the specification of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0069] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0070] Figure 1 FIG. 1 is a flow chart of a method for clocking in during exercise in an embodiment of the present invention. Figure 1 As shown, the sports clock-in method provided by the embodiment of the present invention includes the following steps S101 to S104.
[0071] S101, in response to a request to create a sports punch-in task, create sports punch-in task rules.
[0072] Specifically, Figure 3 As shown, the rules for the exercise clock-in task include gender setting, semester setting, semester start and end time setting, target mileage setting, target number setting, single basic mileage setting, speed limit setting, warning speed setting, grade setting, department setting, daily score effective start and end time setting, mobile phone recommended route display setting, point setting, required check-in point number setting and score setting.
[0073] When receiving the creation instruction of the exercise punch-in task from the user (such as the school's sports management app, the company's internal health platform, etc.), the system immediately starts the task rule construction process. In terms of gender settings, the objective differences in physiological functions and sports preferences between men and women are fully taken into account, and three optional modes are provided: "Men only", "Women only", and "No gender limit", so that the task difficulty can be fine-tuned according to the general sports ability of different gender groups in the future.
[0074] During the semester setting phase, all official teaching semester information for the current academic year can be retrieved from the preset database, including the regular spring and autumn semesters and possible summer semesters, etc., to accurately select the time period corresponding to this sports check-in task to ensure seamless connection with the overall teaching and work arrangements.
[0075] The start and end time settings of the semester are further refined to specific years, months, days, hours and minutes, based on Greenwich Mean Time or local legal time, to clearly define the boundaries of the complete cycle of sports check-ins, making it convenient for participants to plan their exercise schedules in advance and for management departments to accurately record statistical data.
[0076] The standard mileage setting is based on the analysis of past sports big data and the advice of health experts. Different total mileage goals for the semester are formulated for groups of different grades and departments. Kilometers are used as the basic unit to effectively measure whether the participants' long-term exercise accumulation meets the standards.
[0077] The setting of the number of times to reach the target focuses on urging participants to maintain a steady rhythm from the dimension of exercise frequency, and stipulates that the minimum number of times to reach the target mileage throughout the semester is a positive integer, so as to avoid participants' bad behavior of excessive slacking in the early stage or concentrating on "brushing mileage" in the later stage.
[0078] The single basic mileage setting clearly requires the minimum effective mileage to be achieved for each exercise, which is also measured in kilometers to ensure that each exercise has a certain intensity and effectiveness, and avoid overly scattered and inefficient exercise.
[0079] The speed limit setting takes into account the conditions of the sports venue, the general physical fitness of the participants and safety risk factors, and defines the maximum speed value allowed during a single exercise. The unit is km / h. Once it is detected that a participant has exceeded this speed limit a certain number of times (such as 3 times in a row or 5 times cumulatively) during a run, the system will automatically determine that the exercise is invalid, thereby preventing safety hazards caused by excessive high-speed exercise.
[0080] The warning speed is set to be lower than the speed upper limit. When the real-time movement speed reaches or exceeds the warning threshold, the warning action is triggered immediately to provide participants with prompts to adjust the speed in time to ensure a smooth and safe exercise process.
[0081] The grade setting covers all grade options from lower grades to higher grades, such as lower and higher grades of elementary school, all grades of middle school, all grades of undergraduate and graduate schools, etc., so as to customize highly adapted sports tasks according to the physical growth stage and academic burden of students of different grades.
[0082] The department setting can accurately select applicable objects from all departments and divisions within the school or organization, and plan targeted sports check-in plans based on the professional characteristics and work and rest patterns of departments such as science and engineering, liberal arts, art and sports.
[0083] The effective start and end time settings for daily performance are set according to the daily routine. The start and end times for daily exercise performance to be recognized are set accurately to the hour and minute. This regulates the exercise time periods of the participants and eliminates unreasonable exercise clock-in times, such as avoiding clocking in during the early morning and late night, which are not suitable for exercise.
[0084] The recommended route display settings on the mobile phone fully respect the different preferences of participants to plan their own routes or follow the recommended routes, and provide three modes: "Show recommended routes", "Show key points only", and "Do not show any auxiliary information". When you choose to display the recommended route, the system will be based on geographic information system (GIS) technology and combined with point settings to present a clear and convenient exercise route to participants on the mobile APP map interface, marking key information such as the name, distance, and direction of each point; if you choose to show only key points, only the geographical locations that must be passed for checking in will be highlighted, making it convenient for participants to explore the route by themselves; in the mode of not displaying any auxiliary information, participants will have complete autonomy to decide their exercise trajectory.
[0085] Point setting is based on a comprehensive analysis of multiple factors such as the layout of the sports venue, the surrounding environment, safety considerations, and sports planning goals. Multiple geographical locations that are necessary for sports punching in are accurately set to build a rigorous sports trajectory framework. These points can be landmark buildings on campus, playground entrances, gymnasium surroundings, etc., or specific areas within the corporate park.
[0086] The number of check-in points that must be passed during exercise must be set. It must be a positive integer and work together with the point settings to ensure the standardization and compliance of the exercise route and prevent participants from cheating by being lazy and taking shortcuts.
[0087] The score setting carefully formulates detailed score assessment rules in a descending priority order, covering but not limited to specific scores corresponding to specific mileage and number combinations, and also comprehensively considering factors such as speed compliance and completeness of check-in points, in order to objectively quantify the participants' athletic performance throughout the semester and maximize the enthusiasm of the participants.
[0088] S102, collecting running data.
[0089] Specifically, running data includes running time, running mileage, running speed, runner information and running check-in points. The runner information includes gender, grade and department.
[0090] With the help of advanced smart wearable devices (such as sports bracelets and smart watches with high-precision GPS, accelerometers, and heart rate monitoring functions) or professional sports sensors built into mobile phones, key data during running can be collected in real time and accurately. When the participant starts the running program (whether in an independent sports app or embedded in a sports module on other platforms), the system will start recording the running time, accurate to seconds, from the moment of starting to the stop button at the end of the run, fully capturing the exercise duration for subsequent analysis of exercise rhythm and efficiency. The running mileage uses GPS positioning technology combined with map algorithms to accurately calculate the actual distance traveled by the participant from the starting point to the end point, in kilometers, with an error controlled within a very small range, providing core data for evaluating exercise intensity. The running speed is dynamically calculated based on the real-time changes in mileage and time, in km / h, and the data is updated every second to ensure that the speed fluctuations of the participant during exercise can be reflected in a timely manner, so as to be compared with the speed limit and warning speed setting to trigger the corresponding warning. The information of runners is entered when the participants first log in or register for the sports clock-in system. Fields such as gender, grade, and department are seamlessly connected to the personnel management systems within schools, enterprises, and other organizations, automatically acquired and updated synchronously, ensuring the accuracy of information, and laying the foundation for subsequent personalized data analysis and task push based on the characteristics of different groups. The running clock-in points are compared and identified through GPS positioning combined with a pre-set point coordinate database. When the participants are within a certain range of the set clock-in point (such as 5 meters, 10 meters, set according to the accuracy requirements), the system automatically senses and records the clock-in time, point number, and other information to build a complete sports track record for verifying the compliance of the sports route.
[0091] S103, analyzing and calculating the running data based on the exercise punch-in task rules to obtain a single running score.
[0092] Specifically, real-time collection of the current running real-time speed V i , determine the current running real-time speed V i Is a warning required? warn <V i <V max Generate early warning information when
[0093] When V i >V max , it is determined that the running data is invalid.
[0094] When 0<M i <M 1 When , the mileage score is calculated by formula (1);
[0095]
[0096] In the formula, For mileage score, M i is the single running mileage, M 1 Set a value for single base mileage;
[0097] Formula (1) quantifies the score corresponding to the participant's mileage completion based on the ratio between the participant's actual mileage in a single run and the required single basic mileage. The closer the actual mileage is to the single basic mileage setting value, the higher the mileage score will be, which can accurately reflect the degree of achievement of the mileage dimension of a single run, motivating participants to try to reach or exceed the basic mileage requirements and avoid overly scattered and inefficient short-distance running.
[0098] When M i ≥M 1 hour, As long as the participants' single running mileage reaches or exceeds the set standard, they can get full marks on the key indicator of mileage. This clearly informs participants of the importance of meeting the basic mileage, while simplifying the calculation process and highlighting key assessment requirements.
[0099] When V warn <V i <V max When , the speed score is calculated by formula (2);
[0100]
[0101] In the formula, For speed score, V i is the single running speed, V max is the speed upper limit setting value, V warn Set a value for the warning speed;
[0102] Formula (2) aims to accurately score the running speed between the warning speed and the upper speed limit. As the speed gradually approaches the upper speed limit, the linear deduction method is used to encourage participants to control their speed, avoid the risk of sports injuries caused by excessive speed, and ensure sports safety. For example, the closer the speed is to the upper speed limit, the greater the deduction value and the lower the score, guiding participants to exercise within a reasonable speed range.
[0103] When V i ≤V warn , S speed =30, indicating that participants can obtain full marks in the speed dimension within a safe lower speed range. This encourages participants to run at a stable and safe speed instead of blindly pursuing high speed, which is in line with the scientific concept of sports and fitness.
[0104] When V i >V max When S speed=0; This is a strong constraint. Once the speed exceeds the upper limit for a certain number of times (depending on the rules), the speed score will be directly judged as zero, and the run may even be invalidated. This fundamentally prevents participants from speeding excessively and maintains the standardization and safety of sports clocking in.
[0105] When the time is included in the daily score effective start and end time settings,
[0106] When the time is not included in the daily score effective start and end time settings, The effect of this rule is to regulate the exercise time of participants and guide them to check in for exercise during reasonable time periods, avoiding running in the late night and early morning when time periods are not suitable for exercise or may interfere with others. It also makes it easier for management departments to uniformly count daily effective exercise data and ensure that exercise check-in activities are carried out in an orderly manner.
[0107] When n i <N 0 When , the check-in score is calculated by formula (3);
[0108]
[0109] In the formula, To score points for the check-in, n i is the actual number of check-in points, N 0 Set a value for the number of check-in points that must be checked in; formula (3) encourages participants to check in along the established route and prevents cheating, such as taking shortcuts and skipping certain check-in points. Only by passing the specified number of check-in points can a full score of 20 be obtained, ensuring the standardization and integrity of the exercise trajectory and guaranteeing fairness and justice in exercise check-in.
[0110] When n i =N 0 hour, It is an affirmation given to participants who fully follow the clock-in rules, and motivates them to clock in strictly according to the route requirements every time they run.
[0111] The single running score is calculated by formula (4);
[0112]
[0113] In the formula, S i To score a single run, Score points for mileage, Score for speed, Score for time, Score points for punching the card.
[0114] Formula (4) adds up the scores of the previous dimensions to comprehensively reflect the overall quality of a single run. It covers key factors such as mileage, speed, time, and check-in points, so that the single run score can accurately measure the comprehensive performance of participants in a running activity, providing an objective basis for subsequent personal sports analysis, ranking, and comparison with others, so that participants can clearly know the advantages and disadvantages of each run.
[0115] S104, obtaining all single running scores corresponding to each runner in this semester, and calculating the total running score corresponding to each runner based on all single running scores corresponding to each runner;
[0116] Specifically, the total running score is calculated by formula (5);
[0117]
[0118] In the formula, S total is the total running score, S total-mileage is the total mileage score, S total-times Score the total number of times you reach the target;
[0119] Formula (5) Total mileage score S total-mileage and total number of times reaching the target score S total-times Each of them accounts for 40% of the weight, and the average of the single running score accounts for 20% of the weight. It not only emphasizes the total mileage and total number of times throughout the semester, measures the participants' long-term exercise accumulation and exercise continuity from a macro perspective, but also takes into account the comprehensive performance of a single run, avoids excessive impact on the total score of the semester due to individual poor performance, and prevents participants from relying on a single "score brushing" and ignoring the overall exercise plan, achieving a comprehensive, balanced and scientific evaluation of the participants' sports results in the semester, which is used for the final sports performance assessment, ranking and reward distribution, and can effectively motivate participants to continue to participate in sports punch-in activities.
[0120] When the total running mileage M of this semester ≥ the set mileage M 0 When S total-mileage =100;
[0121] When the total running mileage M of this semester is less than the set mileage M 0 hour,
[0122] When the number of running times N ≥ the set number of times reaching the target N 1 When S total-times =100;
[0123] When the number of running times N is less than the set number of times N 1 hour,
[0124] The exercise clock-in method further includes:
[0125] When the time is not included in the daily performance effective start and end time setting values, a prompt message is generated to remind the runner of the correct performance effective start and end time.
[0126] The coordinate points of each runner's movement trajectory are collected in real time. The current mileage is calculated based on the coordinate points of the movement trajectory. If the mileage has not reached the target, a path planning algorithm is used to generate a recommended movement route starting from the current position, passing through the required check-in points in sequence, and with a total mileage as close to the target mileage as possible, combined with the coordinate subset of the required check-in points.
[0127] If the required mileage has been reached, a recommended exercise route will be generated, starting from the current location and passing through the remaining check-in points.
[0128] The recommended exercise route is pushed to the corresponding runner user terminal.
[0129] The high-precision GPS chip integrated in the device carried by the runner (such as a smartphone or a professional sports watch) is used in combination with base station-assisted positioning technology to continuously capture the location information of the runner. The built-in sensor of the device collects location data at least 5 times per second, and each location data is recorded in the form of longitude and latitude coordinates to form a set of motion trajectory coordinate points P = {p 1 , p 2 , ..., p n}, where p i =(lat i ,lon i ), lat i Represents latitude, lon i Represents longitude.
[0130] For two adjacent points p in the coordinate point set P i and, the Vincenty formula is used to accurately calculate the geodetic distance d(p i , p i+1 )(unit: meter), this formula takes into account the ellipsoid shape of the earth and is more accurate than the simple plane distance formula.
[0131] The distances between two adjacent points are accumulated in sequence to obtain the current mileage L. current ;
[0132]
[0133] The system pre-stores detailed information of all required check-in points, including the unique identification ID of each required check-in point j and the corresponding longitude and latitude coordinates p′ j=(lat′ j , lon′ j ), this information is stored in the point database.
[0134] Traverse the motion trajectory coordinate point set P, for each point p i , and compare it with the coordinates of the required check-in points in the point database. i With the coordinates of a certain check-in point p′ j When the distance is less than the set punch-in recognition radius r (for example, 5 meters), the coordinates of the must-punch point are added to the must-punch point coordinate subset P′={p′ 1 , p′ 2 , ..., p′ m}, and record that the required check-in point has been checked in.
[0135] Using all points in the motion trajectory coordinate point set P and the must-check-in point coordinate subset P′ as nodes, a directed graph G(V, E) is constructed, where V is the node set, that is, V = P ∪ P′, and E is the edge set. The weight of the edge is defined as the distance between two adjacent points, using the previously calculated d(p i , p i+1 ) or calculated by similar methods.
[0136] The starting point is defined as the current position, that is, the last point in the motion trajectory coordinate point set P.
[0137] The goal is defined as passing all the required checkpoints and the total mileage is as close to the target mileage as possible. To this end, a heuristic function h(p) is introduced, which estimates the remaining cost from the current node p to the target state (passing all the required checkpoints and close to the target mileage). For example, the sum of the straight-line distances from the current point to the unvisited required checkpoints can be simply used as a heuristic estimate, but considering that the actual movement path cannot simply move in a straight line, it can be appropriately modified in combination with the map road data or the layout of the sports venue.
[0138] During the search process, two data structures are maintained: one is an open list, which is used to store the nodes to be explored, and the starting point is added initially; the other is a closed list, which is used to store the nodes that have been explored.
[0139] Iterative search: Take the node p with the smallest value of f(p) = g(p) + h(p) from the open list (where g(p) is the actual path cost from the starting point to the current node p, that is, the distance traveled. Initially, g(p n)=0), move it to the closed list. For each neighbor node q of node p, calculate the new path cost g(q)=g(p)+d(p,q). If q is not in the open list or the closed list, add it to the open list and set its predecessor node to p; if q is already in the open list and the new path cost is less than the previous cost, update its predecessor node to p and the value of g(q). Repeat this process until a path that passes through all the required check-in points is found.
[0140] When a path that meets the conditions is found, the node sequence on the path is recorded, which is the recommended movement route R = {r 1 , r 2 , ..., r k}, and calculate the total mileage L of the route route , ensuring that it is close to the target mileage remaining value L remain =L targer -L current (L targer Set a value for the target mileage).
[0141] Similarly, a directed graph G′(V′, E′) is constructed with the current position and the remaining unchecked-in points as nodes, where V′ is the current position point p currrnt (can be set as the last point in the motion trajectory coordinate point set P) and the remaining unchecked-in must-check-in point coordinate subset P′ unvisited The edge weights of E′ are defined as before.
[0142] Use Dijkstra's algorithm to find the shortest path:
[0143] Initialize the distance array and set the starting point p current The distance value is set to 0, that is, dist[p current ]=0, the distance values of other nodes are set to infinity.
[0144] Maintain a priority queue pq and set the starting point p current join in.
[0145] Iteration process: Take the node u with the smallest distance value from the priority queue, and for each neighbor node of u, calculate the new distance value dist[v]=min(dist[v], dist[u]+d(u,v)). If the distance value of v is updated, add it to the priority queue (if it is already in the queue, update its priority). Repeat this process until the priority queue is empty.
[0146] Finally, by backtracking from the end point to the predecessor node of the starting point, determine the shortest path R passing through the remaining unchecked-in points shortest = {r′ 1 , r′ 2 , ..., r′k′}, this path is the subsequent movement route.
[0147] Different forms of push notifications are provided depending on the type of equipment used by the runner:
[0148] For smartphone users: In the accompanying sports check-in application, recommended exercise routes are displayed in the form of map layers. The routes are drawn with eye-catching colored lines, and the required check-in points are marked with specific icons, such as a circular icon for the starting point, a square icon for the intermediate required check-in point, and a triangular icon for the end point (if any), and the name of the point is displayed next to the icon. At the same time, a voice navigation function is provided, which automatically broadcasts the current location, the distance to the next required check-in point, and the direction of travel at intervals (such as 100 meters), such as "You are currently 200 meters away from the next check-in point, please turn right ahead."
[0149] For users of smart wearable devices, such as sports watches, route information is pushed through a combination of vibration and screen display. The screen uses a simple arrow to indicate the direction of travel, and the distance to the next check-in point is displayed in numbers. When approaching the check-in point, the vibration intensity is increased and the screen prompt flashes, ensuring that runners can obtain route guidance in a timely and convenient manner during exercise.
[0150] Through the above detailed calculation process, accurate motion trajectory collection, mileage calculation, identification of must-check-in points, and intelligent exercise route recommendation and push can be achieved, providing runners with efficient and scientific exercise check-in assistance.
[0151] Figure 2 Schematic diagram of the main components of the sports clock-in system according to an embodiment of the present invention. Figure 2 As shown, the sports punch-in system 1 provided by the embodiment of the present invention includes a rule creation module 10 , a collection module 20 , a single score calculation module 30 and a total score calculation module 40 .
[0152] The rule creation module 10 is used to create a sports punching task rule in response to a request to create a sports punching task, wherein the sports punching task rule includes gender setting, semester setting, semester start and end time setting, target mileage setting, target number setting, single basic mileage setting, speed limit setting, warning speed setting, grade setting, department setting, daily score effective start and end time setting, mobile terminal recommended route display setting, point setting, required punching point number setting and score setting;
[0153] The collection module 20 is used to collect running data, wherein the running data includes running time, running mileage, running speed, runner information and running check-in points, wherein the runner information includes gender, grade and department;
[0154] The single score calculation module 30 is used to analyze and calculate the running data based on the sports punch-in task rules to obtain a single running score;
[0155] The total score calculation module 40 is used to obtain all single running scores corresponding to each runner in this semester, and calculate the total running score corresponding to each runner based on all single running scores corresponding to each runner.
[0156] Figure 4 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Figure 4 As shown, the electronic device 50 includes: a processor 501 (processor), a memory 502 (memory) and a bus 503;
[0157] The processor 501 and the memory 502 communicate with each other via the bus 503;
[0158] The processor 501 is used to call the program instructions in the memory 502 to execute the methods provided by the above-mentioned method embodiments, so as to execute the methods provided by the implementation mode of the present invention.
[0159] This embodiment provides a non-transitory computer-readable storage medium, which stores computer instructions. The computer instructions enable a computer to execute the method provided by the embodiment of the present invention.
[0160] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various storage media that can store program codes.
[0161] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A sports clock-in method, characterized in that: include: In response to a request to create a sports punch-in task, create sports punch-in task rules, wherein the sports punch-in task rules include gender setting, semester setting, semester start and end time setting, target mileage setting, target number setting, single basic mileage setting, speed limit setting, warning speed setting, grade setting, department setting, daily score effective start and end time setting, mobile terminal recommended route display setting, point setting, required punch-in point number setting, and score setting; Collecting running data, wherein the running data includes running time, running mileage, running speed, runner information and running check-in points, wherein the runner information includes gender, grade and college department; Analyze and calculate the running data based on the exercise punch-in task rules to obtain a single running score; Get all the single running scores corresponding to each runner in this semester, and calculate the total running score corresponding to each runner based on all the single running scores corresponding to each runner.
2. The exercise clock-in method according to claim 1, characterized in that: The exercise clock-in method further includes: Real-time collection of current running speed V i , determine the current running real-time speed V i Is a warning required? warn <V i <V max Generate early warning information when When V i >V max , it is determined that the running data is invalid.
3. The exercise clock-in method according to claim 2, characterized in that: The analyzing and calculating the running data based on the exercise punch-in task rule includes: When 0 <M i When <M1, the mileage score is calculated by formula (1); In the formula, For mileage score, M i is the single running mileage, and M1 is the single basic mileage setting value; When M i ≥M1, When V warn <V i <V max When , the speed score is calculated by formula (2); In the formula, For speed score, V i is the single running speed, V max is the speed upper limit setting value, V warn Set a value for the warning speed; When V i ≤V warn , S speed =30; When V i >V max When S speed =0; When the time is included in the daily score effective start and end time settings, When the time is not included in the daily score effective start and end time settings, When n i When <N0, the check-in score is calculated using formula (3); In the formula, To score points for the check-in, n i is the actual number of check-in points, and N0 is the set value of the number of check-in points required; When n i =N0, 4. The exercise clock-in method according to claim 3, characterized in that: The step of analyzing and calculating the running data based on the exercise punch-in task rule to obtain a single running score includes: The single running score is calculated by formula (4); In the formula, S i To score a single run, Score points for mileage, Score for speed, Score for time, Score points for punching the card.
5. The exercise clock-in method according to claim 4, characterized in that: The obtaining of all single running scores corresponding to each runner in this semester and calculating the total running score corresponding to each runner based on all single running scores corresponding to each runner include: The total running score is calculated by formula (5); In the formula, S total is the total running score, S total-mileage is the total mileage score, S total-times Score the total number of times you reach the target; When the total running mileage M of this semester ≥ the set mileage M0, S total-mileage =100; When the total running mileage M of this semester is less than the set mileage M0, When the number of running times N ≥ the set value N1, S total-times =100; When the number of running times N < the set value N1, 6. The exercise clock-in method according to claim 1, characterized in that: The exercise clock-in method further includes: When the time is not included in the daily performance effective start and end time setting values, a prompt message is generated to remind the runner of the correct performance effective start and end time.
7. The exercise clock-in method according to claim 1, characterized in that: The exercise clock-in method further includes: The coordinate points of each runner's movement trajectory are collected in real time. The current mileage is calculated based on the coordinate points of the movement trajectory. If the mileage has not reached the target, a path planning algorithm is used to generate a recommended movement route starting from the current position, passing through the required check-in points in sequence, and with a total mileage as close to the target mileage as possible, combined with the coordinate subset of the required check-in points. If the required mileage has been reached, a recommended exercise route will be generated, starting from the current location and passing through the remaining check-in points. The recommended exercise route is pushed to the corresponding runner user terminal.
8. A system for clocking in during exercise, characterized in that: include: A rule creation module, for responding to a request to create a sports punch-in task, creating a sports punch-in task rule, wherein the sports punch-in task rule includes gender setting, semester setting, semester start and end time setting, target mileage setting, target number setting, single basic mileage setting, speed limit setting, warning speed setting, grade setting, department setting, daily score effective start and end time setting, mobile terminal recommended route display setting, point setting, required punch-in point number setting, and score setting; A collection module is used to collect running data, wherein the running data includes running time, running mileage, running speed, runner information and running check-in points, wherein the runner information includes gender, grade and college department; A single score calculation module, used to analyze and calculate the running data based on the exercise punch-in task rules to obtain a single running score; The total score calculation module is used to obtain all single running scores corresponding to each runner in this semester, and calculate the total running score corresponding to each runner based on all single running scores corresponding to each runner.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A non-transitory computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
High-altitude exploration card punching and scoring system based on NFC radio frequency and somatosensory interaction
CN121392992A