👉 Update: Version 4.0 is now live 👈
In case you didn't notice, AI music is one of the hot topics in the industry right now.
A guy named Ben Jordan actually did a video about it not too long ago, and in it he said he'd made his own to tool to detect AI. Super cool! Unfortunately, to my knowledge, he hasn't divulged the way his tool works or let the public try it. The good news is that I'm gonna tell you how mine works 😉
First things first, if you want to give my model a try, you can do that here: https://www.submithub.com/ai-song-checker
I won't pretend it's 100% accurate, but I'd say it's pretty close. I've tested hundreds of songs on my own, and it gets it right around 90% of the time. That’s not perfect, but still pretty solid.
My AI audio detector uses a Random Forest Classifier, which is really good at yes/no classification problems. It looks at various audio features, then gives you a probability score that suggests whether a track is AI-generated or made by humans.
Most of the core logic behind this approach came from this academic paper.
I trained it on two types of audio files:
To keep things balanced, I pulled an equal number of samples from each set (around 2,000 for each). That way, the model doesn’t lean too much one way or the other. Each audio file goes through a bunch of feature extraction steps, and that data trains the Random Forest Classifier.
My detector checks 21 features across three main areas:
1. Basic Spectral Features
2. Harmonic Analysis
3. Long-Range Pattern Analysis
The model also looks at patterns over three time windows:
It calculates how correlated these sections are and how much they vary, using standard deviation and other measures.
Please don't quiz me on any of these 😆. Ironically, I levered AI (Claude) to help generate this algorithm based on the previously linked Sonics paper and a few other prompts.
No model is perfect, and here are a few weak spots:
Here’s what I think I'll do next:
This was a fun little project, but I should probably focus on other website features for a little while!
Let me know what you think in the comments below.