Hey everyone!
I've been messing around with machine learning lately and decided to build something around news bias detection, The idea is pretty simple. take a news article, split it into sentences, and see which ones contain language patterns associated with bias.
I used the BABE dataset and experimented with a few different models (Logistic Regression, Naive Bayes, SVM, and Random Forest), Eventually, I decided to turn it into an actual application instead of leaving everything in notebooks.
You can paste an article, get predictions for individual sentences, see their confidence scores, and even inspect which words influenced the predictions.
I also added a bunch of visualizations, including a little interactive 3D graph because... why not.
This was a pretty fun project to work on. I learned a lot about data cleaning, TF-IDF, model evaluation, hyperparameter tuning, and especially data leakage (which I initially underestimated).
The results aren't groundbreaking, and the model definitely has its limitations. It doesn't determine whether an article is factually biased or whether a publisher is trustworthy. It just looks for patterns it learned from the dataset.
Anyway, I made a short demo video showing how it works!
Would love to hear what you think or what you'd change/add. I'm still learning, so feedback is appreciated!