Sequence pattern mining method, device and equipment with efficiency constraint
By introducing attendance, discreteness and dropout constraints, combined with search space traversal and projection technology, the problem of low efficiency in sequential pattern mining in MOOC data is solved, the accuracy and effectiveness of pattern discovery are improved, and the number of irrelevant patterns is reduced. quantity.
Patent Information
- Application Number
- CN202411064449.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-08-05
AI Technical Summary
Existing sequential pattern mining algorithms are difficult to effectively process complex learning behavior data when processing large-scale MOOC data, and are prone to produce irrelevant patterns, resulting in low efficiency and insufficient accuracy.
By introducing attendance, discreteness and dropout constraints, combined with level-by-level search space traversal or recursive projection technology, support with efficiency constraints is constructed, and the cost concept is integrated into sequence pattern mining to improve the effectiveness and efficiency of pattern discovery. accuracy.
It significantly improves the effectiveness and accuracy of sequence pattern discovery, reduces the number of irrelevant patterns, and ensures the effectiveness and efficiency of the pattern mining process.
Smart Images

Figure CN118606903A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data mining, and in particular to a method, device and equipment for mining sequential patterns with efficiency constraints. Background Art
[0002] As an important tool for online learning, the Massive Open Online Courses (MOOC) platform can capture rich learning behavior data and provide a rich and interactive multimedia platform for data mining research. Exploring the learning behavior characteristics in MOOC data is crucial to optimizing the learning experience. Therefore, data mining technology is widely used in MOOC data sets to extract valuable insights, especially focusing on student behavior analysis. Among them, the analysis of student behavior data has an important impact on academic performance prediction, course recommendation, and course quality satisfaction research. It can be seen that with the help of data mining technology, researchers can have a deeper understanding of student behavior and its potential impact.
[0003] Among the related technologies, Sequence Pattern Mining (SPM) is a key means of analyzing student behavior records, aiming to discover subsequences whose support reaches or exceeds a preset minimum threshold. Currently, a variety of traditional SPM algorithms, including breadth-first, depth-first, and pattern growth, have been applied to this field. These algorithms can effectively identify and extract patterns from data sets to generate a large number of sequence patterns (SP). However, due to the huge scale and complexity of MOOC data, such as the inclusion of user interactions, course materials, and timestamped operations, traditional SPM algorithms are difficult to process and may produce irrelevant patterns. Therefore, how to effectively mine and discover meaningful sequence patterns is crucial. Summary of the invention
[0004] The present application provides a method, apparatus and device for mining sequential patterns with efficiency constraints, which can improve the effectiveness and accuracy of sequential pattern discovery and reduce the number of sequential patterns discovered.
[0005] In a first aspect, an embodiment of the present application provides a sequential pattern mining method with efficiency constraints, comprising the following steps: Based on the start time, end time, progress time, total duration and sequence length of the items in the pattern, the attendance constraint, discrete constraint and dropout constraint are determined respectively; Constructing support with efficiency constraints according to the attendance constraint, the discrete constraint and the dropout constraint; The sequence patterns in the massive open online course data set are traversed and mined by using the support with efficiency constraints and a preset sequence pattern mining algorithm to output efficiency constraint sequence patterns; the sequence pattern mining algorithm includes any one of a step-by-step efficiency constraint sequence pattern mining algorithm, a projection-based efficiency constraint sequence pattern mining algorithm, and an integrated cost efficiency constraint sequence pattern mining algorithm, and the cost is determined based on the progress time.
[0006] In combination with the first aspect, in one implementation, the determination of the attendance constraint, the discrete constraint and the dropout constraint based on the start time, the end time, the progress time and the total duration and the sequence length of the items in the pattern respectively includes: Determine attendance constraints based on start time, end time, progress time and total duration; Determine discrete constraints based on start time; Dropout constraints are determined based on sequence length, progress time, and total duration.
[0007] In combination with the first aspect, in one implementation, the calculation formula of the attendance constraint is:
[0008] In the formula, Representation sequence S Medium Mode The corresponding attendance constraint is , , and Respectively represent the sequence S Middle i The start time, end time, progress time and total duration of each project, sequence Include n items in chronological order.
[0009] In combination with the first aspect, in one implementation, the calculation formula of the discrete constraint is:
[0010]
[0011] In the formula, Representation sequence S Medium Mode The corresponding discrete constraints are: Representation sequence S Middle i The start time of each project, the sequence Include n items in chronological order.
[0012] In combination with the first aspect, in one implementation, the calculation formula of the dropout constraint is:
[0013] In the formula, Representation sequence S Medium Mode The corresponding dropout constraint is Representation sequence Medium Mode The number of dropout-dominant learning behaviors is determined based on the proportion of progress time to total duration. Representation sequence S The sequence set The maximum length of all sequences in .
[0014] In combination with the first aspect, in one implementation, constructing the support with efficiency constraint according to the attendance constraint, the discrete constraint and the dropout constraint includes: Based on attendance constraints, discrete constraints, dropout constraints and patterns The corresponding support sets determine the support corresponding to the attendance constraints , the support corresponding to the dropout constraint And the support corresponding to the dropout constraint ; According to support , support And support Constructing support with efficiency constraints .
[0015] In combination with the first aspect, in one implementation, the support with efficiency constraints The calculation formula is:
[0016] In the formula, , and They represent attendance factor, discrete factor and dropout factor respectively, and their values are in the range of [0,1] and .
[0017] In combination with the first aspect, in one implementation, the cost is determined based on the schedule time, including: Determine the mode based on the project schedule The corresponding cost in each sequence; Based on the pattern The corresponding cost in each sequence and the support with efficiency constraints Determine the pattern The average cost of Through the support of efficiency constraints and Mode The minimum cost determines the mode The average support cost.
[0018] In a second aspect, an embodiment of the present application provides a sequential pattern mining device with efficiency constraints, comprising: A determination module, which is used to determine attendance constraints, discrete constraints and dropout constraints respectively based on the start time, end time, progress time and total duration of the project in the sequence pattern and the sequence length; A construction module, which is used to construct a support with efficiency constraints according to the attendance constraint, the discrete constraint and the dropout constraint; A mining module is used to traverse and mine the sequence patterns in the massive open online course data set through the support with efficiency constraints and a preset sequence pattern mining algorithm to output efficiency constraint sequence patterns; the sequence pattern mining algorithm includes any one of a step-by-step efficiency constraint sequence pattern mining algorithm, a projection-based efficiency constraint sequence pattern mining algorithm and an integrated cost efficiency constraint sequence pattern mining algorithm, and the cost is determined based on the progress time.
[0019] In conjunction with the second aspect, in one implementation, the determining module is specifically configured to: Determine attendance constraints based on start time, end time, progress time and total duration; Determine discrete constraints based on start time; Dropout constraints are determined based on sequence length, progress time, and total duration.
[0020] In conjunction with the second aspect, in one implementation, the calculation formula of the attendance constraint is:
[0021] In the formula, Representation sequence S Medium Mode The corresponding attendance constraint is , , and Respectively represent the sequence S Middle i The start time, end time, progress time and total duration of each project, sequence Include n items in chronological order.
[0022] In conjunction with the second aspect, in one implementation, the calculation formula of the discrete constraint is:
[0023]
[0024] In the formula, Representation sequence S Medium Mode The corresponding discrete constraints are: Representation sequence S Middle i The start time of each project, the sequence Include n items in chronological order.
[0025] In conjunction with the second aspect, in one implementation, the calculation formula for the dropout constraint is:
[0026] In the formula, Representation sequence S Medium Mode The corresponding dropout constraint is Representation sequence Medium Mode The number of dropout-dominant learning behaviors is determined based on the proportion of progress time to total duration. Representation sequence S The sequence set The maximum length of all sequences in .
[0027] In conjunction with the second aspect, in one implementation, the building block is specifically used for: Based on attendance constraints, discrete constraints, dropout constraints and patterns The corresponding support sets determine the support corresponding to the attendance constraints , the support corresponding to the dropout constraint And the support corresponding to the dropout constraint ; According to support , support And support Constructing support with efficiency constraints .
[0028] In conjunction with the second aspect, in one implementation, the support with efficiency constraints The calculation formula is:
[0029] In the formula, , and They represent attendance factor, discrete factor and dropout factor respectively, and their values are in the range of [0,1] and .
[0030] In conjunction with the second aspect, in one implementation, the cost is determined based on the schedule time, including: Determine the mode based on the project schedule The corresponding cost in each sequence; Based on the pattern The corresponding cost in each sequence and the support with efficiency constraints Determine the pattern The average cost of Through the support of efficiency constraints and Mode The minimum cost determines the mode The average support cost.
[0031] In the third aspect, an embodiment of the present application provides a sequential pattern mining device with efficiency constraints, wherein the sequential pattern mining device with efficiency constraints comprises a processor, a memory, and a sequential pattern mining program with efficiency constraints stored in the memory and executable by the processor, wherein when the sequential pattern mining program with efficiency constraints is executed by the processor, the steps of the sequential pattern mining method with efficiency constraints as described above are implemented.
[0032] The beneficial effects brought by the technical solution provided in the embodiments of the present application include: By introducing three key constraints, namely attendance, discreteness and dropout, the impact of different characteristics in learning behavior on sequential pattern mining can be accurately captured. Since these constraints are downward closed, their effectiveness in the pattern mining process can be ensured. At the same time, by combining the mining algorithm with step-by-step search space traversal or recursive projection technology, and incorporating the concept of cost into sequential pattern mining, the search space can be effectively explored while considering efficiency constraints, thereby improving the effectiveness and accuracy of sequential pattern discovery, and significantly reducing the number of sequential pattern discoveries compared to the traditional SPM algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A flowchart of an embodiment of a sequential pattern mining method with efficiency constraints of the present application; Figure 2 This is a schematic diagram of the hardware structure of a sequential pattern mining device with efficiency constraints involved in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0035] First, some technical terms and concepts involved in this application are explained to facilitate those skilled in the art to understand this application.
[0036] First consider a set of classes and use the set To represent, and each course is presented by a project, that is, a project represents a course. It should be noted that each project is a tuple containing two elements. ;in, Indicates a course set A subset of , which is used to identify a specific course; is another set containing four elements, namely , and the set Each element in represents the start time of the course , End time , progress time and total duration .
[0037] sequence is a list of n items in chronological order, of the form ; It is understandable that the sequence Each item in the sequence represents a course and its related information; In, for any , all meet the conditions , to ensure that items are sorted by their start time; in addition, the sequence Length (available ) represents the total number of items in the sequence. It should be noted that in this embodiment, Reference sequence Specific items in ,but Indicates Project-related courses , , and They represent the Each item corresponds to the start time, end time, progress time and total duration of the course.
[0038] Sequence behavior recording ( ) is The set of sequences can be written as ; It is particularly important to note that in mode Input sequence During each mode It appears at most once in the massive open online course dataset (i.e., MOOCCube dataset, which collects 48,640 learning behavior sequences from XuetangX). Medium, Mode The support of Indicates that its representation mode exist The number of times it appears in The support set is denoted by , which is the inclusion pattern of It is understandable that if the pattern Support Meets or exceeds the minimum support threshold set by the user , then the mode is considered a frequent pattern.
[0039] For example, taking the sequence behavior records presented in Table 1 ( ) and the time dimension information of each item in Table 2 ( ) as an example: in,sequence , and All include mode , then these three sequences together constitute the pattern Support set ; In order to determine the frequent sequential pattern (FSP), it is necessary to set a The minimum support threshold of Set to 2, then the mode That is, it satisfies the condition of frequent sequential pattern (FSP) because it appears in at least two sequences.
[0040] However, when mining sequential patterns in the MOOCCube dataset, optimization measures need to be taken, because direct mining may produce a large number of trivial or meaningless patterns, and analyzing these patterns is not only computationally expensive and time-consuming, but also lacks practicality for decision-making purposes. Among them, introducing constraints in sequential pattern mining is an effective technique to deal with the challenges of large result sets and computational efficiency, but these constraints define strict conditions that the patterns must meet. Combined with the complex time dimension characteristics of the MOOCCube dataset, this application will focus on sequential behavior records ( The goal of the efficiency-constrained sequential pattern mining (ECSPM) problem is to find sequential patterns that meet efficiency constraints (ECSP) in the data. The complete set of ECSPs with efficiency constraints specified in .
[0041] Table 1 Sequence behavior record SBR
[0042] Table 2 Time latitude information of two sequences
[0043] 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.
[0044] In a first aspect, an embodiment of the present application provides a sequential pattern mining method with efficiency constraints.
[0045] In one embodiment, referring to Figure 1 , Figure 1 Schematic diagram of the flow chart of the embodiment of the sequential pattern mining method with efficiency constraints of the present application. Figure 1 As shown in Figure 2, sequential pattern mining methods with efficiency constraints include: Step S10: Determine attendance constraints, discrete constraints and dropout constraints based on the start time, end time, progress time and total duration of the items in the pattern and the sequence length.
[0046] Furthermore, the attendance constraint, discrete constraint and dropout constraint are determined based on the start time, end time, progress time and total duration of the items in the pattern and the sequence length, respectively, including: The attendance constraint is determined based on the start time, the end time, the progress time and the total duration; wherein the calculation formula of the attendance constraint is:
[0047] In the formula, Representation sequence S Medium Mode The corresponding attendance constraint is , , and Respectively represent the sequence S Middle i The start time, end time, progress time and total duration of each project, sequence Include n chronologically arranged items; A discrete constraint is determined based on the start time; wherein the calculation formula of the discrete constraint is:
[0048]
[0049] In the formula, Representation sequence S Medium Mode The corresponding discrete constraints are: Representation sequence S Middle i The start time of each project, the sequence Include n chronologically arranged items; A dropout constraint is determined based on the sequence length, the progress time and the total duration; wherein the calculation formula of the dropout constraint is:
[0050] In the formula, Representation sequence S Medium Mode The corresponding dropout constraint is Representation sequence Medium Mode The number of dropout-dominant learning behaviors is determined based on the proportion of progress time to total duration. Representation sequence S The sequence set The maximum length of all sequences in .
[0051] Step S20: constructing a support with efficiency constraints according to the attendance constraint, the discrete constraint and the dropout constraint.
[0052] Furthermore, constructing the support with efficiency constraint according to the attendance constraint, the discrete constraint and the dropout constraint includes: Based on attendance constraints, discrete constraints, dropout constraints and patterns The corresponding support sets determine the support corresponding to the attendance constraints , the support corresponding to the dropout constraint And the support corresponding to the dropout constraint ; According to support , support And support Constructing support with efficiency constraints ; Wherein, the support degree with efficiency constraint The calculation formula is:
[0053] In the formula, , and They represent attendance factor, discrete factor and dropout factor respectively, and their values are in the range of [0,1] and .
[0054] Step S30: traverse and mine the sequence patterns in the massive open online course data set through the support with efficiency constraints and the preset sequence pattern mining algorithm to output the efficiency constraint sequence pattern; the sequence pattern mining algorithm includes any one of the step-by-step efficiency constraint sequence pattern mining algorithm, the projection-based efficiency constraint sequence pattern mining algorithm and the integrated cost efficiency constraint sequence pattern mining algorithm, and the cost is determined based on the progress time. Wherein, the cost is determined based on the progress time, including: determining the pattern according to the progress time of the project The corresponding cost in each sequence; based on the pattern The corresponding cost in each sequence and the support with efficiency constraints Determine the pattern The average cost of and Mode The minimum cost determines the mode The average support cost.
[0055] For example, in this embodiment, we will focus on analyzing the MOOCCube dataset in the field of online education, aiming to deeply explore the learning sequence of MOOC from four dimensions, namely, learning sequence length, learning registration time, effective duration of learning cycle and total duration. In order to effectively model the above dimensions, this embodiment introduces three key constraints, namely attendance, discreteness and dropout, and integrates these specific constraints into the support, and the above modified support follows the downward closure property.
[0056] Specifically, for the attendance constraint, the definition of the support degree of the attendance constraint is firstly given.
[0057] Definition 1 (Support of attendance constraint): For a pattern , in a specific sequence set In the context of The specific calculation formula for attendance is: (1) In the formula, Representation sequence S Medium Mode The corresponding attendance constraint is , , and Respectively represent the sequence S Middle i The start time, end time, progress time and total duration of each project (i.e. course) are Include n items in chronological order.
[0058] Furthermore, this embodiment combines the attendance constraint with the concept of support, thereby defining the mode The support of the attendance constraint is used to evaluate the model The importance in the data set is calculated as: (2) In the formula, Representation Mode The support of the attendance constraint, Representation Mode support set.
[0059] Based on the above definition 1, we can determine Theorem 1: For any two patterns and ,if yes A subset of ),So .
[0060] The proof of Theorem 1 is as follows: , there are two situations: if , , ; if , , for the same and sequence , (3) if ,So (4) if ,So (5) It has been verified that a significant advantage of the support of the attendance constraint proposed in this embodiment is that it satisfies the downward closure property, which is of great significance for pruning the search space and reducing the computational complexity of the mining algorithm.
[0061] For discrete constraints, the corresponding definition of the support of discrete constraints is given first.
[0062] Definition 2 (Support of discreteness constraint): In order to capture the discreteness change of the initial moment of the learning behavior in the sequence, this embodiment proposes discreteness constraint. Taking the sequence in Table 1 as an example, it can be seen that the sequence and All include mode ; It is understandable that on the MOOC platform, sequences with small time discreteness of learning behavior are more favored, which means that when multiple sequences contain the same pattern, those sequences that show smaller discreteness at the beginning of learning behavior will contribute more to the support of the pattern; for example, Table 2 shows the specific data of the start time, end time, progress time and total duration of the learning behavior, then the sequence and sequence For example, the sequence Medium Mode The initial date of the learning behavior spans from February 20, 2017 to March 12, 2017, with an average date of 10 days, and the sequence Medium Mode The initial date of learning behavior of 2017-03-21 continued to 2017-09-20, with an average of 91 days. Therefore, from the optimization perspective, the sequence Pair Mode The support contributed more.
[0063] To quantify the sequence In-context mode The discreteness of The discrete constraints are defined as follows: (6) in, Representation sequence S Medium Mode The corresponding discrete constraints are: .
[0064] According to the above definition, the discreteness constraint reflects the degree of temporal variation of the learning behavior in the sequence; if the initial time of the learning behavior is significantly different from the average learning behavior time in the sequence, the constraint value is smaller.
[0065] To evaluate the patterns in the dataset In order to understand the importance of discrete constraints, this embodiment introduces the support of discrete constraints, that is, combining the support with the discrete constraints: (7) In the formula, Representation Mode The support of the discreteness constraint.
[0066] Based on the above definition 2, we can determine Theorem 2: For any two patterns and ,if yes A subset of ),So .
[0067] The proof of Theorem 2 is as follows: , there are two situations: if , , ; if , , assuming , , , and the sequence Also includes and , so there exists , and satisfies , ,So
[0068] (8) then,
[0069]
[0070] (9) Among them, the first term in formula (9) is: (10) Among them, the third term in formula (9) is:
[0071]
[0072] (11) Arranging equations (9), (10), and (11) yields: (12) therefore: ,because , ; if ,So
[0073] (13) if ,So
[0074]
[0075] (14) According to the above analysis, when , , similarly (m>1), .
[0076] The above properties show that the support of discrete constraints satisfies the downward closure property, which is of great significance for pruning the search space and reducing the computational complexity of the mining algorithm.
[0077] For the dropout constraint, the corresponding definition of the support of the dropout constraint is first given.
[0078] Definition 3 (Support for dropout constraint): The original intention of introducing dropout constraint in this embodiment is that non-dropout learning behavior usually reflects the learner's strong commitment to learning, while dropout-dominated learning behavior often occurs in learners who are prone to give up their education plans; therefore, a threshold can be set to , when the proportion of the progress time of the learning behavior to the total course duration is lower than this threshold, the learning behavior can be classified as dropout-dominant. and For example, they all contain the pattern , assuming that the threshold Set to 0.4, the mode exist There are 2 non-dropout learning behaviors in There is only one non-dropout learning behavior and one learning behavior that causes dropout. Therefore, in this case, right The contribution is greater than .
[0079] To quantify the patterns in a sequence In a specific sequence In order to determine the dropout situation, this embodiment introduces the concept of dropout constraint, where the calculation formula of the dropout constraint is: (15) In the formula, Representation sequence S Medium Mode The corresponding dropout constraint is Representative sequence Medium Mode The number of dropout-dominated learning behaviors, and The entire sequence set The maximum length of all sequences in .
[0080] It is understandable that the introduction of dropout constraints makes it possible to clearly distinguish between dropout-dominant behaviors and non-dropout behaviors; For example, by applying the dropout constraint, we can calculate , which shows that in terms of learning behavior, the pattern In sequence The support in does not decrease due to dropout, because Both learning behaviors are non-dropout behaviors.
[0081] To evaluate the patterns in the dataset In order to understand the importance of dropout constraints, this embodiment further proposes the concept of support for dropout constraints, which combines the concept of support with the dropout constraint. The specific calculation formula is as follows: (16) Based on the above definition 3, we can determine Theorem 3: For any two patterns and ,if yes A subset of ),So .
[0082] It should be understood that for any two modes and ,if , then consider also including and sequence ,because ,So This property shows that the support of the dropout constraint satisfies downward closure, which helps to simplify the search space and reduce the computational complexity of the mining algorithm.
[0083] This embodiment combines the three constraints of attendance, discreteness and dropout to form an integrated efficiency constraint, and applies it to the mining algorithm so that the mining algorithm can focus on those patterns that meet these constraint criteria at the same time. This integrated constraint method effectively replaces the traditional support, thereby accelerating the processing process of sequential pattern mining (SPM).
[0084] For the integration of the three constraints of attendance, discreteness and dropout, the corresponding support is defined as follows: Definition 4 (Support of efficiency constraints): In order to comprehensively evaluate the patterns in the data set In order to understand the importance of efficiency constraints, this embodiment proposes the concept of support of efficiency constraints, which combines support with efficiency constraints. The specific calculation formula is: (17) in, represents the support of the efficiency constraint, , and They represent attendance factor, discrete factor and dropout factor respectively, and their values range from [0,1] and satisfy It is understandable that for any two modes and ,if yes subset of , then there must be support for the efficiency constraint , it can be seen that efficiency constraints also reflect downward closure.
[0085] It should be noted that the core task of this embodiment is to identify the sequence behavior record The efficiency constrained sequential pattern (ECSP) in the dataset can be specifically determined by setting a minimum support threshold And ensure that the pattern satisfies the efficiency constraint to achieve: if a sequence pattern The support of the efficiency constraint Not less than the set minimum support threshold , then the mode is considered as ECSP. In particular, the length is ECSPs can be specifically marked as .
[0086] This embodiment incorporates the support of efficiency constraints into the mining process, and based on this, three algorithms are carefully proposed, all of which are aimed at discovering efficiency-constrained sequential patterns (ECSPs), and these algorithms use different strategies to integrate efficiency constraints so that they can effectively explore the search space while considering efficiency constraints. Among them, these algorithms will use step-by-step search space traversal or recursive projection technology, and combine the cost concept for pattern mining, which significantly reduces the number of SPs discovered compared to traditional SPM algorithms.
[0087] It should be noted that the three algorithms are ECSPM-L, ECSPM-P and ECSPM-C, where: ECSPM-L (Efficiency Constrained Sequential Pattern Mining Level by Level): This algorithm traverses the search space level by level, deeply explores each level, and fully considers efficiency constraints in the whole process.
[0088] ECSPM-P (Efficiency Constrained Sequential Pattern Mining Based on Projection): This algorithm uses a recursive projection technique to navigate the search space by projecting the sequence onto smaller subsequences and recursively exploring these subsequences while incorporating efficiency constraints.
[0089] ECSPM-C (Efficiency Constrained Sequential Pattern Mining Algorithm with Integrated Cost): This algorithm is further extended on the basis of CEPN (Mining Cost-Effective Patterns in Event Logs, which uses event logs with cost values to evaluate the cost-effectiveness of patterns). By integrating cost information, it provides guidance for the exploration process of the search space to ensure that efficiency constraints are fully considered during the exploration process.
[0090] Specifically, for solving the ECSPM problem, the ECSPM-L algorithm proposed in this embodiment is an algorithm that explores the search space through a level-by-level traversal strategy. The algorithm incorporates efficiency constraints at each traversal level. The ECSPM-L algorithm (i.e., Algorithm 1) is as follows:
[0091] It can be seen that Algorithm 1 elaborates the operation process of the ECSPM-L algorithm when mining ECSP.
[0092] Specifically, the ECSPM-L algorithm records the sequence behavior and the minimum support threshold As input, the output is the mined ECSP set; in Algorithm 1, this embodiment uses To represent an ECSP of length k, the entire ECSP set consists of all ECSPs of different lengths Composition; the algorithm first initializes To store all (Line 1 of the algorithm); then, the algorithm starts a loop, and the number of iterations increases from 1 until all ECSPs are found (Lines 3-7 of the algorithm); it should be understood that in each iteration, the algorithm Generate candidate ECSPs of length k+1. These candidate sequences are represented as , if the efficiency constraint support of the candidate sequence is not less than , then add it to middle.
[0093] In order to further optimize the search process, this embodiment also proposes an ECSPM-P algorithm, which uses a recursive projection method to traverse the search space and solve the ECSP problem. Compared with ECSPM-L, ECSPM-P is more efficient when processing large-scale search spaces. It should be understood that the basic concept of sequence database projection is: given a sequential behavior record Mode in and sequence , if the mode Appears in sequence In, then the mode Pair Sequence The projection is the sequence Middle slave mode The part after the first occurrence; for Mode in For its projection database Is All in mode Specifically, taking Table 1 as an example, if we consider the pattern , then the mode The projection database will be shown in Table 3.
[0094] Table 3 Projection database in sequence behavior records
[0095] Based on the concept of sequence database projection, this embodiment further designs an ECSPM-P algorithm, which is specifically used to mine ECSP. Among them, ECSPM-P (i.e., Algorithm 2) is as follows:
[0096] It can be seen that Algorithm 2 describes in detail the execution process of ECSPM-P when mining ECSP. Specifically, the ECSPM-P algorithm uses a sequential mode , its projection database and the minimum support threshold As input, the output is the mined ECSP set; at the beginning of the algorithm, this embodiment firstly The projection database is identified and Save all lengths ECSP (line 1 of the algorithm); then, the algorithm enters a main loop that iterates through Each of , that is, loop through each length Mode ; In each iteration (line 2-11 of the algorithm), this embodiment passes Append to an existing schema The new ECSP is generated at the end of the algorithm, and the newly generated ECSP is created in line 4 and output in line 5. At the same time, this embodiment also builds a projection database related to the newly generated ECSP (line 6 of the algorithm). In addition, the algorithm also recursively calls the ECSPM-P process to further expand other ECSPs (line 7 of the algorithm). It is worth noting that when the ECSPM-P process is called for the first time, the parameter is an empty set, so the projection database Actually it is original .
[0097] For the ECSPM-C algorithm, it is an ECSP mining algorithm that incorporates recursive projection and cost into pattern mining. ECSPM-C is implemented based on the ECSPM-P algorithm, that is, recursive projection is used to traverse the search space. It is worth noting that in ECSPM-C, the progress time of the courses in the MOOCCube dataset will be used as the cost of performing sequential pattern mining.
[0098] Specifically, we first define cost measurement and average support cost.
[0099] Definition 5 (Cost Measurement): Pattern Cost Is based on the pattern In each sequence The first occurrence of a metric in: (18) Then Mode The average cost is defined as follows: (19) Definition 6 (Average Support Cost): For a pattern ,set up Indicates The smallest , then the average support cost (ASC) is defined as: (20) In the formula, Representation Mode The average support cost.
[0100] Based on the above definition, we can determine Theorem 4: Mode The ASC of is less than or equal to its average, and ASC is a lower bound on the average cost; because ,then .
[0101] Theorem 5: For any two patterns and ,if yes ASC is monotonic, that is, .
[0102] Theorem 6: For the pattern ,if ,but , so the pattern Not considered ECSP, and mode Any superset of is not considered ECSP. Indicates the maximum cost threshold.
[0103] By using the ASC metric and the principles established in the above theorems, the average cost associated with the sequential pattern can be effectively estimated to more effectively apply pruning techniques to discover ECSP. Therefore, this embodiment proposes an ECSPM-C algorithm based on cost; wherein the ECSPM-C algorithm is as follows:
[0104] It can be seen that Algorithm 3 elaborates on the operation process of the ECSPM-C algorithm when mining ECSP. Specifically, ECSPM-C converts the sequence pattern , Projection database , and as input and the ECSP set as output; first, is an empty set, yes By itself, ECSP with a single project consists of Find and save (line 1); then for Each of , the main loop passes through Attach to to generate a new ECSP (lines 2-14); if The support of is greater than or equal to the minimum support threshold ( ),and The average cost does not exceed the maximum cost threshold ( ), then Add to to create a new ECSP at the end of , and this new ECSP as a valid ECSP output (lines 4-7); Theorem 3 is then used to check whether the search space reduction condition is satisfied. If Less than or equal to the maximum cost threshold, then build The projection database is then called to recursively generate the ECSP (lines 8-10). It can be seen that ECSPM-C effectively reduces the connection operations and unnecessary database projections, thereby significantly reducing memory usage.
[0105] It should be understood that this embodiment can traverse and mine the sequence patterns in the MOOCCube dataset through any of the above three algorithms to output efficiency-constrained sequence patterns, thereby achieving the purpose of improving the effectiveness and accuracy of sequence pattern discovery and reducing the number of sequence pattern discoveries.
[0106] In summary, this embodiment conducts an in-depth analysis of the specific learning behavior of the MOOCCube dataset, and accordingly introduces efficiency constraints in multiple dimensions, including the length of the learning sequence, the learning registration time, the effective duration and the total duration of the learning cycle; and innovatively proposes the support of efficiency constraints (EffCS), and integrates these efficiency constraints into the pattern mining process, and strictly proves that EffCS retains the basic downward closure characteristics, ensuring the reliability of the mining results. In addition, based on the above theoretical support, this embodiment proposes three algorithms: ECSPM-L, ECSPM-P and ECSPM-C, to discover sequence patterns with efficiency constraints; these algorithms cleverly combine the level-by-level search space traversal or recursive projection technology, and integrate the cost concept into pattern mining, realizing the effective processing of efficiency constraints, and compared with traditional sequence pattern mining algorithms, ECSPM can identify fewer patterns, which fully verifies its effectiveness in considering and satisfying specific efficiency constraints; at the same time, ECSPM also shows good performance in terms of efficiency and memory consumption.
[0107] On the second aspect, an embodiment of the present application also provides a sequential pattern mining device with efficiency constraints.
[0108] In one embodiment, a sequential pattern mining apparatus with efficiency constraints includes: A determination module, which is used to determine attendance constraints, discrete constraints and dropout constraints respectively based on the start time, end time, progress time and total duration of the project in the sequence pattern and the sequence length; A construction module, which is used to construct a support with efficiency constraints according to the attendance constraint, the discrete constraint and the dropout constraint; A mining module is used to traverse and mine the sequence patterns in the massive open online course data set through the support with efficiency constraints and a preset sequence pattern mining algorithm to output efficiency constraint sequence patterns; the sequence pattern mining algorithm includes any one of a step-by-step efficiency constraint sequence pattern mining algorithm, a projection-based efficiency constraint sequence pattern mining algorithm and an integrated cost efficiency constraint sequence pattern mining algorithm, and the cost is determined based on the progress time.
[0109] Furthermore, in one embodiment, the determining module is specifically used for: Determine attendance constraints based on start time, end time, progress time and total duration; Determine discrete constraints based on start time; Dropout constraints are determined based on sequence length, progress time, and total duration.
[0110] Furthermore, in one embodiment, the calculation formula of the attendance constraint is:
[0111] In the formula, Representation sequence S Medium Mode The corresponding attendance constraint is , , and Respectively represent the sequence S Middle i The start time, end time, progress time and total duration of each project, sequence Include n items in chronological order.
[0112] Furthermore, in one embodiment, the calculation formula of the discrete constraint is:
[0113]
[0114] In the formula, Representation sequence S Medium Mode The corresponding discrete constraints are: Representation sequence S Middle i The start time of each project, the sequence Include n items in chronological order.
[0115] Furthermore, in one embodiment, the calculation formula of the dropout constraint is:
[0116] In the formula, Representation sequence S Medium Mode The corresponding dropout constraint is Representation sequence Medium Mode The number of dropout-dominant learning behaviors is determined based on the proportion of progress time to total duration. Representation sequence S The sequence set The maximum length of all sequences in .
[0117] Furthermore, in one embodiment, the building block is specifically used for: Based on attendance constraints, discrete constraints, dropout constraints and patterns The corresponding support sets determine the support corresponding to the attendance constraints , the support corresponding to the dropout constraint And the support corresponding to the dropout constraint ; According to support , support And support Constructing support with efficiency constraints .
[0118] Furthermore, in one embodiment, the support with efficiency constraints The calculation formula is:
[0119] In the formula, , and They represent attendance factor, discrete factor and dropout factor respectively, and their values are in the range of [0,1] and .
[0120] Furthermore, in one embodiment, the cost is determined based on the schedule time, including: Determine the mode based on the project schedule The corresponding cost in each sequence; Based on the pattern The corresponding cost in each sequence and the support with efficiency constraints Determine the pattern The average cost of Through the support of efficiency constraints and Mode The minimum cost determines the mode The average support cost.
[0121] Among them, the functional implementation of each module in the above-mentioned sequential pattern mining device with efficiency constraints corresponds to the various steps in the above-mentioned sequential pattern mining method with efficiency constraints embodiment, and its functions and implementation processes will not be repeated here one by one.
[0122] In a third aspect, an embodiment of the present application provides a sequential pattern mining device with efficiency constraints. The sequential pattern mining device with efficiency constraints may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.
[0123] Reference Figure 2 , Figure 2 The hardware structure diagram of the sequential pattern mining device with efficiency constraints involved in the embodiment of the present application is shown in FIG. In the embodiment of the present application, the sequential pattern mining device with efficiency constraints may include a processor, a memory, a communication interface, and a communication bus.
[0124] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.
[0125] The communication interface includes input / output (I / O) interface, physical interface and logical interface, etc., which are used to realize the interconnection of devices inside the sequential pattern mining device with efficiency constraints, and the interface used to realize the interconnection of the sequential pattern mining device with efficiency constraints with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.
[0126] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0127] The processor may be a general-purpose processor, which may call the sequential pattern mining program with efficiency constraints stored in the memory and execute the sequential pattern mining method with efficiency constraints provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the sequential pattern mining program with efficiency constraints is called may refer to the various embodiments of the sequential pattern mining method with efficiency constraints of the present application, which will not be repeated here.
[0128] Those skilled in the art will understand that Figure 2 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0129] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.
[0130] The readable storage medium of the present application stores a sequential pattern mining program with efficiency constraints, wherein when the sequential pattern mining program with efficiency constraints is executed by a processor, the steps of the sequential pattern mining method with efficiency constraints as described above are implemented.
[0131] Among them, the method implemented when the sequential pattern mining program with efficiency constraints is executed can refer to the various embodiments of the sequential pattern mining method with efficiency constraints in this application, and will not be repeated here.
[0132] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0133] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0134] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0135] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0136] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0138] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A sequential pattern mining method with efficiency constraints, characterized in that: The following steps are involved: Based on the start time, end time, progress time, total duration and sequence length of the items in the pattern, the attendance constraint, discrete constraint and dropout constraint are determined respectively; Constructing support with efficiency constraints according to the attendance constraint, the discrete constraint and the dropout constraint; The sequence patterns in the massive open online course data set are traversed and mined by using the support with efficiency constraints and a preset sequence pattern mining algorithm to output efficiency constraint sequence patterns; the sequence pattern mining algorithm includes any one of a step-by-step efficiency constraint sequence pattern mining algorithm, a projection-based efficiency constraint sequence pattern mining algorithm, and an integrated cost efficiency constraint sequence pattern mining algorithm, and the cost is determined based on the progress time.
2. The method for mining sequential patterns with efficiency constraints according to claim 1, characterized in that: The start time, end time, progress time, total duration and sequence length of the items in the pattern are used to determine the attendance constraint, discrete constraint and dropout constraint, respectively, including: Determine attendance constraints based on start time, end time, progress time and total duration; Determine discrete constraints based on start time; Dropout constraints are determined based on sequence length, progress time, and total duration.
3. The method for mining sequential patterns with efficiency constraints according to claim 2, characterized in that: The calculation formula of the attendance constraint is: In the formula, Representation sequence S Medium Mode The corresponding attendance constraint is , , and Respectively represent the sequence S Middle i The start time, end time, progress time and total duration of each project, sequence Include n items in chronological order.
4. The method for mining sequential patterns with efficiency constraints according to claim 2, characterized in that: The calculation formula of the discrete constraint is: In the formula, Representation sequence S Medium Mode The corresponding discrete constraints are: Representation sequence S Middle i The start time of each project, the sequence Include n items in chronological order.
5. The method for mining sequential patterns with efficiency constraints according to claim 2, characterized in that: The calculation formula of the dropout constraint is: In the formula, Representation sequence S Medium Mode The corresponding dropout constraint is Representation sequence Medium Mode The number of dropout-dominant learning behaviors is determined based on the proportion of progress time to total duration. Representation sequence S The sequence set The maximum length of all sequences in .
6. The method for mining sequential patterns with efficiency constraints according to claim 1, characterized in that: The constructing of support with efficiency constraints according to the attendance constraint, the discrete constraint and the dropout constraint includes: Based on attendance constraints, discrete constraints, dropout constraints and patterns The corresponding support sets determine the support corresponding to the attendance constraints , the support corresponding to the dropout constraint And the support corresponding to the dropout constraint ; According to support , support And support Constructing support with efficiency constraints .
7. The method for mining sequential patterns with efficiency constraints according to claim 6, characterized in that: The support degree with efficiency constraints The calculation formula is: In the formula, , and They represent attendance factor, discrete factor and dropout factor respectively, and their values are in the range of [0,1] and .
8. The method for mining sequential patterns with efficiency constraints according to claim 1, characterized in that: The cost is determined based on the schedule and includes: Determine the mode based on the project schedule The corresponding cost in each sequence; Based on the pattern The corresponding cost in each sequence and the support with efficiency constraints Determine the pattern The average cost of Through the support of efficiency constraints and Mode The minimum cost determines the mode The average support cost.
9. A sequential pattern mining device with efficiency constraints, characterized in that: include: A determination module, which is used to determine attendance constraints, discrete constraints and dropout constraints respectively based on the start time, end time, progress time and total duration of the project in the sequence pattern and the sequence length; A construction module, which is used to construct a support with efficiency constraints according to the attendance constraint, the discrete constraint and the dropout constraint; A mining module is used to traverse and mine the sequence patterns in the massive open online course data set through the support with efficiency constraints and a preset sequence pattern mining algorithm to output efficiency constraint sequence patterns; the sequence pattern mining algorithm includes any one of a step-by-step efficiency constraint sequence pattern mining algorithm, a projection-based efficiency constraint sequence pattern mining algorithm and an integrated cost efficiency constraint sequence pattern mining algorithm, and the cost is determined based on the progress time.
10. A sequential pattern mining device with efficiency constraints, characterized in that: The sequential pattern mining device with efficiency constraints includes a processor, a memory, and a sequential pattern mining program with efficiency constraints stored on the memory and executable by the processor, wherein when the sequential pattern mining program with efficiency constraints is executed by the processor, the steps of the sequential pattern mining method with efficiency constraints as described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Sequence pattern mining method based on interest degree measurement
CN106528782A
FP-Growth optimization algorithm, storage medium and electronic device
CN112084012A
User behavior data processing method and device, equipment and storage medium
CN112107866A
One-time condition negative sequence pattern mining method
CN113076356A
Transaction data frequent sequence pattern mining method based on improved PrefixSpan algorithm
CN113505156A
