Cognitive degree calculation method and device, electronic equipment and computer readable medium

By using spectrum clustering analysis and unsupervised learning techniques in the elderly cognitive training game, the problem of unobjective cognitive assessment of the elderly is solved, and multi-dimensional quantification and personalized evaluation of the cognitive level of the elderly is realized, supporting individuality cognitive training and intervention.

CN118969264AInactive Publication Date: 2024-11-15BEIJING ANDING HOSPITAL CAPITAL MEDICAL UNIV

Patent Information

Application Number
CN202410935803.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the elderly cognitive training game, it is difficult for doctors to uniformly evaluate the cognitive level of the elderly, resulting in unobjective and accurate assessment standards and ineffective support for personalized cognitive training and intervention.

Method used

By obtaining user operation data, generating feature matrix, constructing similarity matrix and graph Laplace matrix, performing spectral clustering analysis, combining unsupervised learning technology to score user behavior, identify groups with similar cognitive levels, and provide personality cognitive training recommendations.

Benefits of technology

An objective and accurate assessment of the cognitive level of the elderly is achieved, the cost of data collection and labeling is reduced, the individual differences are adapted to individuals, and personalized cognitive training and intervention are supported.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118969264A_ABST
    Figure CN118969264A_ABST
Patent Text Reader

Abstract

The invention discloses a cognitive degree calculation method and device based on an elderly cognitive training game, electronic equipment and a computer readable medium, and the method comprises the steps: obtaining user operation data which comprises N types of data; generating a feature matrix according to the operation data, wherein the depth of the feature matrix is M; judging whether M is equal to N or not, if yes, entering the next step, and otherwise, repeating the steps; constructing a similarity matrix W according to the feature matrix; calculating a diagonal angle quantity matrix D and a graph Laplacian matrix L by using the similarity matrix W; performing spectral clustering analysis on the graph Laplacian matrix L; and scoring the user behaviors according to the result of the spectral clustering analysis. According to the method, the objectivity and accuracy of evaluation are improved, more bases are provided for game designers, and the game content and difficulty better meet the cognitive requirements of old people.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of cognitive quantification, and specifically relates to a cognitive degree calculation method, device, electronic device and computer-readable medium based on elderly cognitive training games. Background Art

[0002] As the global population aging trend becomes increasingly prominent, the problem of cognitive dysfunction in the elderly is also becoming increasingly prominent. Among them, Alzheimer's disease, as the most common type of dementia, poses a serious threat to the physical and mental health of the elderly. It is predicted that by 2050, the global population over 60 years old will reach hundreds of millions, and the number of patients with dementia will also increase year by year. As one of the countries with the largest number of patients with dementia, China has a worrying number of dementia patients. What is particularly concerning is that many people tend to confuse cognitive impairment with normal aging phenomena, resulting in insufficient attention to it, missing the best time for intervention, and ultimately aggravating the deterioration of the disease. Therefore, it is crucial to carry out scientific early prevention of cognitive impairment. In this context, cognitive training games for the elderly came into being, providing an effective cognitive intervention method for the elderly. By combining exercise intervention and cognitive training, these games can help the elderly keep their brains active, reduce the risk of cognitive impairment, and thus delay the development of dementia. This comprehensive intervention method has been confirmed by many studies and has become one of the effective means of preventing cognitive impairment.

[0003] In the elderly cognitive training game, the evaluation of the cognitive level of the elderly depends not only on the final game results, but also on the comprehensive consideration of the performance during the game. However, considering the diversity of elderly cognitive training games, it is difficult for doctors to grasp the details of all games, and it is impossible to set a unified evaluation standard for each game. Therefore, evaluating the performance of the elderly in the game requires flexible and meticulous observation. Doctors may pay attention to factors such as the elderly's reaction speed, memory ability, and concentration in the game to judge the changes and improvements in their cognitive level. At the same time, doctors can also use professional cognitive assessment tools and scales, combined with the performance of the elderly in the game, to conduct a more objective and comprehensive cognitive assessment. However, it is precisely because of the excessive human intervention required in the evaluation process that the evaluation standards are difficult to unify and the evaluation results are difficult to be objective and accurate. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a method, device, electronic device and computer-readable medium for calculating cognition based on elderly cognitive training games, which not only improves the objectivity and accuracy of the evaluation, but also provides more basis for game designers to make the game content and difficulty more in line with the cognitive needs of the elderly.

[0005] The technical solution adopted by the present invention is:

[0006] In a first aspect, the present application discloses a method for calculating cognition, comprising the following steps:

[0007] Acquire user operation data, where the operation data includes N types of data;

[0008] Generate a feature matrix according to the operation data, wherein the depth of the feature matrix is ​​M;

[0009] Determine whether M=N is true, if so, proceed to the next step, otherwise, repeat the above steps;

[0010] Construct a similarity matrix W according to the feature matrix;

[0011] Calculate the diagonal matrix D and the graph Laplacian matrix L using the similarity matrix W;

[0012] Performing spectral clustering analysis on the graph Laplacian matrix L;

[0013] Scoring user behavior according to the result of the spectral clustering analysis;

[0014] Among them, when N=4, the N types of data include the user's touch screen coordinate data, touch screen duration data, game reaction time data and mobile phone posture data.

[0015] As an optional implementation, the constructing of the similarity matrix W includes:

[0016] The distance between each pair of samples in the feature matrix is ​​calculated using the Euclidean distance or cosine similarity measurement method;

[0017] The similarity matrix W is constructed using the calculated distance between each pair of samples.

[0018] As an optional technical solution, the diagonal matrix D is calculated according to the following formula (1):

[0019] D ii =∑ j W ij (1)

[0020] Among them, W ij represents the value of the element in the i-th row and j-th column of the similarity matrix W, that is, the similarity between sample i and sample j, D ii Represents the value of the element in the i-th row and i-th column of the diagonal matrix D, that is, the sum of the similarities between sample i and all other samples;

[0021] The graph Laplacian matrix L is calculated according to the following formula (2):

[0022] L=DW (2).

[0023] As an optional implementation, the spectral clustering analysis includes: performing eigendecomposition on the matrix L obtained by formula (2) to obtain its eigenvectors and corresponding eigenvalues; reducing the dimension of the sample according to the eigenvectors, and then clustering the reduced-dimensional data using a clustering algorithm, and combining the indicator matrix H to divide the sample into k clusters; wherein the segmentation cost function of the k clusters is:

[0024]

[0025] Among them, Cut'(A l , A l ) represents two clusters A l The sum of the edge weights, size(A l ) represents cluster A l The indicator matrix H is a custom N×G matrix, where N is the number of samples and G is the total number of clusters. The size of the cluster in the cost function is measured by the cumulative connectivity of all data points belonging to the cluster, that is:

[0026]

[0027] The scoring of user behaviors includes: scoring according to the size of the k clusters, the connectivity within the clusters, and the degree of separation between the clusters.

[0028] In a second aspect, the present application also discloses a cognitive degree calculation device, the device comprising:

[0029] A data acquisition module, used to acquire user operation data, wherein the operation data includes N types of data;

[0030] A feature matrix generating module, used for generating a feature matrix according to the operation data, wherein the depth of the feature matrix is ​​M;

[0031] A judgment module is used to judge whether M=N is established. If so, a similarity matrix construction module is called; otherwise, a data acquisition module is called;

[0032] A similarity matrix construction module, used to construct a similarity matrix W according to the feature matrix;

[0033] A calculation module, used to calculate the diagonal matrix D and the graph Laplace matrix L using the similarity matrix W;

[0034] A spectral clustering analysis module, used for performing spectral clustering analysis on the graph Laplacian matrix L;

[0035] A scoring module, used for scoring user behaviors according to the results of the spectral clustering analysis;

[0036] Among them, when N=4, the N types of data include the user's touch screen coordinate data, touch screen duration data, game reaction time data and mobile phone posture data.

[0037] As an optional technical solution, the similarity matrix construction module is also used to: calculate the distance between each pair of samples in the feature matrix using the Euclidean distance or cosine similarity measurement method, and construct the similarity matrix W using the calculated distance between each pair of samples.

[0038] As an optional technical solution, the calculation module calculates the diagonal matrix D according to the following formula (1):

[0039] D ii =∑ j W ij (1)

[0040] Among them, W ij represents the value of the element in the i-th row and j-th column of the similarity matrix W, that is, the similarity between sample i and sample j, D ii Represents the value of the element in the i-th row and i-th column of the diagonal matrix D, that is, the sum of the similarities between sample i and all other samples;

[0041] The calculation module also calculates the graph Laplacian matrix L according to the following formula (2):

[0042] L=DW (2).

[0043] As an optional technical solution, the spectral clustering analysis module is also used to: perform eigendecomposition on the matrix L obtained by formula (2) to obtain its eigenvectors and corresponding eigenvalues, and reduce the dimension of the sample according to the eigenvectors, and then use a clustering algorithm to cluster the reduced-dimensional data, and combine the indicator matrix H to divide the sample into k clusters; wherein the segmentation cost function of the k clusters is:

[0044]

[0045] Among them, Cut'(A l , A l ) represents two clusters A l The sum of the edge weights, size(A l ) represents cluster A l The indicator matrix H is a custom N×G matrix, where N is the number of samples and G is the total number of clusters. The size of the cluster in the cost function is measured by the cumulative connectivity of all data points belonging to the cluster, that is:

[0046]

[0047] The scoring module is also used to score according to the size of the k clusters, the connectivity within the clusters, and the degree of separation between the clusters.

[0048] In a third aspect, the present application also discloses an electronic device, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs comprising instructions, which, when executed by the one or more processors, enable the electronic device to perform the method disclosed above.

[0049] In a fourth aspect, the present application further discloses a computer-readable medium, comprising a computer program, which, when executed on a computer, enables the computer to execute the method disclosed above.

[0050] The beneficial effects of the present invention are:

[0051] By quantifying and calculating the elderly's behaviors in games in multiple dimensions, comprehensive data support can be obtained. These data not only cover the elderly's various behaviors, reactions, and performances in games, but also include information such as time and frequency related to the game, providing a sufficient data basis for subsequent cognitive evaluation. Through cluster analysis, features can be extracted from the elderly's behavioral data in games and converted into an assessment of the elderly's cognitive level. This method does not rely on pre-defined labels or supervisory signals, but evaluates by discovering the inherent structure between data, so it has strong universality and flexibility.

[0052] Through unsupervised learning techniques such as cluster analysis, the elderly can be divided into different groups or clusters, and individuals with similar cognitive levels can be identified in these groups. Such analysis results can better understand the cognitive characteristics of the elderly and provide a basis for personalized cognitive training. The cognitive scoring method based on unsupervised learning can overcome the limitation of traditional supervised learning methods that require a large amount of labeled data, reduce the cost of data collection and annotation, and better adapt to the changes in the cognitive level and individual differences of the elderly.

[0053] In summary, the cognitive calculation method of the present application can achieve an objective and accurate assessment of the cognitive level of the elderly, and can provide important technical support for personalized cognitive training and intervention. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 Schematic diagram of the process of calculating the degree of recognition in the embodiment.

[0055] Figure 2 Schematic diagram of user behavior characteristics.

[0056] Figure 3FIG. 1 is a schematic diagram of the architecture of a cognitive degree calculation device in an embodiment. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0058] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0059] Example

[0060] like Figure 1 As shown, this embodiment discloses a method for calculating the degree of cognition, comprising the following steps:

[0061] Acquire user operation data, where the operation data includes N types of data;

[0062] Generate a feature matrix according to the operation data, wherein the depth of the feature matrix is ​​M;

[0063] Determine whether M=N is true, if so, proceed to the next step, otherwise, repeat the above steps;

[0064] Construct a similarity matrix W according to the feature matrix;

[0065] Calculate the diagonal matrix D and the graph Laplacian matrix L using the similarity matrix W;

[0066] Performing spectral clustering analysis on the graph Laplacian matrix L;

[0067] Scoring user behavior according to the result of the spectral clustering analysis;

[0068] Among them, when N=4, the N types of data include the user's touch screen coordinate data, touch screen duration data, game reaction time data and mobile phone posture data.

[0069] Specifically, after scoring to obtain the user's awareness score, the decomposition value can be obtained by Monte Carlo simulation. If the awareness score is less than the cutoff value, it is determined that the user has no cognitive disorder; if it is greater than the cutoff value, it is determined that the user has a cognitive disorder.

[0070] As an optional technical solution, the construction of the similarity matrix W includes:

[0071] The distance between each pair of samples in the feature matrix is ​​calculated using the Euclidean distance or cosine similarity measurement method;

[0072] The similarity matrix W is constructed using the calculated distance between each pair of samples.

[0073] As an optional technical solution, the diagonal matrix D is calculated according to the following formula (1):

[0074] D ii =∑ j W ij (1)

[0075] Among them, W ij represents the value of the element in the i-th row and j-th column of the similarity matrix W, that is, the similarity between sample i and sample j, D ii Represents the value of the element in the i-th row and i-th column of the diagonal matrix D, that is, the sum of the similarities between sample i and all other samples;

[0076] The graph Laplacian matrix L is calculated according to the following formula (2):

[0077] L=DW (2).

[0078] As an optional technical solution, the spectral clustering analysis includes: performing eigendecomposition on the matrix L obtained by formula (2) to obtain its eigenvectors and corresponding eigenvalues; reducing the dimension of the sample according to the eigenvectors, and then clustering the reduced-dimensional data using a clustering algorithm, and combining the indicator matrix H to divide the sample into k clusters; wherein the segmentation cost function of the k clusters is:

[0079]

[0080] Among them, Cut'(A l , A l ) represents two clusters A l The sum of the edge weights, size(A l ) represents cluster A l The indicator matrix H is a custom N×G matrix, where N is the number of samples and G is the total number of clusters. The size of the cluster in the cost function is measured by the cumulative connectivity of all data points belonging to the cluster, that is:

[0081]

[0082] The scoring of user behaviors includes: scoring according to the size of the k clusters, the connectivity within the clusters, and the degree of separation between the clusters.

[0083] In this embodiment, in order to solve the problem of evaluating the cognitive level of the elderly in the elderly cognitive training game, the method of this embodiment draws on the thinking mode of artificially judging the cognitive level, and objectively evaluates the cognitive level of the elderly by analyzing and calculating their performance during the game. In this way, the behavior of the elderly in the game can be quantified, and their cognitive state can be grasped more accurately. This not only helps to design the difficulty and content of the game that is more suitable for the cognitive level of the elderly, but also provides more intuitive feedback to doctors and caregivers, helping them to better understand the cognitive status of the elderly, thereby providing support and guidance for personalized cognitive rehabilitation programs.

[0084] It should be noted that this method is not a medical identification of human cognition, but a method for quantitatively calculating the cognition of the elderly in professional cognition training games. This method is applicable to all cognition training games. The cognition calculated by this method can be divided into 1 to 100 points, 1 means excellent performance in the game, and 100 means that the player has a very difficult time in this round of the game. This score is used as a reference for game difficulty adjustment and level design, and can also be used as a reference for professional doctors to make relevant professional references based on game results.

[0085] In order to better understand this embodiment, the method of this embodiment is further described below.

[0086] The method of this embodiment is roughly divided into two key steps: quantification and scoring. The first step, the quantification stage aims to quantify the behavior of the elderly in the game in multiple dimensions in order to provide data support for the subsequent cognitive assessment. This process involves detailed recording and analysis of the various behaviors, reactions and performances of the elderly in the game, so as to form a comprehensive understanding of the cognitive level. In the second step, the scoring method is based on the quantification results, and the barrier-free cognitive model based on unsupervised learning is used for calculation, and finally the cognitive score of the elderly is obtained. This process combines quantitative data with training methods based on unsupervised learning, which can more accurately assess the cognitive level of the elderly and provide them with personalized cognitive training programs. This method not only improves the objectivity and accuracy of the evaluation, but also provides more basis for game designers, so that the game content and difficulty are more in line with the cognitive needs of the elderly.

[0087] In the quantification phase, we create an x-by-y grid on the game page and perform grid embedding on the user's operation data to collect information about the user's behavior in the game. These operation data mainly include four types:

[0088] 1. Touch screen coordinates: Get the coordinates of the position where the user touches the screen, and if it is multi-touch, collect the coordinate information of multiple touch points at the same time. The coordinate data of each touch point is accompanied by timestamp information for subsequent time analysis and behavior tracking.

[0089] 2. Touch screen contact time: Get the duration of the user's finger touching the screen, that is, the time from the finger touching the screen to the finger leaving the screen, calculated in milliseconds. This data can reflect the user's attention and participation in the game content.

[0090] 3. Game reaction time: refers to the time it takes for a user to actually complete an operation when feedback is required. By obtaining the user's operation behavior and the corresponding feedback time, the user's reaction speed and accuracy can be analyzed.

[0091] 4. Mobile phone posture data: Obtain the posture data of the user holding the mobile phone, including the tilt angle, rotation angle and other information of the mobile phone. These data can help understand the user's action posture and the position status of the mobile phone during the game, and provide more comprehensive feature information for subsequent recognition evaluation.

[0092] Based on the above four types of operation data, a feature matrix with a depth of 4 can be obtained. These feature data will provide rich information support for subsequent cognitive calculations and help to more accurately evaluate the user's cognitive level and behavioral performance. Figure 2 The figure below is a schematic diagram of user behavior characteristics. In the grid method, the user game interface is divided into 10×18 (x=10, y=18) grids, forming a grid structure with a depth of 4. When the user operates on the game interface, each grid area where the user's finger passes will be automatically recorded and recorded in a certain order. For example, Figure 2 In the example shown in , 123 represents the order in which the user swiped across. The depth data includes the order in which the points were clicked, the time interval from the previous point to this point, the speed when sliding away from the point, and the current posture of the phone. This gridding method is based on the game interface and screen size, so it can be adaptively adjusted to suit different game interfaces and device screens. However, the feature data with a depth of 4 remains unchanged, maintaining a certain degree of standardization and uniformity. Every time a user trains in a game, a gridded feature matrix with a size of x by y and a depth of 4 is generated. Such a feature matrix can be regarded as a comprehensive record and description of the user's behavior in the game. For different games, users may need to train different numbers of times. For example, if a game has 12 questions that need to be judged, then 12 similar ones will be generated. Figure 2The user feature matrices shown in the figure each reflect the user's operational behaviors and responses on different issues, providing a rich data basis for subsequent awareness calculations.

[0093] It should be noted that forming a feature matrix with a depth of 4 through the above four types of data is only one of the embodiments of the present application, that is, the value of N is not limited to 4, and can be 3 to 6. The user can determine the range of N according to actual needs. For example, in some cases, it may be necessary to analyze only the touch screen coordinate data, touch screen duration data, and game reaction time data. At this time, the value of N can be 3, forming a feature matrix with a depth of 3. If a more comprehensive analysis of user behavior is required, data such as touch screen trajectory data and / or finger pressure data can be added to expand the value of N to 5, 6 or more. By flexibly adjusting the range of N, the data needs in different application scenarios can be better met, and a more accurate recognition assessment can be provided.

[0094] Once the user's behavioral data is quantified as described above, unsupervised learning methods can be used to score these quantified feature matrices. Unsupervised learning methods are a machine learning technique whose core principle is to discover potential structures or patterns from unlabeled data without pre-specifying the target variable. In the scenario of cognitive scoring, unsupervised learning methods can use techniques such as cluster analysis to discover similarities and differences between different elderly people and divide them into different groups or clusters. By evaluating the similarity of samples within the cluster, a corresponding cognitive score can be generated for each elderly person without relying on pre-labeled cognitive levels.

[0095] This method can make full use of the inherent structure of the data and extract hidden information, providing an effective unsupervised learning framework for the assessment of cognitive levels. Unsupervised learning methods have significant advantages over supervised learning methods. Unsupervised learning methods do not require pre-labeled target variables, so they can more easily process large amounts of unlabeled data, reducing the cost and complexity of data labeling. In addition, unsupervised learning methods can discover potential structures or patterns from unlabeled data and extract useful information even when the data does not have clear labels or category information. Since unsupervised learning methods do not rely on pre-defined target variables, they have better adaptability and flexibility to data changes and uncertainties, and can handle data of various types and sizes.

[0096] Specifically, this embodiment uses spectral clustering as a specific unsupervised learning method. The specific steps are as follows:

[0097] 1. Construct a similarity matrix: Take the quantized feature matrix as input data and construct a similarity matrix. The similarity matrix reflects the similarity or distance between each sample in the feature matrix. You can choose an appropriate distance measurement method (such as Euclidean distance, cosine similarity, etc.), calculate the distance between each pair of samples, and thus construct a similarity matrix. After obtaining the similarity matrix, use it as the input of the spectral clustering algorithm.

[0098] 2. Calculate the Laplace matrix: According to the similarity matrix, calculate the diagonal matrix D and the graph Laplace matrix L. When calculating the Laplace matrix, W ij represents the value of the element in the i-th row and j-th column of the similarity matrix W, that is, the similarity between sample i and sample j. Therefore, when constructing the diagonal matrix D, the calculation method of D is D ii =∑ j W ij , D ii It represents the value of the element in the i-th row and i-th column of the diagonal matrix D, that is, the sum of the similarities between sample i and all other samples. The calculation method of the graph Laplacian matrix L is L = DW.

[0099] 3. Eigendecomposition: Perform eigendecomposition on the graph Laplacian matrix to obtain its eigenvectors and eigenvalues.

[0100] 4. Spectral clustering: Reduce the dimension of samples according to the feature vectors, and then use a clustering algorithm (such as K-means) to cluster the reduced data. Usually, the feature vectors corresponding to the first few largest eigenvalues ​​in the feature vector can be selected as the new feature space, and then the K-means algorithm is used to cluster the samples. After the graph is constructed, this step divides it into clusters so that the edges between different clusters have smaller weights, while the edges within the same cluster have larger weights. Then, define the cost function of the divided clusters:

[0101]

[0102] in, Define the partition of the graph into sets A l and The direct application of this principle is called the "minimum split" method, and it is empirically found that it often produces unbalanced partitions because in many cases clusters containing only one element are generated. To solve this problem, the cost function can be redefined as follows:

[0103]

[0104] Among them, Cut'(A l , A l ) represents two clusters A lThe sum of the edge weights, size(A l ) represents cluster A l The size of the cluster is usually defined by the normalized cut method in the above cost function. The size of the cluster is measured by the cumulative connectivity of all data points belonging to the cluster, that is, In order to obtain the smallest cluster partition, define an N×G indicator matrix H, where N is the number of samples and G is the total number of clusters. il It means that if element i belongs to cluster l, it has a discrete positive value, otherwise it is zero. In order to ensure the convexity of the problem, in this spectral clustering, H is allowed to take any real value. Finally, the k-means algorithm is used to cluster the configuration in the H space and divide the samples into k clusters.

[0105] 5. Scoring discriminator design: The final score can be calculated based on the clustering results. The score can take into account factors such as the size of the cluster, the connectivity within the cluster, and the degree of separation between clusters to evaluate the quality and effect of clustering. The Davies-Bouldin index is an indicator used to evaluate the clustering effect. Its calculation process includes calculating the average distance of samples within each cluster and the average distance of samples between different clusters, and taking the ratio of the intra-cluster distance to the inter-cluster distance as an evaluation indicator. This ratio reflects the relationship between the similarity of samples within the cluster and the difference between samples between clusters. Finally, the ratios of all clusters are summed and averaged to obtain the Davies-Bouldin index. A smaller index value indicates a better clustering effect, that is, the samples within the cluster are closer and the separation between clusters is higher.

[0106] In another embodiment, Figure 3 As shown, this embodiment also discloses a cognitive degree calculation device, which includes:

[0107] A data acquisition module, used to acquire user operation data, wherein the operation data includes N types of data;

[0108] A feature matrix generating module, used for generating a feature matrix according to the operation data, wherein the depth of the feature matrix is ​​M;

[0109] A judgment module is used to judge whether M=N is established. If so, a similarity matrix construction module is called; otherwise, a data acquisition module is called;

[0110] A similarity matrix construction module, used to construct a similarity matrix W according to the feature matrix;

[0111] A calculation module, used to calculate the diagonal matrix D and the graph Laplace matrix L using the similarity matrix W;

[0112] A spectral clustering analysis module, used for performing spectral clustering analysis on the graph Laplacian matrix L;

[0113] A scoring module, used for scoring user behaviors according to the results of the spectral clustering analysis;

[0114] Among them, when N=4, the N types of data include the user's touch screen coordinate data, touch screen duration data, game reaction time data and mobile phone posture data.

[0115] As an optional implementation, the similarity matrix construction module is further used to: calculate the distance between each pair of samples in the feature matrix using a measurement method of Euclidean distance or cosine similarity, and construct a similarity matrix W using the calculated distance between each pair of samples.

[0116] As an optional implementation, the calculation module calculates the diagonal matrix D according to the following formula (1):

[0117] D ii =∑ j W ij (1)

[0118] Among them, W ij represents the value of the element in the i-th row and j-th column of the similarity matrix W, that is, the similarity between sample i and sample j, D ii Represents the value of the element in the i-th row and i-th column of the diagonal matrix D, that is, the sum of the similarities between sample i and all other samples;

[0119] The calculation module also calculates the graph Laplacian matrix L according to the following formula (2):

[0120] L=DW (2).

[0121] As an optional implementation, the spectral clustering analysis module is further used to: perform eigendecomposition on the matrix L obtained by formula (2) to obtain its eigenvectors and corresponding eigenvalues, and reduce the dimension of the sample according to the eigenvectors, and then use a clustering algorithm to cluster the reduced-dimensional data, and combine the indicator matrix H to divide the sample into k clusters; wherein the segmentation cost function of the k clusters is:

[0122]

[0123] Among them, Cut'(A l , A l ) represents two clusters A l The sum of the edge weights, size(A l ) represents cluster A l The indicator matrix H is a custom N×G matrix, where N is the number of samples and G is the total number of clusters. The size of the cluster in the cost function is measured by the cumulative connectivity of all data points belonging to the cluster, that is:

[0124]

[0125] As an optional implementation, the scoring module is further used to: perform scoring according to the size of the k clusters, the connectivity within the cluster, and the degree of separation between the clusters.

[0126] In another embodiment, the present application also discloses an electronic device, comprising: one or more processors; one or more memories; the one or more memories store one or more computer programs, the one or more computer programs include instructions, and when the instructions are executed by the one or more processors, the electronic device executes the method disclosed in the above embodiment.

[0127] In another embodiment, the present application further discloses a computer-readable medium, including a computer program. When the computer program is executed on a computer, the computer is enabled to execute the method disclosed in the above embodiment.

[0128] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the devices, electronic devices and computer-readable media described in the above embodiments can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0129] Those skilled in the art will appreciate that the above modules can be distributed in the device according to the description of the embodiment, or can be changed accordingly to be in one or more devices different from the present embodiment. The modules of the above embodiments can be combined into one module, or can be further divided into multiple submodules (units).

[0130] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the embodiment of the present application can be embodied in the form of a software product, which can be stored in a readable medium or on a network, and includes several instructions to enable an electronic device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present application.

[0131] The above-mentioned readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0132] The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. All technical solutions that fall within the scope defined by the claims of the present invention fall within the protection scope of the present invention.

Claims

1. Awareness calculation method, It is characterized in that The following steps are involved: Acquire user operation data, where the operation data includes N types of data; Generate a feature matrix according to the operation data, wherein the depth of the feature matrix is ​​M; Determine whether M=N is true, if so, proceed to the next step, otherwise, repeat the above steps; Construct a similarity matrix W according to the feature matrix; Calculate the diagonal matrix D and the graph Laplacian matrix L using the similarity matrix W; Performing spectral clustering analysis on the graph Laplacian matrix L; Scoring user behavior according to the result of the spectral clustering analysis; Among them, when N=4, the N types of data include the user's touch screen coordinate data, touch screen duration data, game reaction time data and mobile phone posture data.

2. The method for calculating the degree of recognition according to claim 1, It is characterized in that The constructing of the similarity matrix W comprises: The distance between each pair of samples in the feature matrix is ​​calculated using a measurement method of Euclidean distance or cosine similarity; The similarity matrix W is constructed using the calculated distance between each pair of samples.

3. The method for calculating the degree of recognition according to claim 1 or 2, Features: The diagonal matrix D is calculated according to the following formula (1): D ii =∑ j W ij (1) Among them, W ij represents the value of the element in the i-th row and j-th column of the similarity matrix W, that is, the similarity between sample i and sample j, D ii Represents the value of the element in the i-th row and i-th column of the diagonal matrix D, that is, the sum of the similarities between sample i and all other samples; The graph Laplacian matrix L is calculated according to the following formula (2): L=DW (2).

4. The method for calculating the degree of recognition according to claim 3, Features: The spectral clustering analysis includes: performing eigendecomposition on the matrix L obtained by formula (2) to obtain its eigenvector and corresponding eigenvalue; reducing the dimension of the sample according to the eigenvector, and then clustering the reduced-dimensional data using a clustering algorithm, and combining the indicator matrix H to divide the sample into k clusters; wherein the segmentation cost function of the k clusters is: Among them, Cut'(A l ,A l ) represents two clusters A l The sum of the edge weights, size(A l ) represents cluster A l The indicator matrix H is a custom N×G matrix, where N is the number of samples and G is the total number of clusters. The size of the cluster in the cost function is measured by the cumulative connectivity of all data points belonging to the cluster, that is: The scoring of the user behavior includes: scoring according to the size of the k clusters, the connectivity within the clusters, and the degree of separation between the clusters.

5. Cognitive computing device, It is characterized in that include: A data acquisition module, used to acquire user operation data, wherein the operation data includes N types of data; A feature matrix generating module, used for generating a feature matrix according to the operation data, wherein the depth of the feature matrix is ​​M; A judgment module is used to judge whether M=N is established. If so, a similarity matrix construction module is called; otherwise, a data acquisition module is called; A similarity matrix construction module, used to construct a similarity matrix W according to the feature matrix; A calculation module, used to calculate the diagonal matrix D and the graph Laplace matrix L using the similarity matrix W; A spectral clustering analysis module, used for performing spectral clustering analysis on the graph Laplacian matrix L; A scoring module, used for scoring user behaviors according to the results of the spectral clustering analysis; Among them, when N=4, the N types of data include the user's touch screen coordinate data, touch screen duration data, game reaction time data and mobile phone posture data.

6. The cognitive degree calculation device according to claim 5, It is characterized in that The similarity matrix construction module is also used to: calculate the distance between each pair of samples in the feature matrix using the measurement method of Euclidean distance or cosine similarity, and construct the similarity matrix W using the calculated distance between each pair of samples.

7. The cognitive degree calculation device according to claim 5 or 6, Features: The calculation module calculates the diagonal matrix D according to the following formula (1): D ii =∑ j W ij (1) Among them, W ij represents the value of the element in the i-th row and j-th column of the similarity matrix W, that is, the similarity between sample i and sample j, D ii Represents the value of the element in the i-th row and i-th column of the diagonal matrix D, that is, the sum of the similarities between sample i and all other samples; The calculation module also calculates the graph Laplacian matrix L according to the following formula (2): L=DW (2).

8. The cognitive degree calculation device according to claim 7, Features: The spectral clustering analysis module is also used to: perform eigendecomposition on the matrix L obtained by formula (2) to obtain its eigenvector and corresponding eigenvalue, and reduce the dimension of the sample according to the eigenvector, and then use the clustering algorithm to cluster the reduced-dimensional data, and combine the indicator matrix H to divide the sample into k clusters; wherein the segmentation cost function of the k clusters is: Among them, Cut'(A l ,A l ) represents two clusters A l The sum of the edge weights, size(A l ) represents cluster A l The indicator matrix H is a custom N×G matrix, where N is the number of samples and G is the total number of clusters. The size of the cluster in the cost function is measured by the cumulative connectivity of all data points belonging to the cluster, that is: The scoring module is also used to score according to the size of the k clusters, the connectivity within the clusters, and the degree of separation between the clusters.

9. An electronic device, It is characterized in that include: one or more processors; One or more memories; the one or more memories store one or more computer programs, the one or more computer programs include instructions, when the instructions are executed by the one or more processors, the electronic device executes the method as described in any one of claims 1-4.

10. A computer readable medium, It is characterized in that The method comprises a computer program, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method, device, equipment and readable storage medium for cognitive evaluation of object

    CN109461503A

  • Cognitive diagnosis model training method, question recommendation method, device and equipment

    CN116090557A

  • Game behavior analysis-based cognitive disorder assessment method and system

    CN117084638A

Cited By

  • Communication performance analysis method and system based on multi-dimensional features and improved clustering

    CN120017527A