Skip to content
Open access

Machine learning-based sentiment analysis to determine social perception of Generation Z on Twitter/X

Jul 2026 · Frontiers of Computer Science · 0 citations · 37 references

Abstract

The arrival of Generation Z in the social and work environment has sparked a heated debate on social media, marked by a division between innovative visions and critical stereotypes. This research develops a sentiment analysis model based on machine learning to understand public perception of this population group. Using a dataset obtained from Twitter/X through content and data extraction from the web with the Octoparse tool, three classification algorithms were trained and evaluated: Support Vector Machines (SVM), Random Forest, and Long Short-Term Memory (LSTM). Due to the class imbalance inherent in generational discussions, data balancing techniques (SMOTE, ADASYN) were applied. The results indicate that the Optuna-optimized LSTM model with SMOTE+Tomek balancing performed best with an accuracy of 82.39%, outperforming classical approaches. This tool allows for the identification of opinion trends (positive, negative, or neutral) about Generation Z, providing valuable input for sociologists and organizations seeking to understand the dynamics of “Generation Z” or “Centennials.”

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.