COMPARATIVE COMPLAINT TEXT CLASSIFICATION USING SVM, CNN, AND BERT WITH PRIORITY SCORING FOR NYC 311 SERVICE REQUESTS
DOI:
https://doi.org/10.34288/jri.v8i4.589Keywords:
Natural Language Processing, Text Classification, Bert, Convolutional Neural Network, Support Vector Machine, NYC 311, Complaint Prioritization, Priority ScoringAbstract
Abstract
Public complaint management systems like NYC 311 generate millions of service requests annually, posing significant challenges regarding manual categorization and resource prioritization. This study has two objectives: (1) to compare the classification performance of Support Vector Machine (SVM), Convolutional Neural Network (CNN), and Bidirectional Encoder Representations from Transformers (BERT) on a large-scale city complaint dataset, and (2) to develop a complaint prioritization framework that combines normalized complaint frequency with average resolution time. The NYC 311 Service Request dataset, comprising 1,203,418 cleaned records, was utilized, with a sample of 20,000 records selected via stratified sampling. Pre-processing steps included converting text to lowercase, removing numbers and special characters, and normalizing whitespace. All models were evaluated without class weighting using a shared test set of 4,000 records. The results indicate that BERT achieved the highest macro F1-score (0.9167), outperforming SVM (0.8861) and CNN (0.8900), while all three models recorded similar aggregate accuracy rates (95.60%–95.83%). Both SVM and CNN yielded a recall of zero for the "Noise – Street/Sidewalk" category, whereas BERT was able to partially recognize it demonstrating that contextual language understanding is essential for distinguishing complaint categories with semantic ambiguity. Priority score analysis identified "Illegal Parking" (0.6007) and "HEAT/HOT WATER" (0.5437) as the highest-priority complaint types, while geographic analysis revealed that Brooklyn and the Bronx bear a disproportionately higher burden of complaints compared to other boroughs. These findings indicate that transformer-based classification combined with composite priority assessment can support data-driven municipal complaint management that accounts for geographical differences.
Downloads
References
Abdullah D, & Abdulazeez A. (2021). Machine Learning Applications based on SVM Classification: A Review. Qubahan Academic Journal, 1(2), 81–90. https://doi.org/10.48161/Issn.2709-8206
Alarifi, G., Rahman, F., & Hossain, S. (2023). Prediction and Analysis of Customer Complaints Using Machine Learning Techniques. International Journal of E-Business Research, 19(1). https://doi.org/10.4018/IJEBR.319716
Almuqati, A., Albarrak, A., Mudasser, Q., & Wahsheh, H. (2026). A data-driven approach to answering customer service e-mail inquiries in the Arabic language. International Journal of Advanced Technology and Engineering Exploration, 13(134), 123–143. https://doi.org/10.19101/IJATEE.2025.121220769
Bigne, E., Ruiz, C., Cuenca, A., Perez, C., & Garcia, A. (2021). What drives the helpfulness of online reviews? A deep learning study of sentiment analysis, pictorial content and reviewer expertise for mature destinations. Journal of Destination Marketing and Management, 20. https://doi.org/10.1016/j.jdmm.2021.100570
BOZYİĞİT, F., DOĞAN, O., & KILINÇ, D. (2022). Categorization of Customer Complaints in Food Industry Using Machine Learning Approaches. Journal of Intelligent Systems: Theory and Applications, 5(1), 85–91. https://doi.org/10.38016/jista.954098
Cai, H., Shao, X., Zhou, P., & Li, H. (2025). Multi-Label Classification of Complaint Texts: Civil Aviation Service Quality Case Study. Electronics (Switzerland), 14(3). https://doi.org/10.3390/electronics14030434
Chen, W. K., Riantama, D., & Chen, L. S. (2021). Using a text mining approach to hear voices of customers from social media toward the fast-food restaurant industry. Sustainability (Switzerland), 13(1), 1–17. https://doi.org/10.3390/su13010268
Consoli, S., Barbaglia, L., & Manzan, S. (2022). Fine-grained, aspect-based sentiment analysis on economic and financial lexicon. Knowledge-Based Systems, 247. https://doi.org/10.1016/j.knosys.2022.108781
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. https://doi.org/10.48550/arXiv.1810.04805
Hien, N. T., Su, Y. L., Sann, R., & Thanh, L. T. P. (2022). Analysis of Online Customer Complaint Behavior in Vietnam’s Hotel Industry. Sustainability (Switzerland), 14(7). https://doi.org/10.3390/su14073770
Isgbekele E, Valerie O, & Michael O. (2025). View of A Systematic Review of AI-Based Customer Feedback Summarization Techniques. NIPES Journal of Science and Technology Research, 7, 607–615. https://doi.org/https://doi.org/10.37933/nipes/7.4.2025.SI71
Jain, U., Mishra, P., Dash, A., & Pandey, A. (2025). Multi-label multi-class text classification-enhanced attention in transformers with knowledge distillation. In Journal of Applied Research and Technology (Vol. 23, Number 1). https://doi.org/10.22201/icat.24486736e.2025.23.1.2484
James, Gareth., Witten, Daniela., Hastie, Trevor., & Tibshirani, Robert. (2017). An introduction to statistical learning : with applications in R. Springer : Springer Science+Business Media.
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models Third Edition draft.
Lee, S. H., Levin, D., Finley, P. D., & Heilig, C. M. (2019). Chief complaint classification with recurrent neural networks. Journal of Biomedical Informatics, 93, 103158. https://doi.org/https://doi.org/10.1016/j.jbi.2019.103158
Madyatmadja, E. D., Sianipar, C. P. M., Wijaya, C., & Sembiring, D. J. M. (2023). Classifying Crowdsourced Citizen Complaints through Data Mining: Accuracy Testing of k-Nearest Neighbors, Random Forest, Support Vector Machine, and AdaBoost. Informatics, 10(4). https://doi.org/10.3390/informatics10040084
Periyasamy, R., Govindaraji, M., Nasurulla, I., Srinivasan, V., & Devi, K. R. (2026). Optimizing call center agent efficiency through deep learning-based classifications using SMFCCAE. International Journal of Reconfigurable and Embedded Systems, 15(1), 31–41. https://doi.org/10.11591/ijres.v15.i1.pp31-41
Pio, P. G. C., Sigahi, T., Rampasso, I. S., Satolo, E. G., Serafim, M. P., Quelhas, O. L. G., Filho, W. L., & Anholon, R. (2024). Complaint management: comparison between traditional and digital banks and the benefits of using management systems for improvement. International Journal of Productivity and Performance Management, 73(4), 1050–1070. https://doi.org/10.1108/IJPPM-08-2022-0430
Prottasha, N. J., Sami, A. A., Kowsher, M., Murad, S. A., Bairagi, A. K., Masud, M., & Baz, M. (2022). Transfer Learning for Sentiment Analysis Using BERT Based Supervised Fine-Tuning. Sensors, 22(11). https://doi.org/10.3390/s22114157
Saraiva, M., Matijošaitienė, I., Mishra, S., & Amante, A. (2022). Crime Prediction and Monitoring in Porto, Portugal, Using Machine Learning, Spatial and Text Analytics. ISPRS International Journal of Geo-Information, 11(7). https://doi.org/10.3390/ijgi11070400
Shama, F., Aziz, A., & Deya, L. B. M. (2024). CitySolution: A complaining task distributive mobile application for smart city corporation using deep learning. SoftwareX, 27. https://doi.org/10.1016/j.softx.2024.101829
Shamsi, A. A. Al, & Abdallah, S. (2022). Sentiment Analysis of Emirati Dialects. Big Data and Cognitive Computing, 6(2). https://doi.org/10.3390/bdcc6020057
Tang, X., Mou, H., Liu, J., & Du, X. (2021). Research on automatic labeling of imbalanced texts of customer complaints based on text enhancement and layer-by-layer semantic matching. Scientific Reports, 11(1). https://doi.org/10.1038/s41598-021-91189-0
Tesfagergish, S. G., Kapočiūtė-Dzikienė, J., & Damaševičius, R. (2022). Zero-Shot Emotion Detection for Semi-Supervised Sentiment Analysis Using Sentence Transformers and Ensemble Learning. Applied Sciences (Switzerland), 12(17). https://doi.org/10.3390/app12178662
Zhang, A., Lipton, Z. C., Li, M. U., & Smola, A. J. (2021). Dive into Deep Learning.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Putri Sabilla, Riska Dhenabayu

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
The Jurnal Riset Informatika has legal rules for accessing digital electronic articles uunder a Creative Commons Attribution-NonCommercial 4.0 International License . Articles published in Jurnal Riset Informatika, provide Open Access, for the purpose of scientific development, research, and libraries.










