A Comparative Study of TF-IDF and Count Vectorizer under Random State Changes in a Random Forest Classifier for Emotion Detection

dc.contributor.authorKooptiwoot S.
dc.contributor.authorKooptiwoot S.
dc.contributor.correspondenceKooptiwoot S.
dc.contributor.otherMahidol University
dc.date.accessioned2026-05-10T18:23:30Z
dc.date.available2026-05-10T18:23:30Z
dc.date.issued2026-01-01
dc.description.abstractIn machine learning processes, parameter settings affect model accuracy. Text-based emotion detection requires stable and accurate models, making parameter choices, such as the random state, increasingly important. Previous studies usually set the random state to 42, claiming that this should be the best for obtaining good accuracy. This study examined random state settings, experimenting with values from 1 to 720 and observing the results in accuracy. In addition, a dataset was employed for emotion detection using the Random Forest (RF) classifier with two vectorizers, TF-IDF and Count. The results show that different random state settings affect model accuracy. In the training subset, the TF-IDF vectorizer offered higher and more stable accuracy than the Count vectorizer. However, the Count vectorized achieved higher accuracy on both the validation and test sets.
dc.identifier.citationEngineering Technology and Applied Science Research Vol.16 No.2 (2026) , 33247-33252
dc.identifier.doi10.48084/etasr.16158
dc.identifier.eissn17928036
dc.identifier.issn22414487
dc.identifier.scopus2-s2.0-105037642873
dc.identifier.urihttps://repository.li.mahidol.ac.th/handle/123456789/116645
dc.rights.holderSCOPUS
dc.subjectMaterials Science
dc.subjectComputer Science
dc.subjectEngineering
dc.titleA Comparative Study of TF-IDF and Count Vectorizer under Random State Changes in a Random Forest Classifier for Emotion Detection
dc.typeArticle
mu.datasource.scopushttps://www.scopus.com/inward/record.uri?partnerID=HzOxMe3b&scp=105037642873&origin=inward
oaire.citation.endPage33252
oaire.citation.issue2
oaire.citation.startPage33247
oaire.citation.titleEngineering Technology and Applied Science Research
oaire.citation.volume16
oairecerif.author.affiliationSiriraj Hospital
oairecerif.author.affiliationSuan Sunandha Rajabhat University

Files

Collections