Multi-Label Movie Genre Classification

Multi-Label Movie Genre Classification

external-link

Oct 2025

Finished

Academic project for multi-label movie genre classification (18 classes: Action, Comedy, Drama, Horror, Sci-Fi, etc.) using title and plot description. Implements and compares three methodologies: (1) Classical Logistic Regression with MultiLabelBinarizer (scikit-learn), (2) Transformer models — DistilBERT and RoBERTa — fine-tuned for multi-label classification with HuggingFace Trainer, 50 epochs, early stopping, and F1 metric, (3) Gemini (Google Generative AI models) with few-shot prompting: a prompt is built with train set examples and structured JSON classification is requested using Enum types for genres. Batch processing with retries on API errors. Includes analysis notebooks with F1-per-epoch visualizations and cross-method comparisons.

Technologies
ai

AI

huggingface

HuggingFace

jupyter

Jupyter

numpy

NumPy

pandas

Pandas

plotly

Plotly

python

Python

sklearn

Sklearn

https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/LLMs_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/clasic_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/conclusion_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-best_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-clasic_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-transformers_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/roberta_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/thumb-nail_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/LLMs_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/clasic_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/conclusion_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-best_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-clasic_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-transformers_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/roberta_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/thumb-nail_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/LLMs_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/clasic_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/conclusion_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-best_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-clasic_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-transformers_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/roberta_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/thumb-nail_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/LLMs_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/clasic_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/conclusion_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-best_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-clasic_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-transformers_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/roberta_169.png
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/thumb-nail_169.png