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?v=0c239650da2fa8b04e3de7bd59f8bda1bac53aca
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/clasic_169.png?v=eba7f00fdb8f7af0e778507f45968f2108c0bbbe
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/conclusion_169.png?v=671c5fbe6d739d96ccb0db78c409471afecc0ab8
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-best_169.png?v=205d4b599e2064cc7c1c1113a905a730683b2939
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-clasic_169.png?v=bbff9a117681c44a5cce3ffcdcad40e80268297e
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-transformers_169.png?v=90540448bd3533ec5eb561f339aa2b0396db8e3b
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/roberta_169.png?v=9257ad94917a001540bedec3ce10507706ae0aab
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/thumb-nail_169.png?v=bf2e822ddae756957cfb9858c6ccfaf744313ad6
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/LLMs_169.png?v=0c239650da2fa8b04e3de7bd59f8bda1bac53aca
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/clasic_169.png?v=eba7f00fdb8f7af0e778507f45968f2108c0bbbe
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/conclusion_169.png?v=671c5fbe6d739d96ccb0db78c409471afecc0ab8
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-best_169.png?v=205d4b599e2064cc7c1c1113a905a730683b2939
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-clasic_169.png?v=bbff9a117681c44a5cce3ffcdcad40e80268297e
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-transformers_169.png?v=90540448bd3533ec5eb561f339aa2b0396db8e3b
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/roberta_169.png?v=9257ad94917a001540bedec3ce10507706ae0aab
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/thumb-nail_169.png?v=bf2e822ddae756957cfb9858c6ccfaf744313ad6
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/LLMs_169.png?v=0c239650da2fa8b04e3de7bd59f8bda1bac53aca
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/clasic_169.png?v=eba7f00fdb8f7af0e778507f45968f2108c0bbbe
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/conclusion_169.png?v=671c5fbe6d739d96ccb0db78c409471afecc0ab8
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-best_169.png?v=205d4b599e2064cc7c1c1113a905a730683b2939
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-clasic_169.png?v=bbff9a117681c44a5cce3ffcdcad40e80268297e
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-transformers_169.png?v=90540448bd3533ec5eb561f339aa2b0396db8e3b
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/roberta_169.png?v=9257ad94917a001540bedec3ce10507706ae0aab
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/thumb-nail_169.png?v=bf2e822ddae756957cfb9858c6ccfaf744313ad6
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/LLMs_169.png?v=0c239650da2fa8b04e3de7bd59f8bda1bac53aca
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/clasic_169.png?v=eba7f00fdb8f7af0e778507f45968f2108c0bbbe
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/conclusion_169.png?v=671c5fbe6d739d96ccb0db78c409471afecc0ab8
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-best_169.png?v=205d4b599e2064cc7c1c1113a905a730683b2939
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-clasic_169.png?v=bbff9a117681c44a5cce3ffcdcad40e80268297e
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/results-transformers_169.png?v=90540448bd3533ec5eb561f339aa2b0396db8e3b
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/roberta_169.png?v=9257ad94917a001540bedec3ce10507706ae0aab
https://raw.githubusercontent.com/MiquelGomezCorral/LC-Movie-Genre-Prediction/main/readme-images/thumb-nail_169.png?v=bf2e822ddae756957cfb9858c6ccfaf744313ad6