KNN-Based Music Recommender System with Feedforward Neural Network

Authors

  • Andhika Loiz School of Computing, Telkom University
  • Z.K. Abdurahman Baizal Department of Computational Science, Faculty of Informatics, Telkom University

DOI:

https://doi.org/10.26555/jiteki.v10i4.30526

Keywords:

Autonomous navigation, Service robot, Web app, Robot operating system, SLAM

Abstract

Music, as a form of entertainment, is now an essential element in the lives of many individuals. Access to music-related information has become widespread through various websites and applications, leading to a significant increase in music data. Technological advancements have driven the development of music recommendation system research, which utilizes multiple methods, algorithms, and classification techniques to present recommendations that match user preferences. This research contributes to integrating the K-Nearest Neighbors (KNN) method for initial classification and the more advanced Feedforward Neural Network (FNN) model. In addition, this research also recommends songs with similar audio features. The main focus of this research is to design and evaluate a song recommendation system by combining such methods while comparing various hyperparameter results to find the most suitable model. The best model found will be incorporated into Content-Based Filtering (CBF) to provide song recommendations based on genre. This research uses the GTZAN dataset of 1,000 audio data from ten music genres. The K-NN model test assesses how well the model maintains consistency and achieves optimal performance. This study conducted three tests to find the best-performing model by integrating the model and hyperparameters. The results showed that the third FNN model showed the best performance after being optimized using the SGD optimizer. Furthermore, this model was combined with the CBF method using cosine similarity calculation. The system effectively recommended songs based on the blues genre, with five relevant nearest neighbors and an average score reaching 98%.

References

[1] M. H. Nofal, Z. K. A. Baizal, and R. Dharayani, “Multi Criteria Recommender System for Music using K-Nearest Neighbors and Weighted Product Method,” Indonesia Journal on Computing, vol. 6, no. 2, pp. 33–42, 2021, https://doi.org/10.34818/indojc.2021.6.2.575.

[2] W. Yun, L. Jian, and M. Yanlong, “A Hybrid Music Recommendation Model Based on Personalized Measurement and Game Theory,” Chinese Journal of Electronics, vol. 32, no. 6, pp. 1319–1328, 2023, https://doi.org/10.23919/cje.2021.00.172.

[3] A. Budhrani, A. Patel, and S. Ribadiya, “Music2Vec: Music Genre Classification and Recommendation System,” Proceedings of the 4th International Conference on Electronics, Communication and Aerospace Technology, ICECA 2020, pp. 1406–1411, 2020, https://doi.org/10.1109/ICECA49313.2020.9297559.

[4] J. Sihombing, A. Tuhagana, and D. Triadinda, “The Effect of Promotion and Hedonic Shopping On Impulse Buying On Spotify Applications,” Neo Journal of economy and social humanities, vol. 1, no. 3, pp. 194–204, 2022, https://doi.org/10.56403/nejesh.v1i3.47.

[5] A. Nilla and E. B. Setiawan, “Film Recommendation System Using Content-Based Filtering and the Convolutional Neural Network (CNN) Classification Methods,” Jurnal Ilmiah Teknik Elektro Komputer dan Informatika, vol. 10, no. 1, p. 17, 2024, https://doi.org/10.26555/jiteki.v9i4.28113.

[6] A. Bin Suhaim and J. Berri, “Context-Aware Recommender Systems for Social Networks: Review, Challenges and Opportunities,” IEEE Access, vol. 9, pp. 57440–57463, 2021, https://doi.org/10.1109/ACCESS.2021.3072165.

[7] A. Niyazov, E. Mikhailova, and O. Egorova, “Content-based Music Recommendation System,” Proceeding Of The 29th Conference Of Fruct Association, pp. 274-279, 2021, https://doi.org/ 10.23919/FRUCT52173.2021.9435533.

[8] M. Ahmed, U. Rozario, M. M. Kabir, Z. Aung, J. Shin, and M. F. Mridha, “Musical Genre Classification using Advanced Audio Analysis and Deep Learning Techniques,” IEEE Open Journal of the Computer Society, vol. PP, pp. 1–12, 2024, https://doi.org/10.1109/OJCS.2024.3431229.

[9] R. Andiety and Z. K. A. Baizal, “Content-Based Music Recommender System Using Deep Neural Network,” Technology and Science (BITS), vol. 6, no. 2, pp. 1111–1119, 2024, https://doi.org/10.47065/bits.v6i2.5762.

[10] B. Sreedhar et al., “Music Recommendation System Based on Facial Emotion,” Journal of Humanities,Music and Dance, vol. 3, no. 3, 2023, https://doi.org/10.55529/jhmd.33.11.22 .

[11] R. Tang, M. Qi, and N. Wang, “Music style classification by jointly using CNN and Transformer,” ACM International Conference Proceeding Series, pp. 707–712, 2024, https://doi.org/10.1145/3651671.3651696.

[12] Y. H. Cheng, P. C. Chang, and C. N. Kuo, “Convolutional neural networks approach for music genre classification,” Proceedings - 2020 International Symposium on Computer, Consumer and Control, IS3C 2020, pp. 399–403, 2020, https://doi.org/10.1109/IS3C50286.2020.00109.

[13] N. Ndou, R. Ajoodha, and A. Jadhav, “Music genre classification: A review of deep-learning and traditional machine-learning approaches,” 2021 IEEE International IOT, Electronics and Mechatronics Conference, IEMTRONICS 2021 - Proceedings, pp. 1-6, 2021, https://doi.org/10.1109/IEMTRONICS52119.2021.9422487.

[14] L. Novea and B. H. Prasetio, “Sistem Prediksi Genre Musik dan Penyediaan Tautan Rekomendasi Daftar Putar Menggunakan Teknik STFT dan Decision Tree Machine Learning,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 1, no. 1, pp. 1–15, 2020, [Online]. Available: https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/13958.

[15] A. Ghildiyal, K. Singh, and S. Sharma, “Music Genre Classification using Machine Learning,” Proceedings of the 4th International Conference on Electronics, Communication and Aerospace Technology, ICECA 2020, pp. 1368–1372, 2020, https://doi.org/10.1109/ICECA49313.2020.9297444.

[16] H. T. Duong and T. A. Nguyen-Thi, “A review: preprocessing techniques and data augmentation for sentiment analysis,” Comput Soc Netw, vol. 8, no. 1, pp. 1–16, 2021, https://doi.org/10.1186/s40649-020-00080- x.

[17] Y. Zhang, K. Wu, and M. Zhao, “An Audio-Visual Separation Model Integrating Dual-Channel Attention Mechanism,” IEEE Access, vol. 11, no. June, pp. 63069–63080, 2023, https://doi.org/10.1109/ACCESS.2023.3287860.

[18] M. Ahmed, U. Rozario, M. M. Kabir, Z. Aung, J. Shin, and M. F. Mridha, “Musical Genre Classification using Advanced Audio Analysis and Deep Learning Techniques,” IEEE Open Journal of the Computer Society, vol. 5, no. July, pp. 457–467, 2024, https://doi.org/10.1109/OJCS.2024.3431229.

[19] L. Xiong and Y. Yao, “Study on an adaptive thermal comfort model with K-nearest-neighbors (KNN) algorithm,” Build Environ, vol. 202, no. December 2020, p. 108026, 2021, https://doi.org/10.1016/j.buildenv.2021.108026.

[20] X. Mu, “Implementation of Music Genre Classifier Using KNN Algorithm,” Highlights in Science, Engineering and Technology, vol. 34, pp. 149–154, 2023, https://doi.org/10.54097/hset.v34i.5439.

[21] G. N. Ahmad, H. Fatima, Shafiullah, A. Salah Saidi, and Imdadullah, “Efficient Medical Diagnosis of Human Heart Diseases Using Machine Learning Techniques with and Without GridSearchCV,” IEEE Access, vol. 10, pp. 80151–80173, 2022, https://doi.org/10.1109/ACCESS.2022.3165792.

[22] K. H. Liland, J. Skogholt, and U. G. Indahl, “A New Formula for Faster Computation of the K-Fold Cross-Validation and Good Regularisation Parameter Values in Ridge Regression,” IEEE Access, vol. 12, pp. 17349–17368, 2024, https://doi.org/10.1109/ACCESS.2024.3357097.

[23] A. Toha, P. Purwono, and W. Gata, “Model Prediksi Kualitas Udara dengan Support Vector Machines dengan Optimasi Hyperparameter GridSearch CV,” Buletin Ilmiah Sarjana Teknik Elektro, vol. 4, no. 1, pp. 12–21, 2022, https://doi.org/10.12928/biste.v4i1.6079.

[24] D. Singh and B. Singh, “Investigating the impact of data normalization on classification performance,” Appl Soft Comput, vol. 97, p. 105524, 2020, https://doi.org/10.1016/j.asoc.2019.105524.

[25] M. and H.-M. T. Cao-Van, Kien and Le-Gia, Minh and Tran-Cao, “Prediction of heart Failure Using Voting Ensemble Learning Models and Novel Data Normalization Techniques,” Social Science Research Network ( SSRN ), 2024, https://doi.org/10.2139/ssrn.5022046.

[26] N. Darbeheshti and E. Moradi, “LSTM-Based Forecasting Model for GRACE Accelerometer Data,” arXiv preprint arXiv:2308.0862, 2023, [Online]. Available: http://arxiv.org/abs/2308.08621.

[27] E. Elgeldawi, A. Sayed, A. R. Galal, and A. M. Zaki, “Hyperparameter tuning for machine learning algorithms used for arabic sentiment analysis,” Informatics, vol. 8, no. 4, pp. 1–21, 2021, https://doi.org/10.3390/informatics8040079.

[28] M. Mechó-García et al., “Statistical Model of Ocular Wavefronts With Accommodation,” Invest Ophthalmol Vis Sci, vol. 65, no. 12, p. 12, 2024, https://doi.org/10.1167/iovs.65.12.12.

[29] I. H. Bashier, M. Mosa, and S. F. Babikir, “Sesame Seed Disease Detection Using Image Classification,” Proceedings of: 2020 International Conference on Computer, Control, Electrical, and Electronics Engineering, ICCCEEE 2020, pp. 1–5, 2021, https://doi.org/10.1109/ICCCEEE49695.2021.9429640.

[30] M. Alkanan and Y. Gulzar, “Enhanced corn seed disease classification: leveraging MobileNetV2 with feature augmentation and transfer learning,” Front Appl Math Stat, vol. 9, 2023, https://doi.org/10.3389/fams.2023.1320177.

[31] R. Chatterjee, R. Mukherjee, P. K. Roy, and D. K. Pradhan, “Chaotic oppositional-based whale optimization to train a feed forward neural network,” Soft comput, vol. 26, no. 22, pp. 12421–12443, 2022, https://doi.org/10.1007/s00500-022-07141-5.

[32] K. Yamazaki, V. K. Vo-Ho, D. Bulsara, and N. Le, “Spiking Neural Networks and Their Applications: A Review,” Brain Sci, vol. 12, no. 7, pp. 1–30, 2022, https://doi.org/10.3390/brainsci12070863.

[33] S. Cuomo, V. S. Di Cola, F. Giampaolo, G. Rozza, M. Raissi, and F. Piccialli, “Scientific Machine Learning Through Physics–Informed Neural Networks: Where we are and What’s Next,” J Sci Comput, vol. 92, no. 3, pp. 1–62, 2022, https://doi.org/10.1007/s10915-022-01939-z.

[34] I. Dhall, S. Vashisth, G. Aggarwal, “Automated hand gesture recognition using a deep convolutional neural network model,” In 2020 10th International Conference on Cloud Computing, Data Science & Engineering (Confluence), pp. 811-816, 2020, https://doi.org/10.1109/Confluence47617.2020.9057853.

[35] A. Abdullah and E. B. Setiawan, “Performance of Deep Feed-Forward Neural Network Algorithm Based on Content-Based Filtering Approach,” INTENSIF: Jurnal Ilmiah Penelitian dan Penerapan Teknologi Sistem Informasi, vol. 8, no. 2, pp. 278–294, 2024, https://doi.org/10.29407/intensif.v9i1.22999.

[36] Y. Xue, Y. Tong, and F. Neri, “An ensemble of differential evolution and Adam for training feed- forward neural networks,” Inf Sci (N Y), vol. 608, pp. 453–471, 2022, https://doi.org/10.1016/j.ins.2022.06.036.

[37] W. Ramadhanti and E. B. Setiawan, “Topic Detection on Twitter Using Deep Learning Method with Feature Expansion GloVe,” Jurnal Ilmiah Teknik Elektro Komputer dan Informatika (JITEKI), vol. 9, no. 3, pp. 780–792, 2023, https://doi.org/10.26555/jiteki.v9i3.26736.

[38] Y. Ji, Y. Cao, and J. Liu, “Pruning Large Language Models via Accuracy Predictor,” arXiv preprint arXiv:2309.09507, pp. 1–6, 2023, [Online]. Available: http://arxiv.org/abs/2309.09507.

[39] J. Resin, “From Classification Accuracy to Proper Scoring Rules: Elicitability of Probabilistic Top List Predictions,” Journal of Machine Learning Research, vol. 24, no. 173, pp. 1–21, 2023, https://www.jmlr.org/papers/v24/23-0106.html.

[40] C. C. Chang, C. H. Chen, J. G. Hsieh, and J. H. Jeng, “Iterated cross validation method for prediction of survival in diffuse large B-cell lymphoma for small size dataset,” Sci Rep, vol. 13, no. 1, pp. 1–10, 2023, https://doi.org/10.1038/s41598-023-28394-6.

[41] C. Channarong, C. Paosirikul, S. Maneeroj, and A. Takasu, “HybridBERT4Rec: A Hybrid (Content- Based Filtering and Collaborative Filtering) Recommender System Based on BERT,” IEEE Access, vol. 10, pp. 56193–56206, 2022, https://doi.org/10.1109/ACCESS.2022.3177610.

[42] I. Saifudin and T. Widiyaningtyas, “Systematic Literature Review on Recommender System: Approach, Problem, Evaluation Techniques, Datasets,” IEEE Access, vol. 12, pp. 19827– 19847, 2024, https://doi.org/10.1109/ACCESS.2024.3359274.

[43] Y. Chen and J. Huang, “Effective Content Recommendation in New Media: Leveraging Algorithmic Approaches,” IEEE Access, vol. 12, pp. 90561–90570, 2024, https://doi.org/10.1109/ACCESS.2024.3421566.

[44] D. Baxter et al., “Recommended conventions for reporting results from direct dark matter searches,” European Physical Journal C, vol. 81, no. 10, pp. 1–19, 2021, https://doi.org/10.1140/epjc/s10052-021-09655- y.

[45] H. Liu, X. Chen, and X. Liu, “A Study of the Application of Weight Distributing Method Combining Sentiment Dictionary and TF-IDF for Text Sentiment Analysis,” IEEE Access, vol. 10, pp. 32280– 32289, 2022, https://doi.org/10.1109/ACCESS.2022.3160172.

[46] A. Chronopoulou, M. E. Peters, A. Fraser, and J. Dodge, “AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Models,” EACL 2023 - 17th Conference of the European Chapter of the Association for Computational Linguistics, Findings of EACL 2023, pp. 2009–2018, 2023, https://doi.org/10.18653/v1/2023.findings-eacl.153.

[47] H. Bei, Y. Mao, W. Wang, and X. Zhang, “Fuzzy Clustering Method Based on Improved Weighted Distance,” Math Probl Eng, vol. 2021, no. 1, p. 6687202, 2021, https://doi.org/10.1155/2021/6687202.

[48] R. Yacouby and D. Axman, “Probabilistic Extension of Precision, Recall, and F1 Score for More Thorough Evaluation of Classification Models,” In Proceedings of the first workshop on evaluation and comparison of NLP systems, pp. 79–91, 2020, https://doi.org/10.18653/v1/2020.eval4nlp-1.9.

[49] R. H. Singh, S. Maurya, T. Tripathi, T. Narula, and G. Srivastav, “Movie Recommendation System using Cosine Similarity and KNN,” Int J Eng Adv Technol, vol. 9, no. 5, pp. 556–559, 2020, https://doi.org/10.35940/ijeat.e9666.069520.

[50] N. Pourmoazemi and S. Maleki, “A music recommender system based on compact convolutional transformers,” Expert Syst Appl, vol. 255, p. 124473, 2024, https://doi.org/10.1016/j.eswa.2024.124473.

Downloads

Published

2025-02-01

How to Cite

[1]
A. Loiz and Z. A. Baizal, “KNN-Based Music Recommender System with Feedforward Neural Network”, J. Ilm. Tek. Elektro Komput. Dan Inform, vol. 10, no. 4, pp. 992–1003, Feb. 2025.

Issue

Section

Articles

Similar Articles

1 2 3 > >> 

You may also start an advanced similarity search for this article.