comp 150 developmental robotics
play

COMP 150: Developmental Robotics Instructor: Jivko Sinapov - PowerPoint PPT Presentation

COMP 150: Developmental Robotics Instructor: Jivko Sinapov www.cs.tufts.edu/~jsinapov Audio Processing and Computational Perception of Natural Sound Project Deadlines Project Presentations: Dec 5 and 7 Final Report + Deliverables:


  1. COMP 150: Developmental Robotics Instructor: Jivko Sinapov www.cs.tufts.edu/~jsinapov

  2. Audio Processing and Computational Perception of Natural Sound

  3. Project Deadlines • Project Presentations: Dec 5 and 7 • Final Report + Deliverables: Dec 1 • Deliverables: – Presentation slides + videos – Final Report (PDF) – Source code (link to github repositories)

  4. Undergraduate Research • Undergraduate research assistant positions available in my lab • 6-10 hours a week • Paid or for credit • Email me if interested

  5. Summer Internships in Robotics • Aurora Flight Sciences is hiring summer interns in Robotics, AI, ML • Email me if interested and I’ll forward you the email to which to respond

  6. Additional robotics internships • Rethink robotics • Toyota Research Institute • ….

  7. Tufts Summer Scholar Program • Tufts offers summer scholarships and stipends for undergraduates to stay and engage in research • Google “tufts summer scholar” to find out more • Deadline to apply: March 2 nd

  8. Why Sound?

  9. Why Sound? What actually happened: The robot dropped a soda-can

  10. Why Natural Sound is Important “…natural sound is as essential as visual information because sound tells us about things that we can't see , and it does so while our eyes are occupied elsewhere. “ “Sounds are generated when materials interact, and the sounds tell us whether they are hitting, sliding, breaking, tearing, crumbling, or bouncing . “ “Moreover, sounds differ according to the characteristics of the objects , according to their size, solidity, mass, tension, and material. “ Don Norman, “ The Design of Everyday Things ”, p.103

  11. Why Natural Sound is Important Sound Producing Event [Gaver, 1993]

  12. Types of Listening • Musical listening: – Pitch, timbre, tempo, masking, loudness • Everyday listening: – Directly perceiving the event and its structural properties (e.g., a big-engine car driving up behind you)

  13. “The distinction between everyday and musical listening is between experiences, not sounds”

  14. What do we hear? “… sound provides information about an interaction of materials at a location in an environment. We can hear an approaching automobile, its size, and its speed. We can hear where it is and how fast it is approaching. And we can hear the narrow, echoing walls of the alley it is driving along.”

  15. Why should a robot use acoustic information? Human environments are cluttered with objects that generate sounds Help a robot perceive events and objects outside of field of view Help a robot perceive material properties of objects, and form natural object categories

  16. What is Sound?

  17. What is Sound?

  18. What is Sound?

  19. What is Sound? ….from a computer's point of view, raw audio is a sequence of 44.1K floating point numbers arriving each second

  20. Sine Wave [http://www.audiophilejournal.com/what-is-a-hz-or-hertz-in-audio/]

  21. Sine Curve [http://clem.mscd.edu/~talmanl/HTML/SineCurve.html]

  22. Frequency • Measured in Hertz (Hz) • Named after Heinrich Hertz • 1 Hertz = 1 repetition per second • Typically denoted with the letter f

  23. Period • How long does one cycle take? • It is the reciprocal of the frequency • Measured in seconds • Typically denoted with the letter T

  24. Frequency vs Period Animation [http://en.wikipedia.org/wiki/Frequency]

  25. Frequency vs Period

  26. Amplitude (vertical stretch) 3 sin(x) [http://www.sparknotes.com/math/trigonometry/graphs/section4.rhtml]

  27. Frequency (horizontal stretch) [http://www.sparknotes.com/math/trigonometry/graphs/section4.rhtml]

  28. What is the Period and the Amplitude? [http://www.sparknotes.com/math/trigonometry/graphs/problems_3.html]

  29. What is the Period and the Amplitude? [http://www.sparknotes.com/math/trigonometry/graphs/problems_3.html]

  30. Sines vs Cosines [http://en.wikipedia.org/wiki/Sine_wave]

  31. Formula for the Sine Wave

  32. Formula for the Sine Wave • A, the amplitude, is the peak deviation of the function from its center position. • ω, the angular frequency, specifies how many oscillations occur in a unit time interval, in radians per second • φ, the phase, specifies where in its cycle the oscillation begins at t = 0.

  33. A function x(t) is periodic if we can find a T for which the following hold

  34. Sinusoidal waves of various frequencies Low Frequency High Frequency [http://en.wikipedia.org/wiki/Frequency]

  35. Spectrum [http://en.wikipedia.org/wiki/Spectrum]

  36. Light Spectrum [http://en.wikipedia.org/wiki/Frequency]

  37. [http://en.wikipedia.org/wiki/Spectrum_allocation]

  38. Standing Wave (shown in black, equal to the sum of the red and the blue waves traveling in opposite directions) [http://en.wikipedia.org/wiki/Wavelength]

  39. Fourier Series A Fourier series decomposes periodic functions or periodic signals into the sum of a (possibly infinite) set of simple oscillating functions, namely sines and cosines

  40. Approximation [http://en.wikipedia.org/wiki/Fourier_series]

  41. Approximation

  42. Filtering • Low-pass filter – passes only the low frequencies • High-pass filter – passes only the high-frequencies • Band-Pass Filter – passes only frequencies in a given range

  43. Band-Pass Filter [http://en.wikipedia.org/wiki/Band-pass_filter]

  44. Discrete Fourier Transform . . . .

  45. Discrete Fourier Transform

  46. Discrete Fourier Transform Frequency bin Time

  47. Research Question Can the DFT be used by a robot to perceive objects and their properties using sound?

  48. Research Question Can the DFT be used by a robot to perceive objects and their properties using sound? How should the robot associate a particular sound with an object?

  49. Object Exploration by a Robot

  50. Object Exploration by a Robot

  51. Objects [Sinapov, Weimer, and Stoytchev, ICRA 2009]

  52. Behaviors Grasp : Push : Shake : Tap: Drop :

  53. Audio Feature Extraction Behavior Execution: WAV file recorded: Discrete Fourier Transform:

  54. Audio Feature Extraction 1. Training a self-organizing map (SOM) using DFT column vectors:

  55. Audio Feature Extraction 2. Use SOM to convert DFT spectrogram to a sequence:

  56. Audio Feature Extraction 2. Use SOM to convert DFT spectrogram to a sequence: S i : (3,2) ->

  57. Audio Feature Extraction 2. Use SOM to convert DFT spectrogram to a sequence: S i : (3,2) -> (2,2) ->

  58. Audio Feature Extraction 2. Use SOM to convert DFT spectrogram to a sequence: S i : (3,2) -> (2,2) -> (4,4) -> ….

  59. Audio Feature Extraction 1. Training a self-organizing map 2. Discretization of a DFT of a (SOM) using column vectors: sound using a trained SOM is the sequence of activated SOM nodes over the duration of the sound

  60. Detecting Acoustic Similarity Auditory SOM Auditory SOM Sequence X i Sequence Y j Global Sequence Alignment Similarity very similar sim(X i ,Y j ) = 0.89

  61. Detecting Acoustic Similarity Auditory SOM Auditory SOM Sequence X i Sequence Y j Global Sequence Alignment Similarity not similar sim(X i ,Y j ) = 0.23

  62. Problem Formulation Model predictions: Object Recognition Model Sound S i Sequence: Behavior drop Recognition Model

  63. Acoustic Object Recognition Auditory Data Object Probability Estimates Dimensionality Reduction using SOM Auditory Recognition Model Discrete Auditory Sequence

  64. Recognition Model • k-NN: memory-based learning algorithm With k = 3: 2 neighbors 1 neighbors ? Test point Therefore, Pr(red) = 0.66 Pr(blue) = 0.33

  65. Recognition Model • SVM: discriminative learning algorithm

  66. Off-Line Evaluation • 10 trials performed with each of the 36 objects with each of the 5 behaviors • A total of 1800 interactions, about 12 hours • 10 fold cross-validation • Performance Measure for object and behavior recognition:t

  67. Evaluation Results Chance accuracy = 2.7 %

  68. Evaluation Results

  69. Recognition Video

  70. Estimating Acoustic Object Similarity using Confusion Matrix : similar Predicted → : similar 40 4 0 0 Actual 6 42 0 0 : different 0 0 21 6 0 0 8 35 : different

  71. Full Confusion Matrix for all 36 objects: t r e v n i ISOMAP Hierarchical Clustering ISOMAP Hierarchical Clustering

  72. (mostly) metal (mostly) metal Balls Balls objects objects Plastic Objects Plastic Objects Objects with Objects with (mostly) wooden (mostly) wooden Paper Objects Paper Objects contents inside contents inside objects objects

  73. Recognizing the sounds of objects manipulated by other agents

  74. Recognizing the sounds of objects manipulated by other agents

  75. Using Sound to Learn About Containers Griffith, S., Sinapov, J., Sukhoy, V., and Stoytchev, A. (2012) A Behavior-Grounded Approach to Forming Object Categories: Separating Containers from Non-Containers IEEE Transactions on Autonomous Mental Development, March 2012.

Recommend


More recommend