Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf ·...

31
Computational speech modelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems Analysis Suomen laskennallisten tieteiden seura, 24.2.2011.

Transcript of Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf ·...

Page 1: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Computational

speech modelling

Jarmo MalinenAalto University,

Dept. of Mathematics and Systems Analysis

Suomen laskennallisten tieteiden seura, 24.2.2011.

Page 2: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

What is COMSPEECH?

COMSPEECH is multidisciplinary research project com-

bining phonetics, medicine, technology, and modelling.

Theoretical, computational and experimental research.

The long term aim of the project is a commercial design

tool for use in oral and maxillofacial surgery as well as

rehabilitation.

Suomen laskennallisten tieteiden seura, 24.2.2011. 1

Page 3: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

A few facts from medicine...

In industrialised countries, ≈ 200 000 surgical opera-

tions in the head and neck area are carried out each

year:

• Innate abnormalities or those acquired as a result of

distorted growth,

• cancers in the head and neck area, and

• traumas.

The operations have an effect on speech through, e.g.,

the acoustics and flow mechanics of the vocal tract.

Suomen laskennallisten tieteiden seura, 24.2.2011. 2

Page 4: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Suomen laskennallisten tieteiden seura, 24.2.2011. 3

Page 5: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

... and one more fact:

This can be modelled computationally.

Suomen laskennallisten tieteiden seura, 24.2.2011. 4

Page 6: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

What can be attained?

As a rather conservative estimate, at the moment

15% of these patients could benefit from customised

computer-aided design of surgical treatment and rehab-

ilitation required by, e.g., neural damage.

In industrialised countries, that makes at least 30 000

such patients each year.

In near future, advances in tissue science and engin-

eering will produce novel surgical methods that require

modelling based design tools.

Let me emphasise the basic research aspect, too!

Suomen laskennallisten tieteiden seura, 24.2.2011. 5

Page 7: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

What has already been done?

During 2006–2010:

• The pilot stage was completed at the end of 2010,

and the feasibility of critical parts of the project has

been verified.

• Five international publications.

• About two academic theses.

At the moment, we are a consortium of 15 researchers

from Aalto University, University of Helsinki, and Turku

University Central Hospital.

Suomen laskennallisten tieteiden seura, 24.2.2011. 6

Page 8: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Computational

models

Suomen laskennallisten tieteiden seura, 24.2.2011. 7

Page 9: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Short history of speech modelling

• H. von Helmholtz: Acoustic theory of vowels in 1863,

• G. Fant & al: Source–filter paradigm in practical

speech synthesis in 1960’s,

• J. Kelly and C. Lochbaum: First computer simulation

by a scattering model in 1962, and

• R. Carre, M. Mrayati & al: Distinctive Regions Model

relating anatomy to vowel characteristics in 1988.

Articulatory speech synthesis has been revolutionised

by recent advances in computational possibilities.

Suomen laskennallisten tieteiden seura, 24.2.2011. 8

Page 10: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Acoustical equations

The acoustics of the vowel production can be simulated

by using either Webster’s equation

Ψtt =c2

A(s)

∂s

(

A(s)∂Ψ

∂s

)

in [0, l]× R

or, for higher precision, 3D wave equation

Φtt = c2∆Φ in Ω× R

for velocity potentials Ψ and Φ that satisfy boundary

conditions at the glottis, lips, and walls of the vocal

tract Ω. Here A(·) is the area of transversal sections of

Ω.

Suomen laskennallisten tieteiden seura, 24.2.2011. 9

Page 11: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Research model (1)

Our research model is a simulator that is based on

• an incompressible laminar Bernoulli air flow that

produces an aerodynamic force...

• ...inducing vibrations in a damped mass-spring model

of vocal folds which modulates the air flow as well

as...

• ...produces sound pressure to a lossless acoustic

resonator model of the vocal tract (henceforth, VT),

realised using Webster’s equation.

Suomen laskennallisten tieteiden seura, 24.2.2011. 10

Page 12: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Research model (2)

The anatomic geometry of the vocal folds in the model

is highly idealised...

Suomen laskennallisten tieteiden seura, 24.2.2011. 11

Page 13: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Research model (3)

...but it compares well with measured data:

0 2 4 6 80

0.2

0.4

0.6

0.8

1

Time (ms)

Nor

mal

ised

flow

Breathy phonation

ModelLF

0 2 4 6 80

0.2

0.4

0.6

0.8

1

Time (ms)N

orm

alis

ed fl

ow

Normal phonation

ModelLF

0 2 4 6 80

0.2

0.4

0.6

0.8

1

Time (ms)

Nor

mal

ised

flow

Pressed phonation

ModelLF

These are the glottal pulses in breathy, normal, and

pressed phonation as inverse filtered from Prof. P. Alku.

Simulated in red, measured in blue.

Suomen laskennallisten tieteiden seura, 24.2.2011. 12

Page 14: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Modal locking to VT resonances

We have recently simulated soprano singing near the

first formant F1 (i.e., the resonance of the VT):

Time (s)

Fre

quen

cy (

kHz)

0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8

0.5

1

1.5

2

2.5

3

3.5

4

0 0.5 1 1.5 2 2.5 3 3.5 40

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Time (s)

F1 = 647 Hz

The experimental part of this work is under way.

Extension of earlier work by I. Titze & al., in 2008.

Suomen laskennallisten tieteiden seura, 24.2.2011. 13

Page 15: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Wave and Helmholtz equations

The wave/Helmholtz equations require more complic-

ated boundary conditions than Webster’s equation.

Cheap modelling of the exterior space?

The time-variant boundary condition at the glottis?

We have experimented with a Helmholtz solver with

rudimentary boundary conditions, using vowel geomet-

ries and speech signals from Prof. O. Engwall, KTH.

There is a correspondence of sound and picture but

a systematic error of about 3.5 semitones in the four

lowest resonance frequencies.

Suomen laskennallisten tieteiden seura, 24.2.2011. 14

Page 16: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Why do we use multiple models?

Up to 4 kHz, the wave equation and Webster’s equation

on nonpathological human VT give approximately the

same results (such as the formant positions).

At over 4kHz, the cross-mode resonances and bending

of the VT produce phenomena that Webster’s model

cannot detect.

The “production model” will be based on the wave

equation and precise geometriy of the VT.

The “research model” – based on Webster’s equation

– is developed further for use in numerically fast simu-

lations and sanity checks.

Suomen laskennallisten tieteiden seura, 24.2.2011. 15

Page 17: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Experimental research

Suomen laskennallisten tieteiden seura, 24.2.2011. 16

Page 18: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

How about the human experiments?

The vocal tract geometry Ω and the corresponding area

function A(·) is acquired with MRI from test subjects

(in clinical phase, from patients).

The boundary conditions at lips and glottis require

special models that include experimental parameters.

The resolution (hence, the applicability) of the model

depends crucially on the quality of the data, used for

parameter estimation and validation.

“No data, no research.”

Suomen laskennallisten tieteiden seura, 24.2.2011. 17

Page 19: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Data acquisition

Modelling requires simultaneous MRI and

speech recording.

...but the devil is in the details.

Suomen laskennallisten tieteiden seura, 24.2.2011. 18

Page 20: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

A list of things not allowed in MRI

• No metal or electronics inside the MRI machine,

• no ferromagnetic material inside the MRI room, and

• nothing to introduce artefacts in MR images.

• In addition, acoustic noise of 90dB (SPL) and a

strong EM field at 64 MHz must be tolerated.

Therefore, sound recordings must be carried out either

by optical or acoustical arrangements.

We use the latter approach.

Suomen laskennallisten tieteiden seura, 24.2.2011. 19

Page 21: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Sound collector and wave guides (1)

Separate channels for speech and noise samples:

Transmission properties of these channels are carefully

matched to facilitate analogue noise cancellation.

Suomen laskennallisten tieteiden seura, 24.2.2011. 20

Page 22: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Sound collector and wave guides (2)

The relative position of the sound collector and the

subject is shown in the laboratory picture on the left.

As shown on the right, the noise collector beam is

widened by shadowing it with a paraboloid in front.

Suomen laskennallisten tieteiden seura, 24.2.2011. 21

Page 23: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Microphone assembly

The wave guides (of length 3.0 m) lead to microphones

that are placed inside a sound-proof Faraday cage:

The speech and noise signals are then taken to an ad-

justable differential amplifier using RF-shielded cables.

Suomen laskennallisten tieteiden seura, 24.2.2011. 22

Page 24: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Pilot experiments in MRI

During three consecutive days in June 2010, 53 pilot

experiments were carried out.

The subject is a 30 years old healthy male with back-

ground in speech sciences and music.

The vovels [A], [e], [i], [o], [u], [y], [æ], and [œ] were

produced at 110 Hz and 137.5 Hz, using 8 s scans.

The same set of vowels was produced at 110 Hz, using

18 s scans.

The experiments were repeated in anechoic chamber to

get comparable sound data.

Suomen laskennallisten tieteiden seura, 24.2.2011. 23

Page 25: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

MRI materials

An example: Anatomy of [A] at 110 Hz and 137.5 Hz.

Suomen laskennallisten tieteiden seura, 24.2.2011. 24

Page 26: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Quality of sound data (1)

The data is assessed by comparing the sound samples

obtained immediately before and after the MRI noise.

Spectra of vowel [A] at 110 Hz, 8 s scan.

Suomen laskennallisten tieteiden seura, 24.2.2011. 25

Page 27: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Quality of sound data (2)

Sometimes the subject doesn’t perform perfectly:

Spectra of vowel [ae] at 110 Hz, 8 s scan.

Suomen laskennallisten tieteiden seura, 24.2.2011. 26

Page 28: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Quality of sound data (3)

The movement of the speech organs during MRI is by

far the dominant error source.

Out of 8 vowels at 110 Hz, 8 s scan, 4 are excellent

and 4 are satisfactory.

Out of 8 vowels at 137.5 Hz, 8 s scan, 2 are excellent

and 6 are satisfactory.

The sound data during longer scans (18 s) is typically

worse than satisfactory.

A real-time data rejection criterium is needed!

Suomen laskennallisten tieteiden seura, 24.2.2011. 27

Page 29: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

Dealing with the MRI noise

We use three approaches:

• arrange silent pauses during the MRI sequence using

external control,

• cleaning up the power spectra from “spikes” of the

MRI machine before formant extraction, and

• using advanced signal processing algorithms on spec-

trograms, such as the (modified) Richardson–Lucy

deconvolution from astronomy.

Suomen laskennallisten tieteiden seura, 24.2.2011. 28

Page 30: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

What are we doing right now?

• Processing and studying of the pilot sound material,

• preparing the MRI of orthognathic patients and fine-

tuning of the recording arrangement,

• imaging of dentition and MRI markers, and

• developing automatic extraction of vocal tract

boundary from the MRI data, FEM mesh genera-

tion, and area function estimation.

Suomen laskennallisten tieteiden seura, 24.2.2011. 29

Page 31: Computational speechmodelling - Aaltomath.aalto.fi/~jmalinen/MyPSFilesInWeb/Lt11.pdf · Computational speechmodelling Jarmo Malinen Aalto University, Dept. of Mathematics and Systems

That’s all, folks.Questions?

Computational speech modelling for oral and maxillo-

facial surgery.

Involved in the COMSPEECH -project:

Prof. O. Aaltonen, Prof. R.-P. Happonen, Dr. J. Malinen,

Dr. D. Aalto, Dr. T. Lukkari, Dr. R. Parkkola, Dr. J. Saunavaara,

Dr. T. Soukka, Dr. V. Turunen, Dr. M. Vainio, DI A. Aalto,

DI A. Hannukainen, M.Eng. T. Murtola, DI P. Palo, and

HLK J.-M. Luukinen.

Suomen laskennallisten tieteiden seura, 24.2.2011. 30