Next Article in Journal
Trigger-Based Dexterous Operation with Multimodal Sensors for Soft Robotic Hand
Previous Article in Journal
Variational Bayesian Approach to Condition-Invariant Feature Extraction for Visual Place Recognition
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Further Improvement on Two-Way Cooperative Collaborative Filtering Approaches for the Binary Market Basket Data

1
Department of Global Business, Dong-A University, Busan 49236, Korea
2
Department of Industrial Engineering, Sungkyunkwan University, Suwon 16419, Korea
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(19), 8977; https://doi.org/10.3390/app11198977
Submission received: 18 August 2021 / Revised: 15 September 2021 / Accepted: 24 September 2021 / Published: 26 September 2021

Abstract

:
Two-way cooperative collaborative filtering (CF) has been known to be crucial for binary market basket data. We propose an improved two-way logistic regression approach, a Pearson correlation-based score, a random forests (RF) R-square-based score, an RF Pearson correlation-based score, and a CF scheme based on the RF R-square-based score. The main idea is to utilize as much predictive information as possible within the two-way prediction in order to cope with the cold-start problem. All of the proposed methods work better than the existing two-way cooperative CF approach in terms of the experimental results.

1. Introduction

User similarity measures in collaborative filtering (CF) are crucial for recommendations [1,2]. Pearson correlation is one of the most well-known user-item similarity measures in CF. Ahn [3] developed a new similarity measure for a cold-start problem with data sparsity, where many voting scores are missing. This cold-start problem is common in CF [3,4,5,6,7]. For the cold-start problem, Liu et al. [8] modified Ahn’s user-item similarity measure by using nearest neighbors. Son [9] compared the existing user-item similarity measures that tackle the cold-start problem.
A variety of CF approaches can be categorized into user-based CF using the user similarity measures, model-based CF using data mining approaches, and hybrid CF combining with content-based filtering. Breese et al. [10] developed the user-based CF leveraging on the Pearson correlation, which has become one of the most widely used user-based CF approaches. In it, similarities between active users and existing users are considered for the predicted scores of test data. The user-based CF leveraging on the Pearson correlation is convenient and easy to implement. Ahn [3] and Choi and Suh [11] used the user-based CF leveraging on the Pearson correlation for predicting voting scores. By contrast, model-based CF methodologies have leveraged data mining approaches, such as Bayesian network, clustering, regression, classification, and association rule, among others [2,12,13,14]. Stai et al. [15] developed a hybrid recommender system by using both collaborative and content-based filtering in multimedia information retrieval. CF also can be combined with knowledge-based filtering to improve its performance [16]. Many other hybrid approaches have appeared as data become easily available from complex social networks [17].
Mild and Reutterer [18] proposed using the Pearson correlation-based approach rather than the user-based CF leveraging on the Pearson correlation for binary market basket data [19]. Whereas the binary user-item matrix is used for the user-based CF for the Pearson correlation-based approach, the binary item-user matrix can be considered for the item-based CF for the Pearson correlation-based approach [20]. Recently, Hwang [20] proposed a feature selection approach to improve the Pearson correlation-based approach. Furthermore, to resolve the structural problems of the Pearson correlation-based approach, Hwang [21] developed new Pearson correlation-based approaches that use separated terms and separated terms with proportions.
By contrast, as a model-based CF methodology, when there are sufficient numbers of users or items, the logistic regression approach with principal components (PCA+LR) can be more effective than the Pearson correlation-based approach [22]. Whereas the binary user-item matrix is used for item modeling, the binary item-user matrix can be considered for user modeling [20]. Item modeling considers item vector predictors, whereas user modeling considers user vector predictors. However, the PCA+LR may not perform well, because the principal components are ineffective when there are insufficient numbers of either users or items in the binary market basket data, which can be modeled as a high-dimensional cold-start problem [23]. As Hwang and Jun [23] show, the Pearson correlation-based and random forest regression approaches can outperform the PCA+LR for the high dimensional cold-start problem. In particular, when the high dimensional cold-start problem is too extreme, either the rows of active users or the columns of active items consist of only zeros, such that the existing CF schemes fail for binary market basket data. Then, either predictions obtained by the user-based CF and the item modeling or predictions obtained by the item-based CF and the user modeling are not available, which results in that we can no longer use the PCA+LR.
The existing two-way cooperative CF for the binary market basket data utilizes both the PCA+LR user modeling and the PCA+LR item modeling [24]. Lee and Olafsson [24] proposed a two-way logistic regression approach based on the Homer–Lemeshow Goodness-of-Fit Chi-square statistic. A weighted mean of the PCA+LR item modeling-based prediction and the PCA+LR user modeling-based prediction may outperform either the PCA+LR item modeling-based prediction only or the PCA+LR user modeling-based prediction only [24]; therefore, two-way CF is crucial. However, because Lee and Olfsson [24] still proposed the two-way cooperative CF approach for the PCA+LR, which cannot work properly for the high-dimensional cold-start problem, we are motivated to develop new two-way cooperative CF approaches based on the Pearson correlation-based and random forest-based approaches to overcome the difficulties caused by the high-dimensional cold-start problem. Considering this, we propose an improved two-way logistic regression approach, a Pearson correlation-based score, an RF R-square-based score, an RF Pearson correlation-based score, and a CF scheme based on the RF R-square-based score for two-way cooperative CF for binary market basket data. The proposed approaches handle the high-dimensional cold-start problem and work better than the existing two-way cooperative CF approach in terms of the performance measures such as classification error and Top-N accuracy. We introduce the existing CF approaches in Section 2. In Section 3, we propose an improved logistic regression approach, a Pearson correlation-based score, an RF R-square-based score, an RF Pearson correlation-based score, and a CF scheme based on the RF R-square-based score. In Section 4, the proposed CF approaches are compared with the existing CF approaches based on the experimental results. Section 5 provides concluding remarks.

2. Existing CF Approaches

The section briefly reviews the previous studies including both the one-way and the two-way CF approaches. Although we follow the conventional notation used in the literature of recommender systems, we summarized the main symbols in Table 1 for readers’ easy understanding. Some of those are still used in Section 3 explaining the proposed methods.

2.1. One-Way Pearson Correlation-Based Approaches

The Pearson correlation-based approach can use either user-item similarities or item-user similarities, where either the user-based CF or the item-based CF is considered. For the user-based CF, V = ( v 1 , , v j ,   , v m ) = ( v i j ) , ( i = 1 , 2 , , n ; j = 1 , 2 , , m ) represents the binary user-item matrix shown in Figure 1a, which comprises ones (representing purchased items) and zeros (representing non-purchased items). Mild and Reutterer [18] expressed the predicted score for an active user a , for an item j , P a j by
P a j = k a i = 1 n ( w ( a , i ) v i j ) ,
where
v ¯ i = 1 m j v i j ,   v ¯ a = 1 m j v a j ,
w ( a , i ) = j ( v a j v ¯ a ) ( v i j v ¯ i ) j ( v a j v ¯ a ) 2 j ( v i j v ¯ i ) 2
and
  k a = 1 i = 1 n | w ( a , i ) |   .
Here, the Pearson correlation denoted by w ( a , i ) represents a user-item similarity for the user-based CF. On the contrary, we can consider the binary item-user matrix as illustrated in Figure 1b, where item-user similarities are used for the item-based CF [20]. Then, the predicted voting score for an active item b , for a user i , P b i is denoted by
P b i = k b j = 1 m ( w ( b , j ) v j i ) ,
where
v ¯ j = 1 n i v j i ,   v ¯ b = 1 n i v b i ,
w ( b , j ) = i ( v b i v ¯ b ) ( v j i v ¯ j ) i ( v b i v ¯ b ) 2 i ( v j i v ¯ j ) 2
and
  k b = 1 j = 1 m | w ( b , j ) |   .
Here, the Pearson correlation denoted by w ( b , j ) represents an item-user similarity.

2.2. One-Way RF Regression Approaches

Note that V = ( v 1 , , v j ,   , v m ) is the binary user-item matrix in Figure 1a. Then, the RF item modeling can be considered by
v ^ j = f ^ ( v 1 , v 2 ,   , v m ) ,
where v j is the binary user-item matrix vector representing an item j [20]. To calculate the predicted voting scores, the active users are considered as test data. On the contrary, we can consider the RF user modeling [20]. Then, the voting score of an active item b , for a user i is calculated by
u ^ i = f ^ ( u 1 , u 2 , , u n ) ,
where U = ( u 1 , , u i , , u n ) is the binary item-user matrix, and u i is a vector representing a user i . This approach is known as RF user modeling [20].

2.3. One-Way PCA+LR Approaches

Lee et al. [22] considered the first k principal components of the binary user-item matrix predictors for the binary logistic regression model. Note that V = ( v 1 , , v j ,   , v m ) is the binary user-item matrix. When the first k principal components, p c 1 v ,   p c 2 v ,   , p c k v are given, the PCA+LR item modeling can be considered by
v ^ j = f ^ ( p c 1 v ,     p c 2 v ,   , p c k v ) ,
where v j is a vector representing an item j . On the contrary, we can consider PCA+LR user modeling [20]. Then, the voting score of an active item b , for a user i is represented as
u ^ i = f ^ ( p c 1 u , p c 2 u , , p c k u ) ,
where U = ( u 1 , , u i , , u n ) is a binary item-user matrix and predictors, and u i is a vector representing a user i .

2.4. Two-Way Logistic Regression Approach (PCA+LR Two-Way 1)

The Homer–Lemeshow Goodness-of-Fit Chi-square statistic is a model adequacy measure of the logistic regression approach. Lee and Olafsson [24] considered the measure to obtain a weighted mean of the PCA+LR item modeling-based prediction and the PCA+LR user modeling-based prediction, where the two weights are the Homer–Lemeshow Goodness-of-Fit Chi-square statistics for the two predictions. Based on (5) and (6), the weighted mean is represented as:
τ i τ j + τ i v ^ j + τ j τ j + τ i u ^ i ,
where τ i is the Homer–Lemeshow Goodness-of-Fit Chi-square statistic for the PCA+LR user modeling-based prediction, and τ j is the Homer–Lemeshow Goodness-of-Fit Chi-square statistic for the PCA+LR item modeling-based prediction.

3. Proposed Two-Way Cooperative CF Approaches

The two-way CF scheme combining the user-based and item-based predictions is illustrated in Figure 2, where their moving direction for taking necessary information is orthogonal [24]. Then, we calculate a weighted average of the user-based and item-based predictions considering their contributions estimated by the Homer–Lemeshow Goodness-of-Fit Chi-square statistic, Pearson correlation, and the R-square value.

3.1. Improved Two-Way Logistic Regression Approach (PCA+LR Two-Way 2)

For the extreme high-dimensional cold-start problem, where either the row of an active user or the column of an active item in the market basket data are all zeros, the Homer–Lemeshow Goodness-of-Fit Chi-square statistic is not available (NaN) (0/0) in the R package (ResourceSelection), which worsens the performance of the PCA+LR two-way 1. To resolve this problem, we propose that in (7), τ j becomes zero when the Homer–Lemeshow Goodness-of-Fit Chi-square statistic is NaN (0/0) for the PCA+LR item modeling-based prediction, whereas τ i becomes zero when the Homer–Lemeshow Goodness-of-Fit Chi-square statistic becomes NaN (0/0) for the PCA+LR user modeling-based prediction.
The Homer–Lemeshow Goodness-of-Fit Chi-square statistic is a Pearson goodness of fit statistic where the number of observed zeros and the number of expected zeros in a group are considered for the extreme high-dimensional cold-start problem. Since the binary classification problem is easily fitted as a one-class classification problem, the number of observed zeros and the number of expected zeros can be all zeros, such that the Homer–Lemeshow Goodness-of-Fit Chi-square statistic becomes NaN (0/0). The lower the Homer–Lemeshow Goodness-of-Fit Chi-square statistic, the better the model fit. Thus, we propose to make the Homer–Lemeshow Goodness-of-Fit Chi-square statistic zero for the extreme high-dimensional cold-start problem.

3.2. Pearson Correlation-Based Score

In (1) and (2), k a = 1 / i = 1 n | w ( a , i ) | and   k b = 1 / j = 1 m | w ( b , j ) | are respectively multiplied to the sums of the correlations to consider the proportions of the contributions. Then, the Pearson correlation-based score for two-way cooperative CF is defined as a weighted mean of P a j and P b i as follows.
P P ( P a j , P b i ) = P a j i = 1 n | w ( a , i ) | i = 1 n | w ( a , i ) | + j = 1 m | w ( b , j ) | + P b i j = 1 m | w ( b , j ) | i = 1 n | w ( a , i ) | + j = 1 m | w ( b , j ) |
The first weight for P a j , i = 1 n | w ( a , i ) | / ( i = 1 n | w ( a , i ) | + j = 1 m | w ( b , j ) | ) is the proportion of the sum of the absolute values of the Pearson correlations between an active user a and an existing user i , whereas the second weight for P b i   j = 1 m | w ( b , j ) | / ( i = 1 n | w ( a , i ) | + j = 1 m | w ( b , j ) | ) is the proportion of the sum of the absolute values of the Pearson correlations between an active item b and an existing item j . Since the sum of the absolute values of the Pearson correlations reveals the importance of the prediction, the two proportions reasonably assign the importance of the prediction to the two predictions, P a j and P b i .
For the extreme high-dimensional cold-start problem, where either the row of an active user or the column of an active item in the market basket data are all zeros, we propose that the corresponding Pearson correlations are considered as zeros because they cannot be calculated, and there are low correlations between the two variables. Then, the weighted mean can be reasonably calculated because both P a j and P b i , the two predictions obtained by the user-based CF and by the item-based CF, become available.

3.3. RF R-Square-Based Score and RF Pearson Correlation-Based Score

For the RF item modeling and the RF user modeling, we consider the average of the R-square (rsq) values of the RF regression approach to calculate a two-way cooperative score, because it represents a model adequacy. Based on (3) and (4), the RF R-square-based score is defined by
P r s q ( v ^ j , u ^ i ) = v ^ j ( i = 1 T i r s q i ) / T i ( i = 1 T i r s q i ) / T i + ( j = 1 T j r s q j ) / T j + u ^ i ( j = 1 T j r s q j ) / T j ( i = 1 T i r s q i ) / T i + ( j = 1 T j r s q j ) / T j
where r s q i is an R-square value of an i th regression tree for the RF item modeling; r s q j is an R-square value of a j th regression tree for the RF user modeling; T i is the number of regression trees for the item modeling; and T j is the number of regression trees for the user modeling. Since the average of R-square (rsq) values of the RF regression approach reveals the importance of the prediction, the two proportions reasonably assign the importance of the prediction to the two predictions, v ^ j and u ^ i .
For the extreme high-dimensional cold-start problem, where either the row of an active user or the column of an active item in the binary market basket data are all zeros, the R-square values can have a negative sign when the mean squares of errors for the RF approach is greater than the variance of the response variable. Moreover, when the R package (randomForest) says that the R-square values are NaN, both the mean squares of errors for the RF approach and the variance of the response variable are zeros. Then, we consider the R-square values because the model fit is perfect. As a result, the weighted mean can be reasonably calculated. Additionally, instead of the average of R-square (rsq) values, we can adopt the proportion of the sum of the absolute values of the Pearson correlations for the voting scores, as follows, which is called an RF Pearson correlation-based score in this study.
P P ( v ^ j ,   u ^ i ) = v ^ j i = 1 n | w ( a , i ) | i = 1 n | w ( a , i ) | + j = 1 m | w ( b , j ) | + u ^ i j = 1 m | w ( b , j ) | i = 1 n | w ( a , i ) | + j = 1 m | w ( b , j ) |

3.4. Scheme for RF R-Square-Based Score

For the extreme high-dimensional cold-start problem, the RF R-square-based score depends on an ad hoc approach considering even the inaccurately calculated average of the R-square (rsq) values. By leveraging on only the accurately calculated average of the R-square (rsq) values, we can improve the performance of the RF R-square-based score. We first consider both the average of the R-square values for the RF item modeling (item-rsq =   ( i = 1 T i r s q i ) / T i ) and that for the RF user modeling (user-rsq =   ( j = 1 T j r s q j ) / T j ) in (9). Indeed, we modify (9) according to the availabilities and the signs of item-rsq and user-rsq. The pseudocode of the proposed method is depicted below.
1. if (item-rsq != “NaN”) & (user-rsq != “NaN”)
  if (item-rsq > 0) & (user-rsq > 0)
  P r s q ( v ^ j ,   u ^ i ) = v ^ j ( i = 1 T i r s q i ) / T i ( i = 1 T i r s q i ) / T i + ( j = 1 T j r s q j ) / T j + u ^ i ( j = 1 T j r s q j ) / T j ( i = 1 T i r s q i ) / T i + ( j = 1 T j r s q j ) / T j
  else if (item-rsq < 0) & (user-rsq < 0)
P r s q ( v ^ j ,   u ^ i ) = v ^ j ( j = 1 T j r s q j ) / T j ( i = 1 T i r s q i ) / T i + ( j = 1 T j r s q j ) / T j + u ^ i ( i = 1 T i r s q i ) / T i ( i = 1 T i r s q i ) / T i + ( j = 1 T j r s q j ) / T j
  else if (item-rsq > 0) & (user-rsq < 0) P r s q ( v ^ j ,   u ^ i ) = v ^ j
  else if (item-rsq < 0) & (user-rsq > 0) P r s q ( v ^ j ,   u ^ i ) = u ^ i
2. else if (item-rsq != “NaN”) & (user-rsq == “NaN”) P r s q ( v ^ j ,   u ^ i ) = v ^ j
3. else if (item-rsq == “NaN”) & (user-rsq != “NaN”) P r s q ( v ^ j ,   u ^ i ) = u ^ i
4. else if (item-rsq == “NaN”) & (user-rsq == “NaN”) P r s q ( v ^ j ,   u ^ i ) = 0

3.5. Computational Complexity Analysis

We usually analyze the computational complexity of recommender systems with consideration of two parts: computation time for model construction and that for one rating prediction. Based on a binary user-item matrix whose size is n × m , the computational complexities of the user-based CF are O ( n 2 m k ) for model construction and O ( k ) for one rating prediction. The former is to calculate similarities among users, and the latter is to make a prediction using k neighbors. Likewise, the computational time of the item-based CF can estimated as O ( n m 2 k ) and O ( k ) . It is obvious that our approaches require more computational time for model construction because we employ the statistical learning algorithms. The computational complexities are O ( n m ) for logistic regression and O ( min ( n 3 , m 3 ) ) for principal component analysis. The CART (classification and regression tree) algorithm has the complexity of O ( m n log n ) in the worst case, which means that the depth of a tree is n . If we build s trees with t randomly chosen variables at each split, the complexity of random forests becomes O ( s t n log n ) . Notice that the actual times for training prediction models can be reduced by performing PCA because we use a fewer number of input variables than m . Although our methods need more computational times for model construction than the existing CF approaches, their prediction complexity is O ( 1 ) , which means a constant time complexity because they do not use k neighbors. As a result of this small complexity for rating prediction, our methods are suitable for online recommendation, as other model-based approaches are. Our numerical experiments in the next section showed that the item-based CF took 0.05 s and our methods took 0.02 s for one rating prediction, although the PCA+LR item modeling and the RF item modeling took 5.29 s and 47.57 s respectively for model construction.

4. Numerical Experiments

4.1. Experimental Settings

Based on the experimental settings used by Mild and Reutterer [18] and Lee et al. [22], we consider both the Groceries dataset (arules R package) and the EachMovie dataset (https://grouplens.org/datasets/eachmovie/, accessed on 5 September 2004). For the Groceries dataset, 9835 transactions and 169 categories were collected for 30 days from a grocery store [25]. The first 20 existing users and 168 categories are selected, whereas the next 980 active users and 168 categories are selected. “Whole milk” is chosen as a new item. We consider classification error, recall, and precision for the predicted values, and actual values to evaluate the prediction performance.
The EachMovie dataset comprises 72,916 users and 1628 movies with 2,811,983 ratings, where a six-point scale with [0.0, 0.2, 0.4, 0.6, 0.8, 1.0] is considered. The ratings are converted into binary scales, and the experimental settings are used [22], where future responses or non-responses can be predicted for target marketing.
From the EachMovie dataset, 604 existing users and 207 movies (case 1), 150 existing users and 150 movies (case 2), 10 existing users and 100 movies (case 3), and 604 existing users and 20 movies (case 4) are randomly chosen for the section A × C in Figure 1a. Corresponding to the selected existing users and movies, 121 active users and 207 movies, 50 active users and 150 movies, 90 active users and 100 movies, and 121 active users and 20 movies are randomly selected for the section B × C in Figure 1a. Finally, 100 movies for new items (D in Figure 1a) are randomly chosen for 10 existing users and 100 movies, whereas 50 movies for new items (D in Figure 1a) are randomly chosen for the other cases. We consider Top-1, Top-2, , and Top-10 accuracies as our performance measure [22]. For example, Top-10 accuracy is
The   number   of   the   actual   Top-10 items   The   number   of   first   ten   item   that   are   recommended   by   a   CF   scheme .

4.2. Experimental Results

4.2.1. Grocery Dataset

A cutoff value with a minimal classification error is chosen. For the best cutoff values, Table 2 presents the classification error, precision, recall, and F1 score of the CF approaches. As shown in Table 2, in terms of classification error, the RF Pearson correlation-based score is the best, whereas the RF item modeling and RF user modeling are the best in terms of precision. Regarding recall and F1 score, the PCA+LR item modeling works better than the other approaches, but its precision is the lowest.
Most significantly, the PCA+LR two-way 1 and PCA+LR two-way 2 fail to provide two-way predictions because of the high-dimensional cold-start problem. By contrast, the Pearson correlation-based score improves the classification error and precision of the user-based CF and item-based CF, whereas the RF Pearson correlation-based score improves the classification error, recall, and F1 score of the RF item modeling and RF user modeling. In conclusion, the two-way logistic regression approaches are outperformed by the proposed Pearson correlation-based score and RF Pearson correlation-based score.

4.2.2. Eachmovie Dataset

We calculate the Top-N accuracies for the approaches. Table 3 summarizes the Top-N accuracy for case 1, where we can effectively check the recommendation performance by manipulating the N. The Top-N accuracy ranging from 0 to 1 has been widely used for evaluating the recommendation performance because the N can be selected by recommender system managers, and they are interested in how many items among the recommended ones would be actually chosen by users [18,19,20,21,22,23,24]. The bold numbers in the table indicate the best performances. In case 1, for the PCA+LR item modeling and PCA+LR user modeling, the PCA+LR two-way 1 performs the best for Top-8, Top-9, and Top-10, whereas the PCA+LR user modeling is the best for Top-1, Top-6, and Top-7, and the PCA+LR item modeling is the best for Top-1 to Top-5. For the user-based CF and item-based CF, the Pearson correlation-based score performs the best for Top-2, Top-3, Top-9, and Top-10, whereas the user-based CF performs the best for Top-1 and the item-based CF does for Top-4 to Top-9. For the RF item modeling and RF user modeling, the RF R-square-based score performs the best for Top-1 and Top-4 to Top-10, whereas the RF user modeling performs the best for Top-3 and the RF item modeling does for Top-1 and Top-2. For the two-way cooperative CF, the Pearson correlation-based score and the RF R-square-based score provide the best average of the ten Top-N accuracies. Therefore, we realize that the Pearson correlation-based score as well as the RF R-square-based score works more effectively than the PCA+LR two-way 1. Note that there are 604 users and 207 items in section A × C in Figure 1a.
In case 2, as shown in Table 4, for the PCA+LR item modeling and PCA+LR user modeling, the PCA+LR two-way 1 performs the best for Top-2, Top-3, Top-9, and Top-10, whereas the PCA+LR user modeling is the best for Top-1 and Top-4 toTop-8 and the PCA+LR item modeling is the best for Top-1.
For the user-based CF and item-based CF, the Pearson correlation-based score performs the best for Top-1 to Top-8, whereas the user-based CF performs the best for Top-2 to Top-4, Top-7, Top-9, and Top-10; the item-based CF is outperformed by the two approaches. The RF R-square-based score performs the best for Top-1 to Top-9, whereas the RF item modeling performs the best for Top-1 to Top-3, Top-5, Top-6, and Top-10; the RF user modeling is outperformed by the two approaches. For the two-way cooperative CF, the Pearson correlation-based score and the RF R-square-based score provide the best average of the ten Top-N accuracies.
Therefore, we assume that both the Pearson correlation-based score and the RF R-square-based score work very effectively for the two-way cooperative CF than the PCA+LR two-way 1. Note that there are 150 users and 150 items in section A × C in Figure 1a.
In case 3, as shown in Table 5, the PCA+LR item modeling performs better than the other approaches for all the Top-N accuracies. The PCA+LR two-way 2 seems not to outperform the PCA+LR user modeling, although it clearly outperforms the PCA+LR two-way 1. For the user-based CF and item-based CF, the Pearson correlation-based score and the item-based CF are outperformed by the user-based CF for all the Top-N accuracies. The Pearson correlation-based score does not seem to work well. The RF R-square-based score is outperformed by the RF user modeling and the RF item modeling.
Note that there are only 10 users in section A × C in Figure 1a. In this case, the columns of some active items in the market basket data are all zeros, which is the extreme high-dimensional cold-start problem. Then, the average of the R-square values can have a negative sign, which can lead to bad prediction performance.
For instance, we randomly select a test observation where 1 denotes a purchased item and −1 denotes a non-purchased item where the predicted values of the item modeling and the user modeling range from −1 to 1. The predicted value of the item modeling is −0.3204994, and the predicted value of the user modeling is −0.5009333. The average of the R-square values of the item modeling is 0.251122 and the average of the R-square values of the user modeling is −0.3145476, which has a negative sign. Then, the calculated weighted average based on (9) is −1.215328, which does not make sense because it does not fall between −0.3204994 and 0.5009333. Therefore, the RF R-square-based score does not work well in this case.
Instead of the RF R-square-based score, we apply the Pearson correlation-based score to the RF item and user modeling. For Top-1 and Top-4 to Top-6, the RF Pearson correlation-based score performs the best and is close to the RF user modeling or the RF item modeling for the other Top-N accuracies. Moreover, the RF Pearson correlation-based score gives the best average of the ten Top-N accuracies. As a result, we realize that the RF Pearson correlation-based score works better for the two-way cooperative CF than the RF R-square-based score.
For case 4, as shown in Table 6, the PCA+LR item modeling performs better than the other approaches for all the Top-N accuracies. The PCA+LR two-way 2 does not seem to outperform the PCA+LR item modeling, although it clearly outperforms the PCA+LR two-way 1. The PCA+LR two-way 1 does not even provide appropriate predicted values. For the user-based CF and item-based CF, the user-based CF and the Pearson correlation-based score outperform the item-based CF for all the Top-N accuracies. The Pearson correlation-based score does not seem to perform the best, except for Top-1 and Top-8. The RF R-square-based score is outperformed by the RF user modeling and the RF item modeling. Note that there are only 20 items in section A × C in Figure 1a. In this case, the rows of some active users in the binary market basket data are all zeros, which is the extreme high-dimensional cold-start problem. Then, the average of the R-square values can have a negative sign, which can lead to bad prediction performance.
For further analysis, we randomly select 10 test data and respectively calculate predicted values for the RF user modeling, the RF item modeling, and the RF R-square-based score, as shown in Figure 3, where 1 denotes a purchased item and −1 denotes a non-purchased item. Although the RF R-square-based score is a weighted average of the RF item modeling-based prediction and the RF user modeling-based prediction, the first, second, third, and seventh observations violate the assumption that the weighted mean should fall between the predicted value of the RF item modeling and the predicted value of the RF user modeling, as illustrated in Figure 3, because the averages of the R-square values have negative signs. As a result, the RF R-square-based score does not work well.
Instead, we apply the Pearson correlation-based score to the RF item modeling and the RF user modeling. For Top-1, Top-3, Top-4, and Top-10, the RF Pearson correlation-based score performs the best and is close to the item modeling for the other Top-N accuracies, as shown in Table 6. Moreover, the RF Pearson correlation-based score gives the best average of the ten Top-N accuracies. Thus, the RF Pearson correlation-based score works better for the two-way cooperative CF than the RF R-square-based score. To understand these matters better, we randomly select 10 test data and calculate predicted values for the RF user modeling, the RF item modeling, and the RF Pearson correlation-based score (Figure 4), where 1 denotes a response and −1 denotes a non-response. The RF Pearson correlation-based score should be a weighted average of the RF item modeling-based prediction and the RF user modeling-based prediction. In this case, no observations violate the assumption. In other words, the RF Pearson correlation-based scores always fall between the predicted value of the RF item modeling and the RF predicted value of the user modeling. Thus, the RF Pearson correlation-based score works more effectively than the RF R-square-based score for the two-way cooperative CF.
Additionally, although the proposed CF scheme for the RF R-square-based score in Section 3 D requires more procedures, it improves the prediction performance of the RF R-square-based score dramatically, as shown in Table 6. As illustrated in Figure 5, the proposed CF scheme emulates the RF Pearson correlation-based score. Indeed, the average of the ten Top-N accuracies for the proposed CF scheme, 0.7737, is greater than that of the ten Top-N accuracies for the Pearson correlation-based score, 0.7696. We realize that the proposed CF scheme performs as well as the RF Pearson correlation-based score for the two-way cooperative CF.

5. Conclusions

In this study, we propose a PCA+LR two-way 2, a Pearson correlation-based score, an RF R-square-based score, an RF Pearson correlation-based score, and a CF scheme for the RF R-square-based score for two-way cooperative CF for binary market basket data. The experimental results show that the proposed two-way cooperative CF approaches work better than the existing PCA+LR two-way 1. For the Grocery dataset, the PCA+LR two-way 1 does not even provide an appropriate predicted value, which demonstrates that it is clearly outperformed by the Pearson correlation-based score and RF Pearson correlation-based score. For the non-high-dimensional EachMovie dataset, the Pearson correlation-based score as well as the RF R-square-based score clearly improve the accuracy of the one-way approaches, whereas the PCA+LR two-way 1 does not. For the extreme high-dimensional EachMovie dataset, only the RF Pearson correlation-based score and the proposed CF scheme clearly improve the performance of the one-way approaches.
Most significantly, for the first time, we apply the proposed two-way cooperative CF approaches to the Grocery transaction dataset and obtain promising results. Two-way cooperative CF is crucial for binary market basket data; therefore, the proposed two-way cooperative CF approaches would be useful for marketing practitioners. However, the two proposed CF approaches cannot always improve the performance of the one-way CF approaches because the prediction performance depends on the datasets. In our future research, we plan to apply the proposed two-way CF approaches to other domains and employ other supervised learning approaches.

Author Contributions

Conceptualization, W.-Y.H. and J.-S.L.; methodology, W.-Y.H.; software, W.-Y.H.; data curation, W.-Y.H.; writing—original draft preparation, W.-Y.H.; writing—review and editing, J.-S.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Dong-A University research fund.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

EachMovie dataset (https://grouplens.org/datasets/eachmovie/, accessed on 5 September 2004), Grocery dataset (arules R package).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Su, X.; Khoshgoftaar, T.M. A Survey of Collaborative Filtering Techniques. Adv. Artif. Intell. 2009, 2009, 421425. [Google Scholar] [CrossRef]
  2. Park, D.H.; Kim, H.K.; Choi, I.Y.; Kim, J.K. A research. Expert Syst. Appl. 2012, 39, 10059–10072. [Google Scholar] [CrossRef]
  3. Ahn, H.J. A new similarity measure for collaborative filtering to alleviate the new user cold-starting problem. Inf. Sci. 2008, 178, 37–51. [Google Scholar] [CrossRef]
  4. Schein, A.; Popescul, A.; Ungar, L.H. Methods and metrics for cold-start recommendations. In Proceedings of the 25th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, Tampere, Finland, 11–15 August 2002; pp. 253–260. [Google Scholar]
  5. Park, S.T.; Chu, W. Pairwise preference regression for cold-start recommendation. In Proceedings of the third ACM Conference on Recommender Systems (RecSys2009), New York, NY, USA, 22–25 October 2009; pp. 21–28. [Google Scholar]
  6. Chen, C.C.; Wan, Y.-H.; Chung, M.-C.; Sun, Y.-C. An effective recommendation method for cold start new users using trust and distrust networks. Inf. Sci. 2013, 224, 19–36. [Google Scholar] [CrossRef]
  7. Lika, B.; Kolomvatsos, K.; Hadjiefthymiades, S. Facing the cold start problem in recommender systems. Expert Syst. Appl. 2013, 41, 2065–2073. [Google Scholar] [CrossRef]
  8. Liu, H.; Hu, Z.; Mian, A.; Tian, H.; Zhu, X. A new user similarity model to improve the accuracy of collaborative filtering. Knowl. -Based Syst. 2014, 56, 156–166. [Google Scholar] [CrossRef] [Green Version]
  9. Son, L.H. Dealing with the new user cold-start problem in recommender systems: A comparative review. Inf. Syst. 2016, 58, 87–104. [Google Scholar] [CrossRef]
  10. JBreese, S.; Heckerman, D.; Kadie, C. Empirical Analysis of Predictive Algorithms for Collaborative Filtering; Technical Report MSR-TR-98-12; Microsoft Research: Redmond, WA, USA, 1998. [Google Scholar]
  11. Choi, K.; Suh, Y. A new similarity function for selecting neighbors for each target item in collaborative filtering. Knowl.-Based Syst. 2013, 37, 146–153. [Google Scholar] [CrossRef]
  12. Goldberg, D.; Nichols, D.; Oki, B.M.; Terry, D. Using collaborative filtering to weave an information tapestry. Commun. ACM 1992, 35, 61–70. [Google Scholar] [CrossRef]
  13. Leung, C.W.-K.; Chan, S.C.-F.; Chung, F.-L. An empirical study of a cross-level association rule mining approach to cold-start recommendations. Knowl.-Based Syst. 2008, 21, 515–529. [Google Scholar] [CrossRef]
  14. Tsai, C.-F.; Hung, C. Cluster ensembles in collaborative filtering recommendation. Appl. Soft Comput. 2011, 12, 1417–1425. [Google Scholar] [CrossRef]
  15. Stai, E.; Kafetzoglou, S.; Tsiropoulou, E.E.; Papavassiliou, S. A holistic approach for personalization, relevance feedback & recommendation in enriched multimedia content. Multimed. Tools Appl. 2018, 77, 283–326. [Google Scholar]
  16. Burke, R. Hybrid Recommender Systems: Survey and Experiments. User Model. User-Adapt. Interact. 2002, 12, 331–370. [Google Scholar] [CrossRef]
  17. Thai, M.T.; Wu, W.; Xiong, H. Big Data in Complex and Social Networks; CRC Press: Boca Raton, FL, USA, 2016. [Google Scholar]
  18. Mild, A.; Reutterer, T. An improved collaborative filtering approach for predicting cross-category purchases based on binary market basket data. J. Retail. Consum. Serv. 2003, 10, 123–133. [Google Scholar] [CrossRef] [Green Version]
  19. Mild, A.; Reutterer, T. Collaborative Filtering Methods for Binary Market Basket Data Analysis. In International Computer Science Conference on Active Media Technology; Springer: Berlin/Heidelberg, Germany, 2001; Volume 2252, pp. 302–313. [Google Scholar] [CrossRef]
  20. Hwang, W.Y. Variable Selection for Collaborative Filtering with the Market Basket Data. Int. Trans. Oper. Res. 2020, 27, 3167–3177. [Google Scholar] [CrossRef]
  21. Hwang, W.-Y. Assessing new correlation-based collaborative filtering approaches for binary market basket data. Electron. Commer. Res. Appl. 2018, 29, 12–18. [Google Scholar] [CrossRef]
  22. Lee, J.; Jun, C.-H.; Kim, S. Classification-based collaborative filtering using market basket data. Expert Syst. Appl. 2005, 29, 700–704. [Google Scholar] [CrossRef]
  23. Hwang, W.-Y.; Jun, C.-H. Supervised Learning-Based Collaborative Filtering Using Market Basket Data for the Cold-Start Problem. Ind. Eng. Manag. Syst. 2014, 13, 421–431. [Google Scholar] [CrossRef] [Green Version]
  24. Lee, J.-S.; Olafsson, S. Two-way cooperative prediction for collaborative filtering recommendations. Expert Syst. Appl. 2009, 36, 5353–5361. [Google Scholar] [CrossRef]
  25. Hahsler, M.; Hornik, K.; Reutterer, T. Implications of Probabilistic Data Modeling for Mining Association Rules. In From Data and Information Analysis to Knowledge Engineering; Springer: Berlin/Heidelberg, Germany, 2006; pp. 598–605. [Google Scholar]
Figure 1. Two types of matrices for the CF. (A: existing users, B: active users, C: existing items, D: active items).
Figure 1. Two types of matrices for the CF. (A: existing users, B: active users, C: existing items, D: active items).
Applsci 11 08977 g001
Figure 2. A schematization of the proposed two-way CF approaches.
Figure 2. A schematization of the proposed two-way CF approaches.
Applsci 11 08977 g002
Figure 3. Predicted values for the RF R-square-based score.
Figure 3. Predicted values for the RF R-square-based score.
Applsci 11 08977 g003
Figure 4. Predicted values for the RF Pearson correlation-based score.
Figure 4. Predicted values for the RF Pearson correlation-based score.
Applsci 11 08977 g004
Figure 5. Top-N accuracy for the proposed CF scheme.
Figure 5. Top-N accuracy for the proposed CF scheme.
Applsci 11 08977 g005
Table 1. Notations.
Table 1. Notations.
SymbolDescription
n number of users
m number of items
w ( a , i ) similarity between users a and i
w ( b , j ) similarity between items b and j
P a j , P b i predicted scores by user-based and item-based CFs
v ^ j   u ^ i predicted scores by regression
P P ( P a j , P b i ) Pearson correlation-based score
P r s q ( v ^ j ,   u ^ i ) RF R-square-based score
P P ( v ^ j ,   u ^ i ) RF Pearson correlation-based score
Table 2. Prediction performance results.
Table 2. Prediction performance results.
Classification ErrorPrecisionRecallF1 Score
PCA+LR item modeling 0.273   ( 267 980 ) 0.475   ( 28 59 ) 0.106   ( 28 264 ) 0.173
PCA+LR user modeling 0.269   ( 264 980 ) 0.500   ( 18 36 ) 0.068   ( 18 264 ) 0.120
PCA+LR two-way 1NANANANA
PCA+LR two-way 2NANANANA
User-based CF 0.267   ( 262 980 ) 0.583   ( 7 12 ) 0.026   ( 7 264 ) 0.050
Item-based CF 0.261   ( 256 980 ) 0.667   ( 16 24 ) 0.060   ( 16 264 ) 0.110
Pearson correlation-based score 0.260   ( 255 980 ) 0.737   ( 14 19 ) 0.053   ( 14 264 ) 0.099
RF item modeling 0.260   ( 255 980 ) 0.800   ( 12 15 ) 0.046   ( 12 264 ) 0.087
RF user modeling 0.260   ( 255 980 ) 0.800   ( 12 15 ) 0.046   ( 12 264 ) 0.087
RF R-square-based score 0.261   ( 256 980 ) 0.700   ( 14 20 ) 0.053   ( 14 264 ) 0.099
RF Pearson correlation-based score 0.259   ( 254 980 ) 0.639   ( 23 36 ) 0.087   ( 23 264 ) 0.153
Table 3. Top-N accuracy for case 1.
Table 3. Top-N accuracy for case 1.
NPCA+LR UserPCA+LR ItemPCA+LR Two-Way 1Pearson UserPearson ItemPearson ScoreRF
User
RF
Item
RF rsq
Score
10.9260.9260.9170.8930.8430.8840.9260.9340.934
20.9050.9210.9170.8680.8550.8720.9210.9170.913
30.9090.9170.9120.8620.8570.8710.9170.9040.909
40.8990.9070.8990.8470.8550.8530.8970.8950.903
50.8910.8930.8910.8120.8330.8230.8730.8810.893
60.8580.8550.8540.7880.8070.8030.8500.8640.869
70.8370.8320.8350.7690.7820.7750.8290.8360.837
80.8070.8020.8080.7380.7540.7500.8130.8130.817
90.7780.7750.7860.7170.7310.7310.7780.7890.793
100.7510.7520.7570.7040.6960.7110.7540.7590.771
Avg.0.8560.8580.8580.8000.8010.8070.8560.8590.864
Table 4. Top-N accuracy for case 2.
Table 4. Top-N accuracy for case 2.
NPCA+LR
User
PCA+LR
Item
PCA+LR
Two-Way 1
Pearson
User
Pearson
ITEM
Pearson
Score
RF UserRF ItemRF rsq Score
10.9400.9400.9200.8800.7800.9200.9000.9200.920
20.9000.8800.9100.8700.7900.8700.8500.9000.900
30.8670.8600.8600.8730.7270.8730.8670.8930.893
40.8600.8550.8500.8750.7300.8750.8200.8600.865
50.8400.8280.8440.8320.7080.8400.8000.8360.836
60.8030.7930.7970.7770.6830.7900.7700.8000.800
70.7660.7460.7540.7400.6600.7400.7340.7630.777
80.7350.7050.7150.7050.6330.7100.7030.7250.743
90.6910.6780.6930.6890.6110.6870.6780.6960.708
100.6600.6620.6720.6700.5920.6640.6540.6840.674
Avg.0.8060.7950.8020.7910.6910.7970.7780.8080.812
Table 5. Top-N accuracy for case 3.
Table 5. Top-N accuracy for case 3.
NPCA+LR
User
PCA+LR
Item
PCA+LR
2-Way 1
PCA+LR
2-Way 2
Pearson UserPearson ItemPearson ScoreRF UserRF ItemRF rsq
Score
RF
Pearson
Score
10.490.670.490.540.710.410.300.660.630.570.79
20.470.660.400.480.730.380.240.710.710.590.71
30.420.620.370.440.680.390.270.660.650.560.65
40.430.560.380.450.630.380.260.610.610.530.62
50.420.550.360.420.600.370.240.580.580.530.60
60.420.530.350.420.560.360.230.570.560.530.57
70.440.520.360.440.540.350.250.540.540.500.54
80.430.500.350.430.510.340.230.520.520.490.53
90.420.490.340.420.500.340.230.490.500.480.52
100.410.470.340.410.490.330.230.480.470.470.50
Avg.0.440.560.370.450.600.360.250.580.580.530.60
Table 6. Top-N accuracy for case 4.
Table 6. Top-N accuracy for case 4.
NPCA
+LR
User
PCA
+LR
Item
PCA
+LR
2-Way 1
PCA
+LR
2-Way 2
Pearson
User
Pearson
Item
Pearson
Score
RF UserRF ItemRF rsq
2-Way
RF
Pearson
Score
10.760.87NA0.690.840.680.850.860.880.700.88
20.730.87NA0.740.840.630.830.840.860.710.85
30.710.85NA0.740.820.620.820.830.840.730.85
40.670.84NA0.740.810.620.800.810.810.700.83
50.640.82NA0.710.770.620.770.760.790.670.79
60.610.78NA0.690.750.610.740.740.760.650.75
70.590.75NA0.670.710.590.710.700.730.640.73
80.570.71NA0.640.680.570.680.680.700.630.70
90.560.69NA0.620.660.560.660.650.680.600.68
100.550.67NA0.610.640.540.640.630.650.590.65
Avg.0.640.79NA0.690.750.600.750.750.770.660.77
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Hwang, W.-Y.; Lee, J.-S. Further Improvement on Two-Way Cooperative Collaborative Filtering Approaches for the Binary Market Basket Data. Appl. Sci. 2021, 11, 8977. https://doi.org/10.3390/app11198977

AMA Style

Hwang W-Y, Lee J-S. Further Improvement on Two-Way Cooperative Collaborative Filtering Approaches for the Binary Market Basket Data. Applied Sciences. 2021; 11(19):8977. https://doi.org/10.3390/app11198977

Chicago/Turabian Style

Hwang, Wook-Yeon, and Jong-Seok Lee. 2021. "Further Improvement on Two-Way Cooperative Collaborative Filtering Approaches for the Binary Market Basket Data" Applied Sciences 11, no. 19: 8977. https://doi.org/10.3390/app11198977

APA Style

Hwang, W. -Y., & Lee, J. -S. (2021). Further Improvement on Two-Way Cooperative Collaborative Filtering Approaches for the Binary Market Basket Data. Applied Sciences, 11(19), 8977. https://doi.org/10.3390/app11198977

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