A method for generating a status report and a status monitoring system
Through the status monitoring system, video recognition of learning status and attention information are used to generate reports, which solves the problem of users' lack of supervision during learning and achieves real-time monitoring and efficiency improvement.
Patent Information
- Application Number
- CN202010844814.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-20
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-08-20
AI Technical Summary
In the education process, users lack status supervision and feedback during learning, making learning efficiency and concentration difficult to monitor and improve.
Through the status monitoring system, the camera is used to collect user videos, identify learning status, sitting posture and attention information, and generate real-time status reports for users to view and adjust.
Real-time monitoring and feedback of users' learning status is realized, helping users to promptly correct problems in the learning process and improve learning efficiency and concentration.
Smart Images

Figure CN112069931B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent education, and in particular to a method for generating a status report and a status monitoring system. Background Art
[0002] With the progress of the times, education has become more and more universal and popular, with a variety of courses available for users to choose from. During the study period, users will devote most of their energy to learning, and will not care about their own status during this period. Generally, no one will always supervise the user's learning, so that the user does not understand their situation during the study period. Therefore, the industry urgently needs an intelligent education product that monitors users while they are studying courses, and automatically generates status reports based on the user's performance during the study period, so that users can understand their status during the study period. Summary of the invention
[0003] The embodiments of the present application provide a status report generation method and a status monitoring system, which can monitor the performance of a user during learning and automatically generate a status report to let the user understand the status during learning.
[0004] In the first aspect, an embodiment of the present application provides a method for generating a status report, which is applied to a status monitoring system, wherein the status monitoring system includes: a status recognition device, a server and a user terminal; the status report generation method includes: the status recognition device determines the status monitoring result corresponding to the user during the monitoring period based on the user video collected during the monitoring period, and sends the status monitoring result to the server; the status monitoring result includes: learning status information, sitting posture information and attention information; the server generates status information corresponding to the monitoring period based on the received status monitoring result; if the server receives a status report generation request sent by the user terminal, the server feeds back the status information to the user terminal based on the status report generation request, and instructs the user terminal to generate and display a status report.
[0005] In a possible implementation manner of the first aspect, one user video corresponds to one monitoring period, and there are multiple monitoring periods; the status report includes multiple status pages, and one status page corresponds to one monitoring period.
[0006] Exemplarily, the monitoring period refers to the time period from the start time to the end time of the user video, and the user video should be a video with a continuous and uninterrupted timeline; the above-mentioned server generates a request based on the status report to feedback the status information to the user terminal, and instructs the user terminal to generate and display a status report, which may specifically include: the server generates a request based on the status report to feedback status information corresponding to multiple monitoring time periods, and generates a status page corresponding to the target monitoring time period based on the status information of the target monitoring time period, and the target monitoring time period is any monitoring time period among the multiple monitoring time periods.
[0007] It should be understood that when the above-mentioned user terminal displays the status report, it can specifically be that the user terminal displays the status page of the status report based on user operations, that is, the user can browse the status page corresponding to a specific monitoring period according to his own needs to understand the user status of the monitoring period.
[0008] In the second aspect, an embodiment of the present application provides a state monitoring system, which includes: a state identification device, a server and a user terminal; the state identification device is used to determine the state monitoring results corresponding to the user during the monitoring period based on the user video collected during the monitoring period, and send the state monitoring results to the server; the state monitoring results include: learning state information, sitting posture information and attention information; the server is used to generate state information corresponding to the monitoring period based on the received state monitoring results; the server is also used to, if a state report generation request sent by the user terminal is received, the server then feeds back the state information to the user terminal based on the state report generation request, and instructs the user terminal to generate and display a status report.
[0009] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method executed by the state recognition device described in any one of the first aspects above and / or the method executed by the server is implemented.
[0010] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising: the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the method executed by the state recognition device described in any one of the first aspects above, and / or the method executed by the server.
[0011] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0012] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0013] Compared with the prior art, the status report generation method provided by the present application monitors the user in real time during the user's learning process, generates a status report by identifying the user's sitting posture and attention state during the learning process, so as to record the user's status during the learning process, so that the user can view and correct the status in the subsequent learning process in time based on the learning report. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0015] Figure 1 is a flowchart of the implementation of the method provided in the first embodiment of the present application;
[0016] Figure 2 It is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0017] Figure 3 It is a data interaction diagram of a status monitoring system provided by an embodiment of the present application;
[0018] Figure 4 is a flowchart of the implementation of the method provided in the second embodiment of the present application;
[0019] Figure 5 is a schematic diagram of a key point extraction network provided in the third embodiment of the present application;
[0020] Figure 6 is a flowchart of method S303 provided in the fourth embodiment of the present application;
[0021] Figure 7 is a flowchart of the implementation of the method provided in the fifth embodiment of the present application;
[0022] Figure 8 is a flowchart of the implementation of the method provided in the sixth embodiment of the present application;
[0023] Fig. 9 is a flowchart of the implementation of the method provided in the seventh embodiment of the present application;
[0024] Fig.10 This is a schematic diagram of the status report effect provided by the seventh embodiment of the present application;
[0025] Fig.11It is a structural diagram of a status monitoring system provided by an implementation of the present application;
[0026] Fig.12 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0027] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0028] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0029] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0030] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0031] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0032] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0033] Figure 1 The data interaction diagram of the method provided by the first embodiment of the present application is shown, and the details are as follows:
[0034] See also Figure 1 The status report generation method provided in this embodiment is applied to a status monitoring system, and the status monitoring system includes: a status identification device, a server and a user terminal; the status report generation method includes S101 to S103.
[0035] In S101, the state recognition device determines the state monitoring result corresponding to the user in the monitoring period based on the user video collected in the monitoring period, and sends the state monitoring result to the server.
[0036] In this embodiment, the state monitoring result includes: learning state information, sitting posture information and attention information. The user video can be collected by a camera and uploaded to the state recognition device via the camera, and the state recognition device can also include the camera. The camera should be set at a preset position, such as on a table used by the user when studying, or on a display for displaying the user's learning video, or on a bookshelf where the user places books when reading; the camera should be able to capture the upper body area of the user when the user is in a sitting state to study, and the upper body includes the part of the user's body above the chest, especially including the face and shoulders.
[0037] In a possible implementation, the user video includes multiple frames of user images. The above-mentioned state recognition device can determine the state monitoring result corresponding to the user in the monitoring period based on the user video collected in the monitoring period. The above-mentioned process can be specifically as follows: the state recognition device determines the learning state information, the sitting posture information and the attention information corresponding to the monitoring period according to all user images in the user video collected in the monitoring period; the learning state information is used to characterize whether the user is in a learning or resting state in each time period in the monitoring period; the sitting posture information is used to characterize the sitting posture of the user in each time period in the monitoring period, and the sitting posture includes a standard sitting posture or a non-standard sitting posture, and can also be a specific type of sitting posture; the attention information is used to characterize whether the user is focused in each time period in the monitoring period.
[0038] Optionally, the state recognition device imports all user images into the learning state recognition model respectively, recognizes the learning state corresponding to each of the user images, and derives the learning state information of the monitoring period based on the learning state of all user images; it should be understood that in order to realize real-time monitoring of the user's state information during learning, it is only necessary to determine the user's sitting state information and attention state information when the user is in the learning state, that is, when the learning state of the user image indicates that the user is in the learning state, the state recognition device imports the user image into the sitting state recognition model and the attention recognition model respectively, and recognizes the user The state recognition device can determine the sitting state and the attention state corresponding to the image, and derive the sitting state information and the attention state information of the monitoring period based on the sitting state and the attention state of all user images; when the learning state of the user image indicates that the user is in a resting state, the state recognition device may not perform the operation of determining the sitting state and the attention state, or recognize the sitting state and the attention state as preset values (such as null values), indicating that the user is in a resting state (that is, the user image may not contain the user's body), and does not recognize the user's sitting state and attention state at this time.
[0039] In S102, the server generates status information corresponding to the monitoring period based on the received status monitoring result.
[0040] In this embodiment, the server generates status information corresponding to the monitoring period based on the status monitoring result sent by the status identification device in the above S101; exemplarily, the status information is used to characterize the status of the user in the monitoring period, including learning status, sitting status and attention status. Specifically, the server determines the time periods corresponding to different learning statuses, the time periods corresponding to different sitting statuses and the time periods corresponding to different attention statuses within the monitoring period according to the status monitoring result.
[0041] In one possible implementation, the monitoring period is from 10:00 to 11:00; the server generates status information corresponding to the monitoring period based on the received status monitoring result, which may be specifically as follows: the server divides the monitoring period into a learning period and a rest period according to the learning status information in the status monitoring result. For example, the learning status information indicates that the user is in a learning state from 10:00 to 10:40 of the monitoring period, and is in a rest state from 10:41 to 11:00 of the monitoring period; then the server determines that the learning period is specifically from 10:00 to 10:40, and the rest period is specifically from 10:41 to 11:00; the server divides the learning period in the monitoring period into a standard sitting period and a non-standard sitting period (which may also be divided into multiple time periods corresponding to different specific sitting types) according to the sitting status information in the status monitoring result. For example, the sitting status information indicates that the user is in a learning state from 10:00 to 10:40 of the monitoring period, and is in a rest state from 10:41 to 11:00 of the monitoring period. If the student is in a non-standard sitting posture state from 10:00 to 10:15 and from 10:20 to 10:30, and in a standard sitting posture state in the rest of the time periods, the server determines that the standard sitting posture time periods are 10:00 to 10:09, 10:16 to 10:19, and 10:31 to 10:40, and the non-standard sitting posture time periods are 10:10 to 10:15 and 10:20 to 10:30; the server sets the learning time in the monitoring period according to the attention state information in the state monitoring result. The segments are divided into time periods of concentrated attention and time periods of inattention. For example, the attention status information represents that the user is in an inattention state from 10:10 to 10:20 and from 10:35 to 10:40 in the monitoring period, and is in an attention state in the remaining time periods. Then, the server determines that the time periods of concentrated attention are from 10:00 to 10:09 and from 10:21 to 10:34, and the time periods of inattention are from 10:10 to 10:20 and from 10:35 to 10:40.
[0042] It should be understood that the status information corresponding to the monitoring period may specifically include the number of times the user changes from the standard sitting posture state to the non-standard sitting posture state and the number of times the user changes from the concentration state to the inattention state, that is, the number of times the user has an incorrect sitting posture and the number of times the user has inattention during the monitoring period. As an example, referring to the above example, the number of incorrect sitting postures is specifically 2 times, and the number of times the user has inattention is 2 times.
[0043] In S103, if the server receives the status report generation request sent by the user terminal, the server feeds back the status information to the user terminal based on the status report generation request, and instructs the user terminal to generate and display a status report.
[0044] In this embodiment, in order to generate the status report, the status information corresponding to the monitoring period needs to be generated by the server. The user terminal needs to send the status report generation request to the server, and the server feeds back the status information of the monitoring period to the user terminal based on the status report generation request.
[0045] In one possible implementation, the user terminal sends the status report generation request to the server based on a user operation (e.g., a user triggers an operation to view the status report); if the server receives the status report generation request sent by the user terminal, the server feeds back the status information to the user terminal based on the status report generation request, and instructs the user terminal to generate and display a status report to meet user needs.
[0046] In this embodiment, when the user terminal generates a status report, that is, when the user terminal generates the status report based on the status information fed back by the server, it can be specifically that the user terminal pre-sets an interface frame of the status report, and fills the data in the status information into each position corresponding to the data in the interface frame.
[0047] In one possible implementation, the user terminal receives status information generated by the server for requesting feedback based on the status report, and generates and displays a status report based on the fed-back status information. Specifically, the user terminal receives the status information corresponding to the monitoring period generated by the server for requesting feedback based on the status report based on the status report based on user operation (for example, the user triggers an operation to view the status report corresponding to the monitoring period); the user terminal generates the status report corresponding to the monitoring period based on the status information; and the user terminal outputs the status report through a display device for user viewing.
[0048] It should be understood that in a possible implementation manner, the steps performed by the state identification device can be executed on the server, that is, the state identification device is identified as a module of the server.
[0049] In this embodiment, by applying the status reporting method to the status monitoring system, real-time monitoring of the user's status can be achieved. By identifying the status of the user in the user video corresponding to the monitoring period, the status report for characterizing the user's status is generated, so that the status of the user in the monitoring period can be saved in the form of the status report, allowing the user to view the status report at any time to adjust the status.
[0050] Figure 2 Schematic diagram of an application scenario provided by an embodiment of the present application is shown. Figure 2 , the user uses the table and chair described in the figure to study. The camera is used to collect the user video during the user's study period; the state recognition device determines the state monitoring result corresponding to the user during the user's study period based on the user video collected during the user's study period, and sends the state monitoring result to the server; the server generates state information corresponding to the user's study period based on the received state monitoring result; the user terminal sends a state report generation request to the server; the user terminal receives the state information fed back by the server based on the state report generation request, and generates and displays a state report based on the fed back state information, so as to let the user understand the state during the user's study period.
[0051] Figure 3 A data interaction diagram of a status monitoring system provided by an embodiment of the present application is shown; see Figure 3 In the status monitoring system provided in one embodiment of the present application, the status identification device sends the status monitoring result to the server; the user terminal sends a status report generation request to the server; and the server feeds back the status information to the user terminal based on the status report generation request.
[0052] Figure 4 The flowchart of the method provided in the second embodiment of the present application is shown. Figure 4 , relative to Figure 1 In the embodiment, the method S101 provided in this embodiment includes S401 to S404, which are described in detail as follows:
[0053] Furthermore, the state recognition device determines the state monitoring result corresponding to the user in the monitoring period based on the user video collected in the monitoring period, including:
[0054] In S401, the state recognition device divides the user video into a plurality of video segments based on a detection period.
[0055] In this embodiment, the state monitoring result includes: learning state information, sitting posture information and attention information; the state recognition device determines the state monitoring result corresponding to the user in the monitoring period, mainly based on the multiple frames of user images in the user video; in order to simplify the calculation and to realize the function of determining the state monitoring result, the state recognition device needs to pre-set the detection cycle, and divide the user video into multiple video segments based on the detection cycle, and the duration of each video segment is consistent with the cycle duration of the above detection cycle, and then the state recognition device analyzes each video segment separately, so as to subsequently determine the state monitoring result corresponding to the monitoring period. As an example, the duration of the monitoring period can be one hour, and the duration of the detection cycle can be one minute, that is, the state recognition device divides the user video into sixty video segments based on the detection cycle.
[0056] In S402, the state recognition device imports multiple frames of user images in the target video segment into a key point extraction network respectively to obtain key point images corresponding to the user images in each frame.
[0057] In this embodiment, the target video segment is any one of the multiple video segments; the above analysis is performed on each of the video segments, and taking any frame of user image in the target video segment as an example, the state recognition device imports the user image into the key point extraction network to obtain the key point image corresponding to the user image. Exemplarily, the key point extraction network is used to extract key point feature information about the user in the user image; the key point image includes all key point feature information in the user image. The key point extraction network can be a trained key point recognition model for extracting key point recognition about the target object in the image. Exemplarily, the key point extraction network can be specifically an OpenPose human key point recognition model, and the key points include left eye key points, right eye key points, nose key points, left ear key points, right ear key points, left shoulder key points, right shoulder key points, and middle (neck) key points.
[0058] In one possible implementation method, the specific implementation method of the above S402 can be: the key point extraction network extracts feature information about the user's left eye key points, right eye key points, nose key points, left ear key points, right ear key points, left shoulder key points, right shoulder key points and middle (neck) key points in the user image, and obtains the key point image based on the feature information.
[0059] In S403, the state recognition device determines the user state corresponding to the target video segment based on the key point images corresponding to all user images in the target video segment.
[0060] In this embodiment, the user status includes a learning status, a sitting status, and an attention status.
[0061] In a possible implementation, the state recognition device includes a learning recognition unit, a sitting posture recognition unit and an attention recognition unit; the state recognition device determines the user state corresponding to the video segment based on the key point images corresponding to all user images in the video segment, and specifically can be: the learning recognition unit determines the learning state corresponding to the target video segment based on the key point images corresponding to all user images in the target video segment, and the learning state is used to characterize whether the user is in a learning or resting state in the target video segment; the sitting posture recognition unit determines the sitting posture state corresponding to the target video segment based on the key point images corresponding to all user images in the target video segment, and the sitting posture state is used to characterize the sitting posture of the user in the target video segment, such as a standard sitting posture state or a non-standard sitting posture state, and can also be a specific type of sitting posture state; the attention recognition unit determines the attention state corresponding to the target video segment based on the key point images corresponding to all user images in the target video segment, and the attention state is used to characterize whether the user is focused in the target video segment.
[0062] It should be understood that the learning recognition unit, the sitting posture recognition unit and the attention recognition unit can specifically be trained learning recognition models, sitting posture recognition models and attention recognition models, and the learning recognition model, the sitting posture recognition model and the attention recognition model are used to take the multiple key point images corresponding to the target video segment as input, and respectively output the learning state, the sitting posture state and the attention state corresponding to the target video segment.
[0063] In S404, the state recognition device encapsulates the user states of all video segments within the monitoring period to obtain the state monitoring result.
[0064] In this embodiment, a video segment in the user video corresponds to a detection cycle in the monitoring period, and a video segment corresponds to a user state, that is, a user state corresponds to a detection cycle in the monitoring period. The above-mentioned state recognition device encapsulates the user states of all video segments in the monitoring period to obtain the state monitoring result, which can be specifically: the state recognition device encapsulates multiple user states according to the order of each detection cycle in the monitoring period to obtain the state monitoring result corresponding to the monitoring period, and the state monitoring result includes the correspondence between multiple user states and multiple detection cycles in the monitoring period. As an example, the duration of the detection cycle can be one minute, that is, the state monitoring result is used to characterize the user state of the user corresponding to each minute in the monitoring period.
[0065] In this embodiment, the state recognition device imports the user image into a key point extraction network to obtain a key point image, and determines the user state corresponding to the target video segment based on all the key point images corresponding to the target video segment, which can reduce the amount of calculation when determining the user state, so as to improve the efficiency of the state report generation method.
[0066] Figure 5 FIG. 4 is a schematic diagram of a key point extraction network provided in the third embodiment of the present application. Figure 5 , relative to Figure 4 In the embodiment, the method S402 provided in this embodiment includes S501 to S502, which are described in detail as follows:
[0067] Furthermore, the state recognition device imports multiple frames of user images in the target video segment into a key point extraction network to obtain key point images corresponding to the user images in each frame, including:
[0068] See also Figure 5 In this embodiment, the key point extraction network includes a human body recognition layer and a key point recognition layer.
[0069] In S501, the state recognition device imports the target user image into the human body recognition layer, and captures the human body image from the target user image.
[0070] In one possible implementation, the target user image is any user image in the multiple frames of user images; the above-mentioned importing the target user image into the human body recognition layer and capturing the human body image from the target user image may specifically be: preprocessing the target user image, determining human body edge contour information in the target user image based on the preprocessing result, and capturing a human body image including the user's face and upper body in the target user image based on the human body edge contour information.
[0071] The above-mentioned preprocessing of the target user image may specifically be: performing image sharpening processing or other image processing means to highlight the edge contour on the target user image to obtain a preprocessed user image; the above-mentioned determining the human body edge contour information in the target user image based on the preprocessed user image may specifically be: importing the preprocessed user image into a trained human body recognition model for determining the human body edge contour to obtain the human body edge contour information; the above-mentioned intercepting the human body image containing the user's face and upper body in the preprocessed user image based on the human body edge contour information may specifically be: determining the edge contour of the target human body on the preprocessed user image based on the human body edge contour information, and intercepting the area surrounded by the edge contour of the target human body to identify it as the human body image. It should be understood that the human body recognition model may be a model trained in the prior art that can be used to confirm the human body edge contour information in an image containing a human body, which will not be described in detail here.
[0072] In S502, the state recognition device imports the human body image into the key point recognition layer, extracts a plurality of key points from the human body image, and outputs a key point image corresponding to the target user image.
[0073] In this embodiment, the key point recognition layer is used to recognize multiple key points about the user on the human body image, illustratively, the multiple key points include left eye key points, right eye key points, nose key points, left ear key points, right ear key points, left shoulder key points, right shoulder key points and middle (neck) key points. Optionally, the key point extraction layer can specifically be an OpenPose human key point recognition model, and the specific implementation is not repeated here.
[0074] In one possible implementation, the above-mentioned importing the human body image into the key point recognition layer and outputting the key point image corresponding to the target user image can specifically be: extracting feature information about the user's left eye key points, right eye key points, nose key points, left ear key points, right ear key points, left shoulder key points, right shoulder key points and middle (neck) key points in the human body image, and obtaining the key point image based on the feature information. Specifically, each key point is extracted from the human body image, and the position of each key point is associated with the specific type of each key point to obtain the key point image containing the multiple key points.
[0075] In this embodiment, in the key point extraction network, a human body recognition layer is set to remove the feature information of the unimportant background environment in the target user image, and only retain the feature information of the target human body as much as possible, which is equivalent to preprocessing the target user image, reducing the amount of information of the image to be processed in subsequent steps (or reducing the amount of calculation in subsequent steps) so as to improve the efficiency of subsequent determination of the state information; setting the key point recognition layer, on the one hand, the recognition of the key points of different target human bodies (in various postures or wearing various clothes) can be realized, and extracting the key points on the human body image can expand the applicable population of attention detection, and on the other hand, it can further simplify the feature information to be processed subsequently, and only retain the feature information of the key points of the human body image, so as to improve the efficiency of subsequent determination of the state information.
[0076] Figure 6 FIG. 4 shows a flowchart of the implementation of the method provided in the fourth embodiment of the present application. Figure 6 , relative to Figure 4 In the embodiment, the method S403 provided in this embodiment includes S601 to S611, which are described in detail as follows:
[0077] Furthermore, the state recognition device determines the user state corresponding to the target video segment based on the key point images corresponding to all user images in the target video segment, including:
[0078] See also Figure 6 In S601, the state recognition device determines whether the target key point image contains the key points preset by the key point extraction network; if the target key point image contains the key points, the state recognition device recognizes the user image corresponding to the target key point image as a learning image; if the target key point image does not contain the key points, the state recognition device recognizes the user image corresponding to the target key point image as a resting image.
[0079] In this embodiment, the target key point image is any key point image among the key point images corresponding to all the user images; if the target key point image contains at least one key point, it means that the user image corresponding to the target key point image contains the user's body, that is, the user is in a sitting state for learning at this time, then the state recognition device can identify the user image corresponding to the target key point image as the learning image to characterize that the user in the user image is in a learning state; if the target key point image does not contain any key point, it means that the user image corresponding to the target key point image does not contain any part of the user's body, that is, the user is resting and in a state of leaving the seat at this time, then the state recognition device can identify the user image corresponding to the target key point image as the resting image to characterize that the user in the user image is in a resting state.
[0080] In S602, the state recognition device determines the learning state corresponding to the target video segment based on all learning images and all resting images in the target video segment.
[0081] In this embodiment, the learning state includes a first state and a second state, the first state is used to represent that the user is in a resting state; the second state is used to represent that the user is in a learning state; if the number of all learning images in the target video segment is greater than the number of all resting images, the state recognition device determines that the learning state corresponding to the target video segment is learning, which is used to express that the user is in a learning state in the target video segment; if the number of all learning images in the target video segment is less than or equal to the number of all resting images, the state recognition device determines that the learning state corresponding to the target video segment is resting, which is used to express that the user is in a resting state in the target video segment.
[0082] It should be understood that see Figure 4 In the described embodiment, when the state recognition device determines the sitting state and the attention state of the user state, the key point feature information in the key point image is used as a basis, that is, when the learning state represents that the user is in a learning state, the state recognition device is necessary and able to determine the specific values of the sitting state and the attention state of the user state; when the learning state represents that the user is in a resting state, the state recognition device is not necessary and cannot determine the specific values of the sitting state and the attention state of the user state.
[0083] See also Figure 6 , further, if the learning state corresponding to the target video segment is the first state, executing S603 or S604;
[0084] In this embodiment, when the learning state is the first state, the state recognition device does not need to determine the specific values of the sitting state and the attention state of the user state, but in order to keep the program complete and run smoothly, the state recognition device still needs to assign values to the sitting state and the attention state in the user state; the above-mentioned state recognition device assigns values to the sitting state in the user state, including S603; the above-mentioned state recognition device assigns values to the attention state in the user state, including S604.
[0085] In S603, the state recognition device sets the value of the sitting state corresponding to the target video segment to a preset value.
[0086] In this embodiment, preferably, the preset value may be a null value (or may be zero). The value of the sitting state corresponding to the target video segment is a null value, which is used to indicate that the user does not have a sitting state in the target video segment, that is, the user is not in a sitting state in the target video segment.
[0087] In S604, the state recognition device sets the value of the attention state corresponding to the target video segment to a preset value.
[0088] In this embodiment, preferably, the preset value may be a null value (or may be zero). The value of the attention state corresponding to the target video segment is a null value, which is used to indicate that the user does not have an attention state in the target video segment, that is, the user is not learning in the target video segment, let alone focusing or not focusing on learning.
[0089] See also Figure 6 , further, if the learning state corresponding to the target video segment is the second state, executing S605 to S608 or S609 to S611;
[0090] In this embodiment, when the learning state is the second state, the state recognition device is necessary and able to determine the specific values of the sitting state and the attention state of the user state. The state recognition device determines that the sitting state of the user state includes S605~S608, and the state recognition device determines that the attention state of the user state includes S609~S611.
[0091] In S605, the state recognition device imports the target key point image into a sitting posture recognition network to obtain the sub-sitting posture state of the user image corresponding to the target key point image.
[0092] In this embodiment, the sitting posture recognition network is used to determine the sub-sitting posture state according to the feature information in the target key point image; the sitting posture recognition network is a trained classification model, which takes the key point image as input and outputs the sub-sitting posture state as the category of the key point image. In a possible implementation, the state recognition device imports the target key point image into the sitting posture recognition network, extracts the key point feature information of the target key point image, and calculates based on the key point feature information and the internal parameters of the sitting posture recognition network to determine the sub-sitting posture state.
[0093] In S606, the state recognition device determines the sitting state of the target video segment based on the sub-sitting states of all user images in the target video segment.
[0094] In this embodiment, the sub-sitting posture state includes a standard sitting posture and a non-standard sitting posture; the state recognition device determines the sitting posture state of the target video segment based on the sub-sitting posture states of all user images in the video segment, and specifically, it can be: the state recognition device recognizes the specific value of the sub-sitting posture state with the highest proportion among all sub-sitting posture states (standard sitting posture or non-standard sitting posture) as the sitting posture state of the video segment.
[0095] In S607, if the sitting posture state is a non-standard sitting posture, the state recognition device uploads the target video segment to the server, so that the server determines the sitting posture type corresponding to the target video segment based on the target video segment.
[0096] In this embodiment, the server determines the sitting posture type corresponding to the video segment based on the target video segment, which may specifically include: the server imports multiple frames of user images in the target video segment into a key point precise extraction network respectively to obtain key point precise images corresponding to the user images in each frame; the server determines the sitting posture type corresponding to the target video segment based on the key point precise images corresponding to all user images in the target video segment.
[0097] It should be noted that the key point precise image is Figure 3 The difference between the key point image in the embodiment is that the number of key points in the key point precise image is greater than the number of key points in the key point image, so that the server can have more key point feature information to determine the sitting posture type.
[0098] In one possible implementation, the sitting posture types include eight sitting posture types, namely, upright posture, head down, head up, stooped, head tilted to the left, head tilted to the right, body tilted to the left, and body tilted to the right; the sitting posture type value of upright posture is set to avoid the state recognition device from mistakenly identifying the sitting posture state, and the sitting posture type with a value of upright posture is equivalent to the sitting posture state with a value of standard sitting posture state. The above-mentioned server imports multiple frames of the user images in the target video segment into the key point precise extraction network respectively, obtains the key point precise images corresponding to each frame of the user image, and determines the sitting posture type corresponding to the target video segment based on the key point precise images corresponding to all user images in the target video segment. For details, please refer to S402 and S403, which will not be repeated here.
[0099] In S608, the state recognition device receives the sitting posture type sent by the server, and updates the sitting posture state corresponding to the target video segment according to the sitting posture type.
[0100] In this embodiment, the sitting posture types may include eight sitting posture types, namely, upright posture, lowering the head, raising the head, bending the waist, head tilted to the left, head tilted to the right, body tilted to the left, and body tilted to the right.
[0101] In one possible implementation, if the sitting posture type is not a normal posture, the state recognition device receives the sitting posture type sent by the server, and updates the sitting posture state according to the sitting posture type. Specifically, the state recognition device updates the value of the sitting posture state from a non-standard sitting posture state to a combination of a non-standard sitting posture state and the sitting posture type. For example, if the sitting posture type is bending over, the sitting posture state is updated to a non-standard sitting posture state and a bending over state.
[0102] In another possible implementation, if the sitting posture type is a correct posture, the state recognition device receives the sitting posture type sent by the server, and updates the sitting posture state according to the sitting posture type. Specifically, the state recognition device updates the value of the sitting posture state from a non-standard sitting posture state to a standard sitting posture state.
[0103] In this embodiment, the state recognition device determines the sitting state corresponding to the target video segment based on the key point images corresponding to all user images in the target video segment, and the server determines the sitting type corresponding to the target video segment based on the key point precise images corresponding to all user images in the target video segment, wherein the number of key points in the key point precise image is greater than the number of key points in the key point image, and the server can identify the specific sitting type of the user in the target video segment based on more key point feature information, so that the user can make targeted adjustments when adjusting the state according to the status report generated subsequently.
[0104] In S609, the state recognition device imports the target key point image into a posture recognition network to obtain posture information of the user image corresponding to the target key point image.
[0105] In this embodiment, the posture recognition network is an algorithm model trained based on a deep learning algorithm, with the target key point image as input and the posture information as output, and is used to determine the posture information based on the feature information of each key point in the target key point image. The posture information is used to characterize the posture of the user in the user image. Exemplarily, the posture information may include lowering the head, normal, and raising the head, etc., which are used to characterize the posture of the user's body in the user image.
[0106] In one possible implementation, the state recognition device imports the target key point image into a posture recognition network to obtain posture information of the user image corresponding to the target key point image. Specifically, the state recognition device extracts feature information of each key point in the target key point image, and calculates based on the internal parameters of the posture recognition network and the feature information to obtain the posture information.
[0107] In another possible implementation, the posture information may include a head rotation vector and a body rotation vector; the head rotation vector is used to characterize the orientation of the user's head in the user image; the body rotation vector is used to characterize the orientation of the user's chest in the user image; the above-mentioned state recognition device imports the target key point image into a posture recognition network to obtain the posture information of the user image corresponding to the target key point image, which may be specifically: the state recognition device extracts the feature information of each facial key point in the target key point image, and calculates according to the internal parameters of the posture recognition network and the feature information to obtain the head rotation vector; the state recognition device extracts the feature information of each human body key point in the key point image, and calculates according to the internal parameters of the posture recognition network and the feature information to obtain the body rotation vector.
[0108] In S610, the state recognition device determines whether the user image corresponding to the target key point image is recognized as a posture change image based on the posture information of the user image corresponding to the target key point image and the posture information of the previous frame of the user image corresponding to the target key point image.
[0109] In one possible implementation, the state recognition device determines whether the user image is recognized as a posture change image based on the posture information of the user image and the posture information of the previous frame of the user image. Specifically, it can be: if the posture information of the user image is different from the posture information of the previous frame of the user image, the user image is recognized as a posture change image, otherwise it is not recognized.
[0110] In another possible implementation, the posture information may include a head rotation vector and a body rotation vector; the above-mentioned state recognition device determines whether the user image is recognized as a posture change image based on the posture information of the user image and the posture information of the previous frame user image of the user image. Specifically, it can be: if the difference between the head rotation vector of the user image and the previous frame user image of the user image is greater than or equal to a preset threshold, or the difference between the body rotation vector of the user image and the previous frame user image of the user image is greater than or equal to a preset threshold, then the user image is recognized as a changed frame image.
[0111] In S611, the state recognition device determines the attention state corresponding to the target video segment based on all posture change images in the target video segment.
[0112] In this embodiment, the state recognition device determines the attention state corresponding to the target video segment based on all posture change images in the target video segment. Specifically, it can be: the state recognition device determines whether the proportion of all posture change images in the target video segment in the target video segment is greater than or equal to a preset proportion; if the proportion of all posture change images in the target video segment in the target video segment is greater than or equal to a preset proportion, the state recognition device identifies the attention state corresponding to the target video segment as an inattentive state, otherwise it is identified as an attention focused state.
[0113] In this embodiment, the posture information of the user image in two adjacent frames in the target video segment is compared to identify the posture change image in the target video segment, and based on the proportion of all posture change images in the target video segment in the video segment, the attention state of the target video segment is determined, so as to subsequently determine the user state corresponding to the target video segment.
[0114] In this embodiment, only the user state when the user is in a learning state in the target video segment is determined, and the user state when the user is in a resting state in the target video segment is not determined, which can reduce unnecessary calculations.
[0115] Figure 7 FIG. 5 shows a flowchart of the implementation of the method provided in the fifth embodiment of the present application. Figure 7, relative to Figure 4 In the embodiment, the method S102 provided in this embodiment includes S701, which is described in detail as follows:
[0116] In this embodiment, the status information includes: a learning time period, a rest time period, and a fatigue time period.
[0117] Furthermore, the server generates status information corresponding to the monitoring period based on the received status monitoring result, including:
[0118] In S701, the server divides the monitoring period into a learning period, a rest period, and a fatigue period based on the learning status corresponding to each of the video segments in the monitoring period.
[0119] In this embodiment, the server divides the monitoring period into a learning time period, a rest time period and a fatigue time period based on the learning status corresponding to each of the video segments in the monitoring period. Specifically, it can be as follows: all detection cycles corresponding to all video segments with a rest learning status in the monitoring period are identified as the rest time period; all detection cycles corresponding to all video segments with a learning status in the monitoring period are identified as the learning time period; a standard learning duration is pre-set; if there is a continuous and uninterrupted target time period in the learning time period whose duration exceeds the standard learning time period, the partial time period of the target time period that exceeds the standard learning time period is identified as the fatigue time period. Exemplarily, the monitoring period is 10:00 to 11:00, the detection cycle is one minute, and the learning status corresponding to each video segment in the monitoring period is specifically that the learning status corresponding to each minute from 10:00 to 10:40 is learning and the learning status corresponding to each minute from 10:41 to 11:00 is resting. Then the server recognizes 10:00 to 10:40 as the learning time period, and 10:41 to 11:00 as the rest time period; the standard learning time is preset to 30 minutes; then the server recognizes 10:31 to 10:40 as the fatigue time period.
[0120] It should be understood that the status information corresponding to the monitoring period not only includes the distribution of the learning time period, the rest time period and the fatigue time period within the monitoring period and the total duration of each time period, but also includes the number of times the user changes from the standard sitting state to the non-standard sitting state and the number of times the user changes from the concentration state to the inattention state within the monitoring period.
[0121] In this embodiment, the step of generating status information corresponding to the monitoring period is arranged to be executed on the server, which can fully utilize the data processing resources (such as memory, processor) of the server to execute the method provided in this embodiment, thereby improving the efficiency of generating the status information.
[0122] Figure 8 FIG. 6 shows a flowchart of the implementation of the method provided in the sixth embodiment of the present application. Figure 8 , relative to any of the above embodiments, the method S103 provided in this embodiment includes S801, which is described in detail as follows:
[0123] In this embodiment, one user video corresponds to one monitoring period, there may be multiple monitoring periods, and the status report generation request includes at least one monitoring period.
[0124] Further, if the server receives the status report generation request sent by the user terminal, the server feeds back the status information to the user terminal based on the status report generation request, including:
[0125] In S801, if the server receives a status report generation request sent by the user terminal, the server feeds back status information corresponding to the at least one monitoring period to the user terminal.
[0126] In this embodiment, before the server receives the status report generation request sent by the user terminal, the user terminal generates the status report generation request based on a user operation (e.g., an operation in which the user triggers viewing the status report corresponding to at least one of the monitoring periods), and sends the status report generation request to the server. When the server receives the status report generation request sent by the user terminal, the server feeds back to the user terminal the status information corresponding to all monitoring periods included in the status report generation request to meet the user's needs.
[0127] It should be understood that the monitoring period should be a continuous period of time.
[0128] In this embodiment, there may be multiple monitoring periods, and the method provided in this embodiment can monitor users in multiple monitoring periods, and the generated status report meets the user's requirement of viewing status information corresponding to multiple monitoring periods.
[0129] Fig. 9 FIG. 7 shows a flowchart of the implementation of the method provided in the seventh embodiment of the present application. Fig. 9 , relative to Figure 8 In the embodiment, the method S103 provided in this embodiment includes S901 to S902, which are described in detail as follows:
[0130] Furthermore, the user terminal generates and displays a status report, including:
[0131] In S901, the user terminal generates status pages corresponding to respective monitoring time periods based on the fed-back status information corresponding to the at least one monitoring time period.
[0132] In this embodiment, taking a monitoring period as an example, the user terminal generates a status page corresponding to the monitoring period based on the status information corresponding to the monitoring period; the status page includes a pre-set interface frame, and the above-mentioned user terminal generates a status page corresponding to the monitoring period based on the status information corresponding to the monitoring period. Specifically, it can be: the user terminal fills the data in the status information corresponding to the monitoring period into the interface frame to generate the status page corresponding to the monitoring period.
[0133] In S902, the user terminal generates the status report based on the status pages corresponding to all monitoring time periods.
[0134] In this embodiment, the status report includes at least one status page. The status page includes a plurality of data for describing the status of the user during the monitoring period, including the distribution of the learning time period and the rest time period, the distribution of the standard sitting time period and the non-standard sitting time period, the distribution of the concentration time period and the inattention time period, the number of times the user changes from the standard sitting state to the non-standard sitting state, and the number of times the user changes from the concentration state to the inattention state.
[0135] It should be understood that, exemplarily, the status report also includes status data generated based on all status pages, for example, the status data corresponding to a specific time period is generated based on all status pages corresponding to multiple monitoring time periods contained in a specific time period, for example, the status data is the total learning time in a certain day, and the day includes three monitoring time periods, namely 10:00 to 11:00, 14:00 to 15:00 and 20:00 to 21:00, the learning time period in the monitoring time period of 10:00 to 11:00 is 10:00 to 10:40, the learning time period in the monitoring time period of 14:00 to 15:00 is 14:00 to 14:40, and the learning time period in the monitoring time period of 20:00 to 21:00 is 20:00 to 20:40, then the total learning time is 123 minutes (including the boundary minutes themselves).
[0136] To further explain the status report, Fig.10 The seventh embodiment of the present invention provides a status report effect schematic diagram, see Fig.10 , Fig.10 What is displayed is the status page of the monitoring period from 10:00 to 11:00 in the status report. In the display page of the status report, the user can select one of the multiple monitoring periods to be displayed, such as Fig.10 The "1 / 3" in the figure means that there are 3 monitoring time periods on May 7, 2020, and the status page corresponding to the first monitoring time period of the 3 monitoring time periods is currently being displayed, specifically the status page corresponding to the monitoring from 10:00 to 11:00; the total duration in the figure refers to the sum of the durations of the 3 monitoring time periods, and the interval in the figure refers to the earliest starting time to the latest end time of the 3 monitoring time periods. Exemplarily, the 3 monitoring time periods in the figure are 10:00 to 11:00, 14:00 to 15:00, and 20:00 to 21:00, respectively; the "study for 2 hours and 30 minutes" in the figure refers to the sum of the study time in the 3 monitoring time periods, and the "rest for 0 hours and 30 minutes" in the figure refers to the sum of the rest time in the 3 monitoring time periods.
[0137] See also Fig.10 ,like Fig.10 As shown in the bar graph, during the monitoring period from 10:00 to 11:00, the highest column refers to the time period of inattention, the second highest column refers to the time period of incorrect sitting posture, the third highest column refers to the rest time period, the fourth highest column refers to the fatigue time period, and the lowest column refers to the learning time period. Fig.10 The default learning time is 40 minutes. Fig.10 As shown, the status page also includes the number of sitting posture reminders (that is, the number of times the user changes from the standard sitting posture to the non-standard sitting posture), the duration of incorrect sitting posture (the total duration of the incorrect sitting posture time periods), the number of attention reminders (that is, the number of times the user changes from the concentrated state to the inattentive state), the duration of inattention (the total duration of the inattention time periods), the number of fatigue times (the number of occurrences of the above fatigue time periods) and the fatigue duration (the total duration of the above fatigue time periods).
[0138] In this embodiment, the user terminal generates the status page corresponding to each monitoring period based on the user operation to generate the status report. When the user terminal subsequently outputs the status report based on the user operation, the user terminal can output the status page corresponding to the monitoring period that the user wants to view, and the monitoring period that the user wants to view is determined based on the user operation.
[0139] Corresponding to the method described in the above embodiment, Fig.11A schematic diagram of the structure of a status monitoring system provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0140] Reference Fig.11 The state monitoring system includes: a state recognition device, a server and a user terminal; the state recognition device is used to determine the state monitoring result corresponding to the user in the monitoring period based on the user video collected in the monitoring period, and send the state monitoring result to the server; the state monitoring result includes: learning state information, the sitting posture information and the attention information; the server is used to generate the state information corresponding to the monitoring period based on the received state monitoring result; the user terminal is used to send a state report generation request to the server; the user terminal is also used to receive the state information fed back by the server based on the state report generation request, and generate and display the state report based on the fed back state information.
[0141] It should be noted that the information interaction, execution process and other contents between the above-mentioned devices are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0142] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0143] Fig.12 FIG. 1 is a schematic diagram showing the structure of an electronic device provided by an embodiment of the present application. The electronic device may be the aforementioned state recognition device or server, or a combination of the aforementioned state recognition device and server. Fig.12 As shown, the electronic device 12 includes: at least one processor 120 ( Fig.12Only one is shown in the figure) a processor, a memory 121, and a computer program 122 stored in the memory 121 and executable on the at least one processor 120, and when the processor 120 executes the computer program 122, the steps in any of the method embodiments corresponding to the above-mentioned state identification device and / or server are implemented.
[0144] The electronic device 12 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 120 and a memory 121. Those skilled in the art will appreciate that Fig.12 It is only an example of the electronic device 12 and does not constitute a limitation on the electronic device 12. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0145] The processor 120 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0146] In some embodiments, the memory 121 may be an internal storage unit of the electronic device 12, such as a hard disk or memory of the electronic device 12. In other embodiments, the memory 121 may also be an external storage device of the electronic device 12, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 12. Further, the memory 121 may also include both an internal storage unit of the electronic device 12 and an external storage device. The memory 121 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 121 may also be used to temporarily store data that has been output or is to be output.
[0147] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in each method embodiment corresponding to the above-mentioned state identification device and / or server can be implemented.
[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0149] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0150] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0151] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0152] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for generating a status report, applied to a status monitoring system, characterized in that: The state monitoring system comprises: a state identification device, a server and a user terminal; The method comprises: The state recognition device determines the state monitoring result corresponding to the user in the monitoring period based on the user video collected in the monitoring period, and sends the state monitoring result to the server; the state monitoring result includes: learning state information, sitting posture information and attention information; The user video includes multiple frames of user images, and the state recognition device determines the state monitoring result corresponding to the user in the monitoring period based on the user video collected in the monitoring period, including: Importing the multiple frames of user images into a learning state recognition model to identify the learning states corresponding to the multiple frames of user images, and obtaining the learning state information according to the learning states; Importing the multiple frames of user images into a sitting posture recognition model to identify the sitting posture states corresponding to the multiple frames of user images, and obtaining the sitting posture state information according to the sitting posture states; Importing the multiple frames of user images into an attention recognition model to identify attention states corresponding to the multiple frames of user images, and obtaining the attention state information according to the attention states; The server generates status information corresponding to the monitoring period based on the received status monitoring result; If the server receives the status report generation request sent by the user terminal, the server feeds back the status information to the user terminal based on the status report generation request, and instructs the user terminal to generate and display a status report; The state recognition device determines the state monitoring result corresponding to the user in the monitoring period based on the user video collected in the monitoring period, including: The state recognition device divides the user video into a plurality of video segments based on a detection period; The state recognition device imports multiple frames of user images in a target video segment into a key point extraction network respectively to obtain key point images corresponding to the user images in each frame, and the target video segment is any one of the multiple video segments; The state recognition device determines the user state corresponding to the target video segment based on the key point images corresponding to all user images in the target video segment; the user state includes a learning state, a sitting state, and an attention state; The state recognition device encapsulates the user states of all video segments within the monitoring period to obtain the state monitoring result; The key point extraction network includes a human recognition layer and a key point recognition layer; the state recognition device imports multiple frames of user images in the target video segment into the key point extraction network respectively to obtain key point images corresponding to the user images in each frame, including: The state recognition device imports a target user image into the human body recognition layer, and captures a human body image from the target user image, wherein the target user image is any user image in the multiple frames of user images; The state recognition device imports the human body image into the key point recognition layer, extracts a plurality of key points on the human body image, and outputs a key point image corresponding to the target user image.
2. The method according to claim 1, characterized in that The state recognition device determines the user state corresponding to the target video segment based on the key point images corresponding to all user images in the target video segment, including: The state recognition device determines whether the target key point image contains the key points preset by the key point extraction network, and the target key point image is any key point image among the key point images corresponding to all the user images; If the target key point image contains the key point, the state recognition device recognizes the user image corresponding to the target key point image as a learning image; if the target key point image does not contain the key point, the state recognition device recognizes the user image corresponding to the target key point image as a resting image; The state recognition device determines the learning state corresponding to the target video segment based on all learning images and all resting images in the target video segment; the learning state includes a first state and a second state, the first state is used to represent that the user is in a resting state; the second state is used to represent that the user is in a learning state.
3. The method according to claim 2, characterized in that The state recognition device determines the user state corresponding to the target video segment based on the key point images corresponding to all user images in the target video segment, and further includes: If the learning state corresponding to the target video segment is the first state, the state recognition device sets the value of the sitting state corresponding to the target video segment to a preset value; If the learning state corresponding to the target video segment is the second state, the state recognition device imports the target key point image into the sitting posture recognition network to obtain the sub-sitting posture state of the user image corresponding to the target key point image; The state recognition device determines the sitting state of the target video segment based on the sub-sitting states of all user images in the target video segment; If the sitting posture state is a non-standard sitting posture, the state recognition device uploads the target video segment to the server, so that the server determines the sitting posture type corresponding to the target video segment based on the target video segment; The state recognition device receives the sitting posture type sent by the server, and updates the sitting posture state corresponding to the target video segment according to the sitting posture type.
4. The method according to claim 2, characterized in that The state recognition device determines the user state corresponding to the target video segment based on the key point images corresponding to all user images in the target video segment, and further includes: If the learning state corresponding to the target video segment is the first state, the state recognition device sets the value of the attention state corresponding to the target video segment to a preset value; If the learning state corresponding to the target video segment is the second state, the state recognition device imports the target key point image into a posture recognition network to obtain posture information of the user image corresponding to the target key point image; The state recognition device determines whether the user image corresponding to the target key point image is recognized as a posture change image based on the posture information of the user image corresponding to the target key point image and the posture information of the previous frame of the user image corresponding to the target key point image; The state recognition device determines the attention state corresponding to the target video segment based on all posture change images in the target video segment.
5. The method according to claim 1, characterized in that The state information includes: a learning time period, a rest time period, and a fatigue time period; the server generates state information corresponding to the monitoring time period based on the received state monitoring result, including: The server divides the monitoring period into a learning time period, a rest time period and a fatigue time period based on the learning status corresponding to each of the video segments in the monitoring period.
6. A status monitoring system, characterized in that: The state monitoring system comprises: a state identification device, a server and a user terminal; The state recognition device is used to determine the state monitoring result corresponding to the user in the monitoring period based on the user video collected in the monitoring period, and send the state monitoring result to the server; the state monitoring result includes: learning state information, sitting posture information and attention information; the user video includes multiple frames of user images, and the state recognition device determines the state monitoring result corresponding to the user in the monitoring period based on the user video collected in the monitoring period, including: Importing the multiple frames of user images into a learning state recognition model to identify the learning states corresponding to the multiple frames of user images, and obtaining the learning state information according to the learning states; Importing the multiple frames of user images into a sitting posture recognition model to identify the sitting posture states corresponding to the multiple frames of user images, and obtaining the sitting posture state information according to the sitting posture states; Importing the multiple frames of user images into an attention recognition model to identify attention states corresponding to the multiple frames of user images, and obtaining the attention state information according to the attention states; The server is used to generate status information corresponding to the monitoring period based on the received status monitoring result; The server is further configured to, if receiving a status report generation request sent by the user terminal, feedback the status information to the user terminal based on the status report generation request, and instruct the user terminal to generate and display a status report; The state recognition device is further used to determine the state monitoring result corresponding to the user in the monitoring period based on the user video collected in the monitoring period, including: The state recognition device divides the user video into a plurality of video segments based on a detection period; The state recognition device imports multiple frames of user images in a target video segment into a key point extraction network respectively to obtain key point images corresponding to the user images in each frame, and the target video segment is any one of the multiple video segments; The state recognition device determines the user state corresponding to the target video segment based on the key point images corresponding to all user images in the target video segment; the user state includes a learning state, a sitting state, and an attention state; The state recognition device encapsulates the user states of all video segments within the monitoring period to obtain the state monitoring result; The state recognition device is also used for the key point extraction network to include a human recognition layer and a key point recognition layer; the state recognition device imports multiple frames of user images in the target video segment into the key point extraction network respectively to obtain key point images corresponding to the user images in each frame, including: The state recognition device imports a target user image into the human body recognition layer, and captures a human body image from the target user image, wherein the target user image is any user image in the multiple frames of user images; The state recognition device imports the human body image into the key point recognition layer, extracts a plurality of key points on the human body image, and outputs a key point image corresponding to the target user image.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method executed by the state recognition device according to any one of claims 1 to 5 and / or the method executed by the server are implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method executed by the state recognition device according to any one of claims 1 to 5 and / or the method executed by the server are implemented.
Citation Information
Patent Citations
Driving state monitoring method and device, driver monitoring system, and vehicle
CN109937152A
Intelligent table with state monitoring function, monitoring system server and monitoring method
CN110334697A
Online teaching monitoring method and device, electronic device and medium
CN110796005A
Fatigue driving recognition method, device and system, vehicle-mounted terminal and server
CN110855934A
Model construction method, photographing method, device, storage medium, and terminal
WO2019120032A1
