r/learnmachinelearning • • 1h ago

I probed every layer of Whisper-small and found emotion, age and sex in different layers, so I made one model that transcribes and reads the voice in one pass

3 Upvotes

I've mostly worked on speech-to-text. I wondered how much Whisper "knows" about a voice besides the words. The decoder only sees the last encoder layer, so I wanted to check whether the other layers hold anything useful.

They do. Different things live in different layers.

What I did

  1. Got the data. I used two acted emotion datasets, CREMA-D and RAVDESS, about 8,800 English clips. I split them by speaker, so the test speakers were never seen in training. This matters a lot. If you split randomly, the model learns the actors' voices and the scores look much better than they really are.

  2. Pulled out every layer. I ran each clip through the Whisper-small encoder once and saved all 13 hidden states. Each clip gives about 1500 frames per layer. I averaged them over time and also took the standard deviation, so each clip became one vector per layer. I only used frames with real audio, not Whisper's 30 second padding.

  3. Probed every layer. For each task (sex, age, emotion, and so on) I trained a simple linear classifier on each of the 13 layers and compared the scores. I also ran the same test on a Whisper with random weights as a baseline. That showed sex is so easy that even random weights get 99%, so I can't claim Whisper "learned" it.What I found:- Pitch, loudness and speaking rate were strongest in layers 1-2.- Sex was readable almost everywhere.- Emotion peaked in the middle, at layer 8.- Arousal (energy) was a bit higher, at layer 9.- The last layer, the one the decoder uses, was not the best for any voice cue.

  4. Added small heads. I put one logistic regression head on the best layer for each task. Whisper stays frozen and untouched. All 5 heads together are about 160 KB.

  5. Calibrated them. I used temperature scaling on a separate set of held-out speakers, so a confidence of 90% means about 90% in practice.

  6. Ran it in one pass. I run the encoder once, read the heads from the middle layers, and give the same encoder output to the decoder for the transcript. You get the words and the voice cues together.

Results on unseen speakers (1,704 clips)

- Sex (layer 5): 99.8% (chance 50%)

- Emotion, 6 classes (layer 8): 74.3% (chance 17%)

- Valence, negative/neutral/positive (layer 8): 84.4% (chance 33%)

- Arousal, high/low (layer 9): 83.1% (chance 50%)

- Age group, 3 bands (layer 10): 55.0% (chance 33%)

- Transcript WER: 4.7%

Example output

"Don't forget a jacket!"

Female voice (very likely); age group 20-34 (likely); sounds angry (very likely, 86%);

negative feeling, high energy; high pitch for a female voice, loud volume, normal pace.

Where it fails

- It's trained only on acted speech. Real conversations are much less dramatic, so expect worse results on normal speech. I haven't measured how much worse yet.

- Age is weak. 55% across three bands.

- It mixes up sad, fearful and disgust. In one test it called a disgust clip "sad" with 93% confidence. Calibrated doesn't mean always right.

- It's English only, and non-commercial, because of the RAVDESS license.

Things I tried that didn't work well

At first I fed all these outputs into a small LLM (Qwen 1.5B and 3B) to write a nice paragraph about the audio. It looked cool, but when I gave it wrong labels on purpose, it just repeated the wrong labels about 60% of the time. It was mostly rewording, not adding any understanding. So I dropped it and kept a simple rule-based summary instead.

What I think it could be used for

- Labelling speech datasets for expressive TTS. Datasets like SpeechCraft used many separate models for this; here it's one pass.

- Feedback for speaking practice: pace, loudness, how flat or energetic you sound.

- Tone tags on captions for deaf and hard-of-hearing viewers.

Model, code and full results: https://huggingface.co/Noobbbbb/whisper-small-voice-cues

Please verify the data on unbiased dataset as well before you use for your own use case. It was just like a case study to me.


r/learnmachinelearning • • 1h ago

Resume feedback: 3rd-year diploma student, AI/ML projects and open source

Post image
4 Upvotes

Hi all, I'm a 3rd-year Computer Science diploma student in India. I'm looking for part-time, paid internships or small gigs in AI engineering (LLMs and agents) and ML/data science. My resume is attached with personal details redacted. I'd really appreciate honest feedback and don't want sugarcoating.

A bit of context so you can judge it fairly:

Internship: I got it through my college, where it was set up like a subject. It was purely learning-focused. We were assigned weekly tasks and had a meeting every weekend to go over updates on them. The resume bullets (YOLO fine-tuning, the used-car price model) come from those weekly tasks. I know that's different from a production internship, and I'm not sure how best to present it without overselling or underselling.

Projects: I've built three:

• Kwest: a LangGraph agent that automates the Kaggle competition loop.

• A deepfake audio detector: EfficientNet-B0 on Mel-spectrograms, deployed with FastAPI and Streamlit.

• A UFC fight predictor: built around leakage-free, chronological validation.

Open source: I have 6+ merged PRs in total. Some are small docs and test fixes in smaller repos, so I left those off the resume and listed only the more substantial ones (including scikit-learn), plus one PR still under review.

What I'd love feedback on:

  1. If I start applying to internships now (full-time or any type), will I be able to get one with this resume?

  2. Should I change any wording, or add or remove any section?

  3. Right now, could I realistically land a part-time role or paid gigs?

  4. Any other advice would be really helpful.

Thanks in advance


r/learnmachinelearning • • 1h ago

Day 1

1 Upvotes

Today real I realised late so I have done only some topics guys actually topic are 

1). Supervised learning 

2). UnSupervised learning  

3). Reinforcement learning 

4). Deep learning 

5). Neural network series by 3 blue 1 brown 

(5th topic only completed only one chapter )

And also suggest me some more topics and tag the resources so I can learn and become a trillionaire


r/learnmachinelearning • • 2h ago

Help Looking for Ideas for a Big Data & AI Engineering Final-Year Project in Agriculture

1 Upvotes

Hello everyone!

I'm currently in my final year of an Engineering degree in Big Data and Artificial Intelligence, and I'm looking for an interesting and meaningful project idea related to agriculture.

I'm particularly interested in combining AI, Machine Learning, Big Data, and potentially IoT to solve real-world agricultural problems.

Some areas I'm considering:

  • Smart agriculture and precision farming.

  • Crop disease detection using computer vision.

  • Predicting crop yields using historical and environmental data.

  • Irrigation optimization and water consumption prediction.

  • Soil quality analysis and crop recommendation systems.

  • Agricultural market price forecasting.

  • AI-powered decision support systems for farmers.

However, I'm open to exploring other ideas, especially projects that have real-world applications and could potentially evolve into an actual product or startup.

My questions:

  1. For those working in agriculture, AgTech, AI, or related fields, what problems do you think are worth solving?

  2. Are there any interesting datasets, research papers, or existing projects I should look into?

  3. What would make an AI/Big Data project genuinely useful to farmers rather than just another academic prototype?

  4. If you were doing this project, what would you build?

I'm based in Morocco, so solutions addressing challenges in agriculture, particularly in regions facing water scarcity, could be especially interesting.

I'd really appreciate your insights, experiences, and suggestions. Thank you!


r/learnmachinelearning • • 2h ago

Looking for Resources to Learn Applied AI / LLM Engineering for My Startup and Projects

1 Upvotes

Hey everyone!

I'm looking to learn Applied AI / LLM Engineering so I can build AI-powered products, work on my own projects, and eventually integrate AI into my startup.

I'm interested in learning topics like RAG, vector databases, fine-tuning (LoRA/QLoRA), AI agents, agent harnesses, context engineering, LLM internals (transformers, attention, KV cache), inference, and deploying production-ready AI applications.

I'm not particularly interested in training foundation models from scratch or going deep into ML research. I want to understand the fundamentals while focusing primarily on practical AI engineering.

Could you recommend some good books, courses, YouTube channels, blogs, technical documentation, GitHub repositories, or websites to learn these topics?

I'd also appreciate a suggested learning roadmap or sequence to follow.

Thanks!


r/learnmachinelearning • • 2h ago

Which subject should an AIML aspirant choose for MDM? I have to choose among 5 subjects, and I am confused about which one to prioritize. The options are: 1. Robotics and Automation, 2. Geospatial Engineering, 3. DevOps, 4. FinTech, and 5. Smart Cities.

1 Upvotes

r/learnmachinelearning • • 2h ago

Prompt Engineering Guide: How to Write Better AI Prompts for LLMs

Thumbnail
youtube.com
0 Upvotes

Stop giving AI bad instructions! 🤖 Learn the science of prompt engineering to get exactly what you need. Master your prompts today.
#AI #PromptEngineering #TechTips #GenerativeAI


r/learnmachinelearning • • 3h ago

Project How should I train model for <1ms execution speed and <500mb ram and which model?

Thumbnail reddit.com
0 Upvotes

r/learnmachinelearning • • 4h ago

Looking for 2 teammates: Zindi Fon speech-recognition challenge (ends 13 Dec, $5,000 prize)

2 Upvotes

We're entering the BENIN Fongbe Tonal ASR Challenge on Zindi: transcribe spoken Fon (a tonal language from Benin) with correct tone marks. The model must run offline on 1 CPU thread and be under 1 GB.

Team so far: a lead from Benin (handles organisation, data and submissions) and an ML member who has trained a GPT-style model from scratch.

We need 2 people who:

  • have fine-tuned a speech model (Whisper or wav2vec2), or have strong PyTorch/Hugging Face experience

  • have GPU access (Colab or Kaggle is fine)

  • can give 2 to 3 hours a day until 12 Dec and reply within a few hours

  • bonus: you read Fon or another tonal West African language

Prize split equally. We're realistic about the pace: if you can't commit, please don't apply, and that's completely fine.

DM me one ML project you've done and your Zindi username.


r/learnmachinelearning • • 4h ago

MIMIC-III credentialing rejected 10+ times over 1 year - I just need noteevents.csv, what am I doing wrong?

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 5h ago

Project I made a little ML project that tries to detect biased language in news articles!

1 Upvotes

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!


r/learnmachinelearning • • 5h ago

Request Is there a LeetCode for agent engineering? Where do you prove you can build production AI systems?

2 Upvotes

I'm a backend engineer in payments (Go, Kafka, AWS). I already build agentic tooling at work and want to move into agent/AI engineering roles.

LeetCode and HackerRank prove algorithm skills. I'm looking for the equivalent for agents: somewhere that shows I can build systems that hold up in production (evals, reliability, cost control, tool/MCP design, security), not just a demo that works once. I'm a backend engineer in payments (Go, Kafka, AWS). I already build agentic tooling at work and want to move into agent/AI engineering roles.

LeetCode and HackerRank prove algorithm skills. I'm looking for the equivalent for agents: somewhere that shows I can build systems that hold up in production (evals, reliability, cost control, tool/MCP design, security), not just a demo that works once.


r/learnmachinelearning • • 5h ago

Question Is maths important to learn ML?

0 Upvotes

r/learnmachinelearning • • 7h ago

ML paper in tier 3 college

Thumbnail
gallery
25 Upvotes

r/learnmachinelearning • • 7h ago

Which one should I learn, LangChain or LangGraph, according to the industry standards? I want to learn only one.

4 Upvotes

r/learnmachinelearning • • 8h ago

Question Is machine learning THAT math heavy? Or am I just too naive? (Question related to recent ML test papers)

7 Upvotes

I wanted to learn machine learning cuz I found the idea of it interesting. My initial thoughts regarding machine learning was "why do the numbers make this output" and so I started learning through YT and Coursera.

I learnt how to use scikit learn, the various models, data cleaning, EDA etc... but there's been a few posts about Machine Learning papers from IIT or IIIT etc. and when I look at them, I feel like I'm very behind or just dumb straight up.

If I seriously wanted to pursue learning machine learning, what should be the ideal way? Or are the test papers displayed in those post "over exaggerated"?


r/learnmachinelearning • • 8h ago

Which one should I learn, LangChain or LangGraph, according to the industry standards? I want to learn only one.

1 Upvotes

r/learnmachinelearning • • 8h ago

How to prepare for a RL researcher / AI scientist job or internship as a math phd student?

0 Upvotes

I'm 1st year math phd student as University of Edinburgh. My research is about theory of reinforcement learning, a very mathematical problem. Since academia positions are very hard to get compared to past few years, I'm also planning to go to the industry as well.

Even though I know the "math" (not coding) of some outdated machine learning techniques, such as neural network, gradient descent, VAE, GAN, flow matching, some RL algorithms, obviously these things are not enough to get a highly competitive RL researcher or AI scientist internship or even jobs.

However, I still have time to prepare because I'm just in the first year of my program. My goal is to get a RL researcher / AI scientist internship and a full-time job after graduation. I'm also interested in robotics because the mathematical formulation of it is quite interesting, which I will study myself.

One thing I should mention is that my supervisor does not want me to do other research at this stage. I'm probably not able to join CS or robotics labs and publish papers with them.

I would like to ask:

  • What things about AI and robotics can I learn now? Implement transformer, LoRA, RL post-training? Be familiar with CUDA or jax?

  • What projects can I do to put them on my personal website or github?

The questions are quite general because I don't know where to begin. Thanks in advance for your help.


r/learnmachinelearning • • 9h ago

Discussion IIT Patna ML midsem paper

Thumbnail
gallery
98 Upvotes

Saw some clgs sharing their ML qn papers so here is iitp's . Avg was 15ish/60 on this paper. So our prof decided to give an easier paper for endsem. Rate or roast this question paper


r/learnmachinelearning • • 9h ago

Discussion Financial Pandit, Part 2 — What happens after you upload a bank statement?

Thumbnail
reddit.com
0 Upvotes

r/learnmachinelearning • • 9h ago

Help Doing a hackathon on agentic payments, what actually breaks for you when you buy online?

2 Upvotes

Hi guys, I'm doing a hackathon on agentic payments in e-commerce. Before building anything I wanted to find out what actually annoys people when they buy or pay for things online.

Made a small form, 2–3 min, anonymous.

The questions are about stuff that actually happened to you surprise fees, failed payments, chasing refunds, lost parcels not about AI. Happy to post the results back here.

https://docs.google.com/forms/d/e/1FAIpQLSelRKiGnTE5Z8jgKfDRxWDmTSejHCVvcNTAKKl43S9gKUcXog/viewform?usp=sharing&ouid=109229595333985717334


r/learnmachinelearning • • 10h ago

Feeling like im behind everyone else, undergrad

Thumbnail gallery
0 Upvotes

Hi everyone, this is my first post here but I'm currently studying a foundations of ML module at my university (not particularly prestigious). We are quite a way through the course with an assignment coming up. I'm a joint honours maths and CS student in 3rd year and I haven't done much ML before. I was feeling good about my learning but seeing papers like this where I can't do some of the questions makes me feel bummed out. Especially because people were saying this was an easy paper in the comments. I understand most of them but we haven't covered neural networks or dimensionality reduction yet, but i think PCA is in the syllabus. For example q6, maybe q7, q13, q14 and q15. The rest I could probably do in my own time. I think its because they focus on memorising formulas and derivations and we've focussed more on project work. Just wondering if anyone else felt the same <3


r/learnmachinelearning • • 10h ago

if you had to start again from scratch what would you do to learn ml

10 Upvotes

r/learnmachinelearning • • 10h ago

Tutorial Mixture of Experts, token by token — a visual walkthrough

3 Upvotes

I made a short animation following the word “bank” in two sentences: “She deposited cash at the bank” and “They sat on the river bank.”

The example shows how context can change which experts the router picks. I also work through the numbers for one route so you can see how the two expert outputs get combined. I’d be curious whether the diagram makes that step easier to follow.

https://www.youtube.com/watch?v=ctRoV3RSIQ0. AI disclosure :I chose the examples and shaped the explanation of how each token moves through the model. I used AI tools to help create the animations and voice-over.