2026 · completed

Filtering noise and answering machines

Two small audio classifiers: one flags transcript segments that the speech model wrote over noise, the other recognises answering machines on outbound calls so that the customer can be called back later.

Context

ML research internship, AI Lab, Selectra, Madrid, June–September 2026.

Stack

  • Gradient-boosted trees
  • CNN on log-mel spectrograms
  • NumPy (CPU runtime)
  • Logistic regression (scikit-learn)

Pipeline

  1. 1Noise: boosted trees on 29 cheap acoustic features settle the obvious segments
  2. 2Noise: doubtful ones get voicing features and a mel CNN, then a second tree ensemble
  3. 3Voicemail: first 60 s of the customer channel, as log-mel spectrograms
  4. 4Two CNNs + eight behavioural cues, fused by a logistic regression
  5. 5Person or voicemail written to the CRM, audio deleted
precision of the noise detector (segments flagged as noise that really are noise)
98.4%
answering machines correctly identified
97%
outbound calls checked per day
7,800

How it works

Top: a cascade keeps the noise detector cheap. Rules protect consent phrases, backchannels and very short segments; 400 boosted trees on 29 cheap acoustic features settle the obvious segments; only doubtful ones get a second ensemble with voicing features and the score of a small CNN on log-mel spectrograms. Bottom: the answering-machine detector reads only the first minute of the customer channel, without transcription: two small CNNs on log-mel spectrograms and eight behavioural cues (ringing time, silences, speech ratio, beep), combined by a logistic regression, and writes to the CRM after the call.noise, agent channelsegmentswith transcriptrulesprotected casesboosted trees29 cheap featurestrees + mel CNNdoubtful onlykeep or drop98.4% precisionobvious cases decided earlyoutbound calls, 7,800 a dayfirst 60 slog-mel, 8 kHz2 CNNs + 8 cueslogistic fusion · 97%CRM≈ 2 min after the callrecording deletedonce validatedno individual decisions such as bonuses
Fig. 1 Top: a cascade keeps the noise detector cheap. Rules protect consent phrases, backchannels and very short segments; 400 boosted trees on 29 cheap acoustic features settle the obvious segments; only doubtful ones get a second ensemble with voicing features and the score of a small CNN on log-mel spectrograms. Bottom: the answering-machine detector reads only the first minute of the customer channel, without transcription: two small CNNs on log-mel spectrograms and eight behavioural cues (ringing time, silences, speech ratio, beep), combined by a logistic regression, and writes to the CRM after the call.

Noise: on the agent channel, boosted trees on cheap acoustic features settle the obvious segments, and only the doubtful ones get voicing features and a small mel-spectrogram CNN before a second tree ensemble decides. Answering machines: on the first sixty seconds of the customer channel, without transcription, two small CNNs read log-mel spectrograms and eight behavioural cues (ringing time, silences, speech ratio, beep after speech) complete them; a logistic regression fuses the three, and the answer reaches the CRM about two minutes later; recordings are deleted once the result is validated.

Measured on the company’s own calls. I refused to let these call-analysis tools be used for individual decisions such as bonuses, favouring indicators aggregated by team.

Technical details

Noise filter

The transcription model sometimes writes words where there is only noise. The detector reads each transcript segment of four words or more on the agent channel, with its audio, and keeps the cost low with a cascade. Rules first protect segments that must stay (consent phrases, backchannels during an exchange, agent scripts, segments under 0.4 s). A first ensemble of boosted trees on cheap acoustic and context features settles the obvious segments. Only the doubtful ones get the expensive features: voicing and harmonicity measures, and the score of a small CNN on a log-mel patch compared with the speaker’s own reference spectrum. A second ensemble decides on all of them.

The runtime is pure NumPy on CPU, the CNN included, so it runs inside the nightly transcription batch without a GPU.

Stage 1
400 boosted trees of depth 2 on 29 features: syllabic modulation, spectral flux and slope, crest factor, noise floor, level relative to the speaker, speaking rate, neighbouring segments
Stage 2
400 boosted trees on 47 features: stage 1 plus HNR, f0, cepstral peak prominence, phase coherence, harmonic/percussive split, SRMR, Higuchi fractal dimension, CNN score
CNN
3 conv blocks 3×3 (16, 32, 48 channels), mean and max pooling, MLP head, ≈ 22K parameters; input 40 mels × 200 frames, 3 channels; calibrated on out-of-fold scores
Training data
993 labelled segments (711 noise) from 133 calls
Result
98.4% precision (target 97%)

Answering machines

An independent project: on outbound calls, find out automatically who answered, a person or a voicemail. Only the first sixty seconds of the customer channel are used, without transcription: two small CNNs on log-mel spectrograms (one on three 8-second windows, one on the whole clip) and eight behavioural cues, fused by a logistic regression fitted on out-of-sample scores, and the result is written to the CRM about two minutes after the call. Recordings are deleted once the result is validated. I refused to let these tools be used for individual decisions such as bonuses, favouring indicators aggregated by team.

Input
first 60 s of the customer channel, 8 kHz, log-mel 128 × 501 per 8 s window
Models
2 CNNs (3 conv blocks 3×3, 32/64/128 channels) + 8 behavioural cues
Fusion
logistic regression (scikit-learn) on out-of-sample scores
Volume
≈ 7,800 calls a day
Result
97% of answering machines correctly identified
Output
CRM updated ≈ 2 min after the call, audio deleted

← All projects