Next Article in Journal
Experimental Investigation on the Effect of Salt Solution on the Soil Freezing Characteristic Curve for Expansive Soils
Previous Article in Journal
Impact and Spatial Effect of Socialized Services on Agricultural Eco-Efficiency in China: Evidence from Jiangxi Province
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An E-Commerce Personalized Recommendation Algorithm Based on Multiple Social Relationships

College of Computer Science & Technology, Qingdao University, Qingdao 266071, China
Sustainability 2024, 16(1), 362; https://doi.org/10.3390/su16010362
Submission received: 23 October 2023 / Revised: 17 December 2023 / Accepted: 28 December 2023 / Published: 30 December 2023
(This article belongs to the Section Economic and Business Aspects of Sustainability)

Abstract

:
Environmental e-commerce is a sustainability-oriented e-commerce model. To address the problem of data sparsity and the lack of diversity in traditional e-commerce recommendation algorithms, a new collaborative filtering recommendation algorithm based on multiple social relationships is proposed in environmental e-commerce. In real social networks, there were many relationships between users. On the basis of the traditional matrix decomposition model, the proposed algorithm integrates multiple social relationships between users into the user feature matrix, and then the multiple social relationships between users and the user rating preference similarity were used to jointly predict the user’s rating value for commodity, thus the personalized recommendation for users was achieved. In order to verify the superiority of the proposed algorithm, in this paper, two open datasets were used to compare the performance of several recommendation algorithms. The experimental results show that compared with the traditional social recommendation algorithms, the proposed algorithm improves recommendation accuracy and diversity. In real environmental e-commerce recommendation systems, the proposed algorithm can provide users with more personalized recommendation results, and reduce the arbitrariness of customer purchases and frequent returns in reality.

1. Introduction

Environmental and sustainability awareness has become one of the most discussed topics in recent years, and the e-commerce field is not excluded from this narrative. E-commerce is transforming the ways in which commodities are bought—users can quickly and conveniently purchase their favorite commodities through e-commerce platforms. Due to the inherent characteristics of e-commerce, most e-commerce platforms allow users to unconditionally return or exchange commodities, which has invisibly led to a large number of secondary deliveries of commodities, not only wasting packaging resources, but also increasing energy consumption during delivery. Therefore, it is essential to study the relationship of e-commerce and sustainability and the issues related to e-commerce and environment as whole.
Although online shopping might seemingly be more eco-friendly than brick-and-mortar shopping, e-commerce and easy customer returns are driving increased environmental waste. So, why there are so many customer returns? This is because with increasing commodity quantities on e-commerce platforms, there has been a phenomenon of commodity information overload. It is becoming difficult for users to quickly and conveniently find the commodities they truly need from a large number of commodities. In this way, users may purchase commodities they do not need. In order to accurately search for the commodities that users need from the massive amount of commodities on e-commerce platforms, e-commerce personalized recommendation algorithms have emerged. These personalized recommendation algorithms can accurately recommend a set of commodities that users may be interested in based on their historical behavior, thereby saving them search time and reducing the possibility of returns. By reducing the return rate and logistics delivery frequency, environmental resource consumption and pollution will be greatly reduced [1,2].
At present, personalized recommendation technologies are mainly divided into collaborative filtering recommendation [3], content-based recommendation [4], graph-based recommendation [5], hybrid recommendation technology [6], etc. Collaborative filtering recommendation algorithms are widely used in recommendation systems due to good scalability and implementation. Collaborative filtering recommendation fully exploits users’ potential interests based on analyzing user resources, and uses them as a basis for prediction and recommendation. However, collaborative filtering recommendation also has many disadvantages, mainly including (1) the data sparseness problem. Due to the sparsity of the user–item rating matrix data, the calculated users or items similarity is inevitably inaccurate, which affects the accuracy of recommendations. (2) The cold-start problem. In the recommendation system, as new users do not have rating information for items, and the new item is not rated by users, its corresponding nearest neighbors cannot be calculated, so it cannot be recommended. (3) Lack of diversity. The algorithm will recommend content that is similar to its past preferences based on the attributes of the item and the user’s historical behavior. Recommendation results with high similarity will be relatively simple and lack diversity.
Traditional collaborative filtering recommendation algorithms are based on the assumption that users’ ratings for commodities are independent of each other, and users rate commodities based on their own preferences without being influenced by other users. However, in real life, users’ decisions are influenced by multiple factors. When choosing commodities, most users often seek opinions from trusted friends around them or close friends on social networks, which means that users’ interests and hobbies are often easily influenced by social relationships.
As an information propagation medium, social networks provide people with a social platform for communication and an independent information source for recommendation systems. These social networks provide rich user and friend relationship information, and play an increasingly important role in recommendation algorithms. The introduction of social networks in recommendation algorithms can effectively compensate for the problem of low accuracy in traditional recommendation algorithms.
The recommendation algorithm based on social relationships [7,8,9,10,11] has alleviated user data sparsity and cold-start issues, while improving recommendation accuracy. Yuan et al. introduced [12] social network information propagation and singular value decomposition into a recommendation algorithm, significantly improving the quality of the recommendation. Liang et al. [13] proposed a recommendation algorithm that integrates implicit trust relationships into a matrix factorization algorithm for scoring prediction. In their algorithm, the implicit trust relationship between users is calculated by combining the Pearson correlation coefficient and the trust factor. Berkani et al. [14] found a positive correlation between trust and similarity among users on social networks, they use information on the Epinions network to calculate user trust relationships and predict user interest preferences. Deng et al. [15] thought that the trust relationships in social networks can be utilized to reveal user preferences for improving the quality of social recommendations, and they proposed a novel trust-embedded collaborative deep generative model. Tian et al. [16] merged social network and user–item bipartite graphs into a coupled network. Based on mass diffusion behavior, they proposed a new social recommendation model, which combined social network information with user–item information. These existing studies have improved the accuracy of the recommendation results, but there are still shortcomings in the accuracy and diversity of recommendation results [17,18,19].
Most existing algorithms rely solely on explicit relationships of users. However, in real social networks, there is often more than one kind of relationship between users. They neglect the implicit relationships of users. More relationships which are introduced into recommendation algorithms will improve recommendation accuracy.
There are often multiple social relationships between users in social networks, each of which has a different impact on the results of recommendations. In this paper, a novel matrix factorization recommendation algorithm based on multiple relationships between users is proposed. In the proposed algorithm, the user–item rating matrix is decomposed firstly, and then the obtained user feature matrix is reorganized through introducing multiple relationships between users in social network. In this way, the impact of each social relationship on commodity selection will be taken into account, which will increase the diversity of recommendation results. At the same time, the introduction of implicit social relationships will greatly improve the accuracy of recommendation results.
The contributions of our research are as follows:
(1) Aiming at the inherent data sparsity problem in recommendation systems, a new collaborative filtering recommendation algorithm based on multiple social relationships is proposed in this paper.
(2) The proposed model in this paper can integrate multiple social relationships, and simulation results have shown that the more social relationships introduced, the better the recommendation effect and accuracy.
(3) The experiment results on real datasets prove that the proposed model in this paper can be effectively used for recommendation of large-scale users and commodity sets.

2. Materials and Methods

2.1. The Traditional Matrix Factorization Model

Assuming the recommendation system contains m users and n items, then the user–item scoring matrix can be defined as R m × n = R i , j m × n . As shown in Figure 1, the R i j [ 1 , 5 ] represents the scoring of user u i for item v j . An empty rating value indicates that the user has not rated the item. In general, many ratings in R m × n are empty, so user–item scoring matrix would be a sparse matrix.
For the traditional matrix factorization model, the user–item scoring matrix R m × n could be approximated into two low-dimensional matrices U m × k and V k × n , which are the user feature matrix and the item feature matrix. Its column vectors U i and V j represent the potential feature vectors of the corresponding user u i and item v j . k represents the dimension of the vector. In order to reduce the dimension, k is much smaller than m and n . Unknown score r ^ i j in the scoring matrix can be predicted by U i T V j , and the traditional matrix factorization model diagram can be shown as Figure 2.
The rating of the user for commodity is mapped to [ 0 , 1 ] by function f y = 1 / S m a x , where S m a x represents the maximum score of user for commodity. The traditional collaborative decomposition recommendation algorithm based on the matrix factorization model uses a simple linear model R = U T I to approximate the scoring matrix. The traditional algorithm can easily cause the prediction score to deviate too much from the true score, making the prediction distortion. In this paper, by using the nonlinear logistic function g x = 1 / ( 1 + e x ) , the user’s predicted score for item can be mapped in the interval [ 0 , 1 ] . Therefore, the conditional probability of observed score can be defined as follows:
p R U , V , σ R 2 = i = 1 m j = 1 n [ N ( R i j | g U i T V j , σ R 2 ) ] I i j R
where N ( x | μ , σ 2 ) represents Gaussian distribution. I i j R is the index function. If the user u i scores the item v j , its value is 1; otherwise, the value is 0.
Similarly, for U and V , the zero-mean spherical Gaussian priors [20] were defined as follows:
p U σ U 2 = i = 1 m N ( U i | 0 , σ U 2 I )
p V σ V 2 = j = 1 n N ( V j | 0 , σ V 2 I )
By the Bayesian inference, the posterior probability of U and V could be calculated as follows:
p U , V R , σ R 2 , σ U 2 , σ V 2 p R U , V , σ R 2 p U σ U 2 p V σ V 2 = σ i = 1 m j = 1 n [ N ( R i j | g U i T V j , σ R 2 ) ] I i j R     × i = 1 m N U i 0 , σ U 2 I × j = 1 n N ( V j | 0 , σ V 2 I )

2.2. A Matrix Factorization Algorithm Based on Multiple Social Relationships

It is easy to make inaccurate recommendation results by analyzing the user–item scoring matrix because of single data source. In the real world, user preferences are easily influenced by friends they trust. If a user scores an item higher, then another user who trusts him would also be more likely to purchase the item. Therefore, the introduction of social relationships between users can improve the accuracy of prediction.
Matrix S = S i , j m × m represents the social relationship between users. As shown in Figure 3, the value of S i , j is 0 or 1; 0 means that there is no social relationship between users.
Traditional probabilistic matrix factorization (PMF) only recommends items to users based on rating information. PMF does not take into account the influence of relationships between users on recommendation results. Therefore, a probabilistic matrix factorization model based on social relationships (PMFS) is proposed in this paper. In this model, the user feature vector is improved by introducing the user’s social relationships in the matrix factorization process. As shown in Figure 1, user u 1 does not score item v 1 , but his friends u 2 and u 4 score 4 and 5 for item v 1 . Due to the influence of friend relationship, user u 1 is also highly likely to choose item v 1 .
Assuming that there is only one kind of social relationships between users, according to the user’s social relationship matrix, the conditional probability of observed score can be defined as follows:
p R S , U , V , σ R 2 = i = 1 m j = 1 n [ N ( R i j | g ( k T ( i ) S i k U k T V j ) , σ S 2 ) ] I i j R
where T ( i ) represents social relationships set of user u i , and I i j R is the indication function. If the user u i scores item v j , the value would be 1; otherwise, the value would be 0.
By the Bayesian inference, Equation (6) is as follows:
p U , V R , S , σ S 2 , σ U 2 , σ V 2 p R S , U , V , σ S 2 p U S , σ U 2 p V S , σ V 2
Assuming that S does not depend on low-dimensional matrices U and V , Equation (6) can be redefined as follows:
( U , V R , S , σ S 2 , σ U 2 , σ V 2 ) p ( R S , U , V , σ S 2 ) p ( U S , σ U 2 ) p ( V S , σ V 2 ) = i = 1 m j = 1 n [ N ( R i j | g ( k T ( i ) S i k U k T V j ) , σ S 2 ) ] I i j R × i = 1 m N ( U i | 0 , σ U 2 I ) × j = 1 m N ( V j | 0 , σ V 2 I )
where p U σ U 2 and p V σ V 2 represent the zero-mean spherical Gaussian priors for U and V , respectively. k T ( i ) S i k U k T is the redefined user feature vector.
When predicting the scoring of user for a commodity, the user’s historical scoring data and the influence of social relationships between users should be considered. These two factors are combined and the conditional probability distribution of the observed score can be defined as:
p ( U , V R , S , σ S 2 , σ U 2 , σ V 2 ) = i = 1 m j = 1 n [ N ( R i j | g ( α U i T V j + 1 α k T i S i k U k T V j ) , σ S 2 ) ] I i j R × i = 1 m N ( U i | 0 , σ U 2 I ) × j = 1 m N ( V j | 0 , σ V 2 I )
where α 0 , 1 is an adjustable parameter; it is used to adjust the proportion of the user’s historical scoring data and the influence of social relationships between users. The recommended algorithm diagram of the PMFS1 model is shown in Figure 4.
When α = 1 , the PMFS1 model that combines a kind of user relationship degenerates into the traditional PMF algorithm.
When α = 0 , the user scoring matrix does not be considered. At this time, the PMFS1 model degenerates into a trust-aware recommendation (TR) algorithm, which considers only the relationship between users and does not consider the influence of the user’s historical rating information on the recommendation. The recommended model diagram of the TR algorithm is shown as Figure 5.
The log function of the posterior distribution is as follows:
l n p ( U , V R , S , σ S 2 , σ U 2 , σ V 2 ) = 1 2 σ 2 i = 1 m j = 1 n I i j R ( R i j g ( α U i T V j + ( 1 α ) k T ( i ) S i k U k T V j ) ) 2 1 2 σ U 2 i = 1 m U i T U i 1 2 σ V 2 j = 1 n V j T V j 1 2 ( i = 1 m j = 1 n I i j R ) l n σ 2 1 2 m l n σ U 2 + n l l n σ V 2 + B
where B is a constant, which is independent of the parameter.
The minimized objective function is equal to the maximized posterior distribution function:
L R , S , U , V = 1 2 i = 1 m j = 1 n I i j R ( R i j g ( α U i T V j + ( 1 α ) k T ( i ) S i k U k T V j ) ) 2 + λ u 2 U F 2 + λ v 2 V F 2
where λ U = σ 2 / σ U 2 , λ V = σ 2 / σ V 2 , and · F 2 represents the Frobenius norm. At this time, the user feature vector can be redefined as: U i T + ( 1 α ) k T ( i ) S i k U k T .
But there are multiple kinds of relationships between users. According to the MCCN model [21], multiple social relationships between users can be composited into a single network. Assuming there are two kinds of social relationships r 1 and r 2 between users, the relationship r 1 between users can be represented by matrix S 1 = S i , j 1 m × m . The relationship r 2 between users can be represented by the matrix S 2 = S i , j 2 m × m . Assuming that the relationship strength coefficient of relationship r 1 is β , then the relationship strength coefficient of relationship r 2 is 1 β , β [ 0 , 1 ] . The minimized objective function of PMF based on two social relationships algorithm (PMFS2) is:
L R , S , U , V = 1 2 i = 1 m j = 1 n I i j R ( R i j g ( α U i T V j + β 1 α k T 1 i S i k 1 U k T V j + 1 β 1 α l T 2 i S i l 2 U l T V j ) ) 2 + λ u 2 U F 2 + λ v 2 V F 2
where T 1 i represents the set of users who had r 1 relationship with user u i , and T 2 i represents the set of users who had r 2 relationship with user u i . At this time, the user feature vector can be redefined as: α U i T + β 1 α k T 1 i S i k 1 U k T + ( 1 β ) ( 1 α ) l T 2 ( i ) S i l 2 U k T .
The algorithm diagram of the PMFS2 model is shown in Figure 6.
The objective function can be solved by the gradient descent algorithm as follows:
L U i = α j = 1 n I i j R g ( α U i T V j + β 1 α k T 1 i S i k 1 U k T V j + 1 β 1 α l T 2 i S i l 2 U l T V j ) V j × ( g ( α U i T V j + β 1 α k T 1 i S i k 1 U k T V j + 1 β 1 α l T 2 i S i l 2 U l T V j ) R i j ) + β ( 1 α ) p B 1 i j = 1 n I p j R g ( α U p T V j + β 1 α k T 1 p S p k 1 U k T V j + 1 β 1 α l T 2 p S p l 2 U l T V j ) × ( g ( α U p T V j + β 1 α k T 1 p S p k 1 U k T V j + 1 β 1 α l T 2 p S p l 2 U l T V j ) R p j ) S p i 1 V j + ( 1 β ) ( 1 α ) q B 2 i j = 1 n I q j R g ( α U q T V j + β 1 α k T 1 q S q k 1 U k T V j + 1 β 1 α l T 2 q S q l 2 U l T V j ) × ( g ( α U q T V j + β 1 α k T 1 q S q k 1 U k T V j + 1 β 1 α l T 2 q S q l 2 U l T V j ) R q j ) S q i 2 V j + λ U U i
L V i = i = 1 m I i j R g ( α U i T V j + β 1 α k T 1 i S i k 1 U k T V j + 1 β 1 α l T 2 i S i l 2 U l T V j ) × ( g ( α U i T V j + β 1 α k T 1 i S i k 1 U k T V j + 1 β 1 α l T 2 i S i l 2 U l T V j ) R i j ) × ( α U i + β 1 α k T 1 i S i k 1 U k T + 1 β 1 α l T 2 i S i l 2 U l T ) + λ V V i
where g x = e x / ( 1 + e x ) 2 , B 1 i represents a set of users with r 1 relationship with user u i , and B 2 i represents a set of users with r 2 relationship with user u i . To reduce the complexity of the model, it is assumed that λ U = λ V .

3. Results

3.1. Experimental Data

In order to measure the performance of the proposed recommendation algorithm, two public (Epinions and FilmTrust) datasets were used. The Epinions dataset provides a variety of user ratings for items, and users can add their friends to construct social networks. The FilmTrust dataset includes data that are crawled from the FilmTrust website, which is a movie recommendation website, where users rate movies based on their own preferences and construct trust relationships. The Epinions dataset consists of 40,272 users who scored 139,738 commodities with a total score of 664,823. The dataset also contains 487,182 trust relationships. The FilmTrust dataset consists of 1050 users, 2071 different items, and users’ ratings for 35,497 different items. The dataset also contains 1853 trust relationships.
The recommended model was trained and tested using a five-fold cross-validation. The user’s scoring data were equally divided into five equal parts. In each experiment, each group is chosen as test example collection randomly, and the other four groups were used as the training set. Five experiments ensure that each group is tested and the final experiment result is the mean of five experiment results.

3.2. Analysis of Experimental Results

To evaluate the accuracy of the experiment results, two evaluation indicators, mean absolute error (MAE) and root mean squared error (RMSE), are used in this paper. They were all used to measure the accuracy of the recommendation algorithm by calculating the error between the predicted score and the true score.
Suppose that r i j represents the true score of user i for commodity j , r i j represents the predicted score of user u i for commodity j , and E P represents the test set, then the definitions of MAE and RMSE are as follows:
M A E = 1 E P ( i , j ) E P r i j r i j
R M S E = 1 E P ( i , j ) E P r i j r i j 2
According to the setting rules of parameters in related studies [22,23,24], the dimension of the user feature matrix in all algorithms is k = 5, the number of iterations is 1000, and λ U = λ V = 0.001 . Parameter α is used to adjust the proportion of the user’s scoring matrix and social relationship matrix, and parameter β is used to adjust the proportion of different user relationships. The values of α and β are different, and the recommended results are also different. The values of α and β are determined by simulation experiments.
When β = 1 , only one social relationship is introduced; when α takes different values, the MAE value changes in the Epinions and FilmTrust datasets, respectively, are shown in Figure 7 and Figure 8.
O u , O v represents the set of commodities scored by users u and v , respectively. More commodities with the same scores of u and v indicate that they may have the same interests and influence each other. The definition of interest similarity between user u and user v is as follows:
f u v = O u O v O u O v
When f u v > 0.2 , user u and user v have similar interests.
It is assumed that relationship r 2 meets the condition, so relationship r 2 will be introduced in a matrix factorization algorithm. When α and β take different values, the MAE value changes in the Epinions and FilmTrust datasets are shown in Figure 9 and Figure 10, respectively.
As shown in Figure 9, when α = 0.4 and β = 0.6 , the value of MAE is the smallest. That is, the PMFS2 model has the highest recommendation accuracy when α = 0.4 and β = 0.6 . Similarly, as shown in Figure 10, the PMFS2 model has the highest recommendation accuracy when α = 0.7 and β = 0.5 .
In order to verify the performance of the proposed personalized recommendation algorithm and the influence of various social relationships on recommendations, the trust-aware recommendation (TR) algorithm, the probabilistic matrix factorization (PMF) algorithm, and the SoReg algorithm [25] were compared using the Epinions and FilmTrust datasets, respectively.
Experiment comparison results of different algorithms are shown in Figure 11, Figure 12, Figure 13 and Figure 14.
As shown in Figure 11, Figure 12, Figure 13 and Figure 14, the TR algorithm has the highest MAE value and RMSE value. This means that the accuracy of the TR algorithm is the lowest. The recommendation results based only on the user’s relationships are not accurate. The PMFS2 algorithm has the lowest MAE value and RMSE value. This means that the PMFS2 algorithm that introduces two kinds of social relationships has higher accuracy than the traditional matrix factorization algorithm and the PMFS1 algorithm, which only introduces one kind of social relationship. This indicates that the introduction of multiple relationships between users could obviously improve the predicted accuracy; and the more relationships between users, the higher the recommendation accuracy.

4. Discussion

Unlike traditional collaborative filtering recommendation algorithms, this paper proposes a collaborative filtering recommendation algorithm that integrates multiple social relationships to effectively alleviate the data sparsity problem; through expanding the data source, the algorithm improves the accuracy of prediction, and enhances the diversity of recommendations. For e-commerce personalized recommendation algorithms, the number of recommendations N and the dimension of the user feature matrix k have a significant impact on their accuracy. In this paper, the dimension of the user feature matrix is set to 5 and 10, and comparison results of different algorithms on the Epinions and FilmTrust datasets are shown as Table 1 and Table 2.
From Table 1 and Table 2, it can be seen that the dimension of the user feature matrix has a significant impact on the accuracy of the PMF algorithm. This is because the PMF algorithm mainly relies on the feature matrix for user classification, so increasing the dimension of the feature matrix will significantly improve the accuracy of recommendations. However, an increase in the dimension of the feature matrix will greatly increase the time complexity of the algorithm. The proposed PMFS1 and PMFS2 models are not sensitive to the dimension of the user feature matrix, and this means that these two models are more suitable for use in practical e-commerce recommendation systems.
In addition, for the different numbers of recommendations, the precision, recall, and F1-Measure of the PMFS model and existing algorithms are compared and analyzed, respectively. The comparison results are shown in Figure 15, Figure 16 and Figure 17.
In Figure 15, Figure 16 and Figure 17, we can see that the proposed PMFS1 and PMFS2 models are better than other compared algorithms in terms of precision, recall, and F1-Measure under different numbers of recommendations. And when the number of recommendations is approximately 10–15, the accuracy of recommendations is the highest.
Starting from May 2022, the proposed algorithm in this paper was applied to the online shop of Qingdao Xinhua Bookstore (http://shop.dangdang.com/22988 (accessed on 17 May 2022) From May 2022 to May 2023, the quantity of returns for the entire online shop decreased from 352 books/month to 122 books/month, and the satisfaction rate for the entire online shop increased by over 5%. These data demonstrate that the proposed algorithm in this paper can truly improve the recommendation accuracy on e-commerce platforms and reduce return rates, thereby promoting environmental sustainability.
The proposed algorithm decomposed the user–commodity rating matrix and reorganized the user feature matrix, and multiple consistent social relationships between users were introduced into the user feature matrix. The proposed algorithm can adjust the influence of the user–commodity matrix on the recommendation results with different parameters. The gradient descent method is used for optimization to obtain the optimal user feature vector and the commodity feature vector, and then obtain the predicted value of the user for the commodity. This has been demonstrated in the experimental section of this paper. But the proposed algorithm in this paper also has some limitations: Firstly, in real life, there is also direct contact between users, and their choices may vary. This information is difficult to introduce into recommendation systems through social networks. The introduction of too many types of social relationships into recommendation systems will inevitably further increase the computational complexity of recommendation algorithms, which will affect the user experience. Users demand not only accurate recommendations, but also real-time recommendations. Therefore, designing fast recommendation algorithms that can handle real-time recommendation with high performance is the next research challenge.

5. Conclusions

Recommendation algorithms can help consumers better find the commodities they need and reduce the number of returns on e-commerce platforms, so they can alleviate environmental problems brought about by e-commerce. The existing collaborative filtering recommendation algorithms based on social networks have improved the data sparsity and accuracy of recommendation results to a certain extent. However, the inherent flaws of the recommendation system still exist—they result in poor recommendation quality so there is difficulty in meeting users’ personalized needs. Aiming at the problem of data sparsity and the lack of diversity in traditional recommendation systems, a new collaborative filtering recommendation algorithm based on multiple social relationships is proposed in this paper. The experiment results on real datasets showed that compared with the PMF, TR, SoReg algorithms, the MAE and RMSE of the proposed algorithm increased by 10–15%. This means that the introduction of multiple relationships between users can better personalize recommendations for users in e-commerce platforms. In the future, we will design fast recommendation algorithms that can handle real-time recommendations with high performance, as well as a wider range of social relationships.

Funding

This research was funded by the Humanities and Social Science Project of the Ministry of Education of China, grant number 21YJA860001.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Amzad, H. E-Commerce and Sustainability: Concepts, Issues and Expereiences. Inf. Technol. J. 2002, 1, 188–192. [Google Scholar]
  2. Saini, P. Impact of E-commerce on environmental sustainability. Int. Multidiscip. Res. J. 2016, 6, 50–55. [Google Scholar]
  3. Jing, Y.; Liu, H. A Model for Collaborative Filtering Recommendation in E-Commerce Environment. Int. J. Comput. Commun. Control 2013, 8, 560–570. [Google Scholar] [CrossRef]
  4. Shu, J.; Shen, X.; Liu, H. A content-based recommendation algorithm for learning resources. Multimed. Syst. 2018, 24, 163–173. [Google Scholar] [CrossRef]
  5. Zhong, H.; Zhang, S.; Wang, Y. Study on Directed Trust Graph Based Recommendation for E-commerce System. Int. J. Comput. Commun. Control 2014, 9, 510–523. [Google Scholar] [CrossRef]
  6. Li, B.; Li, J.; Ou, X. Hybrid recommendation algorithm of cross-border e-commerce items based on artificial intelligence and multiview collaborative fusion. Neural Comput. Appl. 2022, 34, 6753–6762. [Google Scholar] [CrossRef]
  7. Yan, Y.; Chen, Z.; Wu, J. An Effective Data Transmission Algorithm Based on Social Relationships in Opportunistic Mobile Social Networks. Algorithms 2018, 11, 125. [Google Scholar] [CrossRef]
  8. Bin, S.; Sun, G. Matrix Factorization Recommendation Algorithm Based on Multiple Social Relationships. Math. Probl. Eng. 2021, 2021, 6610645. [Google Scholar] [CrossRef]
  9. Xu, B.; Ge, C.; Zhao, W. A New Self-Adaptive Hybrid Markov Topic Model Poi Recommendation in Social Networks. J. Circuits Syst. Comput. 2021, 31, 1–21. [Google Scholar] [CrossRef]
  10. Xin, M.; Chen, S.; Zang, C. A Graph Neural Network-Based Algorithm for Point-of-Interest Recommendation Using Social Relation and Time Series. Int. J. Web Serv. Res. 2021, 18, 51–74. [Google Scholar] [CrossRef]
  11. Chen, Y.; Wang, J.; Wu, Z. Integrating User-Group relationships under interest similarity constraints for social recommendation. Knowl.-Based Syst. 2022, 249, 108921. [Google Scholar] [CrossRef]
  12. Yuan, X.; Han, L.; Qian, S. Singular value decomposition based recommendation using imputed data. Knowl.-Based Syst. 2019, 163, 485–494. [Google Scholar] [CrossRef]
  13. Liang, X.; Yin, J. Recommendation Algorithm for Equilibrium of Teaching Resources in Physical Education Network Based on Trust Relationship. J. Internet Technol. 2022, 23, 133–141. [Google Scholar] [CrossRef]
  14. Berkani, L.; Belkacem, S.; Ouafi, M. Recommendation of users in social networks: A semantic and social based classification approach. Expert Syst. 2021, 38, e12634. [Google Scholar] [CrossRef]
  15. Deng, X.Y.; Wu, Y.J.; Zhuang, F.Z. Trust-embedded collaborative deep generative model for social recommendation. J. Supercomput. 2020, 76, 8801–8829. [Google Scholar] [CrossRef]
  16. Tian, G.; Zhou, S.; Sun, G. A Novel Intelligent Recommendation Algorithm Based on Mass Diffusion. Discret. Dyn. Nat. Soc. 2020, 2020, 4568171. [Google Scholar] [CrossRef]
  17. Yan, H.C.; Wang, Z.R.; Niu, J.Y. Application of covering rough granular computing model in collaborative filtering recommendation algorithm optimization. Adv. Eng. Inform. 2022, 51, 101485. [Google Scholar] [CrossRef]
  18. Yang, F.; Wang, H.; Fu, J. Improvement of recommendation algorithm based on Collaborative Deep Learning and its Parallelization on Spark. J. Parallel Distrib. Comput. 2023, 145, 58–68. [Google Scholar] [CrossRef]
  19. Huang, J.Q.; Jia, Z.; Zuo, P. Improved collaborative filtering personalized recommendation algorithm based on k-means clustering and weighted similarity on the reduced item space. Math. Model. Control 2023, 3, 39–49. [Google Scholar] [CrossRef]
  20. Percus, J.K. Lattice RSA and the Gaussian-mean spherical strategy. Colloids Surf. A Physicochem. Eng. Asp. 2000, 165, 345–361. [Google Scholar] [CrossRef]
  21. Sun, G.; Bin, S. Router-Level Internet Topology Evolution Model based on Multi-Subnet Composited Complex Network Model. J. Internet Technol. 2017, 18, 1275–1283. [Google Scholar]
  22. Ning, H.; Li, Q. Personalized Music Recommendation Simulation Based on Improved Collaborative Filtering Algorithm. Complexity 2020, 2020, 6643888. [Google Scholar] [CrossRef]
  23. Zou, F.; Chen, D.; Xu, Q. A two-stage personalized recommendation based on multi-objective teaching–learning-based optimization with decomposition. Neurocomputing 2021, 452, 716–727. [Google Scholar] [CrossRef]
  24. Liu, L.; Yu, S.; Wei, X. An improved Apriori-based algorithm for friends recommendation in microblog. Int. J. Commun. Syst. 2018, 31, e3453. [Google Scholar] [CrossRef]
  25. Dakhel, A.M.; Malaz, H.T.; Mahdavi, M. A social recommender system using item asymmetric correlation. Appl. Intell. Int. J. Artif. Intell. Neural Netw. Complex Probl.-Solving Technol. 2018, 48, 527–540. [Google Scholar] [CrossRef]
Figure 1. User–item rating matrix.
Figure 1. User–item rating matrix.
Sustainability 16 00362 g001
Figure 2. The traditional matrix factorization model.
Figure 2. The traditional matrix factorization model.
Sustainability 16 00362 g002
Figure 3. User social relationship matrix.
Figure 3. User social relationship matrix.
Sustainability 16 00362 g003
Figure 4. Diagram of the PMFS1 model.
Figure 4. Diagram of the PMFS1 model.
Sustainability 16 00362 g004
Figure 5. Diagram of the TR algorithm.
Figure 5. Diagram of the TR algorithm.
Sustainability 16 00362 g005
Figure 6. Diagram of the PMFS2 model.
Figure 6. Diagram of the PMFS2 model.
Sustainability 16 00362 g006
Figure 7. The effect of parameter α on the Epinions dataset.
Figure 7. The effect of parameter α on the Epinions dataset.
Sustainability 16 00362 g007
Figure 8. The effect of parameter α on the FilmTrust dataset.
Figure 8. The effect of parameter α on the FilmTrust dataset.
Sustainability 16 00362 g008
Figure 9. The effect of parameters α and β on the Epinions dataset.
Figure 9. The effect of parameters α and β on the Epinions dataset.
Sustainability 16 00362 g009
Figure 10. The effect of parameters α and β on the FilmTrust dataset.
Figure 10. The effect of parameters α and β on the FilmTrust dataset.
Sustainability 16 00362 g010
Figure 11. MAE comparison of different algorithms on the Epinions dataset.
Figure 11. MAE comparison of different algorithms on the Epinions dataset.
Sustainability 16 00362 g011
Figure 12. RMSE comparison of different algorithms on the Epinions dataset.
Figure 12. RMSE comparison of different algorithms on the Epinions dataset.
Sustainability 16 00362 g012
Figure 13. MAE comparison of different algorithms on the FilmTrust dataset.
Figure 13. MAE comparison of different algorithms on the FilmTrust dataset.
Sustainability 16 00362 g013
Figure 14. RMSE comparison of different algorithms on the FilmTrust dataset.
Figure 14. RMSE comparison of different algorithms on the FilmTrust dataset.
Sustainability 16 00362 g014
Figure 15. Precision comparison of different algorithms on different numbers of recommendations.
Figure 15. Precision comparison of different algorithms on different numbers of recommendations.
Sustainability 16 00362 g015
Figure 16. Recall comparison of different algorithms on different numbers of recommendations.
Figure 16. Recall comparison of different algorithms on different numbers of recommendations.
Sustainability 16 00362 g016
Figure 17. F1-Measure comparison of different algorithms on different numbers of recommendations.
Figure 17. F1-Measure comparison of different algorithms on different numbers of recommendations.
Sustainability 16 00362 g017
Table 1. Comparison results of different algorithms on the Epinions dataset.
Table 1. Comparison results of different algorithms on the Epinions dataset.
k AlgorithmMAERMSE
5SoReg1.01171.2621
PMF1.03301.3142
TR1.07341.3637
PMFS10.96241.2313
PMFS20.95971.2276
10SoReg1.01151.2537
PMF1.02181.3046
TR1.07371.3628
PMFS10.96131.2305
PMFS20.95881.2253
Table 2. Comparison results of different algorithms on the FilmTrust dataset.
Table 2. Comparison results of different algorithms on the FilmTrust dataset.
k AlgorithmMAERMSE
5SoReg1.09311.3484
PMF1.10371.3848
TR1.24261.4212
PMFS11.07841.3146
PMFS21.07171.3027
10SoReg1.08281.3329
PMF1.08861.3541
TR1.24261.4211
PMFS11.07161.3128
PMFS21.06831.2998
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Bin, S. An E-Commerce Personalized Recommendation Algorithm Based on Multiple Social Relationships. Sustainability 2024, 16, 362. https://doi.org/10.3390/su16010362

AMA Style

Bin S. An E-Commerce Personalized Recommendation Algorithm Based on Multiple Social Relationships. Sustainability. 2024; 16(1):362. https://doi.org/10.3390/su16010362

Chicago/Turabian Style

Bin, Sheng. 2024. "An E-Commerce Personalized Recommendation Algorithm Based on Multiple Social Relationships" Sustainability 16, no. 1: 362. https://doi.org/10.3390/su16010362

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop