/ Модель

Характеристики

Лицензия
CC BY 4.0
Базовая модель
whisper-small
Опубликована
18 апр 2026

Audio-to-Sentiment_Intelligence_Model

Распознавание речиАудио, текст → текст3 профессии

Модель анализирует аудиоречь и определяет тональность высказываний, относя их к негативному, нейтральному или позитивному классу.

7скачиваний за 30 дней6лайковвеса обновлены18 мая 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель InfoBayAI предназначена для анализа тональности речи в аудиоразговорах. В README описан конвейер, в котором речь преобразуется в текст, сегментируется на предложения и классифицируется как негативная, нейтральная или позитивная; для классификации использован DistilBERT, обученный на текстах, полученных из аудиоданных InfoBay.AI. По метаданным модель дообучена на основе openai/whisper-small и принимает аудио.

Сценарии применения

  • классификация тональности реплик в аудиозаписях
  • анализ эмоциональной окраски разговоров в колл-центре
  • оценка тональности подкастов и разговорных записей

Ограничения

В README приведены высокие метрики на внутренней выборке, но они не подтверждают качество на других наборах данных или языках. Для классификации тональности требуется транскрипция речи; качество может зависеть от ошибок распознавания и особенностей аудио.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Model Description

This model is a transformer-based sentiment classification system built using DistilBERT and trained on text data derived from the InfoBay.AI audio dataset.

The training pipeline converts raw conversational audio into structured text using Whisper base, followed by segmentation and sentiment labeling. The resulting text dataset is then used to train the sentiment classification model.

This approach enables the transformation of unstructured audio data into meaningful NLP intelligence, demonstrating the value of the dataset for downstream AI applications.

infobay_pipeline

Training Pipeline

The complete pipeline used for training is as follows:

Raw Audio (InfoBay.AI Dataset) → Whisper ASR (Speech-to-Text) → Text Segmentation → Sentiment Labeling → DistilBERT Training

Audio Source: InfoBay.AI podcast dataset
Transcription: Whisper base model
Data Processing: Sentence-level segmentation
Labeling: VADER-based sentiment scoring
Model Training: DistilBERT for 3-class sentiment classification

Key Insight

This model demonstrates that audio data alone can be converted into high-quality training data and used effectively to train transformer-based NLP models.

It validates the ability of the InfoBay.AI dataset to support:

Speech-to-text pipelines
Sentiment analysis systems
End-to-end conversational AI workflows

Dataset Split

Train/Test Split: 80% / 20%
Split Strategy: Stratified sampling (to preserve class distribution)
Label Encoding: Applied using LabelEncoder

Training Hyperparameters

Number of Epochs: 15
Train Batch Size: 16
Evaluation Batch Size: 16
Learning Rate: 2e-5
Optimizer: AdamW
Loss Function: Cross-Entropy Loss
ogging Directory: ./logs
Output Directory: ./results

Model Performance

The model demonstrates strong performance on the speech-derived dataset on internal evaluation:

Accuracy: ~98%
Macro F1-score: ~0.98
Weighted F1-score: ~0.99

Classification Report

ClassSentimentPrecisionRecallF1-scoreSupport
0Negative0.970.960.961,128
1Neutral0.990.990.997,865
2Positive0.980.980.982,658

Evaluation Results

The model was evaluated using standard speech recognition metrics:

Word Error Rate (WER): 9.172%
Character Error Rate (CER): 4.53%

Usage

Install dependencies

pip install -U transformers torch
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
import torch
import torch.nn.functional as F

repo_id = "InfoBayAI/Audio-to-Sentiment_Intelligence_Model"

tokenizer = DistilBertTokenizer.from_pretrained(
    repo_id,
    subfolder="sentiment-model"
)

model = DistilBertForSequenceClassification.from_pretrained(
    repo_id,
    subfolder="sentiment-model"
)

model.eval()

text = " Write your text "

inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)

with torch.no_grad():
    outputs = model(**inputs)
    probs = torch.nn.functional.softmax(outputs.logits, dim=1)

predicted_class = torch.argmax(probs, dim=1).item()

labels = ["Negative", "Neutral", "Positive"]  

print("Text:", text)
print("Prediction:", labels[predicted_class])
print("Confidence:", probs[0][predicted_class].item())

AUDIO-TO-TEXT

import whisper
import pandas as pd
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
from transformers import pipeline
import os
import numpy as np

model = whisper.load_model("base")
audio_folder = r"C:\Users\3\Documents\AUDIO 2\b6"
print(os.path.exists(audio_Folder))


analyzer = SentimentIntensityAnalyzer()

data = []
sr = 1

# Loop through all audio files
for file in os.listdir(audio_folder):

    if file.endswith((".wav", ".mp3")):

        audio_path = os.path.join(audio_folder, file)

        print("Processing:", file)

        result = model.transcribe(audio_path, task="translate",  fp16=False)

        segment_id = 1

        for segment in result["segments"]:

            text = segment["text"]

            # Sentiment score
            sentiment_score = analyzer.polarity_scores(text)["compound"]

            # Convert score to label
            if sentiment_score > 0.05:
                sentiment = "positive"
            elif sentiment_score < -0.05:
                sentiment = "negative"
            else:
                sentiment = "neutral"

            data.append({
                "sr_no": sr,
                "call_id": file,
                "segment_id": segment_id,
                "start_time": segment["start"],
                "end_time": segment["end"],
                "text": text,
                "sentiment": sentiment
            })

            sr += 1
            segment_id += 1

df= pd.DataFrame(data)

df.to_csv("AUDIO", index=False)
print("dataset created ")

print(df.head())


Considerations

This model is trained on text derived from the InfoBay.AI audio dataset and is provided for research and evaluation purposes. The dataset contains a larger collection of high-quality conversational audio. For access to the full dataset or enterprise licensing inquiries, please visit our website InfoBay.AI or contact us directly.

Ph: (91) 8303174762
Email: datareq@infobay.ai

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
af340ca

0 моделей