Audiovisual website recommendation algorithm performance optimization method and system based on knowledge graph
By constructing a knowledge graph and combining it with a deep learning algorithm, the problem of identifying relevant knowledge and relationships in diverse scenarios based on the knowledge graph recommendation algorithm is solved, the diversity and stability of audio-visual website recommendations are achieved, and the user experience and recommendation effect are improved.
Patent Information
- Application Number
- CN202410773160.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-17
Smart Images

Figure CN118349747B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a method and system for optimizing the performance of an audiovisual website recommendation algorithm based on a knowledge graph. Background Art
[0002] In recent years, with the rapid development of network information technology, people can easily obtain massive amounts of information from various channels. However, this also brings the challenge of information overload, and people often find it difficult to quickly and accurately find the information they need. In order to deal with this problem, recommendation algorithms have gradually emerged; recommendation algorithms are one of the key technologies in the field of computer science and information technology. They predict the user's interest in items or services and recommend items or services that may be of interest to the user.
[0003] At present, the research field of recommendation algorithms is showing a diversified trend. Among them, the collaborative filtering recommendation algorithm has become a hot topic in academia and industry due to its extensiveness and practicality. This algorithm mainly predicts the items that the current user may be interested in based on the existing user and item information. However, the traditional collaborative filtering recommendation algorithm faces challenges such as explainability, data sparsity, and cold start in the recommendation process. In order to overcome the problems of traditional recommendation algorithms, researchers have begun to explore recommendation algorithms based on knowledge graphs. This type of algorithm is based on the existing recommendation model, and integrates the structured knowledge of entities such as items and users in the knowledge graph into the recommendation model, improving the data sparsity problem by introducing additional knowledge.
[0004] Although recommendation algorithms based on knowledge graphs have shown certain potential in improving recommendation effects, in practical applications, due to the richness, diversity and complexity of information in the real world, the scale of data and relationships in knowledge graphs is difficult to measure uniformly. As a result, in diverse recommendation scenarios, it is difficult for algorithms to accurately identify knowledge and relationships that are highly relevant to recommendation targets and to effectively handle the huge scale of these knowledge and relationships, which has certain limitations.
[0005] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention
[0006] In response to the problems in the related technology, the present invention proposes a method and system for optimizing the performance of an audio-visual website recommendation algorithm based on a knowledge graph to overcome the above-mentioned technical problems existing in the existing related technology.
[0007] To this end, the specific technical solution adopted by the present invention is as follows:
[0008] According to one aspect of the present invention, a method for optimizing the performance of an audiovisual website recommendation algorithm based on a knowledge graph is provided, the method comprising the following steps:
[0009] S1. Construct a knowledge graph based on the audio-visual data generated by audio-visual websites;
[0010] S2. Use the improved clustering algorithm to obtain user personalized data, and combine the knowledge graph and deep learning algorithm to establish an audio-visual website recommendation model;
[0011] S3. Optimize the parameters of the audio-visual website recommendation model using a parameter optimization algorithm to obtain the optimal parameters.
[0012] Furthermore, based on the audio-visual data generated by the audio-visual website, constructing a knowledge graph includes the following steps:
[0013] S11, collecting audio-visual data from audio-visual websites and pre-processing the audio-visual data, wherein the audio-visual data includes audio-visual content data, user behavior data, and external knowledge data;
[0014] S12. Use information extraction technology to extract audio-visual entities and the associations between audio-visual entities from the preprocessed audio-visual data, and combine with the graph database to construct a knowledge graph.
[0015] Furthermore, the improved clustering algorithm is used to obtain user personalized data, and combined with the knowledge graph and deep learning algorithm, the audio-visual website recommendation model is established, including the following steps:
[0016] S21. Using an improved clustering algorithm to mine audio-visual data and obtain user personalized data;
[0017] S22, using graph embedding technology to embed the audio-visual entities and the associations between the audio-visual entities in the knowledge graph into a low-dimensional vector space to obtain the embedded low-dimensional vector;
[0018] S23, using the attention mechanism to process the user personalized data and the low-dimensional vector to obtain the user personalized weight;
[0019] S24. Based on user personalized weights and audio-visual data, a deep learning algorithm is used to build an audio-visual website recommendation model.
[0020] Furthermore, using the improved clustering algorithm to mine audio-visual data and obtain user personalized data includes the following steps:
[0021] S211, performing data cleaning on the audio-visual data, generating a data set, and initializing the domain radius and density threshold in the data set;
[0022] S212, traversing the data set, using a clustering algorithm to identify any core point, expanding the core point, extracting all points within the core point domain radius, and based on all points, grouping all points within the domain radius that are densely connected to the core point into clusters;
[0023] S213, traversing all core points within the core point neighborhood radius, obtaining points densely connected to all core points, until there are no core points to expand the cluster;
[0024] S214, after the cluster expansion is completed, re-traverse the data set to find the core points that are not clustered, and repeat steps S212-S213 for the core points that are not clustered until all data points are assigned to the corresponding clusters;
[0025] S215 , performing correlation analysis on the audio-visual data and the clustering results, identifying the user behavior data in different clusters, and obtaining user personalized data according to the identification results.
[0026] Furthermore, the user personalized data and the low-dimensional vector are processed using the attention mechanism to obtain the user personalized weight, which includes the following steps:
[0027] S231, converting the acquired user personalized data into a numerical feature vector;
[0028] S232, input the feature vector and the low-dimensional vector into the attention mechanism, and use the dynamic factor in the attention layer to calculate the attention score;
[0029] S233. Obtain user personalized weights by calculating attention scores of different feature vectors.
[0030] Furthermore, the calculation formula of the attention score is:
[0031] , where P(a,b) represents the attention score between feature vector a and feature vector b;
[0032] N(b,Ka) represents the similarity between the feature vector b and the low-dimensional vector corresponding to the feature vector a;
[0033] Ka represents the low-dimensional vector corresponding to the feature vector a;
[0034] Za represents the value of the eigenvector a;
[0035] L represents the number of low-dimensional vectors;
[0036] l represents the index variable.
[0037] Furthermore, based on the user personalized weight and audio-visual data, using the deep learning algorithm, constructing an audio-visual website recommendation model includes the following steps:
[0038] S241, performing standardization processing on the user personalized weight and the audio-visual data, and extracting feature data from the standardized user personalized weight and the audio-visual data;
[0039] S242. Based on the extracted feature data and combined with the deep learning algorithm, an audio-visual website recommendation model is constructed;
[0040] S243. Divide the audio-visual data to obtain a training set and a test set, and use the training set to train the audio-visual website recommendation model.
[0041] Furthermore, the parameter optimization algorithm is used to optimize the parameters of the audiovisual website recommendation model, and obtaining the optimal parameters includes the following steps:
[0042] S31. In the parameter space of the audiovisual website recommendation model, a number of groups of parameters are randomly initialized as particles in the particle swarm, and an initial position and an initial velocity are randomly assigned to each particle;
[0043] S32, calculating the initial fitness value corresponding to each particle, and recording the current global optimal position and global optimal fitness value;
[0044] S33, calculating the inertia weight according to the preset number of iterations and the current number of iterations, and updating the position and velocity of each particle using the position iteration formula and the velocity iteration formula;
[0045] S34, using a genetic algorithm to process the position and speed of each particle after the update, and calculating the fitness value corresponding to each particle after the genetic processing;
[0046] S35, comparing the fitness value with the initial fitness value, and updating the optimal position and the optimal fitness value according to the comparison result;
[0047] S36. Determine whether the current number of iterations reaches the preset number of iterations. If so, stop the iteration and use the parameter corresponding to the optimal position after stopping the iteration as the optimal parameter. If not, repeat steps S32-S35 until the preset number of iterations is reached.
[0048] Further, the position and speed of each particle after the update are processed by using a genetic algorithm, and the fitness value corresponding to each particle after the genetic processing is calculated, including the following steps:
[0049] S341, using a roulette wheel selection method to select a number of particles from the updated particle group as parent particles;
[0050] S342, randomly selecting two parent particles, and performing a crossover operation on the positions and velocities of the parent particles according to a preset crossover probability and a crossover method to generate child particles;
[0051] S343, based on each offspring particle, according to the preset mutation probability and mutation method, the speed and position of the offspring particle are mutated to generate the final offspring particle;
[0052] S344, merging the final descendant particle with several particles in the current particle group to form a new particle group;
[0053] S345. Calculate the fitness value of each particle in the new particle swarm.
[0054] According to another aspect of the present invention, there is also provided a system for optimizing the performance of an audiovisual website recommendation algorithm based on a knowledge graph, the system comprising a knowledge graph construction module, an audiovisual website recommendation model establishment module, and a parameter optimization module;
[0055] A knowledge graph construction module is used to construct a knowledge graph based on the audio-visual data generated by the audio-visual website;
[0056] The audio-visual website recommendation model building module is used to obtain user personalized data using an improved clustering algorithm, and to build an audio-visual website recommendation model by combining knowledge graphs and deep learning algorithms;
[0057] The parameter optimization module is used to optimize the parameters of the audio-visual website recommendation model using a parameter optimization algorithm to obtain the optimal parameters.
[0058] The beneficial effects of the present invention are:
[0059] 1. By constructing a knowledge graph, the present invention can not only identify the correlation between audio-visual content, but also reveal the potential connection between users and audio-visual content. By combining user personalized data and deep learning algorithms, it can accurately capture and understand user interests and preferences, thereby providing recommended content that better meets user needs and improves user satisfaction.
[0060] 2. The present invention can significantly enhance the diversity of recommendations by combining user personalized data, which not only provides users with more diverse and personalized recommendation results, but also effectively avoids the singleness and limitations of recommendation results, thereby improving user experience.
[0061] 3. The present invention optimizes the parameters of the audio-visual website recommendation model by using a parameter optimization algorithm, thereby ensuring that the audio-visual website recommendation model achieves optimal performance in specific scenarios, helping to improve overall performance and stability, and providing users with more stable and reliable recommendation services. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0063] Figure 1is a flow chart of a method for optimizing the performance of an audio-visual website recommendation algorithm based on a knowledge graph according to an embodiment of the present invention;
[0064] Figure 2 It is a principle block diagram of a knowledge graph-based audio-visual website recommendation algorithm performance optimization system according to an embodiment of the present invention.
[0065] In the figure:
[0066] 1. Knowledge graph construction module; 2. Audio-visual website recommendation model establishment module; 3. Parameter optimization module. DETAILED DESCRIPTION
[0067] To further illustrate each embodiment, the present invention provides drawings, which are part of the disclosure of the present invention and are mainly used to illustrate the embodiments. They can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in this field should be able to understand other possible implementation methods and advantages of the present invention.
[0068] According to an embodiment of the present invention, a method and system for optimizing the performance of an audio-visual website recommendation algorithm based on a knowledge graph are provided.
[0069] The present invention will now be further described with reference to the accompanying drawings and specific embodiments. Figure 1 As shown, according to the method for optimizing the performance of an audio-visual website recommendation algorithm based on a knowledge graph according to an embodiment of the present invention, the method comprises the following steps:
[0070] S1. Build a knowledge graph based on the audio-visual data generated by audio-visual websites.
[0071] Specifically, based on the audio-visual data generated by the audio-visual website, constructing the knowledge graph includes the following steps:
[0072] S11. Collect audio-visual data from audio-visual websites and pre-process the audio-visual data, wherein the audio-visual data includes audio-visual content data, user behavior data and external knowledge data.
[0073] It should be noted that audio-visual content data includes titles, categories, tags, descriptions, etc. of movies, music, and videos; user behavior data includes clicks, favorites, ratings, etc.; and external knowledge data includes artist information, production team, etc.
[0074] S12. Use information extraction technology to extract audio-visual entities and the associations between audio-visual entities from the preprocessed audio-visual data, and combine with the graph database to construct a knowledge graph.
[0075] It should be noted that audiovisual entities include movies, TV series, actors, directors, music, labels, etc., and the associations between audiovisual entities include actor-starred-movie, director-directed-movie, movie-type-label, etc.
[0076] S2. Use the improved clustering algorithm to obtain user personalized data, and combine the knowledge graph and deep learning algorithm to establish an audio-visual website recommendation model.
[0077] Specifically, using the improved clustering algorithm to obtain user personalized data, and combining the knowledge graph and deep learning algorithm, establishing an audio-visual website recommendation model includes the following steps:
[0078] S21. Use the improved clustering algorithm to mine audio-visual data and obtain user personalized data.
[0079] Specifically, using the improved clustering algorithm to mine audio-visual data and obtain user personalized data includes the following steps:
[0080] S211, performing data cleaning on the audio-visual data, generating a data set, and initializing the domain radius and density threshold in the data set;
[0081] S212, traversing the data set, using a clustering algorithm to identify any core point, expanding the core point, extracting all points within the core point domain radius, and based on all points, grouping all points within the domain radius that are densely connected to the core point into clusters;
[0082] S213, traversing all core points within the core point neighborhood radius, obtaining points densely connected to all core points, until there are no core points to expand the cluster;
[0083] S214, after the cluster expansion is completed, re-traverse the data set to find the core points that are not clustered, and repeat steps S212-S213 for the core points that are not clustered until all data points are assigned to the corresponding clusters;
[0084] S215 , performing correlation analysis on the audio-visual data and the clustering results, identifying the user behavior data in different clusters, and obtaining user personalized data according to the identification results.
[0085] S22. Use graph embedding technology to embed the audiovisual entities and the associations between audiovisual entities in the knowledge graph into a low-dimensional vector space to obtain the embedded low-dimensional vectors.
[0086] It should be noted that, based on the specific application scenarios, audio-visual entities and the characteristics of the associations between audio-visual entities, the DeepWalk algorithm is selected to embed the nodes (audio-visual entities) and edges (associations between audio-visual entities) in the knowledge graph into the low-dimensional vector space to obtain the embedded low-dimensional vectors.
[0087] S23. Use the attention mechanism to process the user personalized data and the low-dimensional vector to obtain the user personalized weight.
[0088] Specifically, using the attention mechanism to process user personalized data and low-dimensional vectors to obtain user personalized weights includes the following steps:
[0089] S231: Convert the acquired user personalized data into a numerical feature vector.
[0090] S232. Input the feature vector and the low-dimensional vector into the attention mechanism, and use the dynamic factors in the attention layer to calculate the attention score.
[0091] Specifically, the calculation formula for attention score is: , where P(a,b) represents the attention score between feature vector a and feature vector b;
[0092] N(b,Ka) represents the similarity between the feature vector b and the low-dimensional vector corresponding to the feature vector a;
[0093] Ka represents the low-dimensional vector corresponding to the feature vector a;
[0094] Za represents the value of the eigenvector a;
[0095] L represents the number of low-dimensional vectors;
[0096] l represents the index variable.
[0097] S233. Obtain user personalized weights by calculating attention scores of different feature vectors.
[0098] S24. Based on user personalized weights and audio-visual data, a deep learning algorithm is used to build an audio-visual website recommendation model.
[0099] Specifically, based on user personalized weights and audio-visual data, using deep learning algorithms, building an audio-visual website recommendation model includes the following steps:
[0100] S241 , performing standardization processing on the user personalized weight and the audio-visual data, and extracting feature data from the standardized user personalized weight and the audio-visual data.
[0101] S242. Based on the extracted feature data and combined with deep learning algorithms, an audio-visual website recommendation model is constructed.
[0102] It should be noted that, based on the extracted feature data, a convolutional neural network architecture is selected, and parameters such as the number of layers of the convolutional neural network model, the number of neurons in each layer, the activation function, the optimizer, the learning rate, and the batch size are set; a deep learning framework (such as TensorFlow or PyTorch) is used to write code to construct an audio-visual website recommendation model based on a convolutional neural network.
[0103] S243. Divide the audio-visual data to obtain a training set and a test set, and use the training set to train the audio-visual website recommendation model.
[0104] S3. Optimize the parameters of the audio-visual website recommendation model using a parameter optimization algorithm to obtain the optimal parameters.
[0105] Specifically, the parameter optimization algorithm is used to optimize the parameters of the audio-visual website recommendation model to obtain the optimal parameters, including the following steps:
[0106] S31. In the parameter space of the audio-visual website recommendation model, several groups of parameters are randomly initialized as particles in the particle swarm, and an initial position and an initial velocity are randomly assigned to each particle.
[0107] S32, calculating the initial fitness value corresponding to each particle, and recording the current global optimal position and the global optimal fitness value.
[0108] It should be noted that the calculation formula of the fitness value is: , where fi represents the fitness value of particle i;
[0109] xi represents the current position of particle i;
[0110] Represents the absolute value of the objective function f(xi).
[0111] S33. Calculate the inertia weight according to the preset number of iterations and the current number of iterations, and use the position iteration formula and the velocity iteration formula to update the position and velocity of each particle.
[0112] It should be noted that the position iteration formula is: , where xi+1 represents the updated particle position;
[0113] xi represents the current particle position;
[0114] i represents the number of iterations;
[0115] vi represents the current particle velocity.
[0116] The expression of the velocity iteration formula is: , where vi+1 represents the updated particle velocity;
[0117] vi represents the current particle position;
[0118] c1 represents the current inertia weight;
[0119] c2 represents the updated inertia weight;
[0120] n1 and n2 represent random numbers in the range of [0, 1];
[0121] pi represents the optimal position of an individual;
[0122] gi represents the global optimal position;
[0123] xi represents the current particle position.
[0124] S34, using a genetic algorithm to process the updated position and speed of each particle, and calculating the fitness value corresponding to each particle after the genetic processing.
[0125] Specifically, the genetic algorithm is used to process the updated position and velocity of each particle, and the fitness value corresponding to each particle after the genetic processing is calculated, including the following steps:
[0126] S341. Select several particles from the updated particle group as parent particles using the roulette wheel selection method.
[0127] S342. Randomly select two parent particles, and perform a crossover operation on the positions and velocities of the parent particles according to a preset crossover probability and a crossover method to generate child particles.
[0128] It should be noted that the crossover method includes single-point crossover, multi-point crossover, etc.
[0129] S343. Based on each descendant particle, according to a preset mutation probability and mutation method, a mutation operation is performed on the speed and position of the descendant particle to generate a final descendant particle.
[0130] It should be noted that the mutation method includes uniform mutation, Gaussian mutation, etc.
[0131] S344, merging the final descendant particle with several particles in the current particle group to form a new particle group.
[0132] S345. Calculate the fitness value of each particle in the new particle swarm.
[0133] S35, comparing the fitness value with the initial fitness value, and updating the optimal position and the optimal fitness value according to the comparison result.
[0134] It should be noted that comparing the fitness value with the initial fitness value and updating the optimal position and the optimal fitness value according to the comparison result includes: comparing the calculated fitness value with the initial fitness value, if the fitness value is optimal, generating a new optimal individual; if the fitness value of the new optimal individual is better, updating the position of the new individual to the optimal position; at the same time, updating the fitness value to the current optimal fitness value.
[0135] S36. Determine whether the current number of iterations reaches the preset number of iterations. If so, stop the iteration and use the parameter corresponding to the optimal position after stopping the iteration as the optimal parameter. If not, repeat steps S32-S35 until the preset number of iterations is reached.
[0136] like Figure 2 As shown, according to another embodiment of the present invention, a system for optimizing the performance of an audio-visual website recommendation algorithm based on a knowledge graph is also provided, the system comprising a knowledge graph construction module, an audio-visual website recommendation model establishment module and a parameter optimization module;
[0137] A knowledge graph construction module is used to construct a knowledge graph based on the audio-visual data generated by the audio-visual website;
[0138] The audio-visual website recommendation model building module is used to obtain user personalized data using an improved clustering algorithm, and to build an audio-visual website recommendation model by combining knowledge graphs and deep learning algorithms;
[0139] The parameter optimization module is used to optimize the parameters of the audio-visual website recommendation model using a parameter optimization algorithm to obtain the optimal parameters.
[0140] In summary, with the help of the above technical solution of the present invention, by constructing a knowledge graph, it is possible not only to identify the correlation between audio-visual content, but also to reveal the potential connection between users and audio-visual content. Combining user personalized data and deep learning algorithms, it is possible to accurately capture and understand user interests and preferences, thereby providing recommended content that better meets user needs and improves user satisfaction. By combining user personalized data, the diversity of recommendations can be significantly enhanced, which not only provides users with more diverse and personalized recommendation results, but also effectively avoids the singleness and limitations of recommendation results, thereby improving user experience. By optimizing the parameters of the audio-visual website recommendation model using a parameter optimization algorithm, it is possible to ensure that the audio-visual website recommendation model achieves optimal performance in specific scenarios, which helps to improve overall performance and stability, and provide users with more stable and reliable recommendation services.
[0141] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for optimizing the performance of an audio-visual website recommendation algorithm based on a knowledge graph, characterized in that: The method comprises the following steps: S1. Construct a knowledge graph based on the audio-visual data generated by audio-visual websites; S2. Use the improved clustering algorithm to obtain user personalized data, and combine the knowledge graph and deep learning algorithm to establish an audio-visual website recommendation model; S3, optimizing the parameters of the audio-visual website recommendation model using a parameter optimization algorithm to obtain optimal parameters; The method of using the improved clustering algorithm to obtain user personalized data and combining the knowledge graph and deep learning algorithm to establish an audio-visual website recommendation model includes the following steps: S21. Using an improved clustering algorithm to mine audio-visual data and obtain user personalized data; S22, using graph embedding technology to embed the audio-visual entities and the associations between the audio-visual entities in the knowledge graph into a low-dimensional vector space to obtain the embedded low-dimensional vector; S23, using the attention mechanism to process the user personalized data and the low-dimensional vector to obtain the user personalized weight; S24. Based on user personalized weights and audio-visual data, a deep learning algorithm is used to construct an audio-visual website recommendation model; The method of mining audio-visual data using an improved clustering algorithm to obtain user personalized data includes the following steps: S211, performing data cleaning on the audio-visual data, generating a data set, and initializing the domain radius and density threshold in the data set; S212, traversing the data set, using a clustering algorithm to identify any core point, expanding the core point, extracting all points within the core point domain radius, and based on all points, grouping all points within the domain radius that are densely connected to the core point into clusters; S213, traversing all core points within the core point neighborhood radius, obtaining points densely connected to all core points, until there are no core points to expand the cluster; S214, after the cluster expansion is completed, re-traverse the data set to find the core points that are not clustered, and repeat steps S212-S213 for the core points that are not clustered until all data points are assigned to the corresponding clusters; S215, performing correlation analysis on the audio-visual data and the clustering results, identifying user behavior data in different clusters, and obtaining user personalized data according to the identification results; The process of using the attention mechanism to process the user personalized data and the low-dimensional vector to obtain the user personalized weight includes the following steps: S231, converting the acquired user personalized data into a numerical feature vector; S232, input the feature vector and the low-dimensional vector into the attention mechanism, and use the dynamic factor in the attention layer to calculate the attention score; S233, obtaining user personalized weights by calculating attention scores of different feature vectors; The calculation formula of the attention score is: , where P(a,b) Represents the feature vector a With the eigenvector b The attention score between N(b,K a ) Represents the feature vector b With the eigenvector a The similarity of the corresponding low-dimensional vector; K a Represents the feature vector a The corresponding low-dimensional vector; Z a Represents the feature vector a The value of L Represents the number of low-dimensional vectors; l Represents an index variable; The method of constructing an audio-visual website recommendation model based on user personalized weights and audio-visual data using a deep learning algorithm includes the following steps: S241, performing standardization processing on the user personalized weight and the audio-visual data, and extracting feature data from the standardized user personalized weight and the audio-visual data; S242. Based on the extracted feature data and combined with the deep learning algorithm, an audio-visual website recommendation model is constructed; S243, dividing the audio-visual data to obtain a training set and a test set, and using the training set to train the audio-visual website recommendation model; The method of optimizing the parameters of the audio-visual website recommendation model using the parameter optimization algorithm to obtain the optimal parameters includes the following steps: S31. In the parameter space of the audiovisual website recommendation model, a number of groups of parameters are randomly initialized as particles in the particle swarm, and an initial position and an initial velocity are randomly assigned to each particle; S32, calculating the initial fitness value corresponding to each particle, and recording the current global optimal position and global optimal fitness value; S33, calculating the inertia weight according to the preset number of iterations and the current number of iterations, and updating the position and velocity of each particle using the position iteration formula and the velocity iteration formula; S34, using a genetic algorithm to process the position and speed of each particle after the update, and calculating the fitness value corresponding to each particle after the genetic processing; S35, comparing the fitness value with the initial fitness value, and updating the optimal position and the optimal fitness value according to the comparison result; S36, determining whether the current number of iterations reaches the preset number of iterations, if so, stopping the iteration, and taking the parameter corresponding to the optimal position after stopping the iteration as the optimal parameter, if not, repeating steps S32-S35 until the preset number of iterations is reached; The method of processing the updated position and speed of each particle by using a genetic algorithm and calculating the fitness value corresponding to each particle after the genetic processing comprises the following steps: S341, using a roulette wheel selection method to select a number of particles from the updated particle group as parent particles; S342, randomly selecting two parent particles, and performing a crossover operation on the positions and velocities of the parent particles according to a preset crossover probability and crossover method to generate child particles; S343, based on each offspring particle, according to the preset mutation probability and mutation method, the speed and position of the offspring particle are mutated to generate the final offspring particle; S344, merging the final descendant particle with several particles in the current particle group to form a new particle group; S345, calculating the fitness value of each particle in the new particle swarm.
2. The method for optimizing the performance of an audiovisual website recommendation algorithm based on a knowledge graph according to claim 1, characterized in that: The construction of the knowledge graph based on the audio-visual data generated by the audio-visual website includes the following steps: S11, collecting audio-visual data from audio-visual websites and pre-processing the audio-visual data, wherein the audio-visual data includes audio-visual content data, user behavior data, and external knowledge data; S12. Use information extraction technology to extract audio-visual entities and the associations between audio-visual entities from the preprocessed audio-visual data, and combine with the graph database to construct a knowledge graph.
3. A knowledge graph-based audio-visual website recommendation algorithm performance optimization system, used to implement the knowledge graph-based audio-visual website recommendation algorithm performance optimization method described in any one of claims 1-2, characterized in that: The system includes a knowledge graph construction module, an audio-visual website recommendation model establishment module, and a parameter optimization module; The knowledge graph construction module is used to construct a knowledge graph based on the audio-visual data generated by the audio-visual website; The audio-visual website recommendation model establishment module is used to obtain user personalized data using an improved clustering algorithm, and to establish an audio-visual website recommendation model in combination with a knowledge graph and a deep learning algorithm; The parameter optimization module is used to optimize the parameters of the audio-visual website recommendation model using a parameter optimization algorithm to obtain optimal parameters.
