Psychological counseling content recommendation method and device
By collecting video clips and facial expression analysis of students while they are studying, we can identify abnormal mental states and recommend suitable counseling content, solving the timely discovery and counseling problems of students' psychological problems, and improving the pertinence and effectiveness of psychological counseling.
Patent Information
- Application Number
- CN202111228249.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-21
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-10-21
AI Technical Summary
Students are prone to psychological problems when facing complex social environments. It is difficult to detect and provide appropriate psychological counseling in time with existing technology, which affects physical and mental health and academic performance.
By collecting video clips of students studying, the facial expression analysis model is used to identify mental states, determine the duration of abnormal mental states, and recommend appropriate psychological counseling content based on the duration, including games, online courses, or psychological counseling services.
Timely detection of students' abnormal mental states and recommendations of targeted counseling content based on severity improves the effectiveness and pertinence of psychological counseling.
Smart Images

Figure CN113918818B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent education, and in particular to a method and device for recommending psychological counseling content. Background Art
[0002] With the development of economy and the progress of society, people's concepts are constantly updated, and the social environment is becoming more and more complex. When students face such a complex social environment and have great learning pressure, they are prone to various psychological problems. If they cannot be discovered in time and correct psychological counseling is not carried out, it will have a serious impact on students' physical and mental health and academic performance. Based on this, it is urgent to propose a psychological counseling content recommendation method to recommend appropriate psychological counseling content for different students. Summary of the invention
[0003] The embodiment of the present application provides a method and device for recommending psychological counseling content, which can recommend psychological counseling content suitable for target users with abnormal psychological states. The technical solution is as follows:
[0004] On the one hand, a method for recommending psychological counseling content is provided, the method comprising:
[0005] Acquire a video segment of a target user learning, collected in each of a plurality of time periods, each video segment including a facial image of the target user;
[0006] determining at least one psychological state of the target user when learning based on the facial images included in the plurality of video segments;
[0007] If there is an abnormal psychological state among the at least one psychological state, obtaining the existence duration of each abnormal psychological state in each video segment;
[0008] Psychological counseling content is recommended to the target user according to the existence duration of each abnormal psychological state in each video segment.
[0009] Optionally, determining at least one psychological state of the target user during learning based on the facial images included in the multiple video segments includes:
[0010] Recognizing facial expressions in a plurality of facial images of a target user included in each video segment by using a facial expression analysis model;
[0011] Determine the psychological state corresponding to each facial image in each video segment based on the recognized facial expression in each facial image in each video segment;
[0012] The psychological state corresponding to each facial image in each video segment is used as at least one psychological state of the target user during learning.
[0013] Optionally, obtaining the existence duration of each abnormal psychological state in each video segment includes:
[0014] According to the facial image corresponding to the first abnormal psychological state in each video segment, the existence duration of the first abnormal psychological state in the corresponding video segment is determined, and the first abnormal psychological state is any one of the at least one abnormal psychological state.
[0015] Optionally, the recommending psychological counseling content to the target user according to the duration of each abnormal psychological state in each video segment includes:
[0016] Obtain the average duration of each abnormal psychological state when multiple users are learning in the time period corresponding to each video segment;
[0017] Determine the fluctuation value of each abnormal psychological state of the target user according to the existence duration of each abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment;
[0018] If there is a fluctuation value greater than a first threshold value among the determined fluctuation values, psychological counseling content is recommended to the target user according to the determined fluctuation value.
[0019] Optionally, determining the fluctuation value of each abnormal psychological state of the target user according to the existence duration of each abnormal psychological state in each video segment and the average existence duration in a time period corresponding to the corresponding video segment includes:
[0020] According to the existence duration of the first abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment, the fluctuation value of the first abnormal psychological state of the target user is determined by the following formula, wherein the first abnormal psychological state is any one of the at least one abnormal psychological state;
[0021]
[0022] Wherein, n is the number of video segments collected during the plurality of time periods when the target user is learning, i represents the i-th video segment among the n video segments, and x i is the duration of the first abnormal psychological state in the i-th video segment, and μ i is the average duration of the first abnormal mental state in the time period corresponding to the i-th video segment.
[0023] Optionally, the recommending psychological counseling content to the target user according to the determined fluctuation value includes:
[0024] Obtain the maximum fluctuation value from the determined fluctuation values;
[0025] If the maximum fluctuation value is less than a second threshold, recommending to the target user game-related coaching content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value;
[0026] If the maximum fluctuation value is less than the third threshold value and not less than the second threshold value, recommending to the target user the online course tutoring content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value;
[0027] If the maximum fluctuation threshold is not less than the third threshold, the psychological counseling service information corresponding to the abnormal psychological state corresponding to the maximum fluctuation value is recommended to the target user.
[0028] Optionally, the recommending psychological counseling content to the target user according to the determined fluctuation value includes:
[0029] Determine the recommended content type according to the determined fluctuation value;
[0030] Obtaining a cure rate matrix of each sub-type of psychological counseling content included in the recommended content type for multiple abnormal psychological states;
[0031] According to the determined fluctuation value, the state fluctuation matrix of the abnormal psychological state of the target user is determined, and the state fluctuation matrix is [β1, β2, ..., β m ] T ,in, The i is an integer not less than 1 and not greater than m, the m is the number of types of abnormal psychological states of the target user, and the G i is the fluctuation value of the i-th abnormal psychological state of the target user;
[0032] Determining the recommendation degree corresponding to each sub-type of psychological counseling content according to the cure rate matrix of each sub-type of psychological counseling content for multiple abnormal psychological states and the state fluctuation matrix of the abnormal psychological state of the target user;
[0033] The psychological counseling content is recommended to the target user according to the recommendation degree corresponding to each sub-type of the psychological counseling content.
[0034] Optionally, the step of obtaining a cure rate matrix of each subtype of the psychological counseling content included in the recommended content type for multiple abnormal psychological states includes:
[0035] Obtaining a cure score of each sub-type of psychological counseling content included in the recommended content type for abnormal psychological states of multiple historical users;
[0036] According to the cure scores of each sub-type of psychological counseling content for abnormal psychological states of multiple historical users, a cure rate matrix of the corresponding sub-type of psychological counseling content for multiple abnormal psychological states is determined.
[0037] Optionally, the recommended content type is one of games, online courses and psychological counseling services.
[0038] In another aspect, a device for recommending psychological counseling content is provided, the device comprising a processor, the processor being configured to:
[0039] Acquire a video segment of a target user learning, collected in each of a plurality of time periods, each video segment including a facial image of the target user;
[0040] determining at least one psychological state of the target user when learning based on the facial images included in the plurality of video segments;
[0041] If there is an abnormal psychological state among the at least one psychological state, obtaining the existence duration of each abnormal psychological state in each video segment;
[0042] Psychological counseling content is recommended to the target user according to the existence duration of each abnormal psychological state in each video segment.
[0043] Optionally, the processor is configured to:
[0044] Recognizing facial expressions in a plurality of facial images of a target user included in each video segment by using a facial expression analysis model;
[0045] Determine the psychological state corresponding to each facial image in each video segment based on the recognized facial expression in each facial image in each video segment;
[0046] The psychological state corresponding to each facial image in each video segment is used as at least one psychological state of the target user during learning.
[0047] Optionally, the processor is configured to:
[0048] According to the facial image corresponding to the first abnormal psychological state in each video segment, the existence duration of the first abnormal psychological state in the corresponding video segment is determined, and the first abnormal psychological state is any one of the at least one abnormal psychological state.
[0049] Optionally, the processor is configured to:
[0050] Obtain the average duration of each abnormal psychological state when multiple users are learning in the time period corresponding to each video segment;
[0051] Determine the fluctuation value of each abnormal psychological state of the target user according to the existence duration of each abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment;
[0052] If there is a fluctuation value greater than a first threshold value among the determined fluctuation values, psychological counseling content is recommended to the target user according to the determined fluctuation value.
[0053] Optionally, the processor is configured to:
[0054] According to the existence duration of the first abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment, the fluctuation value of the first abnormal psychological state of the target user is determined by the following formula, wherein the first abnormal psychological state is any one of the at least one abnormal psychological state;
[0055]
[0056] Wherein, n is the number of video segments collected during the plurality of time periods when the target user is learning, i represents the i-th video segment among the n video segments, and x i is the duration of the first abnormal psychological state in the i-th video segment, and μ i is the average duration of the first abnormal mental state in the time period corresponding to the i-th video segment.
[0057] Optionally, the processor is configured to:
[0058] Obtain the maximum fluctuation value from the determined fluctuation values;
[0059] If the maximum fluctuation value is less than a second threshold, recommending to the target user game-related coaching content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value;
[0060] If the maximum fluctuation value is less than the third threshold value and not less than the second threshold value, recommending to the target user the online course tutoring content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value;
[0061] If the maximum fluctuation threshold is not less than the third threshold, the psychological counseling service information corresponding to the abnormal psychological state corresponding to the maximum fluctuation value is recommended to the target user.
[0062] Optionally, the processor is configured to:
[0063] Determine the recommended content type according to the determined fluctuation value;
[0064] Obtaining a cure rate matrix of each sub-type of psychological counseling content included in the recommended content type for multiple abnormal psychological states;
[0065] According to the determined fluctuation value, the state fluctuation matrix of the abnormal psychological state of the target user is determined, and the state fluctuation matrix is [β1, β2, ..., β m ] T ,in, The i is an integer not less than 1 and not greater than m, the m is the number of types of abnormal psychological states of the target user, and the G i is the fluctuation value of the i-th abnormal psychological state of the target user;
[0066] Determining the recommendation degree corresponding to each sub-type of psychological counseling content according to the cure rate matrix of each sub-type of psychological counseling content for multiple abnormal psychological states and the state fluctuation matrix of the abnormal psychological state of the target user;
[0067] The psychological counseling content is recommended to the target user according to the recommendation degree corresponding to each sub-type of the psychological counseling content.
[0068] Optionally, the processor is configured to:
[0069] Obtaining a cure score of each sub-type of psychological counseling content included in the recommended content type for abnormal psychological states of multiple historical users;
[0070] According to the cure scores of each sub-type of psychological counseling content for abnormal psychological states of multiple historical users, a cure rate matrix of the corresponding sub-type of psychological counseling content for multiple abnormal psychological states is determined.
[0071] Optionally, the recommended content type is one of games, online courses and psychological counseling services.
[0072] On the other hand, a psychological counseling content recommendation device is provided, the device comprising:
[0073] A first acquisition module is used to acquire a video segment of a target user learning collected in each of a plurality of time periods, each video segment including a facial image of the target user;
[0074] a determination module, configured to determine at least one psychological state of the target user when learning based on the facial images included in the plurality of video segments;
[0075] A second acquisition module is used for acquiring the existence time of each abnormal psychological state in each video segment if there is an abnormal psychological state in the at least one psychological state;
[0076] The recommendation module is used to recommend psychological counseling content to the target user according to the existence time of each abnormal psychological state in each video segment.
[0077] Optionally, the determination module is mainly used for:
[0078] Recognizing facial expressions in a plurality of facial images of a target user included in each video segment by using a facial expression analysis model;
[0079] Determine the psychological state corresponding to each facial image in each video segment based on the recognized facial expression in each facial image in each video segment;
[0080] The psychological state corresponding to each facial image in each video segment is used as at least one psychological state of the target user during learning.
[0081] Optionally, the second acquisition module is mainly used for:
[0082] According to the facial image corresponding to the first abnormal psychological state in each video segment, the existence duration of the first abnormal psychological state in the corresponding video segment is determined, and the first abnormal psychological state is any one of the at least one abnormal psychological state.
[0083] Optionally, the recommendation module is mainly used for:
[0084] Obtain the average duration of each abnormal psychological state when multiple users are learning in the time period corresponding to each video segment;
[0085] Determine the fluctuation value of each abnormal psychological state of the target user according to the existence duration of each abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment;
[0086] If there is a fluctuation value greater than a first threshold value among the determined fluctuation values, psychological counseling content is recommended to the target user according to the determined fluctuation value.
[0087] Optionally, the recommendation module is specifically used for:
[0088] According to the existence duration of the first abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment, the fluctuation value of the first abnormal psychological state of the target user is determined by the following formula, wherein the first abnormal psychological state is any one of the at least one abnormal psychological state;
[0089]
[0090] Wherein, n is the number of video segments collected during the plurality of time periods when the target user is learning, i represents the i-th video segment among the n video segments, and x i is the duration of the first abnormal psychological state in the i-th video segment, and μ iis the average duration of the first abnormal mental state in the time period corresponding to the i-th video segment.
[0091] Optionally, the recommendation module is specifically used for:
[0092] Obtain the maximum fluctuation value from the determined fluctuation values;
[0093] If the maximum fluctuation value is less than a second threshold, recommending to the target user game-related coaching content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value;
[0094] If the maximum fluctuation value is less than the third threshold value and not less than the second threshold value, recommending to the target user the online course tutoring content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value;
[0095] If the maximum fluctuation threshold is not less than the third threshold, the psychological counseling service information corresponding to the abnormal psychological state corresponding to the maximum fluctuation value is recommended to the target user.
[0096] Optionally, the recommendation module is specifically used for:
[0097] Determine the recommended content type according to the determined fluctuation value;
[0098] Obtaining a cure rate matrix of each sub-type of psychological counseling content included in the recommended content type for multiple abnormal psychological states;
[0099] According to the determined fluctuation value, the state fluctuation matrix of the abnormal psychological state of the target user is determined, and the state fluctuation matrix is [β1, β2, ..., β m ] T ,in, The i is an integer not less than 1 and not greater than m, the m is the number of types of abnormal psychological states of the target user, and the G i is the fluctuation value of the i-th abnormal psychological state of the target user;
[0100] Determining the recommendation degree corresponding to each sub-type of psychological counseling content according to the cure rate matrix of each sub-type of psychological counseling content for multiple abnormal psychological states and the state fluctuation matrix of the abnormal psychological state of the target user;
[0101] The psychological counseling content is recommended to the target user according to the recommendation degree corresponding to each sub-type of the psychological counseling content.
[0102] Optionally, the recommendation module is specifically used for:
[0103] Obtaining a cure score of each sub-type of psychological counseling content included in the recommended content type for abnormal psychological states of multiple historical users;
[0104] According to the cure scores of each sub-type of psychological counseling content for abnormal psychological states of multiple historical users, a cure rate matrix of the corresponding sub-type of psychological counseling content for multiple abnormal psychological states is determined.
[0105] Optionally, the recommended content type is one of games, online courses and psychological counseling services.
[0106] On the other hand, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a computer, the steps of the above-mentioned method for recommending psychological counseling content are implemented.
[0107] On the other hand, a computer program product containing instructions is provided, which, when executed on a computer, enables the computer to execute the steps of the above-mentioned method for recommending psychological counseling content.
[0108] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0109] In an embodiment of the present application, by collecting multiple video segments of the target user when studying, and determining whether the target user has an abnormal psychological state when studying and the duration of each abnormal psychological state based on the facial image of the target user in the multiple video segments, not only can the abnormal psychological state of the target user when studying be discovered in a timely manner, but also the severity of the abnormal psychological state of the target user can be determined based on the duration of each abnormal psychological state, thereby specifically recommending psychological counseling content that is more suitable for the target user himself to the target user, thereby improving the effect of psychological counseling. BRIEF DESCRIPTION OF THE DRAWINGS
[0110] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments 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 creative work.
[0111] Figure 1 This is a system architecture diagram involved in a psychological counseling content recommendation method provided in an embodiment of the present application;
[0112] Figure 2 is a flow chart of a method for recommending psychological counseling content provided by an embodiment of the present application;
[0113] Figure 3 is a schematic diagram of a mapping relationship between facial expression and psychological state provided in an embodiment of the present application;
[0114] Figure 4A statistical graph of the duration of a first abnormal psychological state of a target user in a plurality of video segments provided in an embodiment of the present application;
[0115] Figure 5 It is a statistical graph of the average existence time of the first abnormal psychological state of multiple users in a corresponding time period provided by an embodiment of the present application;
[0116] Figure 6 It is a structural diagram of a psychological counseling content recommendation device provided in an embodiment of the present application;
[0117] Figure 7 It is a structural diagram of a server for recommending psychological counseling content provided in an embodiment of the present application. DETAILED DESCRIPTION
[0118] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0119] Before explaining the embodiments of the present application in detail, the application scenarios involved in the embodiments of the present application are first explained.
[0120] The psychological counseling content recommendation method provided in the embodiment of the present application can be used to test whether the target user has an abnormal psychological state when studying in a home or school scenario. If so, the corresponding psychological counseling content is recommended for the target user. For example, in the scenario of completing homework, multiple video segments of the target user studying can be collected by an image acquisition device, and the collected multiple video segments are sent to the server. Correspondingly, the server receives multiple video segments of the target user studying, and uses the method of the embodiment of the present application to determine whether the target user has an abnormal psychological state and the duration of each abnormal psychological state based on the facial expressions of the target user when studying in the multiple video segments. After that, the corresponding psychological counseling content is recommended to the target user based on the duration of each abnormal psychological state.
[0121] It should be noted that the above are only some exemplary application scenarios given in the embodiments of the present application, and do not constitute a limitation on the application scenarios of the psychological counseling content recommendation method provided in the embodiments of the present application.
[0122] Figure 1 1 is a system architecture diagram of a method for recommending psychological counseling content provided in an embodiment of the present application. Figure 1As shown, the system includes a server 101 and an image acquisition device 102, wherein the image acquisition device 102 can be deployed in the user's learning place to collect the user's facial image when learning, for example, the image acquisition device 102 can be deployed in the user's residence, the user's classroom or other places where the user can study. Moreover, the image acquisition device 102 and the server 101 are connected via a wired network or a wireless network.
[0123] The image acquisition device 102 acquires a plurality of video segments of the user while studying, and sends the acquired plurality of video segments to the server 101. Accordingly, the server 101 receives the plurality of video segments acquired by the image acquisition device 102, and adopts the method of the embodiment of the present application to determine whether the user has an abnormal psychological state according to the facial expressions of the user while studying in the plurality of video segments. If so, the corresponding psychological counseling content is recommended to the user according to the existence duration of each abnormal psychological state.
[0124] Among them, the server 101 can be a single server, a server cluster composed of several servers, or a cloud computing service center; the image acquisition device 102 can be a device with image acquisition function such as a face camera, a smart camera, and an ordinary camera, or the image acquisition device 102 can also be an intelligent device equipped with a camera or a camera component for learning, such as a tablet computer, a smart phone, etc.
[0125] Next, the psychological counseling content recommendation method provided in the embodiment of the present application is introduced.
[0126] Figure 2 This is a flowchart of a method for recommending psychological counseling content provided by an embodiment of the present application. This method can be applied to Figure 1 As shown in the server. Figure 2 As shown, the method comprises the following steps:
[0127] Step 201: Obtain video segments of a target user learning, collected in each of a plurality of time periods, each video segment containing a facial image of the target user.
[0128] In the embodiment of the present application, the image acquisition device can be deployed in the learning place of the target user, and the video images of the target user's face can be collected in multiple time periods when the target user is learning, so as to obtain multiple video segments when the target user is learning, and the obtained multiple video segments are sent to the server, and accordingly, the server receives the multiple video segments when the target user is learning collected by the image acquisition device, wherein each video segment contains the target user's facial image.
[0129] The target user's learning place may be the target user's residence, the target user's classroom, library, or other places where the target user can study. For example, when the target user's learning place is the target user's residence, the image acquisition device may be deployed on the target user's desk to acquire video images of the target user studying when the target user is studying.
[0130] Among them, when collecting the video image of the target user when studying, the target user or the associated user of the target user can set the self-study time period on the image acquisition device. Accordingly, the image acquisition device can collect the video image of the target user according to the self-study time period. For example, the self-study time period can be set to 9:00 to 10:00 on the image acquisition device. Alternatively, the target user or the associated user of the target user can set the self-study time on the image acquisition device, and trigger the start of image acquisition. The image acquisition device can collect the video image of the target user according to the self-study time period. For example, the acquisition time period can be set to 10 minutes, or it can be set to 30 minutes. In addition, the acquisition time period set each time can be the same or different, and the embodiments of the present application do not limit this.
[0131] Step 202: Determine at least one psychological state of the target user when learning based on the facial images included in the plurality of video segments.
[0132] The server can use a facial expression analysis model to identify facial expressions in multiple facial images of the target user included in each video segment, and determine the psychological state corresponding to each facial image in each video segment based on the identified facial expressions in each facial image in each video segment; and use the psychological state corresponding to each facial image in each video segment as at least one psychological state that occurs in the target user during learning.
[0133] Among them, the server can input the facial image of the target user included in each of the multiple video segments of the received target user into the facial expression analysis model in sequence, and the facial expression analysis model detects and extracts the muscle features of the target user's face in each facial image, and recognizes the facial expressions in all facial images in sequence according to the muscle features of the target user's face, thereby outputting the facial expression of the target user corresponding to each facial image.
[0134] In an embodiment of the present application, different facial muscle features correspond to different facial expressions, as shown in Table 1 below. For example, when the facial expression analysis model detects that the muscle features in the facial image of the target user in a frame of video image are tightened muscles around the eyes, protruding jawbones, and upward pull of the corners of the mouth, the facial expression of the target user corresponding to the facial image is output as joy.
[0135] Table 1 Facial expressions of target users corresponding to different facial muscle features
[0136] Facial muscle features Facial expressions The muscles around the eyes tighten, the jawbone protrudes, and the corners of the mouth are pulled upward joy Eyes widened, eyebrows raised, mouth open surprise Eyes wide open, brows furrowed, mouth tightly closed anger Stretch the muscles around the eyes, relax the eyebrows, and close the mouth indifferent Eyebrows slightly wrinkled, mouth tightly closed, mouth corners pulled down disgust Eyes widened, nostrils flared, lips tightly closed fear Protruding eyebrows and sunken mouth corners sad
[0137] Among them, after obtaining the facial expression in each facial image in each video segment, the server can obtain the psychological state corresponding to each facial image in each video segment from the mapping relationship between facial expression and psychological state, and use the obtained psychological state as at least one psychological state that occurs in the target user during learning.
[0138] Exemplary, reference Figure 3 , the server can Figure 3 The mapping relationship between facial expressions and psychological states shown in the figure can be used to obtain the psychological state corresponding to each facial image in each video segment of the target user. For example, when the server obtains the facial expression of the target user's facial image as joy or surprise through the facial expression analysis model, the psychological state of the target user corresponding to the facial image is serious learning; when the server obtains the facial expression of the target user's facial image as fear through the facial expression analysis model, the psychological state of the target user corresponding to the facial image is resistance to learning.
[0139] It should be noted that, after the server determines the psychological states corresponding to all facial images in each video segment from multiple video segments in turn according to the correspondence between facial expressions and psychological states, it deduplicates the identical psychological states in the obtained psychological states and uses the deduplicated psychological states as the psychological states that occur when the target user is learning.
[0140] Exemplarily, after obtaining the psychological state corresponding to the first frame of facial image in the first video segment of multiple video segments, the server stores the psychological state in the psychological state library of the target user. For facial images other than the first frame of facial image in the first video segment, for example, the second frame of facial image in the first video segment or the first frame of facial image in the second video segment, after determining the psychological state corresponding to the facial image, the server first searches the psychological state library of the target user to see whether the psychological state exists. If so, the psychological state is not stored, and the server continues to determine the psychological state corresponding to the next frame of facial image. If not, the psychological state is stored in the psychological state library of the target user, and the psychological state library of the target user is updated, and then the psychological state corresponding to the next frame of facial image is determined. The above steps are repeated until the psychological state corresponding to the last frame of facial image in multiple video segments of the target user is determined, and the psychological state included in the psychological state library after the last update is used as the psychological state of the target user during learning.
[0141] Step 203: If there is an abnormal psychological state in at least one psychological state, the existence duration of each abnormal psychological state in each video segment is obtained.
[0142] After obtaining the psychological state of the target user using the above method, the server determines whether there is an abnormal psychological state in the psychological state of the target user. If there is an abnormal psychological state in the psychological state of the target user, the server obtains the existence duration of each abnormal psychological state in each video segment.
[0143] Among them, the abnormal psychological state may be inattention, great psychological pressure, resistance to learning or other abnormal psychological states, which are not limited in the embodiments of the present application.
[0144] Exemplarily, taking any one of at least one abnormal psychological state of the target user as an example, for the sake of convenience, it is called the first abnormal psychological state. The server determines the existence duration of the first abnormal psychological state in the corresponding video segment based on the facial image corresponding to the first abnormal psychological state in each video segment.
[0145] For example, for any video segment, the server can determine the time period in which the first abnormal psychological state appears in the video segment based on the acquisition time of the facial image in which the corresponding psychological state in the video segment is the first abnormal psychological state, and use the sum of the duration of all time periods in which the first abnormal psychological state appears in the video segment as the existence duration of the first abnormal psychological state in the video segment.
[0146] Step 204: recommend psychological counseling content to the target user according to the duration of each abnormal psychological state in each video segment.
[0147] After obtaining the existence duration of each abnormal psychological state of the target user when studying in each video segment, the server obtains the average existence duration of each abnormal psychological state of multiple users when studying in the time period corresponding to each video segment; according to the existence duration of each abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment, the fluctuation value of each abnormal psychological state of the target user is determined; if there is a fluctuation value greater than a first threshold among the determined fluctuation values, psychological counseling content is recommended to the target user according to the determined fluctuation value.
[0148] Exemplarily, for the convenience of explanation, any one of the multiple video segments of the target user is referred to as the first video segment, and the time period corresponding to the first video segment is referred to as the first time period. After receiving the first video segment of the target user when learning collected in the first time period, the server can also receive multiple video segments of other multiple users when learning collected in the first time period, and obtain the existence time of each abnormal psychological state of each user from the multiple video segments when learning. Afterwards, the average existence time of each abnormal psychological state of the multiple users is calculated to obtain the average existence time of each abnormal psychological state of the multiple users in the first time period. Among them, the method of obtaining the existence time of each abnormal psychological state of each user from the video segments when the multiple users are learning can refer to the method of obtaining the existence time of each abnormal psychological state of the target user, and the embodiment of the present application will not be repeated here.
[0149] It should be noted that the target user and multiple users may be students of the same grade, and when obtaining video segments of the target user studying within a certain time period and video segments of multiple users studying within the time period, the difficulty level of the learning content when the multiple users are studying is similar to the difficulty level of the learning content when the target user is studying.
[0150] For example, refer to Figure 4 and Figure 5 , Figure 4 is the duration of the target user’s first abnormal psychological state in each of the 10 video segments, which are 20, 25, 23, 26, 33, 30, 26, 31, 32, and 26 minutes respectively. Figure 5 is the average existence duration of the first abnormal mental state of the 20 users in each of the corresponding 10 time periods, which are 21, 23, 20, 21, 18, 20, 19, 24, 24, and 23 minutes, respectively.
[0151] After obtaining the existence duration of each abnormal psychological state of the target user when learning in each video segment and the average existence duration of each abnormal psychological state when multiple users learn in the time period corresponding to each video segment, for any abnormal psychological state, the server can calculate the existence duration of the abnormal psychological state of the target user in each video segment and the standard deviation of the average existence duration of the abnormal psychological state when multiple users learn in the time period corresponding to each video segment by the following formula (1), and use the calculated standard deviation as the fluctuation value of the abnormal psychological state.
[0152]
[0153] Where n is the number of video segments collected during the learning of the target user in multiple time periods, i represents the i-th video segment among n video segments, and x irepresents the duration of the first abnormal psychological state in the i-th video segment, μ i is the average existence duration of the first abnormal psychological state in the time period corresponding to the i-th video segment, wherein the first abnormal psychological state is any one of at least one abnormal psychological state.
[0154] Optionally, the server may also calculate other indicator values that can represent the severity of the abnormal psychological state of the target user based on the existence duration of each abnormal psychological state of the target user in each video segment and the average existence duration of each abnormal psychological state when multiple users learn in the time period corresponding to each video segment, and use the calculated indicator value as the fluctuation value of the corresponding abnormal psychological state. This embodiment of the present application is not limited to this.
[0155] Optionally, before determining the fluctuation value of each abnormal psychological state of the target user, the server may also first determine whether each abnormal psychological state of the target user meets the calculation conditions of the fluctuation value. For abnormal psychological states that meet the conditions, the server may calculate the fluctuation value of the abnormal psychological state with reference to the above method; for abnormal psychological states that do not meet the conditions, the fluctuation value will not be calculated.
[0156] Exemplarily, taking the first abnormal psychological state as an example, after obtaining the existence duration of the first abnormal psychological state of the target user in multiple video segments and the average existence duration of the first abnormal psychological state in the time period corresponding to the corresponding video segment, the server first calculates the average existence duration of the first abnormal psychological state of the target user in multiple video segments to obtain the first average duration, calculates the average existence duration of the first abnormal psychological state in the time period corresponding to the multiple video segments to obtain the second average duration; when the first average duration is greater than the second average duration, the fluctuation value of the first abnormal psychological state of the target user is determined with reference to the above method; when the first average duration is not greater than the second average duration, the calculation condition of the fluctuation value is not met, and the fluctuation value of the first abnormal psychological state of the target user is not calculated.
[0157] For example, calculate the target user in Figure 4 The average duration of the first abnormal psychological state in the 10 video segments counted is 27.5 minutes. Figure 5 The average of the average duration of the first abnormal psychological state of the 20 users counted in the corresponding time period is 21.3 minutes, and the first average duration of 27.5 is greater than the second average duration of 21.3. At this time, the server can calculate the fluctuation value of the first abnormal psychological state of the target user with reference to the above method, and the embodiments of the present application will not be repeated here.
[0158] After obtaining the fluctuation value of each abnormal psychological state of the target user, the server will compare the fluctuation value of each abnormal psychological state of the target user with the first threshold in turn. If there is a fluctuation value greater than the first threshold among the abnormal psychological fluctuation values of the target user, the following two different implementation methods can be used to recommend psychological counseling content to the target user.
[0159] In the first implementation method, the server first obtains the maximum fluctuation value from the determined fluctuation values; if the maximum fluctuation value is less than the second threshold, the server recommends to the target user the game tutoring content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value; if the maximum fluctuation value is less than the third threshold and not less than the second threshold, the server recommends to the target user the online course tutoring content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value; if the maximum fluctuation value is not less than the third threshold, the server recommends to the target user the psychological counseling service information corresponding to the abnormal psychological state corresponding to the maximum fluctuation value.
[0160] For example, the server obtains the fluctuation values of the three abnormal psychological states of the target user, namely, lack of concentration, great psychological pressure, and resistance to learning, through the above steps, and then compares the fluctuation values of the three abnormal psychological states to obtain the maximum fluctuation value. After that, the maximum fluctuation value is first compared with the second threshold value. If the maximum fluctuation value is less than the second threshold value, the game tutoring content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value is recommended to the target user. If the maximum fluctuation value is not less than the second fluctuation value, the maximum fluctuation value is compared with the third threshold value, and the corresponding psychological tutoring content is recommended to the target user according to the comparison result. For example, through the above steps, the fluctuation value of the abnormal psychological state of lack of concentration when the target user is studying is 7.8, the fluctuation value of the abnormal psychological state of great psychological pressure is 8.3, and the fluctuation value of the abnormal psychological state of resistance to learning is 2.2, then the maximum fluctuation value of the target user is the fluctuation value corresponding to the great psychological pressure. Assuming that the second threshold value is 6.5 and the third threshold value is 9.4, the maximum fluctuation value is less than the third threshold value and not less than the second threshold value. At this time, the server recommends the online course tutoring content corresponding to the abnormal psychological state of great psychological pressure to the target user.
[0161] Optionally, in a second implementation, the server determines the recommended content type based on the determined fluctuation value; obtains a cure rate matrix of each subtype of psychological counseling content included in the recommended content type for multiple abnormal psychological states; determines a state fluctuation matrix of the target user's abnormal psychological state based on the determined fluctuation value; determines a recommendation degree corresponding to each subtype of psychological counseling content based on the cure rate matrix of each subtype of psychological counseling content for multiple abnormal psychological states and the state fluctuation matrix of the target user's abnormal psychological state; and recommends psychological counseling content to the target user based on the recommendation degree corresponding to each subtype of psychological counseling content.
[0162] Among them, the recommended content type is one of the following: games, online courses, and psychological counseling services.
[0163] In this implementation, the server first obtains the maximum fluctuation value from the determined fluctuation values. If the maximum fluctuation value is less than the second threshold, the recommended content type is determined to be a game. If the maximum fluctuation value is less than the third threshold and not less than the second threshold, the recommended content type is determined to be an online course. If the maximum fluctuation value is not less than the third threshold, the recommended content type is determined to be a psychological counseling service.
[0164] After determining the recommended content type according to the determined fluctuation value, the server obtains the cure scores of the abnormal psychological states of multiple historical users for each subtype of psychological counseling content included in the recommended content type; and determines the cure rate matrix of the corresponding subtype of psychological counseling content for multiple abnormal psychological states according to the cure scores of the abnormal psychological states of multiple historical users for each subtype of psychological counseling content.
[0165] Among them, if the recommended content type determined by the server is counseling content of the game type, then each sub-type of psychological counseling content included in the recommended content type is a game collection containing a specific type of game or a specific game; if the recommended content type determined by the server is counseling content of the online course type, then each sub-type of psychological counseling content included in the recommended content type is an online course collection containing a specific type of course content or a specific online course; if the recommended content type determined by the server is counseling content of the psychological counseling service type, then each sub-type of psychological counseling content included in the recommended content type is a counseling service collection containing a specific type of psychological counseling service content or a specific psychological counseling service.
[0166] On this basis, after determining the recommended content type, the server can obtain the cure scores of each sub-type of counseling content included in the recommended content type submitted by multiple historical users for various abnormal psychological states of each historical user, and calculate the average cure score of each sub-type of counseling content for each abnormal psychological state based on the obtained cure scores. Afterwards, for any seed type of counseling content, the cure rate of the seed type of counseling content for the corresponding abnormal psychological state is calculated based on the average cure score of the seed type of counseling content for each abnormal psychological state, and then, based on the cure rate of the seed type of counseling content for each abnormal psychological state, the cure rate matrix of the seed type of counseling content for multiple abnormal psychological states is determined.
[0167] Taking the determined recommended content type as game counseling content as an example, illustratively, the sub-types of psychological counseling content included in the game counseling content include A-type games, B-type games, and C-type games. When the abnormal psychological state of the target user determined by the above steps is the first abnormal psychological state, the second abnormal psychological state, and the third abnormal psychological state, the server first obtains the healing score of the A-type game submitted by each historical user among multiple historical users for the first psychological state of the user, and calculates the average score of the healing score of the A-type game for the first abnormal psychological state of multiple historical users. Calculate average score The ratio between the cure score of the preset Class A game and the cure rate of the Class A game for the first abnormal psychological state is obtained. Repeating the above steps can also obtain the cure rate of the second abnormal psychological state of multiple historical users by the A-type game. and the average score of the ratings and the cure rate of the third abnormal psychological state for multiple historical users You can get the cure rate matrix of the three abnormal psychological states of the first abnormal psychological state, the second abnormal psychological state, and the third abnormal psychological state for the A-type game. The above method can also be used to obtain the cure rate matrix of type B games and type C games for the above three abnormal psychological states, which are: and
[0168] When the recommended content type determined by the server is an online course or a psychological counseling service, the method for obtaining the cure rate matrix of each subtype of psychological counseling content for various abnormal psychological states can refer to the above method, and the embodiments of the present application will not be repeated here.
[0169] The server may also determine a state fluctuation matrix of the abnormal psychological state of the target user according to the fluctuation value of each abnormal psychological state of the target user.
[0170] For example, the server obtains the fluctuation values of the abnormal psychological state of the target user through the above method, and the fluctuation values are G1, G2...G m , then the server can determine the state fluctuation matrix D = [β1, β2, ..., β m ] T , where the matrix element β in the state fluctuation matrix i It can be calculated using the following formula (2):
[0171]
[0172] Among them, i=1, 2,…, m.
[0173] After obtaining the state fluctuation matrix of the target user's abnormal psychological state, the server multiplies the cure rate matrix of the determined sub-type of psychological counseling content for multiple abnormal psychological states with the state fluctuation matrix of the target user's abnormal psychological state to obtain the recommendation degree corresponding to each sub-type of psychological counseling content, and then recommends the sub-type of psychological counseling content with the highest recommendation degree to the target user.
[0174] For example, the server compares the state fluctuation matrix D of the target user's abnormal psychological state obtained based on the fluctuation values of the three abnormal psychological states of the target user with the cure rate matrix θ A ,θ B ,θ C Multiply them together to get the recommendation level N of category A game. A , the recommendation level of B-type games N B and C-type game recommendation N c , then compare the recommended degree N A , N B , N c The size of N A When it is the largest, category A games are recommended to the target users.
[0175] Optionally, before recommending psychological counseling content to the target user, the server may first count the number of historical users who have submitted cure scores for various psychological counseling contents. When the number of historical users is less than the fourth threshold, the psychological counseling content is pushed to the target user according to the first implementation method mentioned above. When the number of historical users is not less than the fourth threshold, the psychological counseling content is recommended to the target user using the second implementation method mentioned above, so that psychological counseling content that is more suitable for the target user can be recommended to the target user. Of course, when the number of historical users is not less than the fourth threshold, the first implementation method mentioned above can also be used to recommend psychological counseling content to the target user.
[0176] In an embodiment of the present application, multiple video segments of the target user's learning are collected, and based on the facial images of the target user in the multiple video segments, it is determined whether the target user has an abnormal psychological state while learning and the duration of each abnormal psychological state. This not only makes it possible to timely discover the abnormal psychological state of the target user while learning, but also to determine the severity of the abnormal psychological state of the target user based on the duration of each abnormal psychological state, thereby specifically recommending psychological counseling content that is more suitable for the target user himself, thereby improving the effect of psychological counseling.
[0177] Next, the psychological counseling content recommendation device provided in the embodiment of the present application is introduced.
[0178] See also Figure 6The embodiment of the present application provides a psychological counseling content recommendation device 600, and the device 600 includes:
[0179] A first acquisition module 601 is used to acquire a video segment of a target user learning collected in each of a plurality of time periods, each video segment including a facial image of the target user;
[0180] A determination module 602, configured to determine at least one psychological state of the target user during learning based on the facial images included in the plurality of video segments;
[0181] The second acquisition module 603 is used to acquire the existence time of each abnormal psychological state in each video segment if there is an abnormal psychological state in at least one psychological state;
[0182] The recommendation module 604 is used to recommend psychological counseling content to the target user according to the existence time of each abnormal psychological state in each video segment.
[0183] Optionally, the determination module 602 is mainly used for:
[0184] Recognizing facial expressions in a plurality of facial images of a target user included in each video segment by using a facial expression analysis model;
[0185] Determine the psychological state corresponding to each facial image in each video segment based on the recognized facial expression in each facial image in each video segment;
[0186] The psychological state corresponding to each facial image in each video segment is taken as at least one psychological state of the target user during learning.
[0187] Optionally, the second acquisition module 603 is mainly used for:
[0188] According to the facial image corresponding to the first abnormal psychological state in each video segment, the existence duration of the first abnormal psychological state in the corresponding video segment is determined, and the first abnormal psychological state is any one of at least one abnormal psychological state.
[0189] Optionally, the recommendation module 604 is mainly used for:
[0190] Obtain the average duration of each abnormal psychological state when multiple users are learning in the time period corresponding to each video segment;
[0191] Determine the fluctuation value of each abnormal psychological state of the target user according to the existence duration of each abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment;
[0192] If there is a fluctuation value greater than the first threshold value among the determined fluctuation values, psychological counseling content is recommended to the target user according to the determined fluctuation value.
[0193] Optionally, the recommendation module 604 is specifically used for:
[0194] According to the existence duration of the first abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment, the fluctuation value of the first abnormal psychological state of the target user is determined by the following formula, where the first abnormal psychological state is any one of at least one abnormal psychological state;
[0195]
[0196] Where n is the number of video segments collected during the learning of the target user in multiple time periods, i represents the i-th video segment among n video segments, and x i is the duration of the first abnormal psychological state in the i-th video segment, μ i is the average duration of the first abnormal psychological state in the time period corresponding to the i-th video segment.
[0197] Optionally, the recommendation module 604 is specifically used for:
[0198] Obtain the maximum fluctuation value from the determined fluctuation values;
[0199] If the maximum fluctuation value is less than the second threshold, recommending to the target user the game-related counseling content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value;
[0200] If the maximum fluctuation value is less than the third threshold value and not less than the second threshold value, then recommending to the target user the online course tutoring content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value;
[0201] If the maximum fluctuation threshold is not less than the third threshold, the psychological counseling service information corresponding to the abnormal psychological state corresponding to the maximum fluctuation value is recommended to the target user.
[0202] Optionally, the recommendation module 604 is specifically used for:
[0203] Determine the recommended content type according to the determined fluctuation value;
[0204] Obtain a matrix of the cure rates of each sub-type of psychological counseling content for various abnormal psychological states included in the recommended content types;
[0205] According to the determined fluctuation value, the state fluctuation matrix of the abnormal psychological state of the target user is determined. The state fluctuation matrix is [β1, β2, …, β m ] T ,in, i is an integer not less than 1 and not greater than m, m is the number of types of abnormal psychological states of the target user, G i is the fluctuation value of the target user’s i-th abnormal psychological state;
[0206] Determine the recommendation degree corresponding to each sub-type of psychological counseling content according to the cure rate matrix of each sub-type of psychological counseling content for various abnormal psychological states and the state fluctuation matrix of abnormal psychological states of target users;
[0207] Psychological counseling content is recommended to target users according to the recommendation degree corresponding to each sub-type of psychological counseling content.
[0208] Optionally, the recommendation module 604 is specifically used for:
[0209] Obtaining a cure score of abnormal psychological states of multiple historical users for each sub-type of psychological counseling content included in the recommended content type;
[0210] According to the cure scores of each sub-type of psychological counseling content for abnormal psychological states of multiple historical users, a cure rate matrix of the corresponding sub-type of psychological counseling content for multiple abnormal psychological states is determined.
[0211] Optionally, the recommended content type is one of games, online courses and psychological counseling services.
[0212] To sum up, in the embodiment of the present application, by collecting multiple video segments of the target user when studying, and determining whether the target user has an abnormal psychological state when studying and the duration of each abnormal psychological state based on the facial image of the target user in the multiple video segments, not only can the abnormal psychological state of the target user when studying be discovered in time, but also the severity of the abnormal psychological state of the target user can be determined based on the duration of each abnormal psychological state, thereby specifically recommending psychological counseling content that is more suitable for the target user himself to the target user, thereby improving the effect of psychological counseling.
[0213] It should be noted that the psychological counseling content recommendation device provided in the above embodiment only uses the division of the above functional modules as an example when recommending psychological counseling content to target users. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the psychological counseling content recommendation device provided in the above embodiment and the psychological counseling content recommendation method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0214] Figure 7is a schematic diagram of a server structure according to an exemplary embodiment. The function of recommending psychological counseling content in the above embodiment can be achieved through Figure 7 The server shown in can be implemented. The server can be a server in the background server cluster. Specifically:
[0215] The server 700 includes a central processing unit (CPU) 701, a system memory 704 including a random access memory (RAM) 702 and a read-only memory (ROM) 703, and a system bus 705 connecting the system memory 704 and the central processing unit 701. The server 700 also includes a basic input / output system (I / O system) 706 for facilitating information transmission between various components in the computer, and a large-capacity storage device 707 for storing an operating system 713, application programs 714, and other program modules 715.
[0216] The basic input / output system 706 includes a display 708 for displaying information and an input device 709 such as a mouse and a keyboard for user inputting information. The display 708 and the input device 709 are connected to the central processing unit 701 through an input / output controller 710 connected to the system bus 705. The basic input / output system 706 may also include an input / output controller 710 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 710 also provides output to a display screen, a printer, or other types of output devices.
[0217] The mass storage device 707 is connected to the central processing unit 701 through a mass storage controller (not shown) connected to the system bus 705. The mass storage device 707 and its associated computer readable medium provide non-volatile storage for the server 700. That is, the mass storage device 707 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0218] Without loss of generality, computer-readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other solid-state storage devices, CD-ROM, DVD (Digital Versatile Disc) or other optical storage, cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above. The above-mentioned system memory 704 and mass storage device 707 can be collectively referred to as memory.
[0219] According to various embodiments of the present application, the server 700 can also be connected to a remote computer on the network through a network such as the Internet. That is, the server 700 can be connected to the network 712 through the network interface unit 711 connected to the system bus 705, or the network interface unit 711 can be used to connect to other types of networks or remote computer systems (not shown).
[0220] The memory also includes one or more programs, which are stored in the memory and configured to be executed by the CPU. The one or more programs include instructions for performing the method for recommending psychological counseling content provided in the embodiment of the present application.
[0221] It should be understood that all or part of the steps to implement the above embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.
[0222] That is, in some embodiments, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the psychological counseling content recommendation method provided in the above embodiments.
[0223] The above description is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.
Claims
1. A method for recommending psychological counseling content, characterized in that: The method comprises: Acquire a video segment of a target user learning, collected in each of a plurality of time periods, each video segment including a facial image of the target user; determining at least one psychological state of the target user during learning based on facial images included in the plurality of video segments; If there is an abnormal psychological state among the at least one psychological state, obtaining the existence duration of each abnormal psychological state in each video segment; Obtain the average duration of each abnormal psychological state when multiple users are learning in the time period corresponding to each video segment; Determine the fluctuation value of each abnormal psychological state of the target user according to the existence duration of each abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment; the fluctuation value is used to indicate the severity of the abnormal psychological state of the target user; Determine the recommended content type according to the determined fluctuation value; Obtaining a cure rate matrix of each sub-type of psychological counseling content included in the recommended content type for multiple abnormal psychological states; the cure rate matrix is used to indicate the cure rate of each sub-type of psychological counseling content for multiple abnormal psychological states; Determine a state fluctuation matrix of the abnormal psychological state of the target user according to the determined fluctuation value; the state fluctuation matrix is used to indicate the proportional relationship between the fluctuation value of each abnormal psychological state and the total fluctuation value of all abnormal psychological states; Determining the recommendation degree corresponding to each sub-type of psychological counseling content according to the cure rate matrix of each sub-type of psychological counseling content for multiple abnormal psychological states and the state fluctuation matrix of the abnormal psychological state of the target user; The psychological counseling content is recommended to the target user according to the recommendation degree corresponding to each sub-type of the psychological counseling content.
2. The method according to claim 1, characterized in that: The determining, based on the facial images included in the plurality of video segments, at least one psychological state of the target user during learning comprises: Recognizing facial expressions in a plurality of facial images of a target user included in each video segment by using a facial expression analysis model; Determine the psychological state corresponding to each facial image in each video segment based on the recognized facial expression in each facial image in each video segment; The psychological state corresponding to each facial image in each video segment is used as at least one psychological state of the target user during learning.
3. The method according to claim 2, characterized in that The obtaining of the duration of each abnormal psychological state in each video segment includes: According to the facial image corresponding to the first abnormal psychological state in each video segment, the existence duration of the first abnormal psychological state in the corresponding video segment is determined, and the first abnormal psychological state is any one of at least one abnormal psychological state.
4. The method according to claim 1, characterized in that: The method further comprises: If there is a fluctuation value greater than a first threshold value among the fluctuation values of each abnormal psychological state of the target user determined, psychological counseling content is recommended to the target user according to the determined fluctuation value.
5. The method according to claim 4, characterized in that Determining the fluctuation value of each abnormal psychological state of the target user according to the existence duration of each abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment includes: According to the existence duration of the first abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment, the fluctuation value of the first abnormal psychological state of the target user is determined by the following formula, wherein the first abnormal psychological state is any one of at least one abnormal psychological state; Wherein, n is the number of video segments collected during the plurality of time periods when the target user is learning, i represents the i-th video segment among the n video segments, and x i is the duration of the first abnormal psychological state in the i-th video segment, and μ i is the average duration of the first abnormal mental state in the time period corresponding to the i-th video segment.
6. The method according to claim 4 or 5, characterized in that: The recommending psychological counseling content to the target user according to the determined fluctuation value includes: Get the maximum fluctuation value from the determined fluctuation values; If the maximum fluctuation value is less than a second threshold, recommending to the target user game-related coaching content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value; If the maximum fluctuation value is less than the third threshold value and not less than the second threshold value, recommending to the target user the online course tutoring content corresponding to the abnormal psychological state corresponding to the maximum fluctuation value; If the maximum fluctuation value is not less than the third threshold, the psychological counseling service information corresponding to the abnormal psychological state corresponding to the maximum fluctuation value is recommended to the target user.
7. The method according to claim 4 or 5, characterized in that: The state fluctuation matrix is [β1, β2, ..., β m ] T ,in, The i is an integer not less than 1 and not greater than m, the m is the number of types of abnormal psychological states of the target user, and the G i is the fluctuation value of the i-th abnormal psychological state of the target user.
8. The method according to claim 7, characterized in that The step of obtaining a cure rate matrix of each sub-type of the psychological counseling content for multiple abnormal psychological states included in the recommended content type includes: Obtaining a cure score of each sub-type of psychological counseling content included in the recommended content type for abnormal psychological states of multiple historical users; According to the cure scores of each sub-type of psychological counseling content for abnormal psychological states of multiple historical users, a cure rate matrix of the corresponding sub-type of psychological counseling content for multiple abnormal psychological states is determined.
9. The method according to claim 8, characterized in that The recommended content type is one of games, online courses and psychological counseling services.
10. A psychological counseling content recommendation device, characterized in that: The apparatus comprises a processor configured to: Acquire a video segment of a target user learning, collected in each of a plurality of time periods, each video segment including a facial image of the target user; determining at least one psychological state of the target user during learning based on facial images included in the plurality of video segments; If there is an abnormal psychological state among the at least one psychological state, obtaining the existence duration of each abnormal psychological state in each video segment; Obtain the average duration of each abnormal psychological state when multiple users are learning in the time period corresponding to each video segment; Determine the fluctuation value of each abnormal psychological state of the target user according to the existence duration of each abnormal psychological state in each video segment and the average existence duration in the time period corresponding to the corresponding video segment; the fluctuation value is used to indicate the severity of the abnormal psychological state of the target user; Determine the recommended content type according to the determined fluctuation value; Obtaining a cure rate matrix of each sub-type of psychological counseling content included in the recommended content type for multiple abnormal psychological states; the cure rate matrix is used to indicate the cure rate of each sub-type of psychological counseling content for multiple abnormal psychological states; Determine a state fluctuation matrix of the abnormal psychological state of the target user according to the determined fluctuation value; the state fluctuation matrix is used to indicate the proportional relationship between the fluctuation value of each abnormal psychological state and the total fluctuation value of all abnormal psychological states; Determining the recommendation degree corresponding to each sub-type of psychological counseling content according to the cure rate matrix of each sub-type of psychological counseling content for multiple abnormal psychological states and the state fluctuation matrix of the abnormal psychological state of the target user; The psychological counseling content is recommended to the target user according to the recommendation degree corresponding to each sub-type of the psychological counseling content.
Citation Information
Patent Citations
Psychological stress assessment method and related equipment
CN110025321A
Information pushing method and related product
CN110459296A
