Skip to main navigation Skip to search Skip to main content

An interpretable multi-transformer ensemble for text-based movie genre classification

  • Faheem Shaukat
  • , Naveed Ejaz
  • , Zeeshan Ashraf
  • , Mrim M. Alnfiai
  • , Nouf Nawar Alotaibi
  • , Salma Mohsen M. Alnefaie
  • Iqra University
  • Taif University
  • Najran University

Research output: Contribution to journal › Article › peer-review

3 Downloads (Pure)

Abstract

Multi-label movie genre classification is challenging due to the inherent ambiguity and overlap between different genres. Most of the existing works in genre classification use audio-visual modalities. The potential of text-based modalities in movie genre classification is still underexplored. This paper proposes an ensemble deep-learning model that uses movie plots to predict movie genres. After pre-processing the text plots, three transformer-based models, Bidirectional Encoder Representations from Transformers (BERT), DistilBERT, and Robustly Optimized BERT Pre-training Approach (ROBERTa), are used to generate genre predictions, combined through a weighted soft-voting method. The proposed ensemble architecture achieves state-of-the-art performance on two benchmark datasets, Trailers12K and LMTD9, with a microaverage precision of 80.10% and 80.37%, respectively, significantly outperforming both traditional machine learning approaches and advanced deep learning models. The ensemble’s superior performance is attributed to its ability to combine the diverse strengths of individual models and capture nuanced genre-specific information from textual features. The lack of interpretability in deep learning models for genre classification is addressed using Local Interpretable Model-Agnostic Explanations (LIME), which provides both local and global explanations for the model’s predictions. The findings of the study highlight the potential of textual data in automated genre classification and emphasize the importance of interpretability methods in multi-label genre classification.

Original languageEnglish
Article numbere2945
Pages (from-to)1-23
Number of pages23
JournalPeerJ Computer Science
Volume11
Early online date25 Jun 2025
DOIs
Publication statusPublished online - 25 Jun 2025

Bibliographical note

Publisher Copyright:
Copyright 2025 Shaukat et al Distributed under Creative Commons CC-BY 4.0

Data Availability Statement

The following information was supplied regarding data availability:
The data and code are available at GitHub and Zenodo:- https://github.com/faheemshaukat/LIME- faheemshaukat. (2025). faheemshaukat/LIME: Movie Genre Classification Using
EnsembleLearning&LIME–v1.0(v1.0).Zenodo.https://doi.org/10.5281/zenodo.14906135.

Funding

This work was supported by Taif University, Saudi Arabia, Researchers Supporting Project number (TU-DSPP-2024-41), Taif University, Saudi Arabia. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

Keywords

  • Artificial Intelligence
  • Data Mining and Machine Learning
  • Data Science
  • Movie genre
  • Textual data
  • Transformer

Fingerprint

Dive into the research topics of 'An interpretable multi-transformer ensemble for text-based movie genre classification'. Together they form a unique fingerprint.

Cite this