Analisis sentimen merupakan teknik penting dalam memahami opini publik terhadap produk atau layanan, termasuk dalam konteks perbankan digital seperti Allo Bank. Sebagai bank digital yang baru beroperasi, Allo Bank perlu memahami persepsi dan kebutuhan pelanggan untuk membangun kepercayaan serta meningkatkan kualitas layanan. Penelitian ini bertujuan untuk mengklasifikasikan ulasan pengguna Allo Bank yang terdapat di Play Store ke dalam kategori sentimen positif, negatif, atau netral, serta untuk menentukan nilai K optimal pada algoritma K-Nearest Neighbors (KNN) melalui berbagai teknik optimasi. Selain itu, kinerja model KNN dievaluasi menggunakan metrik akurasi, presisi, dan recall. Hasil penelitian menunjukkan bahwa 56,4% ulasan bersifat positif, mencerminkan tingkat kepuasan pengguna, sementara 38,8% ulasan negatif mengindikasikan area yang perlu perbaikan, dan hanya 4,8% ulasan yang bersifat netral. Penelitian ini juga menemukan bahwa nilai K optimal dalam algoritma KNN bervariasi tergantung pada teknik optimasi yang digunakan, yaitu cross-validation, grid search, random search, dan elbow method. Variasi ini terjadi karena setiap teknik memiliki tujuan, metrik evaluasi, dan ruang pencarian hyperparameter yang berbeda. Oleh karena itu, perlu dilakukan analisis lebih lanjut untuk menentukan nilai K yang paling sesuai dengan karakteristik data dan tujuan penelitian. Selain itu, hasil analisis menunjukkan bahwa kinerja teknik optimasi sangat dipengaruhi oleh proporsi data latih dan data uji. Teknik cross-validation memberikan hasil terbaik pada proporsi data uji: data latih sebesar 80:20, berdasarkan metrik evaluasi seperti akurasi, presisi, dan recall. Namun, pada proporsi 70:30, tidak ada teknik optimasi yang secara konsisten lebih unggul. Temuan ini menunjukkan bahwa pemilihan teknik optimasi perlu disesuaikan dengan konteks dan karakteristik data untuk memastikan performa model yang optimal.   Sentiment analysis is an important technique in understanding public opinion towards products or services, including in the context of digital banking such as Allo Bank. As a newly operating digital bank, Allo Bank needs to understand customer perceptions and needs to build trust and improve service quality. This study aims to classify Allo Bank user reviews on the Play Store into positive, negative, or neutral sentiment categories, and to determine the optimal K value in the K-Nearest Neighbors (KNN) algorithm through various optimization techniques. In addition, the performance of the KNN model was evaluated using accuracy, precision, and recall metrics. The results showed that 56.4% of reviews were positive, reflecting the level of user satisfaction, while 38.8% of negative reviews indicated areas that needed improvement, and only 4.8% of reviews were neutral. This study also found that the optimal K value in the KNN algorithm varies depending on the optimization technique used, namely cross-validation, grid search, random search, and elbow method. This variation occurs because each technique has different objectives, evaluation metrics, and hyperparameter search spaces. Therefore, further analysis is needed to determine the K value that best suits the characteristics of the data and the objectives of the study. In addition, the analysis results show that the performance of optimization techniques is greatly influenced by the proportion of training data and test data. The cross-validation technique gives the best results at a proportion of test data:training data of 80:20, based on evaluation metrics such as accuracy, precision, and recall. However, at a proportion of 70:30, no optimization technique is consistently superior. This finding suggests that the selection of optimization techniques needs to be adjusted to the context and characteristics of the data to ensure optimal model performance.