Management system and method for common component library

Deep learning technology is used to extract and correlate features of user and component data in public component libraries, solving the problem that traditional search methods cannot accurately match user needs, enabling more accurate and personalized component recommendations, and improving user experience.

CN117421059BActive Publication Date: 2024-10-22HUBEI PUBLIC INFORMATION IND CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202311299106.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-09
Publication Date
2024-10-22
Estimated Expiration
2043-10-09

AI Technical Summary

Technical Problem

Traditional keyword-based search methods cannot accurately match user needs. Especially when users use different vocabulary to describe the same function, it is difficult to find suitable components in public component libraries.

Method used

Using artificial intelligence technology based on deep learning, through feature extraction and correlation of user multi-dimensional data and text descriptions and evaluation data of components to be recommended, a recommendation-demand matching feature matrix is ​​generated, and a bidirectional attention mechanism and classifier are used for component recommendation. .

Benefits of technology

Provides more accurate and personalized component recommendations, helping users quickly find components that meet their needs, improving user experience and satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117421059B_ABST
    Figure CN117421059B_ABST
Patent Text Reader

Abstract

The present application relates to the field of intelligent recommendation, and specifically discloses a management system and method for a public component library, which uses artificial intelligence technology based on deep learning to extract and associate features of multi-dimensional data of users on the component library platform and text descriptions of components to be recommended and evaluation data to indicate whether the recommended components match user needs. In this way, more accurate and personalized component recommendations can be provided to help users find components that suit their needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent recommendation, and more specifically, to a management system and method for a public component library. Background Art

[0002] A common component library is a software development kit that integrates commonly used software and functions. It provides a series of reusable components that can be used in different projects to speed up development and improve code maintainability. By using a common component library, developers can save time and effort, avoid rewriting similar code, and ensure a consistent user experience.

[0003] There are a large number of components with similar functions in the public component library. Traditional keyword-based search cannot accurately match user needs, especially when users use different words to describe the same function, making it difficult for users to find components that suit their needs.

[0004] Therefore, an optimized management solution for the public component library is needed. Summary of the Invention

[0005] This application is proposed to address the aforementioned technical issues. The embodiments of this application provide a public component library management system and method thereof. This system utilizes deep learning-based artificial intelligence technology to extract and correlate features from users' multi-dimensional data on the component library platform, along with text descriptions and evaluation data of recommended components, to indicate whether the recommended components match user needs. This allows for more accurate and personalized component recommendations, helping users find components that suit their needs.

[0006] According to one aspect of the present application, a management system for a public component library is provided, which includes:

[0007] A user data acquisition module is used to acquire multi-dimensional data of users on the component library platform, wherein the multi-dimensional data of users includes component usage records, user search records, and user evaluation and feedback on components;

[0008] Component data acquisition module, used to obtain text description and evaluation data of the components to be recommended;

[0009] A user data feature extraction module, configured to perform data cleaning on the user's multi-dimensional data and then pass it through a first semantic encoder including a word embedding layer to obtain a user data semantic understanding feature vector;

[0010] A component data feature extraction module is used to perform word segmentation processing on the text description and evaluation data of the component to be recommended, and then pass it through a second semantic encoder including a word embedding layer to obtain a semantic understanding feature vector of the component to be recommended;

[0011] an association coding module, configured to perform association coding on the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data to obtain a recommendation-demand matching feature matrix;

[0012] a bidirectional attention classification module, configured to pass the recommendation-demand matching feature matrix through a bidirectional attention mechanism module to obtain a classification feature matrix; and

[0013] The recommendation result generation module is used to pass the classification feature matrix through a classifier to obtain a classification result, and the classification result is used to indicate whether to recommend the component to be recommended to the user.

[0014] In the management system of the above-mentioned public component library, the user data feature extraction module includes: a first word segmentation unit, used to perform word segmentation processing on the user's multi-dimensional data to convert the user's multi-dimensional data into a word sequence composed of multiple words; a first word embedding unit, used to use the word embedding layer of the first semantic encoder including the word embedding layer to map each word in the word sequence into a word embedding vector to obtain a sequence of word embedding vectors; a first context encoding unit, used to use the converter of the first semantic encoder including the word embedding layer to perform converter-based global context semantic encoding on the sequence of word embedding vectors to obtain multiple global context semantic feature vectors; and a first cascade unit, used to cascade the multiple global context semantic feature vectors to obtain the user data semantic understanding feature vector.

[0015] In the management system of the above-mentioned public component library, the component data feature extraction module includes: a second word segmentation unit, used to perform word segmentation processing on the text description and evaluation data of the component to be recommended to convert the text description and evaluation data of the component to be recommended into a word sequence composed of multiple words; a second word embedding unit, used to use the word embedding layer of the second semantic encoder including the word embedding layer to map each word in the word sequence into a word embedding vector to obtain a sequence of word embedding vectors; a second context encoding unit, used to use the converter of the second semantic encoder including the word embedding layer to perform converter-based global context semantic encoding on the sequence of word embedding vectors to obtain multiple global context semantic feature vectors; and a second cascade unit, used to cascade the multiple global context semantic feature vectors to obtain the semantic understanding feature vector of the component to be recommended.

[0016] In the management system of the above-mentioned public component library, the association coding module includes: a feature manifold construction unit, which is used to construct a feature manifold between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data, and the feature manifold is a surface formed by connecting similar data points of the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data in the high-dimensional feature space; a fusion weight determination unit, which is used to determine the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data based on the dimensional distribution correlation of the feature manifold; a weighting unit, which is used to weight the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data based on the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data to obtain a weighted semantic understanding feature vector of the component to be recommended and a weighted semantic understanding feature vector of the user data; and a recommendation-demand matching feature matrix generation unit, which is used to calculate the product of the transpose vector of the weighted semantic understanding feature vector of the component to be recommended and the weighted semantic understanding feature vector of the user data to obtain the recommendation-demand matching feature matrix.

[0017] In the management system of the above-mentioned public component library, the fusion weight determination unit is used to determine the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data using the following weight calculation formula; wherein the weight calculation formula is:

[0018]

[0019] Among them, W i is the fusion weight on the i-th dimension, σ i is the standard deviation of the feature manifold in the i-th dimension, and n is the total number of dimensions of the feature manifold.

[0020] In the management system of the above-mentioned public component library, the bidirectional attention classification module includes: a pooling unit, used to pool the recommendation-demand matching feature matrix along the horizontal direction and the vertical direction respectively to obtain a first-direction pooling vector and a second-direction pooling vector; a bidirectional correlation matrix generation unit, used to perform correlation encoding on the first-direction pooling vector and the second-direction pooling vector to obtain a bidirectional correlation matrix; an activation unit, used to input the bidirectional correlation matrix into a Sigmoid activation function to obtain a bidirectional correlation weight matrix; and a point multiplication calculation unit, used to calculate the positional point multiplication between the bidirectional correlation weight matrix and the recommendation-demand matching feature matrix to obtain the classification feature matrix.

[0021] In the management system of the above-mentioned public component library, the recommendation result generation module is used to: use the classifier to process the classification feature matrix according to the following classification formula to generate the classification result; wherein, the classification formula is:

[0022] O=softmax{(W n ,B n ):…:(W1,B1)|Project(F)}

[0023] Where O is the classification result, Project(F) represents the projection of the classification feature matrix into a vector, W1 to W n is the weight matrix of each fully connected layer, B1 to B n Represents the bias vector of each fully connected layer, and softmax is a normalized exponential function.

[0024] According to another aspect of the present application, a method for managing a public component library is provided, comprising:

[0025] Acquire multi-dimensional data of users on the component library platform, wherein the multi-dimensional data of users includes component usage records, user search records, and user evaluation and feedback on components;

[0026] Obtain text description and evaluation data of the component to be recommended;

[0027] After performing data cleaning on the multi-dimensional data of the user, pass it through a first semantic encoder including a word embedding layer to obtain a user data semantic understanding feature vector;

[0028] After word segmentation processing is performed on the text description and evaluation data of the component to be recommended, a second semantic encoder including a word embedding layer is used to obtain a semantic understanding feature vector of the component to be recommended;

[0029] Associatively encoding the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data to obtain a recommendation-demand matching feature matrix;

[0030] Passing the recommendation-demand matching feature matrix through a bidirectional attention mechanism module to obtain a classification feature matrix; and

[0031] The classification feature matrix is ​​passed through a classifier to obtain a classification result, and the classification result is used to indicate whether to recommend the component to be recommended to the user.

[0032] Compared to existing technologies, the public component library management system and method provided in this application utilizes deep learning-based artificial intelligence technology to extract and correlate features from users' multi-dimensional data on the component library platform, along with text descriptions and evaluation data of recommended components, to determine whether the recommended components match user needs. This allows for more accurate and personalized component recommendations, helping users find components that suit their needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The above and other purposes, features, and advantages of the present application will become more apparent through a more detailed description of the embodiments of the present application in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the drawings, the same reference numerals generally represent the same components or steps.

[0034] Figure 1 This is a system block diagram of a management system for a public component library according to an embodiment of the present application.

[0035] Figure 2 This is an architectural diagram of a management system for a public component library according to an embodiment of the present application.

[0036] Figure 3 This is a block diagram of a user data feature extraction module in a management system of a public component library according to an embodiment of the present application.

[0037] Figure 4 This is a block diagram of a component data feature extraction module in a management system of a public component library according to an embodiment of the present application.

[0038] Figure 5 This is a block diagram of an associated coding module in a management system of a public component library according to an embodiment of the present application.

[0039] Figure 6 This is a block diagram of a bidirectional attention classification module in a management system of a public component library according to an embodiment of the present application.

[0040] Figure 7 Flowchart of a method for managing a public component library according to an embodiment of the present application. DETAILED DESCRIPTION

[0041] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described herein.

[0042] Application Overview

[0043] As mentioned in the background technology above, a common component library is a software development toolkit used to integrate commonly used software and functions. It provides reusable components to speed up development and improve code readability and maintainability. By using a common component library, developers can save time and energy, avoid writing similar code, and ensure a consistent user experience. However, due to the presence of many components with similar functions in the common component library, traditional keyword-based search methods often cannot accurately match user needs, especially when users use different terms to describe the same function, which makes it difficult for users to find components that meet their needs. Therefore, an optimized common component management solution is needed.

[0044] In recent years, deep learning and neural networks have been widely applied in fields such as computer vision, natural language processing, and text signal processing. Furthermore, deep learning and neural networks have demonstrated capabilities approaching or even surpassing human performance in areas such as image classification, object detection, semantic segmentation, and text translation. The development of deep learning and neural networks offers new solutions and approaches for managing common components.

[0045] Specifically, in the technical solution of the present application, first, multi-dimensional data of users on the component library platform is obtained, wherein the multi-dimensional data of users includes component usage records, user search records, and user evaluations and feedback on components. It should be understood that by obtaining users' usage records, search records, and evaluations and feedback on components on the component library platform, it is possible to gain a deeper understanding of users' interests and preferences, thereby better meeting their needs, and thus providing more accurate and targeted component recommendations. Understanding users' usage habits and behaviors on the component library platform can provide them with more personalized and intelligent recommendation services, saving them time and energy in finding suitable components, and helping to improve user experience and satisfaction.

[0046] Next, we obtain text descriptions and review data for the recommended components. By obtaining component descriptions, we can understand key information such as the functions provided, applicable scenarios, and technical requirements. This helps users quickly understand the component's purpose and capabilities when selecting it, improving selection efficiency. Review data provides user feedback on component quality and performance, such as evaluations and comments on stability, reliability, and ease of use. By collecting and analyzing these reviews, we can determine the quality of components and provide users with a more reliable reference for component selection.

[0047] Then, the multi-dimensional data of the user is cleaned and then passed through a first semantic encoder including a word embedding layer to obtain a semantic understanding feature vector of the user data. In actual applications, user data may have various problems, such as missing values, outliers, duplicate data, etc. Through data cleaning, these problem data can be removed to ensure the accuracy and completeness of the data, thereby improving the effect of subsequent analysis and processing. Word embedding is a common method for mapping text information into a continuous vector space. Through the word embedding layer, the user's text description information can be converted into a semantic representation to capture the semantic relationship between words, which helps to include the text information in the user data in the scope of feature representation and provide a feature vector with more semantic understanding. The first semantic encoder is a model for feature extraction and encoding of user data. By training the first semantic encoder, the semantic understanding feature vector of the user data can be obtained based on the cleaned multi-dimensional data and the output of the word embedding layer. This feature vector can capture the user's semantic information and features, providing a basis for subsequent recommendation and analysis tasks.

[0048] At the same time, the text description and evaluation data of the component to be recommended are segmented and then passed through a second semantic encoder comprising a word embedding layer to obtain a semantic understanding feature vector for the component to be recommended. It should be understood that the purpose of segmenting the text description and evaluation data of the component to be recommended is to convert the text into discrete word representations so that the computer can understand and process it. The second semantic encoder comprising a word embedding layer can convert each word into a continuous vector representation, namely a word embedding. Word embedding maps words to vectors in a high-dimensional space, so that words with similar semantics are closer in the vector space. In this way, the word embedding layer can convert the text description and evaluation data into a semantic understanding feature vector. The semantic understanding feature vector is a vector representation that encodes the semantic information of the component to be recommended. It captures the semantic information in the text description and evaluation data, including the relationship between words, contextual information, etc. By converting the text description and evaluation data into a semantic understanding feature vector, the semantic information of the component can be better represented.

[0049] Next, the semantic understanding feature vectors of the components to be recommended and the semantic understanding feature vectors of the user data are associatively coded to produce a recommendation-requirement matching feature matrix. Specifically, the associative coding of the semantic understanding feature vectors of the components to be recommended and the user data semantic understanding feature vectors is performed to measure their matching. By calculating their associative coding, a recommendation-requirement matching feature matrix is ​​generated, which measures the degree of match between each component to be recommended and the user's requirements.

[0050] Furthermore, the recommendation-demand matching feature matrix is ​​passed through a bidirectional attention mechanism module to obtain a classification feature matrix. Through the bidirectional attention mechanism, each element in the recommendation-demand matching matrix can be weighted to capture the important relationship between the recommended components and user needs, so that more attention can be placed on the features related to components with a higher degree of match. Finally, the classification feature matrix is ​​passed through a classifier to obtain a classification result that indicates whether the component to be recommended is recommended to the user. The classifier is trained based on different features and can compare the feature vector of the component to be recommended with the features of the user needs, and the classifier is used to determine whether there is a match. This can improve the accuracy and personalization of the recommendation, thereby improving user satisfaction and experience.

[0051] In particular, the technical solution of this application aims to further capture the correlation and match between the component to be recommended and user data. By associatively encoding the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data to generate a recommendation-demand matching feature matrix, their intrinsic structure and distribution in the high-dimensional feature space can be integrated, resulting in a more expressive and accurate feature matrix. This recommendation-demand matching feature matrix allows for comparison and matching between the component to be recommended and the user data. This allows for the determination of whether to recommend the component to the user based on the degree of match in the feature matrix. A high degree of match in the feature matrix indicates a good match between the component to be recommended and the user's needs, and the component can be recommended. Conversely, a low degree of match may require consideration of alternative components or strategies. However, given the differences in the feature manifolds between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data across different dimensions, leveraging the dimensional distribution correlation of the feature manifolds will undoubtedly preserve more of the original information, thereby improving the interpretability of the recommendation-demand matching feature matrix and, consequently, the accuracy of the final classification.

[0052] The semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data are associatedly encoded to obtain a recommendation-demand matching feature matrix, including: constructing a feature manifold between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data, the feature manifold being a surface formed by connecting similar data points of the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data in a high-dimensional feature space; determining a fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data based on the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data; weighting the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data based on the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data to obtain a weighted semantic understanding feature vector of the component to be recommended and a weighted semantic understanding feature vector of the user data; and calculating the product of the transpose vector of the weighted semantic understanding feature vector of the component to be recommended and the weighted semantic understanding feature vector of the user data to obtain the recommendation-demand matching feature matrix.

[0053] Specifically, the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data is determined by the following weight calculation formula; wherein, the weight calculation formula is:

[0054]

[0055] Among them, W i is the fusion weight on the i-th dimension, σ i is the standard deviation of the feature manifold in the i-th dimension, and n is the total number of dimensions of the feature manifold.

[0056] Specifically, in the technical solution of the present application, the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data respectively represent different aspects of information in the data set. By calculating the feature manifold between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data, that is, the surface formed by connecting similar data points in a high-dimensional space, the feature manifold can reflect the intrinsic structure and correlation in the data set. Furthermore, based on the dimensional distribution correlation of the feature manifold, that is, the degree of change of the feature manifold in different dimensions, the fusion weight of the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data is determined, so that the feature matrix after associative encoding can retain more original information. Specifically, if the feature manifold on a certain dimension changes greatly, it means that the information on this dimension is more important, so a higher fusion weight should be given; conversely, if the feature manifold on a certain dimension changes less, it means that the information on this dimension is more redundant, so a lower fusion weight should be given. After obtaining the fusion weight, the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data are weighted according to the determined fusion weight to obtain the weighted semantic understanding feature vector of the component to be recommended and the weighted semantic understanding feature vector of the user data, and the product of the transposed vector of the weighted semantic understanding feature vector of the component to be recommended and the weighted semantic understanding feature vector of the user data is calculated to obtain the recommendation-demand matching feature matrix.

[0057] After introducing the basic principles of the present application, various non-limiting embodiments of the present application will be described in detail with reference to the accompanying drawings.

[0058] Exemplary Systems

[0059] Figure 1 FIG. 1 is a system block diagram of a management system for a public component library according to an embodiment of the present application. Figure 1As shown, in the management system 100 of the public component library, it includes: a user data acquisition module 110, which is used to obtain the multi-dimensional data of the user on the component library platform, wherein the multi-dimensional data of the user includes the component usage record, the user's search record, and the user's evaluation and feedback on the component; a component data acquisition module 120, which is used to obtain the text description and evaluation data of the component to be recommended; a user data feature extraction module 130, which is used to clean the multi-dimensional data of the user and then pass it through the first semantic encoder including the word embedding layer to obtain the user data semantic understanding feature vector; a component data feature extraction module 140, which is used to extract the text description of the component to be recommended. After word segmentation processing of the evaluation data, a second semantic encoder including a word embedding layer is used to obtain a semantic understanding feature vector of the component to be recommended; an association encoding module 150 is used to associate the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data to obtain a recommendation-demand matching feature matrix; a two-way attention classification module 160 is used to pass the recommendation-demand matching feature matrix through a two-way attention mechanism module to obtain a classification feature matrix; and a recommendation result generation module 170 is used to pass the classification feature matrix through a classifier to obtain a classification result, and the classification result is used to indicate whether the component to be recommended is recommended to the user.

[0060] Figure 2 FIG is an architectural diagram of a management system for a public component library according to an embodiment of the present application. Figure 2 As shown, in this architecture, first, the multi-dimensional data of the user on the component library platform is obtained, wherein the multi-dimensional data of the user includes the component usage record, the user's search record, and the user's evaluation and feedback on the component. Next, the text description and evaluation data of the component to be recommended are obtained. Then, the multi-dimensional data of the user is cleaned and then passed through a first semantic encoder containing a word embedding layer to obtain a user data semantic understanding feature vector. At the same time, the text description and evaluation data of the component to be recommended are segmented and then passed through a second semantic encoder containing a word embedding layer to obtain a semantic understanding feature vector of the component to be recommended. Then, the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data are associated and encoded to obtain a recommendation-demand matching feature matrix. Furthermore, the recommendation-demand matching feature matrix is ​​passed through a bidirectional attention mechanism module to obtain a classification feature matrix. Finally, the classification feature matrix is ​​passed through a classifier to obtain a classification result, which is used to indicate whether the component to be recommended is recommended to the user.

[0061] In the management system 100 of the public component library, the user data acquisition module 110 is used to obtain the multi-dimensional data of the user on the component library platform, wherein the multi-dimensional data of the user includes the usage record of the component, the search record of the user, and the evaluation and feedback of the user on the component. It should be understood that by obtaining the usage record, search record, and evaluation and feedback of the user on the component library platform, the user's interests and preferences can be deeply understood, so as to better meet their needs, so as to provide more accurate and targeted component recommendations. Understanding the user's usage habits and behaviors on the component library platform can provide them with more personalized and intelligent recommendation services, saving them time and energy in finding suitable components, and helping to improve user experience and satisfaction. The multi-dimensional data of the user described here can be obtained through a database specifically managed for users on the component library platform.

[0062] In the management system 100 of the public component library, the component data acquisition module 120 is used to obtain text descriptions and evaluation data of the components to be recommended. It should be understood that by obtaining the text description of the component, key information such as the functions it provides, applicable scenarios, and technical requirements can be understood, which helps users quickly understand the purpose and capabilities of the component when selecting the component, thereby improving selection efficiency; the evaluation data provides user feedback on the quality and performance of the component, such as evaluations and comments on stability, reliability, ease of use, etc. By collecting and analyzing these evaluations, the quality of the component can be judged, providing users with a more reliable reference for component selection. The text descriptions and evaluation data of the components to be recommended described here can be obtained from technical blogs, technical forums, etc. using web crawler technology.

[0063] In the management system 100 of the public component library, the user data feature extraction module 130 is used to perform data cleaning on the multi-dimensional data of the user and then pass it through the first semantic encoder including the word embedding layer to obtain the user data semantic understanding feature vector. In actual applications, user data may have various problems, such as missing values, outliers, duplicate data, etc. Through data cleaning, these problem data can be removed to ensure the accuracy and completeness of the data, thereby improving the effect of subsequent analysis and processing. Word embedding is a common method for mapping text information into a continuous vector space. Through the word embedding layer, the user's text description information can be converted into a semantic representation to capture the semantic relationship between words, which helps to include the text information in the user data in the scope of feature representation and provide a feature vector with more semantic understanding. The first semantic encoder is a model for feature extraction and encoding of user data. By training the first semantic encoder, the semantic understanding feature vector of the user data can be obtained based on the cleaned multi-dimensional data and the output of the word embedding layer. This feature vector can capture the user's semantic information and features, providing a basis for subsequent recommendation and analysis tasks.

[0064] Figure 3 FIG is a block diagram of a user data feature extraction module in a management system of a public component library according to an embodiment of the present application. Figure 3 As shown, the user data feature extraction module 130 includes: a first word segmentation unit 131, used to perform word segmentation processing on the user's multi-dimensional data to convert the user's multi-dimensional data into a word sequence composed of multiple words; a first word embedding unit 132, used to use the word embedding layer of the first semantic encoder including the word embedding layer to map each word in the word sequence to a word embedding vector to obtain a sequence of word embedding vectors; a first context encoding unit 133, used to use the converter of the first semantic encoder including the word embedding layer to perform converter-based global context semantic encoding on the sequence of word embedding vectors to obtain multiple global context semantic feature vectors; and a first cascade unit 134, used to cascade the multiple global context semantic feature vectors to obtain the user data semantic understanding feature vector.

[0065] In the management system 100 of the public component library, the component data feature extraction module 140 is used to perform word segmentation processing on the text description and evaluation data of the component to be recommended, and then pass it through a second semantic encoder including a word embedding layer to obtain a semantic understanding feature vector of the component to be recommended. It should be understood that the word segmentation processing of the text description and evaluation data of the component to be recommended is to convert the text into discrete word representations so that the computer can understand and process it. Through the second semantic encoder including the word embedding layer, each word can be converted into a continuous vector representation, namely word embedding. Word embedding is to map words to vectors in a high-dimensional space so that words with similar semantics are closer in the vector space. In this way, through the word embedding layer, the text description and evaluation data can be converted into a semantic understanding feature vector. The semantic understanding feature vector is a vector representation that encodes the semantic information of the component to be recommended. It captures the semantic information in the text description and evaluation data, including the relationship between words, contextual information, etc. By converting the text description and evaluation data into a semantic understanding feature vector, the semantic information of the component can be better represented.

[0066] Figure 4 FIG is a block diagram of a component data feature extraction module in a management system of a public component library according to an embodiment of the present application. Figure 4As shown, the component data feature extraction module 140 includes: a second word segmentation unit 141, used to perform word segmentation processing on the text description and evaluation data of the component to be recommended to convert the text description and evaluation data of the component to be recommended into a word sequence composed of multiple words; a second word embedding unit 142, used to use the word embedding layer of the second semantic encoder including the word embedding layer to map each word in the word sequence to a word embedding vector to obtain a sequence of word embedding vectors; a second context encoding unit 143, used to use the converter of the second semantic encoder including the word embedding layer to perform converter-based global context semantic encoding on the sequence of word embedding vectors to obtain multiple global context semantic feature vectors; and a second cascade unit 144, used to cascade the multiple global context semantic feature vectors to obtain the semantic understanding feature vector of the component to be recommended.

[0067] In the public component library management system 100, the association coding module 150 is used to perform association coding on the semantic understanding feature vectors of the recommended components and the semantic understanding feature vectors of the user data to generate a recommendation-requirement matching feature matrix. Specifically, association coding of the semantic understanding feature vectors of the recommended components and the semantic understanding feature vectors of the user data is performed to measure the degree of match between them. By calculating their association codes, a recommendation-requirement matching feature matrix can be generated, which measures the degree of match between each recommended component and the user's requirements.

[0068] In particular, the technical solution of this application aims to further capture the correlation and matching degree between the component to be recommended and user data. By associatively encoding the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data to generate a recommendation-demand matching feature matrix, their intrinsic structure and distribution in the high-dimensional feature space can be integrated, resulting in a more expressive and accurate feature matrix. By generating the recommendation-demand matching feature matrix, the information of the component to be recommended and the user data can be compared and matched. In this way, the degree of matching in the feature matrix can be used to determine whether to recommend the component to the user. If the matching degree in the feature matrix is ​​high, it indicates that the component to be recommended closely matches the user's needs and can be recommended to the user. Conversely, if the matching degree is low, alternative components or strategies may need to be considered. However, given the differences in the feature manifolds of the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data across different dimensions, leveraging the dimensional distribution correlation of the feature manifolds will undoubtedly preserve more of the original information, thereby improving the interpretability of the recommendation-demand matching feature matrix and, consequently, the accuracy of the final classification.

[0069] Figure 5FIG is a block diagram of an associated coding module in a management system of a public component library according to an embodiment of the present application. Figure 5 As shown, the association coding module 150 includes: a feature manifold construction unit 151, which is used to construct a feature manifold between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data, wherein the feature manifold is a surface formed by connecting similar data points of the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data in a high-dimensional feature space; a fusion weight determination unit 152, which is used to determine the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data based on the dimensional distribution correlation of the feature manifold; a weighted unit Element 153 is used to weight the semantic understanding feature vector of the component to be recommended and the user data semantic understanding feature vector based on the fusion weight between the semantic understanding feature vector of the component to be recommended and the user data semantic understanding feature vector to obtain a weighted semantic understanding feature vector of the component to be recommended and a weighted semantic understanding feature vector of the user data; and a recommendation-demand matching feature matrix generation unit 154 is used to calculate the product of the transposed vector of the weighted semantic understanding feature vector of the component to be recommended and the weighted semantic understanding feature vector of the user data to obtain the recommendation-demand matching feature matrix.

[0070] In the public component library management system 100, the fusion weight determination unit 152 is used to determine the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data using the following weight calculation formula; wherein the weight calculation formula is:

[0071]

[0072] Among them, W i is the fusion weight on the i-th dimension, σ i is the standard deviation of the feature manifold in the i-th dimension, and n is the total number of dimensions of the feature manifold.

[0073] Specifically, in the technical solution of the present application, the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data respectively represent different aspects of information in the data set. By calculating the feature manifold between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data, that is, the surface formed by connecting similar data points in a high-dimensional space, the feature manifold can reflect the intrinsic structure and correlation in the data set. Furthermore, based on the dimensional distribution correlation of the feature manifold, that is, the degree of change of the feature manifold in different dimensions, the fusion weight of the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data is determined, so that the feature matrix after associative encoding can retain more original information. Specifically, if the feature manifold on a certain dimension changes greatly, it means that the information on this dimension is more important, so a higher fusion weight should be given; conversely, if the feature manifold on a certain dimension changes less, it means that the information on this dimension is more redundant, so a lower fusion weight should be given. After obtaining the fusion weight, the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data are weighted according to the determined fusion weight to obtain the weighted semantic understanding feature vector of the component to be recommended and the weighted semantic understanding feature vector of the user data, and the product of the transposed vector of the weighted semantic understanding feature vector of the component to be recommended and the weighted semantic understanding feature vector of the user data is calculated to obtain the recommendation-demand matching feature matrix.

[0074] In the public component library management system 100, the bidirectional attention classification module 160 is configured to pass the recommendation-requirement matching feature matrix through the bidirectional attention mechanism module to obtain a classification feature matrix. It should be understood that the bidirectional attention mechanism can weight each element in the recommendation-requirement matching matrix to capture the important associations between recommended components and user requirements, thereby focusing more attention on features associated with components with a higher degree of matching.

[0075] Figure 6 FIG is a block diagram of a bidirectional attention classification module in a management system of a public component library according to an embodiment of the present application. Figure 6 As shown, the bidirectional attention classification module 160 includes: a pooling unit 161, used to pool the recommendation-demand matching feature matrix along the horizontal direction and the vertical direction respectively to obtain a first-direction pooling vector and a second-direction pooling vector; a bidirectional correlation matrix generation unit 162, used to perform correlation encoding on the first-direction pooling vector and the second-direction pooling vector to obtain a bidirectional correlation matrix; an activation unit 163, used to input the bidirectional correlation matrix into a Sigmoid activation function to obtain a bidirectional correlation weight matrix; and a point multiplication calculation unit 164, used to calculate the positional point multiplication between the bidirectional correlation weight matrix and the recommendation-demand matching feature matrix to obtain the classification feature matrix.

[0076] In the public component library management system 100, the recommendation result generation module 170 is used to pass the classification feature matrix through a classifier to obtain a classification result. The classification result indicates whether the component to be recommended is recommended to the user. The classifier is trained based on different features and can compare the feature vector of the component to be recommended with the characteristics of the user's requirements to determine whether there is a match. This improves the accuracy and personalization of recommendations, thereby enhancing user satisfaction and experience.

[0077] Specifically, in the management system 100 of the public component library, the recommendation result generation module 170 is used to: use the classifier to process the classification feature matrix using the following classification formula to generate the classification result; wherein the classification formula is:

[0078] O=softmax{(W n ,B n ):…:(W1,B1)|Project(F)}

[0079] Where O is the classification result, Project(F) represents the projection of the classification feature matrix into a vector, W1 to W n is the weight matrix of each fully connected layer, B1 to B n Represents the bias vector of each fully connected layer, and softmax is a normalized exponential function.

[0080] In summary, the public component library management system 100 according to the embodiment of the present application is described. It utilizes deep learning-based artificial intelligence technology to extract and correlate features from users' multi-dimensional data on the component library platform with text descriptions of recommended components and evaluation data to determine whether the recommended components match user needs. This allows for more accurate and personalized component recommendations, helping users find components that meet their needs.

[0081] As described above, the management system 100 for a public component library according to an embodiment of the present application can be implemented in various terminal devices, such as a server for managing a public component library. In one example, the management system 100 for a public component library according to an embodiment of the present application can be integrated into a terminal device as a software module and / or a hardware module. For example, the management system 100 for a public component library can be a software module in the operating system of the terminal device, or can be an application developed for the terminal device; of course, the management system 100 for a public component library can also be one of the many hardware modules of the terminal device.

[0082] Alternatively, in another example, the management system 100 of the public component library and the terminal device may also be separate devices, and the management system 100 of the public component library may be connected to the terminal device via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.

[0083] Exemplary Methods

[0084] Figure 7 FIG is a flow chart of a method for managing a public component library according to an embodiment of the present application. Figure 7 As shown, in the management method of the public component library, the following steps are included: S110, obtaining multi-dimensional data of users on the component library platform, wherein the multi-dimensional data of users include component usage records, user search records, and user evaluation and feedback on components; S120, obtaining text descriptions and evaluation data of components to be recommended; S130, performing data cleaning on the multi-dimensional data of users, and then passing them through a first semantic encoder including a word embedding layer to obtain a user data semantic understanding feature vector; S140, performing word segmentation processing on the text description and evaluation data of the components to be recommended, and then passing them through a second semantic encoder including a word embedding layer to obtain a semantic understanding feature vector of the components to be recommended; S150, performing association coding on the semantic understanding feature vector of the components to be recommended and the semantic understanding feature vector of the user data to obtain a recommendation-demand matching feature matrix; S160, passing the recommendation-demand matching feature matrix through a bidirectional attention mechanism module to obtain a classification feature matrix; and, S170, passing the classification feature matrix through a classifier to obtain a classification result, and the classification result is used to indicate whether the components to be recommended are recommended to the user.

[0085] In one example, in the above-mentioned method for managing a public component library, the multidimensional data of the user is cleaned and then passed through a first semantic encoder including a word embedding layer to obtain a user data semantic understanding feature vector, including: performing word segmentation processing on the multidimensional data of the user to convert the multidimensional data of the user into a word sequence composed of multiple words; using the word embedding layer of the first semantic encoder including the word embedding layer to map each word in the word sequence to a word embedding vector to obtain a sequence of word embedding vectors; using the converter of the first semantic encoder including the word embedding layer to perform converter-based global context semantic encoding on the sequence of word embedding vectors to obtain multiple global context semantic feature vectors; and, cascading the multiple global context semantic feature vectors to obtain the user data semantic understanding feature vector.

[0086] In one example, in the above-mentioned method for managing a public component library, the text description and evaluation data of the component to be recommended are segmented and then passed through a second semantic encoder containing a word embedding layer to obtain a semantic understanding feature vector of the component to be recommended, including: segmenting the text description and evaluation data of the component to be recommended to convert the text description and evaluation data of the component to be recommended into a word sequence composed of multiple words; using the word embedding layer of the second semantic encoder containing a word embedding layer to map each word in the word sequence to a word embedding vector to obtain a sequence of word embedding vectors; using the converter of the second semantic encoder containing a word embedding layer to perform converter-based global context semantic encoding on the sequence of word embedding vectors to obtain multiple global context semantic feature vectors; and, cascading the multiple global context semantic feature vectors to obtain the semantic understanding feature vector of the component to be recommended.

[0087] In one example, in the above-mentioned management method of the public component library, the association encoding of the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data to obtain a recommendation-demand matching feature matrix includes: constructing a feature manifold between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data, the feature manifold being a surface formed by connecting similar data points of the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data in a high-dimensional feature space; determining the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data based on the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data; weighting the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data based on the fusion weight to obtain a weighted semantic understanding feature vector of the component to be recommended and a weighted semantic understanding feature vector of the user data; and calculating the product of the transpose vector of the weighted semantic understanding feature vector of the component to be recommended and the weighted semantic understanding feature vector of the user data to obtain the recommendation-demand matching feature matrix.

[0088] In one example, in the above-mentioned method for managing a public component library, the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data is determined based on the dimensional distribution correlation of the feature manifold, and is used to: determine the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data using the following weight calculation formula; wherein the weight calculation formula is:

[0089]

[0090] Among them, W iis the fusion weight on the i-th dimension, σ i is the standard deviation of the feature manifold in the i-th dimension, and n is the total number of dimensions of the feature manifold.

[0091] In one example, in the management method of the above-mentioned public component library, the recommendation-demand matching feature matrix is ​​passed through a bidirectional attention mechanism module to obtain a classification feature matrix, including: pooling the recommendation-demand matching feature matrix along the horizontal direction and the vertical direction respectively to obtain a first-direction pooling vector and a second-direction pooling vector; associatively encoding the first-direction pooling vector and the second-direction pooling vector to obtain a bidirectional association matrix; inputting the bidirectional association matrix into a Sigmoid activation function to obtain a bidirectional association weight matrix; and calculating the positional point multiplication between the bidirectional association weight matrix and the recommendation-demand matching feature matrix to obtain the classification feature matrix.

[0092] In one example, in the above-mentioned method for managing a public component library, the step of passing the classification feature matrix through a classifier to obtain a classification result, wherein the classification result is used to indicate whether to recommend the component to be recommended to the user, includes: using the classifier to process the classification feature matrix using the following classification formula to generate the classification result; wherein the classification formula is:

[0093] O=softmax{(W n ,B n ):…:(W1,B1)|Project(F)}

[0094] Where O is the classification result, Project(F) represents the projection of the classification feature matrix into a vector, W1 to W n is the weight matrix of each fully connected layer, B1 to B n Represents the bias vector of each fully connected layer, and softmax is a normalized exponential function.

[0095] In summary, the management method for a public component library based on the embodiments of this application has been explained. This method utilizes deep learning-based artificial intelligence technology to extract and correlate features from users' multi-dimensional data on the component library platform with text descriptions of recommended components and evaluation data to indicate whether the recommended components match user needs. This allows for more accurate and personalized component recommendations, helping users find components that suit their needs.

Claims

1. A management system for a public component library, characterized in that: include: A user data acquisition module is used to acquire multi-dimensional data of users on the component library platform, wherein the multi-dimensional data of users includes component usage records, user search records, and user evaluation and feedback on components; The component data acquisition module is used to obtain the text description and evaluation data of the component to be recommended; A user data feature extraction module, configured to perform data cleaning on the multi-dimensional data of the user and then obtain a user data semantic understanding feature vector through a first semantic encoder including a word embedding layer; A component data feature extraction module, used for performing word segmentation processing on the text description and evaluation data of the component to be recommended and then passing it through a second semantic encoder including a word embedding layer to obtain a semantic understanding feature vector of the component to be recommended; An association coding module, used for performing association coding on the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data to obtain a recommendation-demand matching feature matrix; A bidirectional attention classification module, used for passing the recommendation-demand matching feature matrix through a bidirectional attention mechanism module to obtain a classification feature matrix; and A recommendation result generating module, used for passing the classification feature matrix through a classifier to obtain a classification result, wherein the classification result is used to indicate whether to recommend the component to be recommended to the user; Wherein, the association coding module includes: A feature manifold construction unit, used to construct a feature manifold between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data, wherein the feature manifold is a surface formed by connecting similar data points of the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data in a high-dimensional feature space; A fusion weight determination unit, used to determine a fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data based on the dimensional distribution correlation of the feature manifold; a weighting unit, configured to weight the semantic understanding feature vector of the component to be recommended and the user data semantic understanding feature vector based on a fusion weight between the semantic understanding feature vector of the component to be recommended and the user data semantic understanding feature vector to obtain a weighted semantic understanding feature vector of the component to be recommended and a weighted semantic understanding feature vector of the user data; and A recommendation-demand matching feature matrix generating unit, used for calculating the product of the weighted semantic understanding feature vector of the component to be recommended and the weighted semantic understanding feature vector of the user data to obtain the recommendation-demand matching feature matrix; The fusion weight determination unit is used to determine the fusion weight between the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data according to the following weight calculation formula; Wherein, the weight calculation formula is: Among them, W i is the fusion weight on the i-th dimension, σ i is the standard deviation of the feature manifold in the i-th dimension, and n is the total number of dimensions of the feature manifold.

2. The management system of the public component library according to claim 1, characterized in that: The user data feature extraction module comprises: A first word segmentation unit, configured to perform word segmentation processing on the multi-dimensional data of the user to convert the multi-dimensional data of the user into a word sequence consisting of a plurality of words; A first word embedding unit, configured to use the word embedding layer of the first semantic encoder including the word embedding layer to map each word in the word sequence into a word embedding vector to obtain a sequence of word embedding vectors; A first context encoding unit, configured to perform a converter-based global context semantic encoding on the sequence of the word embedding vectors using the converter of the first semantic encoder including the word embedding layer to obtain a plurality of global context semantic feature vectors; and The first cascading unit is used to cascade the multiple global context semantic feature vectors to obtain the user data semantic understanding feature vector.

3. The management system of the public component library according to claim 2, characterized in that: The component data feature extraction module comprises: a second word segmentation unit, configured to perform word segmentation processing on the text description and evaluation data of the component to be recommended so as to convert the text description and evaluation data of the component to be recommended into a word sequence consisting of a plurality of words; A second word embedding unit, configured to use the word embedding layer of the second semantic encoder including the word embedding layer to map each word in the word sequence into a word embedding vector to obtain a sequence of word embedding vectors; A second context encoding unit, configured to use the converter of the second semantic encoder including the word embedding layer to perform converter-based global context semantic encoding on the sequence of the word embedding vectors to obtain a plurality of global context semantic feature vectors; and The second cascading unit is used to cascade the multiple global context semantic feature vectors to obtain the semantic understanding feature vector of the component to be recommended.

4. The management system of the public component library according to claim 3, characterized in that: The bidirectional attention classification module comprises: A pooling unit, used for pooling the recommendation-demand matching feature matrix along the horizontal direction and the vertical direction respectively to obtain a first-direction pooling vector and a second-direction pooling vector; A bidirectional correlation matrix generating unit, used for performing correlation coding on the first-direction pooled vector and the second-direction pooled vector to obtain a bidirectional correlation matrix; an activation unit, configured to input the bidirectional association matrix into a Sigmoid activation function to obtain a bidirectional association weight matrix; and A dot product calculation unit is used to calculate the positional dot product between the bidirectional association weight matrix and the recommendation-demand matching feature matrix to obtain the classification feature matrix.

5. The management system of the public component library according to claim 4, characterized in that: The recommendation result generating module is used to: use the classifier to process the classification feature matrix according to the following classification formula to generate the classification result; Among them, the classification formula is: O=softmax{(W n ,B n ):…:(W1,B1)|Project(F)} Where O is the classification result, Project(F) represents the projection of the classification feature matrix into a vector, W1 to W n is the weight matrix of each fully connected layer, B1 to B n Represents the bias vector of each fully connected layer, and softmax is a normalized exponential function.

6. A method for managing a public component library, using the public component library management system according to claim 1, characterized in that: include: Acquire multi-dimensional data of users on the component library platform, wherein the multi-dimensional data of users includes component usage records, user search records, and user evaluation and feedback on components; Obtain text description and evaluation data of the component to be recommended; After data cleaning, the multi-dimensional data of the user is passed through a first semantic encoder including a word embedding layer to obtain a user data semantic understanding feature vector; After word segmentation processing is performed on the text description and evaluation data of the component to be recommended, a second semantic encoder including a word embedding layer is used to obtain a semantic understanding feature vector of the component to be recommended; Associatively encoding the semantic understanding feature vector of the component to be recommended and the semantic understanding feature vector of the user data to obtain a recommendation-demand matching feature matrix; Passing the recommendation-demand matching feature matrix through a bidirectional attention mechanism module to obtain a classification feature matrix; and The classification feature matrix is ​​passed through a classifier to obtain a classification result, and the classification result is used to indicate whether to recommend the component to be recommended to the user.

7. The method for managing a common component library according to claim 6, characterized in that: After data cleaning, the multi-dimensional data of the user is passed through a first semantic encoder including a word embedding layer to obtain a user data semantic understanding feature vector, including: Performing word segmentation processing on the multi-dimensional data of the user to convert the multi-dimensional data of the user into a word sequence consisting of a plurality of words; Using the word embedding layer of the first semantic encoder including the word embedding layer, each word in the word sequence is mapped into a word embedding vector to obtain a sequence of word embedding vectors; Using the converter of the first semantic encoder including the word embedding layer, performing converter-based global context semantic encoding on the sequence of the word embedding vectors to obtain a plurality of global context semantic feature vectors; and The multiple global context semantic feature vectors are cascaded to obtain the user data semantic understanding feature vector.

8. The method for managing a common component library according to claim 7, characterized in that: After word segmentation processing is performed on the text description and evaluation data of the component to be recommended, a second semantic encoder including a word embedding layer is used to obtain a semantic understanding feature vector of the component to be recommended, including: Performing word segmentation processing on the text description and evaluation data of the component to be recommended to convert the text description and evaluation data of the component to be recommended into a word sequence consisting of multiple words; Using the word embedding layer of the second semantic encoder including the word embedding layer, each word in the word sequence is mapped into a word embedding vector to obtain a sequence of word embedding vectors; Using the converter of the second semantic encoder including the word embedding layer, performing converter-based global context semantic encoding on the sequence of the word embedding vectors to obtain a plurality of global context semantic feature vectors; and The multiple global context semantic feature vectors are cascaded to obtain the semantic understanding feature vector of the component to be recommended.

Citation Information

Patent Citations

  • Recommendation processing method, device and equipment based on artificial intelligence

    CN111177569A

  • Application program component configuration method, storage medium and electronic device

    CN114911535A

  • Auxiliary system for industrial design and method thereof

    CN115495804A

  • Automatic component determination method and device, equipment and medium

    CN115686660A

  • Electronic commerce decision-making method and system based on big data

    CN116629977A