User portrait analysis method, system and storage medium
By obtaining users' learning course records, determining in-depth active courses and building an activity matrix to evaluate users' level of activity on the website, it solves the problem of difficulty in understanding users' online learning status in existing technologies and achieves accurate analysis and personality of user portraits. recommendations.
Patent Information
- Application Number
- CN202410063583.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-17
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-01-17
AI Technical Summary
Existing technology makes it difficult to effectively understand users' online learning situations, and lacks accurate user profile analysis methods to mine user interests and behavior information.
By obtaining the user's learning course records, determining in-depth active courses, constructing an activity matrix, and calculating the course participation weight, we can evaluate the user's activity level on the website, and then recommend personalized learning videos.
It achieves an in-depth portrayal of users’ online learning situations, accurately reflects users’ learning direction and activity, and facilitates website operation and maintenance personnel to make accurate recommendations and user portrait analysis.
Smart Images

Figure CN117828223B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information processing technology, and specifically relates to a user portrait analysis method, system and storage medium. Background Art
[0002] With the development of Internet technology, online learning platforms are becoming more and more popular among users. Online learning platforms are dominated by rich teaching content elements, with characteristics such as clear classification and strong interactivity, and can provide users of online learning platforms with social functions such as online video playback at any time. Therefore, in order to better understand users' enthusiasm for online learning, user portrait support is essential. User portrait is a mathematical modeling of users in the real world. User portrait is based on the user's attributes and behavior information to fully understand, mine and locate users, and characterize user interests and hobbies. Therefore, it is of great significance to design a user portrait analysis method to fully and accurately understand the user's online learning situation. Summary of the invention
[0003] In order to solve the above problems, the present invention proposes a user portrait analysis method, system and storage medium.
[0004] The technical solution of the present invention is: a user portrait analysis method comprises the following steps:
[0005] S1. Obtain the target user's learning course records on the website;
[0006] S2. Determine the user's deeply active courses in the learning course records, determine the corresponding active course set based on the deeply active courses, and construct an activity matrix of the target user on the website;
[0007] S3. Determine the course participation weight of the target user based on the target user's activity matrix on the website, and determine the target user's activity level on the website based on the target user's course participation weight.
[0008] Furthermore, in S1, the target user's course study records on the website include the course name, the study time of each course, the unstudied time of each course, the number of times each course has been studied, and the evaluation score of each course.
[0009] Furthermore, S2 includes the following sub-steps:
[0010] S21, determining whether the maximum number of learning times in the learning course record is unique, if so, taking the course corresponding to the maximum number of learning times as the deeply active course, otherwise, among the courses with the same maximum number of learning times, selecting the course with the longest learning time as the deeply active course;
[0011] S22. Match similar active courses to the deeply active courses according to all course names in the learning course records, and take the deeply active courses and all similar active courses as an active course set;
[0012] S23. Determine the activity matrix of the target user on the website according to the number of learning times, learning time, and non-learning time of each course in the active course set.
[0013] The beneficial effect of the above further scheme is: in the present invention, among all the courses that the user has studied, the course with the maximum number of learning times is taken as the deep active course. If there are multiple courses with the same number of learning times, the course with the longest learning time is preferred (if the learning time is the same, the restriction condition of the shortest unlearned time is added) as the deep active course. The deep active course selected in this way can represent the course direction that the user may be interested in, and according to the word vector of the course name, the remaining courses similar to the deep active course are selected from the course record. Then, the user's activity matrix on the website is constructed based on the learning status of these courses, reflecting the user's learning direction and activity status on the website.
[0014] Furthermore, in S22, the specific method for matching similar active courses to the deeply active courses is: calculating the optimal similarity value between the course names of the remaining courses in the learning course record and the course name of the deeply active course, sorting all the optimal similarity values from large to small, and sorting the top ranked courses. courses as similar active courses of deep active courses; where c represents the number of times a deep active course is studied, N represents the total number of courses for the target user, Indicates rounding down;
[0015] The optimal similarity value U between the course name of the nth course and the course name of the deeply active course in the learning course record n The calculation formula is: In the formula, N represents the total number of courses for the target user, S n represents the course name text of the nth course of the target user, S0 represents the course name text of the deeply active course, len(·) represents the length function of the text characters, V n_p Represents the word vector of the pth word in the course title of the target user’s nth course, V q represents the word vector of the qth word in the course name of the deeply active course, P represents the number of words in the course name of the nth course of the target user, Q represents the number of words in the course name of the deeply active course, and exp(·) represents the exponential function.
[0016] Further, S22 includes the following sub-steps:
[0017] S221, calculating the average number of learning times of all courses in the active course set as the first active coefficient;
[0018] S222, calculating a second activity coefficient according to the studied time and the unstudied time of each course in the active course set;
[0019] S223. Use the first activity coefficient as the element of the first row and first column of the activity matrix, and use the second activity coefficient as the element of the second row and first column of the activity matrix to generate an activity matrix of the target user on the website.
[0020] Furthermore, in S222, the calculation formula of the second activity coefficient s is: Where, t j represents the learning time of the jth course in the active course set, t′ j represents the unlearned time of the jth course in the active course set, and J represents the number of courses in the active course set.
[0021] Furthermore, S3 includes the following sub-steps:
[0022] S31, calculating the course participation weight of the target user according to the target user's activity matrix on the website and the target user's evaluation score for each course;
[0023] S32. Determine the target user's activity level on the website based on the target user's course participation weight; specifically: if the target user's course participation weight is greater than or equal to the value of the activity matrix, the target user's activity level on the website is very active; otherwise, the target user's activity level on the website is inactive.
[0024] If the target user's activity level on the website is very active, it means that the target user spends more time and frequency learning videos on the website, and you can focus on recommending more learning videos to this user.
[0025] Furthermore, in S31, the calculation formula of the course participation weight γ of the target user is: Where N represents the total number of courses for the target user, and f n represents the evaluation score of the target user's nth course, Y represents the target user's activity matrix on the website, I represents the identity matrix, and λ Y Represents the eigenvalue of the target user’s activity matrix on the website.
[0026] The beneficial effects of the present invention are as follows: the present invention discloses a user portrait analysis method, which selects the most representative deep active course from the learning course record of the target user, and then determines a course set based on the deep active course, wherein the course set includes learning courses similar to the deep active course, so as to accurately characterize the user's portrait; the present invention constructs an activity matrix reflecting the user's learning situation for the active course set of the target user, determines the target user's activity on the website based on the activity matrix, and determines whether the target user is interested in the learning videos on the website, so as to facilitate the website operation and maintenance personnel to decide whether to further accurately recommend more videos to the user.
[0027] Based on the above method, the present invention also proposes a user portrait analysis system, including a learning course record acquisition unit, an activity matrix generation unit and an activity level generation unit;
[0028] The learning course record acquisition unit is used to acquire the learning course record of the target user on the website;
[0029] The activity matrix generating unit is used to determine the user's deeply active courses in the learning course records, determine the corresponding active course set according to the deeply active courses, and construct the activity matrix of the target user on the website;
[0030] The activity level generating unit is used to determine the course participation weight of the target user according to the activity matrix of the target user on the website, and determine the activity level of the target user on the website according to the course participation weight of the target user.
[0031] The beneficial effect of the present invention is: the present invention discloses a user portrait analysis system, which deeply depicts the learning situation of the target user on the website, vividly reflects the user situation, and facilitates website operation and maintenance personnel to understand the user.
[0032] To achieve the above objectives, the present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed, some or all of the steps of the above-mentioned user portrait analysis method are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 This is a flowchart of the user portrait analysis method;
[0034] Figure 2 This is a schematic diagram of the user portrait analysis system structure. DETAILED DESCRIPTION
[0035] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
[0036] like Figure 1 As shown, the present invention provides a user portrait analysis method, comprising the following steps:
[0037] S1. Obtain the target user's learning course records on the website;
[0038] S2. Determine the user's deeply active courses in the learning course records, determine the corresponding active course set based on the deeply active courses, and construct an activity matrix of the target user on the website;
[0039] S3. Determine the course participation weight of the target user based on the target user's activity matrix on the website, and determine the target user's activity level on the website based on the target user's course participation weight.
[0040] In the embodiment of the present invention, in S1, the target user's course study record on the website includes the course name, the study time of each course, the unstudied time of each course, the number of study times of each course and the evaluation score of each course.
[0041] In this embodiment of the present invention, S2 includes the following sub-steps:
[0042] S21, determining whether the maximum number of learning times in the learning course record is unique, if so, taking the course corresponding to the maximum number of learning times as the deeply active course, otherwise, among the courses with the same maximum number of learning times, selecting the course with the longest learning time as the deeply active course;
[0043] S22. Match similar active courses to the deeply active courses according to all course names in the learning course records, and take the deeply active courses and all similar active courses as an active course set;
[0044] S23. Determine the activity matrix of the target user on the website according to the number of learning times, learning time, and non-learning time of each course in the active course set.
[0045] In the present invention, among all the courses that the user has studied, the course with the maximum number of learning times is regarded as a deeply active course. If there are multiple courses with the same number of learning times, the course with the longest learning time is preferred (if the learning time is the same, the restriction condition of the shortest unlearned time is added) as the deeply active course. The deeply active course selected in this way can represent the course direction that the user may be interested in, and according to the word vector of the course name, the remaining courses similar to the deeply active courses are selected from the course record. Then, the user's activity matrix on the website is constructed based on the learning status of these courses, reflecting the user's learning direction and activity status on the website.
[0046] In the embodiment of the present invention, in S22, the specific method for matching similar active courses for deeply active courses is: calculating the optimal similarity value between the course name of each other course in the learning course record and the course name of the deeply active course, sorting all the optimal similarity values from large to small, and sorting the top ranked courses. courses as similar active courses of deep active courses; where c represents the number of times a deep active course is studied, N represents the total number of courses for the target user, Indicates rounding down;
[0047] The optimal similarity value U between the course name of the nth course and the course name of the deeply active course in the learning course record n The calculation formula is: In the formula, N represents the total number of courses for the target user, S n represents the course name text of the nth course of the target user, S0 represents the course name text of the deeply active course, len(·) represents the length function of the text characters, V n_p Represents the word vector of the pth word in the course title of the target user’s nth course, V q represents the word vector of the qth word in the course name of the deeply active course, P represents the number of words in the course name of the nth course of the target user, Q represents the number of words in the course name of the deeply active course, and exp(·) represents the exponential function.
[0048] In this embodiment of the present invention, S22 includes the following sub-steps:
[0049] S221, calculating the average number of learning times of all courses in the active course set as the first active coefficient;
[0050] S222, calculating a second activity coefficient according to the studied time and the unstudied time of each course in the active course set;
[0051] S223. Use the first activity coefficient as the element of the first row and first column of the activity matrix, and use the second activity coefficient as the element of the second row and first column of the activity matrix to generate an activity matrix of the target user on the website.
[0052] In the embodiment of the present invention, in S222, the calculation formula of the second activity coefficient s is: Where, t j represents the learning time of the jth course in the active course set, t′ j represents the unlearned time of the jth course in the active course set, and J represents the number of courses in the active course set.
[0053] In this embodiment of the present invention, S3 includes the following sub-steps:
[0054] S31, calculating the course participation weight of the target user according to the target user's activity matrix on the website and the target user's evaluation score for each course;
[0055] S32. Determine the target user's activity level on the website based on the target user's course participation weight; specifically: if the target user's course participation weight is greater than or equal to the value of the activity matrix, the target user's activity level on the website is very active; otherwise, the target user's activity level on the website is inactive.
[0056] If the target user's activity level on the website is very active, it means that the target user spends more time and frequency learning videos on the website, and you can focus on recommending more learning videos to this user.
[0057] In the embodiment of the present invention, in S31, the calculation formula of the course participation weight γ of the target user is: Where N represents the total number of courses for the target user, and f n represents the evaluation score of the target user's nth course, Y represents the target user's activity matrix on the website, I represents the identity matrix, and λ Y Represents the eigenvalue of the target user’s activity matrix on the website.
[0058] The embodiment of the present invention provides a user portrait analysis system, such as Figure 2 As shown, it includes a learning course record acquisition unit, an activity matrix generation unit and an activity level generation unit;
[0059] The learning course record acquisition unit is used to acquire the learning course record of the target user on the website;
[0060] The activity matrix generating unit is used to determine the user's deeply active courses in the learning course records, determine the corresponding active course set according to the deeply active courses, and construct the activity matrix of the target user on the website;
[0061] The activity level generating unit is used to determine the course participation weight of the target user according to the activity matrix of the target user on the website, and determine the activity level of the target user on the website according to the course participation weight of the target user.
[0062] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, some or all of the steps of any user portrait analysis method of the above method embodiments are implemented.
[0063] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0064] It should be noted that, in the present invention, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0065] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. A user portrait analysis method, characterized in that: The following steps are involved: S1. Obtain the target user's learning course records on the website; S2. Determine the user's deeply active courses in the learning course records, determine the corresponding active course set based on the deeply active courses, and construct an activity matrix of the target user on the website; S3. Determine the course participation weight of the target user based on the target user's activity matrix on the website, and determine the target user's activity level on the website based on the target user's course participation weight; The S2 comprises the following sub-steps: S21, determining whether the maximum number of learning times in the learning course record is unique, if so, taking the course corresponding to the maximum number of learning times as the deeply active course, otherwise, among the courses with the same maximum number of learning times, selecting the course with the longest learning time as the deeply active course; S22. Match similar active courses to the deeply active courses according to all course names in the learning course records, and take the deeply active courses and all similar active courses as an active course set; S23, determining the activity matrix of the target user on the website according to the number of learning times, learning time and non-learning time of each course in the active course set; In S22, the specific method for matching similar active courses to the deeply active courses is: calculating the optimal similarity value between the course names of the remaining courses in the learning course record and the course name of the deeply active course, sorting all the optimal similarity values from large to small, and sorting the top ranked courses. courses as similar active courses of deep active courses; where c represents the number of times a deep active course is studied, N represents the total number of courses for the target user, Indicates rounding down; The optimal similarity value U between the course name of the nth course and the course name of the deeply active course in the learning course record n The calculation formula is: In the formula, N represents the total number of courses for the target user, S n represents the course name text of the nth course of the target user, S0 represents the course name text of the deeply active course, len(·) represents the length function of the text characters, V n_p Represents the word vector of the pth word in the course title of the target user’s nth course, V q represents the word vector of the qth word in the course name of the deeply active course, P represents the number of words in the course name of the nth course of the target user, Q represents the number of words in the course name of the deeply active course, and exp(·) represents the exponential function; The S22 comprises the following sub-steps: S221, calculating the average number of learning times of all courses in the active course set as the first active coefficient; S222, calculating a second activity coefficient according to the studied time and the unstudied time of each course in the active course set; S223, using the first activity coefficient as the element of the first row and first column of the activity matrix, and using the second activity coefficient as the element of the second row and first column of the activity matrix, to generate an activity matrix of the target user on the website; In S222, the calculation formula of the second activity coefficient s is: Where, t j represents the learning time of the jth course in the active course set, t′ j represents the unlearned time of the jth course in the active course set, and J represents the number of courses in the active course set.
2. The user portrait analysis method according to claim 1, characterized in that: In S1, the target user's course study record on the website includes the course name, the study time of each course, the unstudied time of each course, the number of times each course has been studied, and the evaluation score of each course.
3. The user portrait analysis method according to claim 1, characterized in that: The S3 comprises the following sub-steps: S31, calculating the course participation weight of the target user according to the target user's activity matrix on the website and the target user's evaluation score for each course; S32, determining the activity level of the target user on the website according to the course participation weight of the target user; Specifically: if the course participation weight of the target user is greater than or equal to the value of the activity matrix, the target user's activity level on the website is very active; otherwise, the target user's activity level on the website is inactive.
4. The user portrait analysis method according to claim 3, characterized in that: In S31, the calculation formula of the course participation weight γ of the target user is: Where N represents the total number of courses for the target user, and f n represents the evaluation score of the target user's nth course, Y represents the target user's activity matrix on the website, I represents the identity matrix, and λ Y Represents the eigenvalue of the target user’s activity matrix on the website.
5. A user portrait analysis system, characterized in that: It includes a learning course record acquisition unit, an activity matrix generation unit and an activity level generation unit; The learning course record acquisition unit is used to acquire the learning course record of the target user on the website; The activity matrix generating unit is used to determine the user's deeply active courses in the learning course records, determine the corresponding active course set according to the deeply active courses, and construct the activity matrix of the target user on the website; The activity level generating unit is used to determine the course participation weight of the target user according to the activity matrix of the target user on the website, and determine the activity level of the target user on the website according to the course participation weight of the target user; The user portrait analysis system is implemented based on a user portrait analysis method, which includes the following steps: S1. Obtain the target user's learning course records on the website; S2. Determine the user's deeply active courses in the learning course records, determine the corresponding active course set based on the deeply active courses, and construct an activity matrix of the target user on the website; S3. Determine the course participation weight of the target user based on the target user's activity matrix on the website, and determine the target user's activity level on the website based on the target user's course participation weight; The S2 comprises the following sub-steps: S21, determining whether the maximum number of learning times in the learning course record is unique, if so, taking the course corresponding to the maximum number of learning times as the deeply active course, otherwise, among the courses with the same maximum number of learning times, selecting the course with the longest learning time as the deeply active course; S22. Match similar active courses to the deeply active courses according to all course names in the learning course records, and take the deeply active courses and all similar active courses as an active course set; S23, determining the activity matrix of the target user on the website according to the number of learning times, learning time and non-learning time of each course in the active course set; In S22, the specific method for matching similar active courses to the deeply active courses is: calculating the optimal similarity value between the course names of the remaining courses in the learning course record and the course name of the deeply active course, sorting all the optimal similarity values from large to small, and sorting the top ranked courses. courses as similar active courses of deep active courses; where c represents the number of times a deep active course is studied, N represents the total number of courses for the target user, Indicates rounding down; The optimal similarity value U between the course name of the nth course and the course name of the deeply active course in the learning course record n The calculation formula is: In the formula, N represents the total number of courses for the target user, S n represents the course name text of the nth course of the target user, S0 represents the course name text of the deeply active course, len(·) represents the length function of the text characters, V n_p Represents the word vector of the pth word in the course title of the target user’s nth course, V q represents the word vector of the qth word in the course name of the deeply active course, P represents the number of words in the course name of the nth course of the target user, Q represents the number of words in the course name of the deeply active course, and exp(·) represents the exponential function; The S22 comprises the following sub-steps: S221, calculating the average number of learning times of all courses in the active course set as the first active coefficient; S222, calculating a second activity coefficient according to the studied time and the unstudied time of each course in the active course set; S223, using the first activity coefficient as the element of the first row and first column of the activity matrix, and using the second activity coefficient as the element of the second row and first column of the activity matrix, to generate an activity matrix of the target user on the website; In S222, the calculation formula of the second activity coefficient s is: Where, t j represents the learning time of the jth course in the active course set, t′ j represents the unlearned time of the jth course in the active course set, and J represents the number of courses in the active course set.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed, the steps of the user portrait analysis method according to any one of claims 1 to 4 are implemented.
