Transcript

Episode 2 · Human-Centered Speech Recognition: ASR for Disordered Speech and Accents

65 min

Download (.txt)

Episode Introduction: Human-Centered AI for Disordered Speech

8:06 Guest Introduction & Career Highlights (Katarzyna Foremniak)

Alexey

8:06

This week, we'll talk about human-centered AI for disordered speech recognition. We have a special guest today—Katarzyna Foremniak is a computational linguist with over ten years of experience in NLP and speech recognition. She has developed language models for automotive brands like Audi and Porsche and specializes in phonetics, morpho-syntax, and sentiment analysis. Katarzyna also teaches at the University of Warsaw and is passionate about human-centered AI and multilingual NLP. Welcome to the show!

Katarzyna

8:41

Thank you. I'm very happy and honored to be here with you today.

Alexey

8:47

How accurate was the bio? I asked GPT to summarize my longer bio, so I hope it was accurate.

Katarzyna

8:56

Yes, it was accurate. It was quite rich for a summary.

9:06 From Linguistics to Computational Linguistics: Transition & Skills

Alexey

9:06

Before we dive into our main topic of human-centered AI and speech recognition, let’s start with your background. I think GPT already provided a lot of good insights, but could you tell us more about your career journey?

Katarzyna

9:21

Sure. I’m a computational linguist, which is a short answer. On one hand, I’m a researcher and a teacher at the Department of Italian Studies in the Faculty of Modern Languages at the University of Warsaw. On the other hand, I work on NLP projects in the automotive industry and collaborate with companies in data handling. My background is mainly in linguistics, which was my starting point. I studied Italian and Polish in parallel and added some technical skills along the way, leading me to my journey as a computational linguist. My main field of interest is phonetics, which is why this topic is relevant for today's meeting. Sorry for being a bit lengthy!

Alexey

10:42

It wasn’t long at all. I’m curious, to be a linguist in Italian, do you have to speak Italian perfectly?

Katarzyna

10:55

It helps!

Alexey

10:58

Do you speak it well?

Katarzyna

10:58

Yes, I do.

Alexey

11:00

I usually go to Italy as a tourist. The funny thing is that I live in Germany, and when I go to places like Garda, which is a popular vacation destination for Germans, people just look at me and start speaking German.

Katarzyna

11:21

Maybe that’s why! Italians are usually very open and appreciate it when you speak their language.

Alexey

11:38

I’m curious about how difficult it was for you to transition from linguist to computational linguist. Linguistics, as I understand it, is less mathematical than other disciplines.

Katarzyna

11:47

There was an audio problem; I only caught the first part of your question.

Alexey

11:53

How difficult was it for you to become a computational linguist? It seems like linguistics isn’t as math-heavy, so how was the transition for you?

Katarzyna

12:25

You raised two interesting points. First, linguistics can indeed seem distant from mathematics. However, it depends on the approach; literature might seem far removed, but if you focus on data and relationships between datasets, it’s a different story.

13:22 Linguistics Meets Computer Science: Data-driven Approaches

Alexey

13:22

You’ve touched on how important the use of data is. Is it safe to say that computational linguistics merges linguistics and computer science?

Katarzyna

13:34

Yes, that’s correct. When I began, there were not many studies in computational linguistics in Poland. At that time, it was necessary to acquire programming skills along with linguistic knowledge. I had to catch up and was fortunate enough to meet several people who were willing to teach me.

Alexey

13:47

When you say that linguistics might not be too far from mathematics, I remember reading about syntax trees. They represent language in a more concrete way, almost like algebra, allowing us to work with mathematical abstractions instead of just letters and characters.

Katarzyna

14:32

Indeed, that’s one of the main perspectives in linguistics: viewing language as a structured system. This aligns closely with your description.

Alexey

14:47

When you were studying linguistics in Italian, did you learn Italian first and then focus on linguistics, or did you approach it from a linguistic perspective before using the language more practically?

Katarzyna

15:04

I started learning Italian first. I managed to communicate in the language before diving deeper into its linguistic aspects. I also specialize in Polish linguistics, which felt much more natural since it’s my first language.

15:25 Phonetics & Morpho-syntax Explained: Core Concepts for ASR

Alexey

15:25

In your biography, summarized by GPT, it mentions that you specialize in phonetics, morpho-syntax, and sentiment analysis. I’m familiar with sentiment analysis, but could you explain what phonetics and morpho-syntax are?

Katarzyna

15:47

Sure! Phonetics is the study of sounds in the language system, focusing on how we produce speech. It often intersects with phonology, which explores sounds on a mental level. Morphology, on the other hand, deals with how words are formed and how they interact with one another. In morphologically rich languages like Polish, this includes inflection and the use of prefixes and suffixes. It’s essential to consider both phonetics and morphology, as many aspects of our speech are interconnected.

Alexey

17:28

So we have linguistics, and within linguistics, we have morphology and phonetics, right?

Katarzyna

17:34

Yes, we can delve even deeper into other areas like semantics (the meaning of words) and pragmatics (the use of language). However, for today, I believe phonetics and speech are the most relevant.

Alexey

17:58

I’m not sure if you answered this already, but what exactly is morpho-syntax?

Katarzyna

18:03

Morpho-syntax combines morphology and syntax. It studies how words are constructed and how they fit into sentences, which are larger segments of text. There's a strong connection between how we use words and their arrangement in the overall structure.

Alexey

18:34

How does morpho-syntax relate to grammar? Are they basically the same thing?

Katarzyna

18:39

Grammar is linked to both morphology and syntax. When we discuss grammar, we often start with the word itself, looking at its structure and inflection, such as verb conjugation or tense.

Alexey

19:00

So syntax is a higher-level concept, then? Each word is correctly formed and used, and syntax governs how we arrange them in sentences.

Katarzyna

19:18

Exactly. Syntax is all about constructing sentences and how words relate to each other within those sentences.

Alexey

19:24

Is syntax also related to word order? For example, in German, the verb must always be in the second position, right? That’s part of syntax, correct?

Katarzyna

19:34

Yes, that’s a syntactic pattern.

Alexey

19:41

For me, syntax was always associated with programming languages. For instance, in Java, you have to use curly braces. I didn’t realize that the concept originates from linguistics.

Katarzyna

20:03

That’s a great example! It illustrates the same patterns we see in both natural languages and programming languages, such as what comes first and what should follow.

20:33 Phonetics and Speech Disorders: Articulation, Fluency, Voice Quality

Alexey

20:33

When it comes to phonetics, it’s about how we pronounce words, right?

Katarzyna

20:40

Exactly, it’s about the production of sounds.

Alexey

20:42

And we want to discuss speech disorders, so how are phonetics and speech disorders connected?

Katarzyna

20:51

If we speak, it can be in a standard or non-standard manner. Speech disorders are examples of communication disorders. They can affect articulation, meaning the pronunciation of sounds and sound clusters, as well as fluency and voice quality. We might articulate a sound incorrectly, or have issues with fluency, such as interruptions or stuttering. These disorders can lead to difficulties in understanding speech.

23:19 Accents vs Speech Disorders: Variation, Identity, and Comprehension

Alexey

23:19

Did I understand correctly that an accent can be seen as a speech disorder, or is it simply a normal variation?

Katarzyna

23:34

When we talk about foreign accents, we don’t typically classify them as speech disorders. They may lead to comprehension difficulties, but they’re generally accepted as part of normal variation. Speech disorders, on the other hand, are often linked to biological or neurological causes that hinder normal speech production.

24:41 ASR Progress: Modern Models (Whisper) and Improved Accent Handling

Alexey

24:41

That’s interesting! I remember that even five years ago, many voice recognition systems struggled to transcribe what I said accurately. For instance, YouTube's transcription was quite poor in the beginning. But now, with systems like Whisper, they work much better with my accent. Perhaps my accent has improved too, but I think the systems have advanced more significantly.

Katarzyna

25:23

That’s true! The models have improved considerably. Any non-standard speech can present challenges, but we generally don’t view foreign accents as a problem. We can choose to work on them if we want, or embrace our accents as part of our identity. However, discussing speech recognition for disordered speech is very similar to recognizing atypical speech, including child speech, foreign speech, and idiosyncratic pronunciations. Dialects and variations also fall under this category.

Alexey

26:22

For example, the Scottish accent.

Katarzyna

26:26

Some languages have rich regional varieties, and others do not. In the case of Scottish, a local variant can differ significantly from the so-called standard.

Alexey

26:46

I remember watching a video from the British Parliament where a representative from Scotland spoke, and nobody could understand him. They asked him to repeat himself several times. It was quite amusing!

Katarzyna

27:06

In such cases, it’s often best to use the standard version for effective communication, but that’s not always possible. Sometimes, not conveying everything can have its advantages.

27:31 ASR Fundamentals: Standard Speech Datasets and Reference Speech

Alexey

27:31

Can we talk about speech recognition? How does it work in general? Before diving into the differences between typical and atypical speech recognition, what’s the proper term to use for standard speech?

Katarzyna

27:54

That’s a very timely topic, as there’s so much change happening in this area. We have large language models with generative AI. Traditionally, models were trained on precise datasets, typically collected according to a prepared scenario. A good example of standard speech is data collected from speakers like those from the BBC.

Alexey

28:35

So if we consider British English, that would be a standard reference, right?

Katarzyna

28:35

Yes, usually these datasets are designed to reflect standard speech. The systems are trained to map the output of spoken language to the model phrases they were trained on. However, with the advent of large language models, we can incorporate contextual training, which improves recognition. There’s hope for better recognition of atypical speech as well.

Alexey

28:54

Right. It’s important to distinguish between standard and atypical speech.

Katarzyna

29:02

Yes, and it’s essential to recognize that we all speak atypically at times. Factors like speaking fast or slow can affect clarity. Automatic speech recognition systems are typically trained on data from speakers without speech disorders. Therefore, they can struggle to recognize atypical patterns, which leads to poor accuracy.

Alexey

30:12

So if I understand correctly, ASR (automatic speech recognition) systems struggle with speech that deviates from what they were trained on.

30:24 ASR Limitations with Atypical Speech: Training/Deployment Gaps

Katarzyna

30:24

Absolutely. This misalignment between training and real-world usage can lead to significant recognition challenges.

Alexey

30:33

So what can be done about this?

30:53 Strategies for Disordered Speech Recognition: Specialized Datasets & Adaptation

Katarzyna

30:53

There are several strategies we can implement. One approach is to collect and curate specialized datasets that include speech from individuals with various disorders, using this as a subset in training. We can also employ transfer learning techniques to adapt models that were trained on standard data for individuals with speech disorders.

Alexey

37:02

What if we don’t have such data available?

37:07 Data Augmentation for Disordered Speech: Synthetic Variations

Katarzyna

37:07

If data collection is challenging, we can utilize data augmentation to expand the training dataset by artificially simulating disordered speech. For example, if we know specific sounds or consonant clusters are problematic, we can create artificial variations.

Alexey

37:31

That’s interesting.

37:33 Multimodal ASR: Integrating Lip-reading and Visual Cues

Katarzyna

37:33

Another strategy is using multimodal outputs. While we learn from audio, adding visual data—such as lip reading or gesture recognition—

40:17 Transfer Learning for ASR: Fine-tuning with Limited Data

Alexey

40:17

Yeah, not yet, of course. But I've worked with images, and in a typical situation, you have an ImageNet neural network trained on ImageNet. Then you have your own data, which could be tractors or anything else not included in ImageNet. You might find tractors there, but also something else. You take, say, 1,000 examples and fine-tune your network that was trained previously on ImageNet. The same process applies to speech. There is a model trained on standard data, and then you collect disordered speech. It doesn’t have to be a very large sample, like with images, and you apply transfer learning to fine-tune your model, right?

41:10 Data Collection Challenges: GDPR, Clinical Data, Language Coverage

Katarzyna

41:10

You mentioned data collection, and I said it’s not always easy because of the variety of speech disorders. For people with motor speech disorders, it can be challenging to organize the entire collection process. Also, considering we’re dealing with health issues, GDPR regulations come into play. It would be ideal for research purposes to have large corpora of disordered speech.

Alexey

41:55

In terms of transfer learning, we don’t need a lot of data. A few hundred examples are usually sufficient to get started, at least with images.

Katarzyna

42:09

Indeed. However, when we consider different disorders, languages, and non-English languages, the volume of data needed becomes substantial.

42:18 Language & Dialect Effects: Bilingualism and Disorder Variability

Alexey

42:18

You need to account for each subset. For instance, stammering is a relatively common disorder. It might not be too difficult to gather data from American English speakers who stammer. But if we look at a particular dialect or a less common language—

Katarzyna

42:47

For example, take a language that isn't widely spoken.

Alexey

42:48

That's a good example. An interesting case is bilingual individuals, as studies show stammering can occur in one language and not in another. This is linked to specific semantic clusters or syllables that may be more common in one language than in another.

Katarzyna

43:31

There are significant differences in these cases.

Alexey

43:53

Exactly. I sometimes experience this myself. Maybe it’s because I'm thinking about what to say next, and then I start stammering. It doesn’t happen often, but I’ve noticed it happening to others, too.

44:31 Stammering & Fluency Issues: Characteristics and Recognition Needs

Katarzyna

44:31

Fluency issues are normal human behaviors, but stammering should be diagnosed as it differs from what most of us experience. Fluency is more common when using a foreign language; we often need time to find the right words.

Alexey

44:43

With stammering, individuals know what they want to say, but they struggle with certain sequences of sounds.

Katarzyna

44:48

Yes, it can block speech at the beginning of a sentence, while the rest flows fine. Sometimes, it’s linked to specific consonant clusters that are tough to pronounce. If a language has many of these, like English or Polish, it can be challenging.

45:16 Pronunciation Challenges: Polish Consonant Clusters and Phonetics

Alexey

45:16

Polish does have many challenging consonant combinations. I recall a funny story from Krakow about a central street called "Czarnowiejska." It's packed with consonants, and it’s always amusing to see a British person trying to pronounce it.

Katarzyna

45:51

Exactly! There’s a trick with certain sounds, where two consonants together create one sound. This can make pronunciation tricky.

46:17 Practical Transcription Workflow: Amazon Transcribe + LLM Post-processing

Alexey

46:17

By the way, I use automatic speech recognition for podcast episodes after recording. I utilize Amazon Transcribe, which is supposed to recognize English.

Katarzyna

46:32

So, you’re using that for generating transcripts?

Alexey

46:34

Yes, but it expects English. Then, all of a sudden, I might throw in a Polish word, like "sensu." I think it’s interesting how LMs are being used more frequently in this area. I do this as well. After getting the output from Amazon Transcribe, I feed that into an LM or an LLM. Even if the transcriber misses something, the LLM, using the surrounding context, can often correct it.

47:28 Contextual Language Models in ASR: Meaning Preservation vs WER

Katarzyna

47:28

Absolutely. LMs can assist at various levels. Adding context is crucial for recognition and transcription. We should focus more on meaning preservation rather than traditional metrics like word error rate or accuracy.

Alexey

49:19

That makes sense. In my case, I had an interview about Scikit-learn. Many in the machine learning community know it, but the speech recognition system struggled to identify it correctly, especially since I was speaking with a French accent. However, because we provided context in our discussion, the LLM was able to infer the correct term.

Katarzyna

50:29

That's a fantastic example! This two-step process—first speech recognition and then using an LM—works well. There are also models that can integrate both steps into one.

51:27 Utterance Analysis in ASR: Phonemes, Words, and Contextual Prediction

Alexey

51:27

I suppose it’s about understanding how voice recognition systems operate. They analyze utterances, right?

Katarzyna

51:44

It can be anything; it can be a word, it can be a phrase. A phoneme is what...

Alexey

51:50

One sound, but like a word that I say, an utterance, right? For example, I have a disorder; I say "whiskey" instead of "whiskey." If I have a language model in my voice recognition system, it can understand from the context that I'm not talking about the alcoholic beverage, but rather about something that carries a lot of risk. Because it has access to the other words, the goal of a language model is to predict the next word based on the context. We can utilize language models, and we probably do, in voice recognition systems, right?

52:31

It can be trained to predict it or, in post-processing, it can say, "Okay, it’s strange that it’s in this context; it should be something else." All predictions we make are what happens next, as LLMs do. It can indicate that "risky" should come instead of the beverage from your example. So, it can be done before and also at the second step. One thing that came to my mind now, if we still have time, is that ASR models can also be personalized for specific individuals with specific disorders. In this case, this first stage, the training, and preparing the model to expect atypical productions or articulations can be done. It’s a bit different if we want to have a model that recognizes both standard speech and atypical productions.

54:05 Personalized ASR: User Adaptation, Fine-tuning, and On-device Setup

Katarzyna

54:05

I guess with personalization, the way it works is I first need to train it as a user. It asks me, "Hey, can you pronounce this sentence?" I record myself saying the sentence, and then it asks me to pronounce something else. I do this for about ten sentences, and then it builds a model tailored specifically to the way I speak.

Alexey

54:35

Individual speaking features, yes, tailored to your style of speaking.

Katarzyna

54:42

There was a system like that before Whisper existed. I think I even tried it. But now with Whisper, it’s doing such a good job. I use it in ChatGPT; when I dictate whatever I want, it recognizes it, and even if it misunderstands something, ChatGPT figures out what I want. So it's quite convenient.

Alexey

55:13

Amazing! But, I know, it’s a bit terrifying. It knows me so well—maybe better than I know myself!

Katarzyna

55:23

I assume that when we talk about speech disorders—not accents or similar issues—having a personalized model is quite useful, right?

Alexey

55:39

Of course. Especially when it’s difficult for you to use standard models. The personalized one can be a tool for communication. Today, we also discussed speech disorders, but there are also language disorders, especially as a result of neurological diseases, where individuals struggle to find the right words or use words in context. These issues are more connected to the content itself than to articulation.

Katarzyna

56:25

How does it work? For example, if I have a disorder, I cannot pronounce a specific word?

Alexey

56:33

You might not remember the right word in context, for example.

Katarzyna

56:39

That happens to me all the time.

56:42

Yes, it occurs to all of us from time to time.

Alexey

56:46

Especially in foreign languages.

Katarzyna

56:47

If it happens too frequently, it can become problematic.

Alexey

56:52

When it happens in your native language and interferes with your daily life, then it’s a problem.

Katarzyna

56:59

Absolutely. Then it’s a real issue because stuttering and other speech problems can occur to anyone, and that’s completely natural. However, if it becomes excessive, it leads to communication problems.

Alexey

57:24

Maybe this is something I should have asked you at the beginning: how do we actually use this? What are the applications? I might guess, given your work with the automotive industry, that what we discussed could be used in cars. Can you provide some examples?

Katarzyna

57:50

When you ask me about where speech recognition models can be used...

Alexey

57:58

Especially regarding disorders.

58:00 Assistive Applications: Communication Tools for People with Disorders

Katarzyna

58:00

Of course, in cars. But that wouldn’t be my first answer for people with speech disorders. It can be used as a communication tool because sometimes it’s hard for humans to understand atypical speech. A pre-trained, personalized model can do this more easily. So that would be my primary answer, as I think that’s the most important application today.

Alexey

58:47

How does it look in practice? Like, let's say I have an app on my phone, and I speak to the app, and then I show the result to someone I want to communicate with.

Katarzyna

59:00

For example, it's not common yet—common enough, but we're talking today about...

Alexey

59:04

I do this all the time with German.

Katarzyna

59:09

But we are not— I think you see any serious pronunciation problems in your case. We are discussing human-centered AI today, and yeah, AI shouldn't be the obvious one. The number of centers that dedicate their work to human-centered AI proves that this is an important topic and not obvious for everyone. Human needs should come first. It's not yet standard to give each person with serious disorders this kind of tool. But I think there is hope.

Alexey

59:55

What you're working on right now to make it possible.

Katarzyna

59:58

Yes, that's one small step. But...

1:00:02 Model Size & Deployment Constraints: Mobile and Edge Considerations

Alexey

1:00:02

Are these models heavy? Because especially when it comes to personalized models and fine-tuning—if we talk about mobile devices, then these apps need to run on devices, and not everyone has the latest iPhone Pro. They have to be conservative regarding resource consumption. I guess that's quite challenging.

Katarzyna

1:00:34

It's a challenge. One is creating a personalized model for a person—that's quite doable. But creating one that can be universal for many speech disorders makes things much more complicated. We’ll probably include some readings in the episode description. There are some studies from Asia for Korean and Chinese that managed to create such tools. We often talk about European languages, but let’s not forget about what’s happening a bit farther away from us.

Alexey

1:01:23

And when it comes to cars, how is it used? How is voice recognition used in cars? Like, play Spotify with Alexa or...?

Katarzyna

1:01:36

Yeah, you can ask it to behave in a certain manner. For example, if it...

Alexey

1:01:48

If I cannot pronounce "R," then please park, and the car has no idea what I'm talking about.

1:01:53 In-Car Voice Recognition: Automotive Use Cases and Limitations

Katarzyna

1:01:53

And it's parking, and it's parking! Everything you need and what is planned by the producers and car designers includes opening the windows, air conditioning, seat heating, steering wheel heating, radio, calling, etc. That’s also an interesting example—not for disordered speech but for recognition in general. For years, it was part of IR systems that developed a bit slower because the purpose was to make it work all by itself, even when not connected to the internet. So these built-in systems were more traditional, based on n-grams. Now things are changing, and LLMs are being introduced, so recognition is improving. Still, there are many videos on YouTube with Porsche drivers and others trying to convince their cars in Polish, Italian, Spanish, etc., to do something, and the cars are doing completely different things. So there is so much work to be done.

1:03:27 Notable Failure Examples: Elevator/Car Voice Recognition Humor

Alexey

1:03:27

There’s this hilarious video with two Scottish guys trying to go to the 11th floor in an elevator using voice recognition. Have you seen that?

Katarzyna

1:03:37

No, you have to send it to me!

Alexey

1:03:40

I’ll send it if you just Google...

Katarzyna

1:03:42

Alex, we’ll put it in the post like the icing on the cake.

Alexey

1:03:52

If I just Google "11 elevator," then there’s a video. I’ll include this in the description; it's amazing. So, I think we’ll run out of time.

Katarzyna

1:04:10

Sorry, but it was fantastic!

1:04:13 Closing Reflections: Human-Centered AI Priorities & Further Reading

Alexey

1:04:13

I think we covered only three questions out of—I don’t know how many we prepared, but it was...

Katarzyna

1:04:18

I think that's good! There’s still something to think about, something to read, to dive deeper into.

Alexey

1:04:27

I’m going to send the video to you right now. Then for the rest, I'll send it to Zoom, and I will also put it on YouTube. That should be a good way to end this interview today. There’s still so much to discuss. I think this video is like ten years old, if not more. You probably know the systems are better now.

Katarzyna

1:04:58

Ten years old and it’s still valid. We still have the same problems. I think the situation is a bit better, but probably such things still happen.

Alexey

1:05:13

Thanks, Kasha, for joining us today, for answering questions, and for sharing your experience and what you work on. That was amazing! I really enjoyed this, and I'm sure everyone else did too.

1:05:25 Episode Sign-off and Guest Thanks

Katarzyna

1:05:25

Thank you. Thank you for the invitation, and really congratulations on the great series of podcasts, but also for the fantastic platform that you created. I feel really impressed, and as I said at the beginning, I feel honored to be here.

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.

Want to learn more about our community?

How it started, who's here, and everything that goes on here: courses, events, Slack, and more.

About DataTalks.Club