Research on social recommendation algorithm based on fuzzy subjective trust

In order to resist malicious attacks and improve recommendation accuracy, this paper proposes a collaborative filtering recommendation algorithm based on fuzzy subjective trust based on the subjectivity and fuzziness of trust. Firstly, the trust matrix is constructed by calculating the trust degree between users based on fuzzy subjective trust model and set of trusted users. Then, based on the traditional collaborative filtering recommendation algorithm, the user hybrid recommendation matrix is obtained through user similarity matrix and trust matrix to form recommendations for target users. Experimental results show that this method can effectively improve the resistance to malicious attacks and improve the accuracy of the recommendation system.


Introduction
In recent years, with the rapid development of social networks such as Facebook, Twitter, Weibo, WeChat, QQ, etc., various social applications and services have penetrated into many fields such as instant messaging, e-commerce and consumer recommendation. Social networking has become one of the main ways for people to communicate and obtain information (Arora & Taneja, 2021;Meeker, 2017;Shen et al., 2020). As the main body of the social network platform, users have established complex and diverse social networks based on their actual needs, real social relationships and activities. On social networks, people are no longer satisfied to communicate with friends they know in the real world, but hope that social networks can recommend them more new users with common interests and hobbies, continue to expand their social relationships and learn more useful information. How to provide users with service recommendations safely, quickly and accurately has become one of the hotspots of social network service research (Bushra & Yousef, 2020). Traditional recommendation systems are mostly based on collaborative filtering algorithms , content data filtering algorithms, and hybrid recommendation algorithms (Bushra & Yousef, 2020;Zhang, 2019;Zhu, 2020). Among them, the collaborative filtering algorithm is one of the most widely used personalised recommendation algorithms, but the algorithm has problems such as cold start (Li et al., 2022), data sparseness, forgery of scoring data, and inaccurate recommendation accuracy (Chen et al., 2016;Jia et al., 2019;Nassira et al., 2020;Yu, Chen, et al., 2020).
With the continuous deepening of social networks, trust has gradually been introduced into the research of collaborative filtering algorithms. Trust is the foundation of the entire social formation and is of paramount importance in social networks. It has been found that, similar to real social life, items recommended by friends trusted by users in social networks are more easily accepted by users (Ive & Tatiane, 2021;Lv, 2020;Tong et al., 2017). Therefore, the research of collaborative filtering algorithm based on trust relationship is in line with the actual construction characteristics of social networks. It provides a new idea to solve the problems of data sparseness and cold start in traditional collaborative filtering algorithms and improve the accuracy of social network recommendation (Nassira et al., 2020;Wang et al., 2019).
At present, some achievements have been made in the research of trust-based recommendation methods in social networks . Guo Lei et al. (2021) mined trust relationships from social behaviours, measured user trust from both explicit and implicit aspects, and proposed a joint matrix factorisation social recommendation algorithm based on trust mechanism and social behaviours. Experimental results show that the proposed algorithm can significantly improve the recommendation accuracy and top-K recommendation ability. Zou Yang et al. (2020) calculated the trust degree of social network users based on the behaviour of social network users, and proposed a recommendation algorithm combining improved fill method and multi-weight similarity degree. The algorithm obtained neighbour users and recommended goods to target users according to the similarity degree. Experimental results show that the MAE of the proposed algorithm is superior to other recommendation methods in the case of data sparsity and personalised recommendation. Ju Chunhua et al. (2021) proposed a recommendation method combining users' social relationship and trust relationship, which calculates trust degree based on the trust relationship of friends and the reputation of users, and effectively combines similar relationship with trust relationship. Experimental results show that the proposed application recommendation method can effectively improve the validity and accuracy of application recommendation . Yu Shengjie et al. (2020) integrated the trust model of user preference and trust-distrust relationship, and proposed a recommendation algorithm based on joint probability matrix decomposition. The experimental results show that the algorithm has better recommendation accuracy than the traditional collaborative filtering algorithm based on fusion trust and the existing trust-enhanced matrix decomposition recommendation method . Sheng Liqun et al. (2022) mined the implicit trust relationship matrix between users by using known user rating information, and proposed an improved SoRec model based on the obtained trust information. Experimental verification shows that the model can improve the accuracy of the recommendation algorithm . Hu Yun et al. (2017) proposed a social recommendation algorithm for comprehensive scoring and trust relationship. This method used the probability matrix decomposition method to study the trust relationship, and solved the problem of accurate construction of users feature vectors and trust transfer. The experimental results show that the proposed algorithm has a significant performance improvement over the traditional social network recommendation algorithm. Tang Xiaobo et al. (2015) proposed a social media friend recommendation model based on complex trust network. Based on the social relationship of social media users, this model combined the trust measurement and delivery method to construct the user's trust network system. The experimental results show that the proposed algorithm alleviates the cold start problem of the friend recommendation system and improves the accuracy of the friend recommendation result. Guo Lei et al. (2013) proposed a sensitive social recommendation algorithm to strengthen the trust relationship. The experimental results show that this method can achieve better recommendation results, and the strength of the trust relationship derived by it can further improve the performance of existing recommendation algorithms. Using the concept of a friend of a Friend (FOAF), Dionisis et al. (2020) proposed the CFfoaf algorithm, which was evaluated under eight widely used sparse datasets and two widely used collaborative filtering correlation metrics, and proved to be particularly effective. However, in the existing trust-based collaborative filtering algorithm research, most of the trust is based on the probability model. The definition of trust is too strict, and the subjectivity, uncertainty and fuzziness of trust itself are not considered. Therefore, the true trust relationship in the social network cannot be correctly reflected. Trust is an important foundation for the formation of social networks. Establishing a reasonable and efficient trust model is a prerequisite for the accurate study of social recommendation algorithms.
Therefore, this paper proposes a collaborative filtering recommendation algorithm based on fuzzy subjective trust, which uses fuzzy subjective trust model to dynamically describe the trust relationship between users in social networks. After removing malicious attack users, the set of trusted users is constructed, and the trust degree among trusted users in the social trust network is calculated based on this set. In this way, the user trust matrix is constructed, and the traditional CF algorithm is improved based on the similarity of user preferences, and finally the recommendation to target users is formed.

Algorithm process
Fuzzy subjective trust model is the core of FST-CF algorithm, including the establishment of fuzzy subjective trust vector, the establishment of trusted users set (TUS) and the calculation of trust degree between users. Considering the subjectivity and fuzziness of trust in social networks, this paper uses fuzzy membership theory to objectively describe the trust evaluation among users in social networks, and completes the construction of fuzzy subjective trust vector. In the calculation of trust degree between users, the calculation of direct trust degree between users is the basis of trust measurement, which determines the accuracy and rationality of indirect trust degree between users. The direct trust degree and indirect trust degree between users will directly affect the construction of user trust matrix. In order to prevent the shilling attacks behaviour of malicious users, the algorithm adds the trusted users to the set of trusted users by judging the behaviour of users, and calculates the direct and indirect trust degree of users based on the set of trusted users. Finally, the user trust matrix is constructed and the target user is recommended by the improved CF algorithm.
FST-CF algorithm process is shown in Figure 1.

Trust
Under the social network, users form a circle of friends because of mutual trust, and they constantly update and strengthen trust through social interaction. Once trust is established, the social relationships between users are gradually spread. Therefore, the key to the research on trust-based recommendation algorithms in social networks is to give a formal description of trust network after analyzing and defining trust-related attributes (Gan et al., 2012;Gan et al., 2015). X.509 v4 (2000 version) (International Telecommunications Union, 2000) defines trust as follows: "In general, if an entity assumes another entity will be strictly in accordance with the it would expect action, then call it trust that entity". The concept of trust defined here contains a relationship between the two parties and an expectation of the relationship. In social networks, trust is the subjective behaviour between two entities in the network. It is a complex network relationship with characteristics of otherness, fuzziness, transitivity, asymmetry, compositionality and dynamicity.
Definition 2.1: Let R be a collection of user entities in the social network, ∃i ∈ R, ∃j ∈ R and i = j. The relationship between entities is represented by * , and the trust value is represented by T. The trust relationship between users can be formally defined as formula (1). (1)

Formal description of the trust network
This paper uses a trust network to express the trust relationship between users in social networks and the recommendation environment of the social network.
Definition 2.2: Trust Network. It is formally represented by a directed weighted graph G composed of nodes representing users and trust relationship between nodes, denoted as G = (V, E, R). The set of vertices of the trust network is represented by V, the set of edges between the vertices is represented by E, and the set of trust values between the nodes is represented by R.

The establishment of fuzzy subjective trust vector
Suppose X = {x 1 , x 2 , . . . , x n } is the problem domain studied by fuzzy subjective trust, and x i (i = 1, 2, . . . , n) is the subject of the problem domain under study.

Definition 2.3:
If problem domain X is a non-empty set and x i (i = 1, 2, . . . n) is an element in X, the following mapping relationship holds for ∀x i ∈ X: . We call μ A (x i ) the membership of x i to the fuzzy subset A, call the mapping μ A the membership function of the fuzzy subset A, and call (X) the set of all fuzzy subsets A in the problem domain X.
Definition 2.4: Definition T j (T j ∈ (X), j = 1, 2, . . . , m) is a trust type with different trust degrees, and a discrete value {1, 2, . . . , m} is used to describe the level of trust of the user subject.
Definition 2.5: Let T j (T j ∈ (X), j = 1, 2, . . . , m) be a subset with different levels of trust, subject x i (i = 1, 2, . . . n) be an element in X, and take the vector formed by the membership degree μ ij of x i to each T j (j = 1, 2, . . . m) as the trust vector.
In social networks, users can be characterised by historical credibility, social identity, social status, transaction evaluation and other parameters of the user subject (Zhang, 2006). Then, the finite number of fuzzy parameters formed by the feature values of each user subject as the trust vector of the subject x i (i = 1, 2, . . . , n). In this way, the fuzzy membership theory is used to objectively describe the trust evaluation of other users to a certain user in the social network, and the construction of fuzzy subjective trust vector is completed.

The establishment of trusted users set
In the collaborative filtering recommendation system, the system generates a recommendation list for each user according to the evaluation information of his neighbour, so the shilling attacks behaviour of malicious users will affect the final result of the recommendation. As the shilling attacks method has the characteristics of score difference, symmetry, camouflage and infectivity (Zhang & Huang, 2020), in order to determine whether a user is a malicious user, four parameters are defined to determine whether a user is a shilling attack user according to the characteristics of trusted users, so as to establish a set of trusted users in the trust network.

Degree of trust clustering (DTC)
This clustering degree describes the degree to which users in a trust network trust each other in a "cluster". Because the trust relationship between normal users is usually asymmetrical, there is not much overlap between trusted users. However, shilling attacks users' symmetry features, resulting in trust relations between each other to form certain cluster characteristics, which are defined as follows: In formula (3), T A indicates the set of users trusted by user A, and T T A indicates the set of users trusted by user T A .

Proportion of trusted projects (PTP)
Due to the random attack characteristics of shilling attacks, it can be concluded that the number of scoring items of shilling attacks users is almost the same and the number of scoring items is large. In the actual recommendation scenario, it is precisely because users rate fewer items that data sparseness appears in the scoring matrix. Using this feature of shilling attacks users, it is defined as follows: In formula (4), I t represents the scoring item of user t, I A represents the scoring item of user A, number I A represents the number of scoring items of user A.

Trust similarity (TS)
In the trust network, there is usually not too much item score between normal users, resulting in low similarity between them. Due to the mutual trust behaviour of the shilling attacks users and the similar attack behaviour of the shilling attacks, there is a high degree of similarity between the two users in the trust relationship. Using this feature of shilling attacks users, it is defined as follows: In formula (5), sim A,t is cosine similarity of user A and user T, number I A represents the number of scoring items of user A.

Degree of global consistency (DGC)
Users of partial shilling attacks randomly attack the system without adding trust information. In order to increase the robustness of the system against this kind of shilling attacks, the global consistency degree is proposed and defined as follows: In formula (6), r A,i is user A's rating of project i, r i is the average of all ratings of project i, and number I A represents the number of scoring items of user A. Because the users of shilling attack adopt the same attack mode, the global consistency obtained by the final calculation is stable around a certain value. According to this feature, the trusted users without added trust information can be found by calculating the global consistency in the TUS.

Trusted users set
The TUS is built as follows: Part one: shilling attacks user judgment in trust network. Firstly, DTC, PTP and TS of the trusted network are calculated, and the users whose values of these three parameters are greater than a certain threshold are added to the set of shilling attacks users. After being added, users in the set of shilling attacks users meet the following conditions: the user with a large "cluster" in the trust relationship, a large number of items commented and a large number of items jointly scored by the users in the trust relationship and a user with a high degree of similarity with himself in the trust relationship can be considered as a shilling attack user with added trust information, and added to the shilling attacks users set, and conversely, added to the TUS.
The second part: shilling attacks user judgment without added trust information. The average value of DGC is calculated by the set of shilling attacks users in the trusted network. At this time, users without added user trust information can determine whether they are shilling attacks users by calculating their DGC, so that the trusted users are added to the TUS.
After the above two steps, the TUS in the trust network is established. The calculation of direct and indirect trust in social trust networks is based on the interaction between trusted users.

Direct trust degree
Research shows (Huang et al., 2018) that popular item ratings cannot better describe and represent the similarity relationship between users, while the similarity behaviour of rare item ratings can better explain the similarity between users. Therefore, the number of evaluated projects is sorted, and the m projects that rated the most by users are eliminated, and the remaining projects are regarded as "rare project set". According to the number and difference of items jointly scored by users and trusted neighbours belonging to the TUS, the similarity of items (RIS) is calculated as follows: In formula (7), Rare u and Rare v are rare items rated by user u and user v respectively, r u,i is the user u's rating of the project i, r u is the average score of user u. The closer and more rare items are evaluated by the trusted neighbours and the users, the higher the similarity between the trusted neighbours and the users. Set the minimum number of rare items in common evaluation m, and only when the number of rare items in common evaluation of trusted neighbours is greater than or equal to M, they will participate in the screening of trusted neighbours. Take n trusted neighbours with large RIS values and calculate the weight of trusted neighbours as follows: In formula (8), trustneighbour u is a set of n trusted neighbours with the maximum RIS value of user u, v is the user in trustneighbour u , RIS u,v is RIS of rare item similarity of user u and user v.
The direct trust degree of user u to user v can be calculated as: In formula (9), trust u,v is the fuzzy subjective trust evaluation of user u to user v, trust i,v is the fuzzy subjective trust evaluation of user v by user u's trusted neighbour i and α is the weight factor.

Indirect trust degree
According to the transitivity and attenuation characteristics of trust and TidalTrust algorithm, the shorter path has higher trust. Combined with the "six dimensions of space" theory in social networks, this paper introduces the maximum propagation length d and sets the value of d as 6. For the scoring item set of source and target trusted users, the number of scoring times of all trusted users on the path is added to this item set, so that the smaller the scoring difference of trust path between users is, the more scoring items are, and the trust value of the trust path with shorter path length is larger. The way we define the path item differences (PID) for each path is calculated as follows: In formula (10), I u and I v are set of scoring items of source trusted user u and target trusted user v, respectively, and roaduser u,v is all users on a path between source trusted user u and target trusted user v, r t,i indicates the predicted or actual score of item i of user T on the path, and R i indicates the average score of item i of all users. After obtaining multiple trust paths between users, the paths are sorted according to the PID, and m paths with the smallest PID value are taken to calculate the path trust weight (PTW) of each path as follows: In formula (11), trustroad u,v is the set of m paths with the smallest PID value between source trusted user u and target trusted user v and PIV roadi u,v is the path item difference of path i in trustroad u,v . The indirect trust degree between trusted users is calculated as follows: In formula (12), DTrust roadi u,v is the direct trust degree of all users on the path of roadi u,v , and PTW roadi u,v is the weight of path trust degree of roadi u,v .

The comprehensive trust degree of fuzzy subjective trust
Combining direct trust degree and indirect trust degree, the fuzzy subjective trust degree of user u to user v can be expressed as: In formula (13), β is the weight factor of direct trust degree and indirect trust degree. According to the real characteristics of social networks, users are more willing to trust their direct interaction experience, so the weight of direct trust degree is generally higher.

Steps of collaborative filtering recommendation algorithm based on fuzzy subjective trust (FST-CF)
The above trust method is applied to the traditional CF algorithm, and a collaborative filtering recommendation algorithm based on fuzzy subjective trust is constructed. The specific steps are described as follows: • Step 1: Establish a user scoring matrix, and convert the user's explicit, implicit scores, evaluation behaviours, etc. to a numerical score according to certain rules to form a user item scoring matrix. • Step 2: Calculate the similarity between users using the improved Pearson correlation coefficient formula (Li et al., 2018;Wu & Jiang, 2019). The traditional Pearson correlation coefficient formula is: In formula (14), the set I belongs to the set of projects jointly rated by users u and v. r ui and r vi are respectively the scores of users u and v on the projects, and r u and r v are respectively the average scores of historical projects scored by users u and v. The traditional Pearson correlation coefficient is inaccurate in calculating user similarity. However, in social networks, the trust relationship between users not only includes the similarity relationship between them, but also the number of items they jointly score in history. The greater the number of users, the higher the trust value. Therefore, an improved Pearson similarity coefficient can be proposed by integrating the number of jointly scored items and Pearson similarity coefficient, as shown in the following model: In formula (15), H(u, v) represents the number of historical common scoring items between users u and v, I u represents the set of scoring items for user u. • Step 3: According to formula (9) and (12), the direct trust degree DTrust u,v and the indirect trust degree ITrust u,v of users are calculated. • Step 4: Calculate the user's comprehensive trust degree Trust u,v according to formula (13). • Step 5: Determine the threshold T α of trust, establish a user trust matrix T N×N , select the first N trust degrees not less than T α neighbour users, and form a user trust matrix T N×N . The user trust matrix T N×N is shown in Formula (16). • Step 6: According to the number and range of trust neighbour users selected in Step 5, calculate the user similarity in combination with Step 2, and establish a user similarity matrix Sim N×N (Zhou et al., 2018). Each of these elements s ij represents the similarity value between users i and j. The user similarity matrix Sim N×N is shown in Formula (17).
• Step7: Combine the user trust matrix T N×N and the user similarity matrix Sim N×N , obtain the mixed matrix Sim N×N (Wu et al., 2014) based on the harmonic mean function, and use the elements in the mixed matrix Sim N×N as the final recommended weights. The mixed matrix Sim N×N is shown in formula (18).
By combining the user trust matrix T N×N and the user similarity matrix Sim N×N , the merged matrices SimT N×N can be relatively dense, and the target users can be matched to more neighbour users. The combined matrix not only takes into account the similarity between users, but also the trust between users, which can improve the accuracy of system recommendation. • Step 8: The first L users with the highest mixing similarity with the target user in the mixing matrix S are selected as the set of the most recent trusted neighbours. • Step 9: According to the selected nearest neighbour user and its score record, the recommended value of the target user for the predicted item can be calculated. In this paper, the user similarity in the prediction formula of the classical user-based collaborative filtering algorithm is changed to the mixed similarity to calculate the recommended value: In formula (19), R u is the average of the ratings of user u, L is the number of neighbouring users, R k (i) is the rating of user k for item i, R k is the average of the ratings of user k and SimT uk (u, k) is the recommended weight of user k for user u. P ui is the predicted score of user u for item i. The top N users with the highest predicted score are selected to form a Top-N recommendation list for the target user u.

Experimental data
The Movielens data set collected by the GroupLens project team of the University of Minnesota was selected for this experiment. This data set contains 86,432 real ratings of 1546 movies by 1043 users, with the scoring criteria ranging from 1 to 5. After calculation, the sparsity reached 93.7%. In addition, the data set also contains the user's characteristic attribute information, which meets the evaluation requirements of trust relationship in this paper. In this paper, 80% of the Movielens dataset was randomly selected as the training set and 20% as the test set.

Experimental evaluation criteria
The Mean Absolute Error (MAE) is used to measure the recommendation accuracy of the recommendation system by calculating the absolute error between the user's actual score in the test set and the score predicted by the recommendation algorithm. The smaller MAE value is, the higher the accuracy of the recommendation result is; otherwise, the lower the accuracy of the recommendation result is (Meng et al., 2020). The MAE calculation formula is as follows: In formula (20), p i is the user's predicted score for the target item, q i is the actual score for the target item, U test is the user test set and n is the number of user test set. The root mean square error (RMSE) measures the recommendation accuracy of the recommendation system by calculating the arithmetic square root of the mean square error between the user's actual score in the test set and the score predicted by the recommendation algorithm. The smaller the RMSE value is, the higher the accuracy of the recommendation result is; otherwise, the lower it is (Wu, Yu, et al., 2013). The RMSE calculation formula is as follows: In formula (21), p i is the user's predicted score for the target item, q i is the actual score for the target item, U test is the user test set and n is the number of user test set. In order to better measure the recommendation effect, influence indicator parameter is introduced (Zhou et al., 2018), as shown below: This parameter is the harmonic value of MAE and RMSE. The smaller the value is, the better the recommendation accuracy is.

Experimental results and analysis
Experiment 1: Influence of weight factor on FST-CF algorithm.
When calculating the direct trust degree of users, the weight factor determines the weight distribution of fuzzy subjective trust evaluation of user v by user u and fuzzy subjective trust evaluation of user v by trusted neighbours of user u. When calculating the comprehensive trust degree of users, the weight factor determines the weight distribution of direct trust degree and indirect trust degree. Figure 2 shows the value of the parameter influence obtained by changing the weight factor respectively while keeping other variables of the FST-CF algorithm unchanged, so as to measure the influence of the weight factor on the FST-CF algorithm. As can be seen from Figure 2, influence achieves the minimum value when it is 0.7, because the fuzzy subjective trust evaluation of user v by user u reflects the real trust relationship between users. Therefore, when calculating the user's trust degree, direct trust degree will occupy a large weight. In addition, it can be seen that influence gets the minimum value when it is 0. 6. This indicates that in real social trust networks, users are more willing to trust their direct interaction experience, so the weight of direct trust degree is generally higher. Therefore, the values of α and β are set to 0.7 and 0.6, respectively in the experiments described below.
Experiment 2: The Comparison of recommended accuracy under no shilling attacks.
Shilling attack is a common attack method in which malicious users improve the similarity between themselves and the target users by simulating the project score of the target users, and then recommend the deceptive project to the target users, thus causing the interests of the target users to be damaged. This experiment compares the collaborative filtering recommendation algorithm based on FST-CF, the traditional collaborative filtering recommendation algorithm (CF), the social recommendation algorithm combining score and trust relationship (TSR) and the cooperative filtering algorithm integrating traditional trust relationship (TUBCF). In the case of no shilling attacks, the experimental comparison results obtained by these four recommended methods are shown in Figure 3.
Analysis of the experimental results in Figure 3 shows that the recommendation accuracy of the recommendation algorithm is the highest when the number of users k in the trusted neighbour set is 20. In addition, the FST-CF algorithm designed in this paper achieves the lowest MAE value, indicating that the algorithm has a high recommendation accuracy. When the number of trusted neighbour users is 10, FST-CF algorithm is 11%, 6% and 2.89% higher than CF algorithm, TSR algorithm and TUBCF algorithm, respectively. When the number of trusted neighbour users is 20, FST-CF algorithm improves by 8.2%, 4% and 2.08% compared with CF algorithm, TSR algorithm and TUBCF algorithm respectively. This shows that trust relationships in social networks can improve the accuracy of recommendations. In particular, the FST-CF algorithm in this paper is based on real trust relationships in social networks to make the selection of trusted neighbours more accurate, thus effectively improving the accuracy of recommendations.
Experiment 3: The comparison of recommendation accuracy under shilling attacks.
Assuming that there is no shilling attacks in the original data set, this experiment simulates the shilling attacks behaviour of malicious users, Experimental comparison was made between the collaborative filtering recommendation algorithm based on FST-CF, the CF, the TSR and the TUBCF. In this experiment, MAE values of the four algorithms are compared when the number of trusted neighbour users k is set to 20, the artificial injection of random attack, mean attack and popular attack each account for 1/3, the filling rate is 5%, and the attack scale is 1%, 3% and 5%. The experimental results are shown in Figure 4.
It can be seen from the experimental results that MAE of the four recommendation algorithms increases to varying degrees with the increase of attack scale, which indicates that the recommendation accuracy of the recommendation algorithm will decrease with the increase of the profile of the attacker user. However, the FST-CF algorithm in this paper achieves the minimum MAE value under different support attack scales, which reflects the strong anti-attack ability. This shows that the trust measurement method proposed in this paper can accurately calculate the trust degree among users in social networks, so as to effectively isolate attacks from trusted neighbours and improve the anti-attack capability of the recommendation algorithm.

Conclusion
This paper proposes a collaborative filtering recommendation algorithm based on fuzzy subjective trust for the lack of trust evaluation in the current social network recommendation system. This method is based on fuzzy subjective trust model and measures the trust value of users in social networks correctly by constructing the set of trusted users. Combined with the improved traditional collaborative filtering recommendation algorithm, the target user recommendation is finally formed. Experimental results show that compared with the traditional collaborative filtering algorithm, the new algorithm can effectively improve the accuracy and anti-attack ability of the recommendation system, thus providing a new idea for the research of trust-based collaborative filtering algorithm. However, in future studies, it is necessary to comprehensively consider all user information in similarity calculation, including user active time, user active location, user usage time, etc. At the same time, more factors need to be weighed to alleviate the problem of data sparsity. The algorithm also needs to better balance the requirements of real-time and accuracy of the algorithm, so that the algorithm can be improved in both real-time and accuracy.

Disclosure statement
No potential conflict of interest was reported by the author(s).