Disclosure of Invention
The invention provides a teenager fitness user data management system and a method, which aim to overcome the defects in the prior art, automatically acquire fitness data of teenagers, automatically judge the execution condition of a fitness plan according to the fitness plan, generate a tree diagram, more intuitively and intensively show the fitness exercise states of a plurality of teenagers, and realize more effective and faster supervision and management.
In order to achieve the above object, the present invention has the following configurations:
the teenager fitness user data management system comprises a fitness user terminal, an administrator terminal, a plurality of fitness equipment, a database and a cloud server, wherein the cloud server provides fitness data management platform services, each fitness equipment is provided with a Bluetooth communication module and a speed sensor, the Bluetooth communication module collects a user ID of the fitness user terminal when communicating with the fitness user terminal and sends the user ID of the fitness user terminal to the cloud server, and the speed sensor is arranged on a movable part of the fitness equipment and sends collected speed data to the cloud server; the database stores the identification ID of each fitness equipment and the type of each fitness equipment;
the cloud server is used for executing the following steps:
the cloud server acquires a fitness plan and a user ID corresponding to the fitness plan from the administrator terminal, wherein the fitness plan comprises a fitness plan execution time, a target duration of at least one fitness project and a fitness equipment type;
when the cloud server receives the user ID sent by the fitness equipment, the user ID is adopted to log in a fitness data management platform, an unfinished fitness plan corresponding to the user ID is obtained, and the unfinished fitness plan is pushed to a fitness user terminal;
the cloud server acquires speed data sent by a speed sensor of the fitness equipment in real time, and the fitness time of the fitness user at this time is counted according to the speed data;
the cloud server judges the type of the fitness equipment, determines a corresponding fitness item according to the type of the fitness equipment, and adds the fitness time length of the fitness user to the fitness time length of the fitness item;
when the execution time of the fitness plan is finished, the cloud server counts the fitness plan completion state of each user ID;
the cloud server counts the number of users completing the whole fitness plan in the fitness plan execution time, generates a total plan completion node, and adds a user number value for completing the whole fitness plan at the total plan completion node;
the cloud server counts the number of users completing each fitness project in the fitness plan execution time, respectively generates fitness project completion nodes corresponding to each fitness project one by one, each fitness project completion node is a child node of the total plan completion node, and the number of users completing the fitness project is added at each fitness project completion node;
the cloud server generates a fitness plan completion result tree graph, the tree graph comprises a total plan completion node and all the fitness project completion nodes, the total plan completion node displays the number of users completing the whole fitness plan, and all the fitness project completion nodes display the number of users completing the fitness project;
the cloud server calculates the percentage of the number of users at each node to the total number of users corresponding to the fitness plan, green labeling is adopted for nodes with the calculated percentage being more than 60% in the dendrogram, and red labeling is adopted for nodes with the calculated percentage being less than 40% in the dendrogram;
the cloud server adds links to each node in the dendrogram, the total plan completion node is linked to a total plan completion user list, the total plan completion user list comprises user IDs for completing the whole fitness plan, each fitness item node is linked to a corresponding fitness item completion user list, and the fitness item completion user list comprises a user list for completing the corresponding fitness items;
and the cloud server pushes the dendrogram to a manager terminal issuing the fitness plan.
Optionally, the cloud server may count the fitness plan completion status of each user ID, including the following steps:
for each user ID, the cloud server judges whether the fitness duration of a fitness project corresponding to the user ID is greater than or equal to the target duration of the fitness project, if so, the cloud server judges that the user ID completes the fitness project, otherwise, the cloud server judges that the user ID does not complete the fitness project;
for each user ID, the cloud server judges whether the user ID completes all fitness items in the fitness plan, if so, the cloud server judges that the user ID completes the fitness plan, and otherwise, the cloud server judges that the user ID does not complete the fitness plan.
Optionally, when the execution time of the fitness plan is finished, after the cloud server counts the fitness plan completion states of the user IDs, the cloud server further performs the following steps:
the cloud server generates a fitness plan completion list, wherein the fitness plan completion list comprises user IDs of all fitness users and the number of fitness items completed by all the fitness users;
the cloud server adds links to the user IDs of all the fitness users in the fitness plan completion list, and the user IDs of all the fitness users in the fitness plan completion list are linked to the fitness plan completion graph of the user;
the fitness plan completion graph of each fitness user comprises a plurality of fitness item completion nodes, and the percentage of the fitness duration of the user in the fitness item to the target duration is displayed at each fitness item completion node;
the cloud server adds a labeling color to the fitness project completion nodes, when the percentage of the fitness project completion nodes is more than 80%, the fitness project completion nodes are labeled green, when the percentage of the fitness project completion nodes is between 60% and 80%, the fitness project completion nodes are labeled yellow, and when the percentage of the fitness project completion nodes is less than 60%, the fitness project completion nodes are labeled red;
and the cloud server pushes the fitness plan completion list to a manager terminal issuing the fitness plan.
Optionally, after the cloud server pushes the dendrogram to a manager terminal issuing the fitness plan, the cloud server further executes the following steps:
the cloud server receives a fitness plan delay notice and a fitness plan delay list sent by the administrator terminal;
the cloud server determines a user ID for executing the fitness plan delay according to the fitness plan delay list;
the cloud server inquires uncompleted fitness items and corresponding lack time corresponding to the user ID of each user executing the fitness plan delay, and takes the uncompleted fitness items as the delayed fitness items of the user;
the cloud server sends the body-building plan delay notice, the unfinished body-building items and the corresponding lack time to the corresponding body-building user terminal executing the body-building plan delay;
and when the cloud server receives the user ID and the speed data sent by the fitness equipment corresponding to the delayed fitness item, accumulating and calculating the fitness time of the user corresponding to the delayed fitness item.
Optionally, after the cloud server pushes the dendrogram to a manager terminal issuing the fitness plan, the cloud server further executes the following steps:
the cloud server receives a body-building plan resetting notice and a body-building plan resetting list sent by the administrator terminal;
the cloud server determines a user ID for executing the body-building plan reset according to the body-building plan reset list;
and the cloud server inquires user IDs for executing the body-building plan resetting, and clears the body-building time of all body-building projects under the body-building plan corresponding to the user IDs.
The embodiment of the invention also provides a teenager fitness user data management method, which adopts the teenager fitness user data management system and comprises the following steps:
the cloud server acquires a fitness plan and a user ID corresponding to the fitness plan from the administrator terminal, wherein the fitness plan comprises a fitness plan execution time, a target duration of at least one fitness project and a fitness equipment type;
the Bluetooth communication module of the fitness equipment receives a connection request of a fitness user terminal, acquires a user ID of the fitness user terminal and sends the user ID of the fitness user terminal to the cloud server;
when the cloud server receives the user ID sent by the fitness equipment, the user ID is adopted to log in a fitness data management platform, an unfinished fitness plan corresponding to the user ID is obtained, and the unfinished fitness plan is pushed to a fitness user terminal;
the cloud server acquires speed data sent by a speed sensor of the fitness equipment in real time, and the fitness time of the fitness user at this time is counted according to the speed data;
the cloud server judges the type of the fitness equipment, determines a corresponding fitness item according to the type of the fitness equipment, and adds the fitness time length of the fitness user to the fitness time length of the fitness item;
when the execution time of the fitness plan is finished, the cloud server counts the fitness plan completion state of each user ID;
the cloud server counts the number of users completing the whole fitness plan in the fitness plan execution time, generates a total plan completion node, and adds a user number value for completing the whole fitness plan at the total plan completion node;
the cloud server counts the number of users completing each fitness project in the fitness plan execution time, respectively generates fitness project completion nodes corresponding to each fitness project one by one, each fitness project completion node is a child node of the total plan completion node, and the number of users completing the fitness project is added at each fitness project completion node;
the cloud server generates a fitness plan completion result tree graph, the tree graph comprises a total plan completion node and all the fitness project completion nodes, the total plan completion node displays the number of users completing the whole fitness plan, and all the fitness project completion nodes display the number of users completing the fitness project;
the cloud server calculates the percentage of the number of users at each node to the total number of users corresponding to the fitness plan, green labeling is adopted for nodes with the calculated percentage being more than 60% in the dendrogram, and red labeling is adopted for nodes with the calculated percentage being less than 40% in the dendrogram;
the cloud server adds links to each node in the dendrogram, the total plan completion node is linked to a total plan completion user list, the total plan completion user list comprises user IDs for completing the whole fitness plan, each fitness item node is linked to a corresponding fitness item completion user list, and the fitness item completion user list comprises a user list for completing the corresponding fitness items;
and the cloud server pushes the dendrogram to a manager terminal issuing the fitness plan.
Optionally, the cloud server may count the fitness plan completion status of each user ID, including the following steps:
for each user ID, the cloud server judges whether the fitness duration of a fitness project corresponding to the user ID is greater than or equal to the target duration of the fitness project, if so, the cloud server judges that the user ID completes the fitness project, otherwise, the cloud server judges that the user ID does not complete the fitness project;
for each user ID, the cloud server judges whether the user ID completes all fitness items in the fitness plan, if so, the cloud server judges that the user ID completes the fitness plan, and otherwise, the cloud server judges that the user ID does not complete the fitness plan.
Optionally, when the execution time of the fitness plan is finished, after the cloud server counts the fitness plan completion states of the user IDs, the method further includes the following steps:
the cloud server generates a fitness plan completion list, wherein the fitness plan completion list comprises user IDs of all fitness users and the number of fitness items completed by all the fitness users;
the cloud server adds links to the user IDs of all the fitness users in the fitness plan completion list, and the user IDs of all the fitness users in the fitness plan completion list are linked to the fitness plan completion graph of the user;
the fitness plan completion graph of each fitness user comprises a plurality of fitness item completion nodes, and the percentage of the fitness duration of the user in the fitness item to the target duration is displayed at each fitness item completion node;
the cloud server adds a labeling color to the fitness project completion nodes, when the percentage of the fitness project completion nodes is more than 80%, the fitness project completion nodes are labeled green, when the percentage of the fitness project completion nodes is between 60% and 80%, the fitness project completion nodes are labeled yellow, and when the percentage of the fitness project completion nodes is less than 60%, the fitness project completion nodes are labeled red;
and the cloud server pushes the fitness plan completion list to a manager terminal issuing the fitness plan.
By adopting the adolescent fitness user data management system and the adolescent fitness user data management method, the beneficial effects are as follows:
(1) the fitness data of the teenagers are automatically collected, the execution condition of the fitness plan is automatically judged according to the fitness plan, a tree-shaped graph is generated, the fitness exercise states of a plurality of teenagers are displayed more visually and intensively, more effective and faster supervision and management are realized, a manager can more visually see the completion condition of the fitness plan of each teenager, the fitness plan can be further reset or delayed according to the completion states of different fitness projects of the teenagers, and the management mode is more flexible and diversified;
(2) the body-building data of each body-building user can be only pushed to the terminal of the administrator who issues the body-building plan, if different administrators issue different body-building plans for the same body-building user, the body-building user can also choose to accept one body-building plan or accept a plurality of body-building plans, if the body-building user chooses to accept a plurality of body-building plans, the body-building data aiming at different body-building plans can be respectively sent to the administrator terminal corresponding to the body-building plans, all the body-building data of the body-building user cannot be sent to the terminal of one of the administrators, the body-building data cannot be sent to an unrelated administrator terminal, and the privacy and the safety of the body-building user data are guaranteed.
Detailed Description
In order to more clearly describe the technical contents of the present invention, the following further description is given in conjunction with specific embodiments.
In order to solve the technical problems in the prior art, the invention provides a teenager fitness user data management system, which comprises a fitness user terminal, a manager terminal, a plurality of fitness equipment, a database and a cloud server as shown in fig. 1, wherein the cloud server provides fitness data management platform services, each fitness equipment is provided with a bluetooth communication module and a speed sensor, the bluetooth communication module collects a user ID of the fitness user terminal when communicating with the fitness user terminal and sends the user ID of the fitness user terminal to the cloud server, and the speed sensor is arranged on a movable part of the fitness equipment and sends collected speed data to the cloud server; the database stores the identification ID of each fitness equipment and the type of each fitness equipment;
the cloud server is used for executing the following steps:
the cloud server acquires a fitness plan and a user ID corresponding to the fitness plan from the administrator terminal, wherein the fitness plan comprises a fitness plan execution time, a target duration of at least one fitness project and a fitness equipment type;
when the cloud server receives the user ID sent by the fitness equipment, the user ID is adopted to log in a fitness data management platform, an unfinished fitness plan corresponding to the user ID is obtained, and the unfinished fitness plan is pushed to a fitness user terminal;
the cloud server acquires speed data sent by a speed sensor of the fitness equipment in real time, and the fitness time of the fitness user at this time is counted according to the speed data; specifically, when the speed data is greater than a preset threshold value, the user is considered to be in motion, when the speed data is less than the preset threshold value, the user is considered not to be in motion, when the accumulated time when the user is not in motion exceeds 15min, the user can automatically log out, and if the user wants to continue accumulating the time, the user needs to log in again;
the cloud server judges the type of the fitness equipment, determines a corresponding fitness item according to the type of the fitness equipment, and adds the fitness time length of the fitness user to the fitness time length of the fitness item;
when the execution time of the fitness plan is finished, the cloud server counts the fitness plan completion state of each user ID;
the cloud server counts the number of users completing the whole fitness plan in the fitness plan execution time, generates a total plan completion node, and adds a user number value for completing the whole fitness plan at the total plan completion node;
the cloud server counts the number of users completing each fitness project in the fitness plan execution time, respectively generates fitness project completion nodes corresponding to each fitness project one by one, each fitness project completion node is a child node of the total plan completion node, and the number of users completing the fitness project is added at each fitness project completion node;
the cloud server generates a fitness plan completion result tree graph, the tree graph comprises a total plan completion node and all the fitness project completion nodes, the total plan completion node displays the number of users completing the whole fitness plan, and all the fitness project completion nodes display the number of users completing the fitness project;
the cloud server calculates the percentage of the number of users at each node to the total number of users corresponding to the fitness plan, green labeling is adopted for nodes with the calculated percentage being more than 60% in the dendrogram, and red labeling is adopted for nodes with the calculated percentage being less than 40% in the dendrogram; the form of the tree diagram can be seen in fig. 2, wherein the nodes with dotted filling ground color are the nodes with percentage more than 60%;
the cloud server adds links to each node in the dendrogram, the total plan completion node is linked to a total plan completion user list, the total plan completion user list comprises user IDs for completing the whole fitness plan, each fitness item node is linked to a corresponding fitness item completion user list, and the fitness item completion user list comprises a user list for completing the corresponding fitness items;
and the cloud server pushes the dendrogram to a manager terminal issuing the fitness plan.
When the administrator terminal receives the dendrogram, the dendrogram is displayed to the administrator for viewing, and when the administrator clicks the link of each node, the user list corresponding to each node can be viewed, so that the method is very visual and concise.
In this embodiment, the cloud server calculates the fitness plan completion status of each user ID, including the following steps:
for each user ID, the cloud server judges whether the fitness duration of a fitness project corresponding to the user ID is greater than or equal to the target duration of the fitness project, if so, the cloud server judges that the user ID completes the fitness project, otherwise, the cloud server judges that the user ID does not complete the fitness project;
for each user ID, the cloud server judges whether the user ID completes all fitness items in the fitness plan, if so, the cloud server judges that the user ID completes the fitness plan, and otherwise, the cloud server judges that the user ID does not complete the fitness plan.
Further, in this embodiment, after the cloud server counts the exercise plan completion status of each user ID when the exercise plan execution time ends, the cloud server further performs the following steps:
the cloud server generates a fitness plan completion list, wherein the fitness plan completion list comprises user IDs of all fitness users and the number of fitness items completed by all the fitness users; the exercise plan completion list may be as shown in fig. 3, and include various information corresponding to the user ID, where the information in the exercise plan completion list is not limited to the information category listed in fig. 3, and information data of other categories may also be used;
the cloud server adds links to the user IDs of all the fitness users in the fitness plan completion list, and the user IDs of all the fitness users in the fitness plan completion list are linked to the fitness plan completion graph of the user;
the fitness plan completion graph of each fitness user comprises a plurality of fitness item completion nodes, and the percentage of the fitness duration of the user in the fitness item to the target duration is displayed at each fitness item completion node;
the cloud server adds a labeling color to the fitness project completion nodes, when the percentage of the fitness project completion nodes is more than 80%, the fitness project completion nodes are labeled green, when the percentage of the fitness project completion nodes is between 60% and 80%, the fitness project completion nodes are labeled yellow, and when the percentage of the fitness project completion nodes is less than 60%, the fitness project completion nodes are labeled red;
the cloud server pushes the fitness plan completion list to an administrator terminal issuing the fitness plan, and the administrator can further click each user ID to check the completion state of each user after checking the fitness plan completion list, so that the fitness plan completion list is more targeted.
In this embodiment, after the cloud server pushes the dendrogram to the administrator terminal that issues the fitness plan, the following steps are further performed:
the cloud server receives a fitness plan delay notice and a fitness plan delay list sent by the administrator terminal;
the cloud server determines a user ID for executing the fitness plan delay according to the fitness plan delay list;
the cloud server inquires uncompleted fitness items and corresponding lack time corresponding to the user ID of each user executing the fitness plan delay, and takes the uncompleted fitness items as the delayed fitness items of the user;
the cloud server sends the body-building plan delay notice, the unfinished body-building items and the corresponding lack time to the corresponding body-building user terminal executing the body-building plan delay;
and when the cloud server receives the user ID and the speed data sent by the fitness equipment corresponding to the delayed fitness item, accumulating and calculating the fitness time of the user corresponding to the delayed fitness item.
That is, the delay is simply a delay for some exercise program that is not completed, and the time for that exercise program can be accumulated.
Further, in this embodiment, after the cloud server pushes the dendrogram to the administrator terminal that issues the fitness plan, the following steps are further performed:
the cloud server receives a body-building plan resetting notice and a body-building plan resetting list sent by the administrator terminal;
the cloud server determines a user ID for executing the body-building plan reset according to the body-building plan reset list;
and the cloud server inquires user IDs for executing the body-building plan resetting, and clears the body-building time of all body-building projects under the body-building plan corresponding to the user IDs.
I.e., reset is reset for the entire exercise program, as opposed to delay, and all previous times are cleared and recalculated.
As shown in fig. 4, an embodiment of the present invention further provides a data management method for a teenager fitness user, where the data management method for a teenager fitness user is adopted, and the method includes the following steps:
the cloud server acquires a fitness plan and a user ID corresponding to the fitness plan from the administrator terminal, wherein the fitness plan comprises a fitness plan execution time, a target duration of at least one fitness project and a fitness equipment type;
the Bluetooth communication module of the fitness equipment receives a connection request of a fitness user terminal, acquires a user ID of the fitness user terminal and sends the user ID of the fitness user terminal to the cloud server;
when the cloud server receives the user ID sent by the fitness equipment, the user ID is adopted to log in a fitness data management platform, an unfinished fitness plan corresponding to the user ID is obtained, and the unfinished fitness plan is pushed to a fitness user terminal;
the cloud server acquires speed data sent by a speed sensor of the fitness equipment in real time, and the fitness time of the fitness user at this time is counted according to the speed data;
the cloud server judges the type of the fitness equipment, determines a corresponding fitness item according to the type of the fitness equipment, and adds the fitness time length of the fitness user to the fitness time length of the fitness item;
when the execution time of the fitness plan is finished, the cloud server counts the fitness plan completion state of each user ID;
the cloud server counts the number of users completing the whole fitness plan in the fitness plan execution time, generates a total plan completion node, and adds a user number value for completing the whole fitness plan at the total plan completion node;
the cloud server counts the number of users completing each fitness project in the fitness plan execution time, respectively generates fitness project completion nodes corresponding to each fitness project one by one, each fitness project completion node is a child node of the total plan completion node, and the number of users completing the fitness project is added at each fitness project completion node;
the cloud server generates a fitness plan completion result tree graph, the tree graph comprises a total plan completion node and all the fitness project completion nodes, the total plan completion node displays the number of users completing the whole fitness plan, and all the fitness project completion nodes display the number of users completing the fitness project;
the cloud server calculates the percentage of the number of users at each node to the total number of users corresponding to the fitness plan, green labeling is adopted for nodes with the calculated percentage being more than 60% in the dendrogram, and red labeling is adopted for nodes with the calculated percentage being less than 40% in the dendrogram;
the cloud server adds links to each node in the dendrogram, the total plan completion node is linked to a total plan completion user list, the total plan completion user list comprises user IDs for completing the whole fitness plan, each fitness item node is linked to a corresponding fitness item completion user list, and the fitness item completion user list comprises a user list for completing the corresponding fitness items;
and the cloud server pushes the dendrogram to a manager terminal issuing the fitness plan.
In this embodiment, the cloud server calculates the fitness plan completion status of each user ID, including the following steps:
for each user ID, the cloud server judges whether the fitness duration of a fitness project corresponding to the user ID is greater than or equal to the target duration of the fitness project, if so, the cloud server judges that the user ID completes the fitness project, otherwise, the cloud server judges that the user ID does not complete the fitness project;
for each user ID, the cloud server judges whether the user ID completes all fitness items in the fitness plan, if so, the cloud server judges that the user ID completes the fitness plan, and otherwise, the cloud server judges that the user ID does not complete the fitness plan.
In this embodiment, after the cloud server counts the exercise plan completion status of each user ID when the exercise plan execution time ends, the method further includes the following steps:
the cloud server generates a fitness plan completion list, wherein the fitness plan completion list comprises user IDs of all fitness users and the number of fitness items completed by all the fitness users;
the cloud server adds links to the user IDs of all the fitness users in the fitness plan completion list, and the user IDs of all the fitness users in the fitness plan completion list are linked to the fitness plan completion graph of the user;
the fitness plan completion graph of each fitness user comprises a plurality of fitness item completion nodes, and the percentage of the fitness duration of the user in the fitness item to the target duration is displayed at each fitness item completion node;
the cloud server adds a labeling color to the fitness project completion nodes, when the percentage of the fitness project completion nodes is more than 80%, the fitness project completion nodes are labeled green, when the percentage of the fitness project completion nodes is between 60% and 80%, the fitness project completion nodes are labeled yellow, and when the percentage of the fitness project completion nodes is less than 60%, the fitness project completion nodes are labeled red;
and the cloud server pushes the fitness plan completion list to a manager terminal issuing the fitness plan.
Compared with the prior art, the adolescent fitness user data management system and the adolescent fitness user data management method have the following beneficial effects:
(1) the fitness data of the teenagers are automatically collected, the execution condition of the fitness plan is automatically judged according to the fitness plan, a tree-shaped graph is generated, the fitness exercise states of a plurality of teenagers are displayed more visually and intensively, more effective and faster supervision and management are realized, a manager can more visually see the completion condition of the fitness plan of each teenager, the fitness plan can be further reset or delayed according to the completion states of different fitness projects of the teenagers, and the management mode is more flexible and diversified;
(2) the body-building data of each body-building user can be only pushed to the terminal of the administrator who issues the body-building plan, if different administrators issue different body-building plans for the same body-building user, the body-building user can also choose to accept one body-building plan or accept a plurality of body-building plans, if the body-building user chooses to accept a plurality of body-building plans, the body-building data aiming at different body-building plans can be respectively sent to the administrator terminal corresponding to the body-building plans, all the body-building data of the body-building user cannot be sent to the terminal of one of the administrators, the body-building data cannot be sent to an unrelated administrator terminal, and the privacy and the safety of the body-building user data are guaranteed.
In this specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.