Comparative Study of Cased and Uncased BERT Models for Intent Classification in Natural Language Understanding
Abstract
Natural Language Understanding (NLU) is a crucial component in conversational agents, where intent classification plays a vital role in interpreting user queries and generating contextually appropriate responses. Despite the widespread adoption of Bidirectional Encoder Representations from Transformers (BERT), there remains limited research comparing the performance of cased and uncased BERT variants in intent classification tasks, particularly in domains involving informal expressions such as small-talk interactions. This study aims to investigate the comparative effectiveness of the bert-base-cased and bert-base-uncased models on a multi-class intent classification dataset. Both models were fine-tuned and evaluated using precision, recall, and F1-score. Experimental results indicate that the bert-base-uncased model achieved an overall weighted F1-score of 0.94, slightly outperforming the bert-base-cased variant, which reached 0.92. These findings suggest that uncased models may be more robust in handling informal or noisy text, where capitalization is inconsistent or less meaningful. The study provides insights into model selection for NLU applications, emphasizing the importance of considering linguistic features and dataset characteristics in intent classification tasks.