Determine speed of roulette ball through audio analysis?

In summary, the conversation centered around the idea of tracking the speed of a spinning roulette ball in real time through audio analysis. Various methods were discussed, such as using a spectrum analyzer, autocorrelation, and the Doppler effect. However, it was noted that the sound captured from a YouTube video may not be accurate due to lossy compression. Suggestions were made to calibrate the system with an optical measurement and to adjust the frequency range for more accurate results. Overall, the feasibility of using audio analysis for this purpose was questioned.
  • #1
fwbfwb
1
0
I'm trying to find a way to track the speed of a spinning roulette ball in real time through audio analysis, i.e. have a computer report the speed of the spinning ball it hears through a microphone.Here is a video of a spinning ball:

I've tried watching a real time spectrum analyser (FFT), but haven't found any dominant frequencies to focus on, and there was a lot of noise. It might be possible if I find a very specific range of bins to track but I haven't found any yet.

Here is a snapshot of the frequency domain 20 seconds in. It doesn't change much except get slightly quieter overall as the spin goes on.
f4cnkiB.png


Here is what the audio of one spin looks like in the time domain. My brain can see the trend of the ball's speed slowing, but tracking amplitude alone would not work with background noise like music or talking.
kHx2CYr.png
Any ideas? My brain can perceive the ball slowing when I listen so it must be somehow possible to get a computer to recognize it.
 
Physics news on Phys.org
  • #2
@fwbfwb
Hi. Great video of the ball rolling around the roulette wheel.
I must say, though, finally a rival has arrived to challange the champion "Watching Paint Dry".:rolleyes:

Seriously though, a good question.
Unfortunately, I cannot think of anything at the moment to add to help you your analysis.

except maybe to ask if,
You haven't found any occurance of repetative spikes, frequencies, etc on each revolution?
 
  • #3
My first reaction to this is that you could try autocorrelation of the time waveform. That would have the effect of finding the time interval between repeats of 'identical' clicks. Because the ball is slowing down, it may be wise to window the waveform.
It could be worth while calibrating your system with an optical measurement.
Is this a new idea for a Casino Heist?
 
  • Like
Likes fwbfwb
  • #4
what about using the Doppler effect?
If the microphone is not directly above or below the table you should be able to detect a rhythmic rise and fall in the pitch as the ball moves toward, then away from the microphone. That would at least give you the duration of each revolution, which should give you a rate of decay function that you can use to calculate the speed of the ball at any given point on any given orbit.
 
  • Like
Likes fwbfwb
  • #5
mrspeedybob said:
what about using the Doppler effect?
I'm not sure how you could implement that, in the presence of all the shash in the time and frequency domain data. `There will be a number of possible approaches but they would be better if they could use large numbers of samples in order to get the information out of all those apparently random values. Low pass filtering of the frequency data would be throwing away a lot of potentially useful data. Autocorrelation would look for repeats in time. But even then, as the speed is decreasing, it could be better to do something really smart and change the time steps, used in the integration to take the acceleration into account. That would require some idea of the acceleration involved - or perhaps, just assume linear acceleration and then sweep through, looking (and identifying) when the resulting waveform 'looks' best. A lot of trial and error processing, I guess but there are many packages that will do it at the push of a button.
 
  • #6
For what it's worth here is a spectrogram of the first spin in the video.
upload_2015-12-13_16-12-51.png

I can't make out any useful change of pattern.

(Generated using the freeware Audacity.)
upload_2015-12-13_16-12-51.png
 
  • Like
Likes fwbfwb
  • #7
DrGreg said:
For what it's worth here is a spectrogram of the first spin in the video.

I can't make out any useful change of pattern.

(Generated using the freeware Audacity.)View attachment 93313
The frequency scale on the attachment seems to have a lower limit of 300Hz (?- there are no labels on the axes so I may be making assumptions). The frequency range, relating to the speed of the ball would be around 10Hz (the rate it hits the sides of the dents on the wheel. Can you change the frequency range on the software to include the appropriate frequency?
Of course, there is the other issue of finding the actual speed of rotation of the wheel . . . . Analysis of the sound will only give the relative speeds.
 
  • #8
sophiecentaur said:
The frequency scale on the attachment seems to have a lower limit of 300Hz (?- there are no labels on the axes so I may be making assumptions). The frequency range, relating to the speed of the ball would be around 10Hz (the rate it hits the sides of the dents on the wheel. Can you change the frequency range on the software to include the appropriate frequency?
Of course, there is the other issue of finding the actual speed of rotation of the wheel . . . . Analysis of the sound will only give the relative speeds.
Sorry, I should have said the vertical scale is Hz and the horizontal scale is seconds.

Here's one which goes down 1 Hz, with a 16384-point Hanning window. (I tried other window sizes and types, but none seemed to reveal more detail. It's difficult to find the right trade-off between time-resolution and frequency-resolution.) The sampling rate is 48 kHz.

Is it my imagination, or is there something dropping from about 7 Hz to 4 Hz and then vanishing at 32 s?

We must bear in mind the sound has come from a youtube video and has therefore been subject to lossy compression. Some of the mush may be compression artefacts.

upload_2015-12-13_17-18-14.png


upload_2015-12-13_17-18-14.png
 
  • Like
Likes fwbfwb
  • #9
I think you could be right about the low frequency bits. There seem to be three definite horizontals (5,7,and 9 Hz ish). I wonder what the three of them mean. Plus there are a number of horizontals at higher frequencies. Your guess is as good as mine.
The "lossy compression" will certainly have done its bit to spoil those lf components. You don't hear them so compression won't look after them and they could even be non linear products.
It would be interesting to see what the same software makes of the original data.
 
  • Like
Likes fwbfwb

FAQ: Determine speed of roulette ball through audio analysis?

1. How does audio analysis determine the speed of a roulette ball?

Audio analysis uses sound waves to calculate the speed of a roulette ball. As the ball spins around the roulette wheel, it creates a distinct sound that can be recorded and analyzed. By measuring the frequency and amplitude of the sound waves, scientists can determine the speed of the ball at any given moment.

2. What equipment is needed for audio analysis of a roulette ball?

To analyze the speed of a roulette ball through audio, scientists typically use a high-quality microphone and a sound recording device. They may also use specialized software to analyze the sound waves and calculate the ball's speed.

3. Can audio analysis accurately determine the speed of a roulette ball?

Yes, audio analysis is a highly accurate method for determining the speed of a roulette ball. It is based on the laws of physics and does not rely on human judgment or error-prone visual observations. However, the accuracy of the analysis may be affected by background noise or other external factors.

4. How does the speed of a roulette ball affect the outcome of a game?

The speed of the roulette ball can have a significant impact on the outcome of a game. A faster ball may result in more unpredictable bounces, making it more difficult for players to predict where the ball will land. On the other hand, a slower ball may be more predictable and give players a better chance of placing successful bets.

5. Is audio analysis the only method for determining the speed of a roulette ball?

No, there are other methods for determining the speed of a roulette ball, such as using high-speed cameras or laser technology. However, audio analysis is often preferred because it is non-invasive, relatively low-cost, and can be done in real-time during a game.

Similar threads

Replies
5
Views
2K
Replies
7
Views
2K
Replies
10
Views
552
Replies
7
Views
7K
Replies
5
Views
965
Replies
5
Views
2K
Replies
2
Views
4K
Back
Top