01.06.2015 Views

A Performance Analysis System for the Sport of Bowling

A Performance Analysis System for the Sport of Bowling

A Performance Analysis System for the Sport of Bowling

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Since <strong>the</strong> fundamental frequency and <strong>the</strong> minimum and maximum frequencies <strong>of</strong> <strong>the</strong><br />

wave<strong>for</strong>m have already been found, and <strong>the</strong> manner in which <strong>the</strong> frequency changes over<br />

time (monotonically increasing, with a possible inflection point, if roll out occurred) is<br />

known, it is easy to develop a method to locate <strong>the</strong> local maxima and minima <strong>of</strong> <strong>the</strong><br />

filtered wave<strong>for</strong>m.<br />

This is accomplished by starting at <strong>the</strong> beginning <strong>of</strong> <strong>the</strong> filtered sample array (which<br />

includes <strong>the</strong> pre-samples), and working through <strong>the</strong> array, looking <strong>for</strong> inflection points<br />

(those points where <strong>the</strong> wave<strong>for</strong>m changes direction). Each time an inflection point (a<br />

local minimum or local maximum) is found, <strong>the</strong> index <strong>of</strong> <strong>the</strong> inflection point is recorded<br />

in a separate array. Due to <strong>the</strong> monotonically increasing nature <strong>of</strong> <strong>the</strong> frequency <strong>of</strong> <strong>the</strong><br />

wave<strong>for</strong>m, once <strong>the</strong> distance (<strong>the</strong> number <strong>of</strong> samples) between <strong>the</strong> first two inflection<br />

points is found, that distance can be used to help estimate <strong>the</strong> location <strong>of</strong> <strong>the</strong> next<br />

inflection point.<br />

There are still two fractional revolutions that must be dealt with: from release until <strong>the</strong><br />

first peak, and from <strong>the</strong> last peak (or valley) to pin impact. Both <strong>of</strong> <strong>the</strong>se fractional<br />

values can be extrapolated from <strong>the</strong> angular velocity <strong>of</strong> <strong>the</strong> revolution immediate adjacent<br />

to each fractional value.<br />

Again let f be <strong>the</strong> sampling frequency (120 Hz), and j R be <strong>the</strong> index <strong>of</strong> <strong>the</strong> release sample,<br />

j 1,0 be <strong>the</strong> index <strong>of</strong> <strong>the</strong> sample that begins <strong>the</strong> first full revolution, j F be <strong>the</strong> index <strong>of</strong> <strong>the</strong><br />

sample that ends <strong>the</strong> last full revolution, and j P be <strong>the</strong> index <strong>of</strong> <strong>the</strong> pin impact sample, and<br />

ω 1 and ω F be <strong>the</strong> angular velocities during <strong>the</strong> first and last full revolutions <strong>of</strong> <strong>the</strong> ball,<br />

respectively, <strong>the</strong>n<br />

R R = ((j 1,0 - j R ) / f) · ω 1 ,<br />

and<br />

R P = ((j P - j F ) / f) · ω F ,<br />

where R R and R P are <strong>the</strong> fractional revolutions <strong>of</strong> <strong>the</strong> ball immediately after release and<br />

immediately be<strong>for</strong>e pin impact, respectively.<br />

The discussion in Section II established that <strong>the</strong>re would be at least 15-20 samples per<br />

revolution, allowing R R and R P to be resolved to at least 30° <strong>of</strong> rotation. Thus, it should<br />

be possible to count <strong>the</strong> total revolutions <strong>of</strong> <strong>the</strong> ball to within 0.1 revolutions, yielding a<br />

resolution <strong>of</strong> better than 1% <strong>for</strong> counts greater than 10 revolutions.<br />

Even though a resolution <strong>of</strong> 1% has been obtained in counting <strong>the</strong> total revolutions, <strong>the</strong><br />

angular velocity can only be resolved to about 4% <strong>for</strong> a rotation rate <strong>of</strong> 300 rpms, using<br />

<strong>the</strong> same technique. This discrepancy arises from <strong>the</strong> 120 Hz sampling frequency, which<br />

yields a time resolution <strong>of</strong> 8.333 msecs. Although <strong>the</strong> wave<strong>for</strong>m does not necessarily<br />

capture <strong>the</strong> exact peaks and valleys <strong>of</strong> <strong>the</strong> wave<strong>for</strong>m, it does at least capture a pair <strong>of</strong><br />

consecutive samples that <strong>for</strong>m an 8.333 msec "window" around each true peak or valley.<br />

It is possible to get around <strong>the</strong> sampling-induced resolution issue by interpolating<br />

between each <strong>of</strong> those pairs <strong>of</strong> values to obtain very good approximations <strong>of</strong> <strong>the</strong> true<br />

peaks and valleys <strong>of</strong> <strong>the</strong> wave<strong>for</strong>m.<br />

Figure 3-6 illustrates a simple interpolation technique <strong>for</strong> finding <strong>the</strong> "true" location <strong>of</strong><br />

<strong>the</strong> local maxima and minima <strong>of</strong> <strong>the</strong> filtered wave<strong>for</strong>m. By finding <strong>the</strong> intersection point<br />

<strong>of</strong> <strong>the</strong> slope lines <strong>of</strong> both sides <strong>of</strong> a peak or valley, <strong>the</strong> actual peaks and valleys can be<br />

accurately located. Two sample values are used to find each slope line. These samples<br />

47

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!