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

cs.hbg.psu.edu
from cs.hbg.psu.edu More from this publisher
01.06.2015 Views

are located on either side of the mid-point between the top and bottom of each side of a peak or valley. Recall that the indices of the peak and valley samples were recorded earlier. The intersection of the resulting two slope lines is considered as the true peak or valley for subsequent calculations. Each adjacent peak-valley pair defines a halfrevolution of the ball, and the lateral distance between them, measured in msecs, gives the period of that half-rotation. The angular velocity for that half-revolution is simply the inverse of the period. 140 120 Interpolated Peaks Half (180°) Revolutions Filtered Light Level 100 80 60 40 20 0 2200 Interpolated Valley 2250 2300 2350 2400 2450 2500 2550 2600 Milliseconds (since Release) Figure 3-6: Maxima and Minima Location Interpolation Having obtained the angular velocity for each revolution of the ball, a graph of the angular velocity of the ball with respect to time can be drawn, as shown in Figure 3-7. The raw angular velocity values that were just found are shown in blue, with each entry representing one-half revolution of the ball. Obviously, something has gone awry. The angular velocity of the ball should be monotonically increasing, yet the graph of the raw values exhibits a noticeable oscillation, especially in the first two-thirds of the waveform. Since the angular velocity of the ball can't actually be rising and falling as indicated by the raw angular velocity graph in Figure 3-7, some other factor must be at work here. By looking back at Figures 2-2a, 3-2, and 3-3, the cause of this oscillation can be deduced. Figure 2-2a depicts the ball rolling down the lane under several rows of ceiling lights. As stated before, these lights act as a point source, rather than as a uniformly distributed source of light. As the SMARTDOT module rotates up towards the ceiling, the light sensor faces backwards (toward the foul line) and "sees" the ceiling lights that it has already passed under. These lights are detected earlier than they "should" be, i.e., before the light sensor has rotated directly toward the ceiling. Consequently, the peak light level for that revolution occurs earlier than it should. As the ball continues down the lane, the module rotates toward the ceiling, and if it is not directly under a light, the light level gets darker (rather than brighter), and a dip occurs where the peak is expected to be. As the ball continues to rotate and travel down the lane, the module eventually aligns with a different ceiling light and another local peak is created. Figure 3-2 shows this phenomenon quite clearly. As the ball continues down the lane, these point sources eventually combine to look like a single light source, hence the lack of "side lobes" in Figure 3-3. 48

Figure 3-7: MASTER "Analysis" Screen Capture Depending on the position of the ball relative to the ceiling lights, and the current orientation of the module in relation to the ceiling, the directionality of the light sensor can cause it to "see" a ceiling light too early, while at other times it must rotate longer before encountering the next ceiling light. This action imposes a Doppler-like effect on the waveform the module captures. The differences must average out, since the ball will eventually transition from approaching a specific light source to moving away from that same source, but the effects that this Doppler effect has imprinted on the filtered waveform must still be dealt with. Referring to Figure 3-7 again, the green line superimposed over the blue raw angular velocity graph is a 5 th -order polynomial curve created by a generalized least squares curve-fitting function, using the raw angular velocity data as input [10,11]. This line yields the expected shape for the angular velocity curve. This is a "simple" fix that presents a good approximation for the actual response of the angular velocity of the ball. However, this method has its limitations. Unlike the actual monotonic response of the ball, the polynomial curve-fitting scheme allows the angular velocity to initially dip following release, and then recover as the ball travels down the lane. The 'C' source code from the MASTER application for locating the revolutions and finding the angular velocities has been included in Appendix D. 49

are located on ei<strong>the</strong>r side <strong>of</strong> <strong>the</strong> mid-point between <strong>the</strong> top and bottom <strong>of</strong> each side <strong>of</strong> a<br />

peak or valley. Recall that <strong>the</strong> indices <strong>of</strong> <strong>the</strong> peak and valley samples were recorded<br />

earlier. The intersection <strong>of</strong> <strong>the</strong> resulting two slope lines is considered as <strong>the</strong> true peak or<br />

valley <strong>for</strong> subsequent calculations. Each adjacent peak-valley pair defines a halfrevolution<br />

<strong>of</strong> <strong>the</strong> ball, and <strong>the</strong> lateral distance between <strong>the</strong>m, measured in msecs, gives<br />

<strong>the</strong> period <strong>of</strong> that half-rotation. The angular velocity <strong>for</strong> that half-revolution is simply <strong>the</strong><br />

inverse <strong>of</strong> <strong>the</strong> period.<br />

140<br />

120<br />

Interpolated<br />

Peaks<br />

Half (180°)<br />

Revolutions<br />

Filtered Light Level<br />

100<br />

80<br />

60<br />

40<br />

20<br />

0<br />

2200<br />

Interpolated<br />

Valley<br />

2250 2300 2350 2400 2450 2500 2550 2600<br />

Milliseconds (since Release)<br />

Figure 3-6: Maxima and Minima Location Interpolation<br />

Having obtained <strong>the</strong> angular velocity <strong>for</strong> each revolution <strong>of</strong> <strong>the</strong> ball, a graph <strong>of</strong> <strong>the</strong><br />

angular velocity <strong>of</strong> <strong>the</strong> ball with respect to time can be drawn, as shown in Figure 3-7.<br />

The raw angular velocity values that were just found are shown in blue, with each entry<br />

representing one-half revolution <strong>of</strong> <strong>the</strong> ball.<br />

Obviously, something has gone awry. The angular velocity <strong>of</strong> <strong>the</strong> ball should be<br />

monotonically increasing, yet <strong>the</strong> graph <strong>of</strong> <strong>the</strong> raw values exhibits a noticeable<br />

oscillation, especially in <strong>the</strong> first two-thirds <strong>of</strong> <strong>the</strong> wave<strong>for</strong>m. Since <strong>the</strong> angular velocity<br />

<strong>of</strong> <strong>the</strong> ball can't actually be rising and falling as indicated by <strong>the</strong> raw angular velocity<br />

graph in Figure 3-7, some o<strong>the</strong>r factor must be at work here.<br />

By looking back at Figures 2-2a, 3-2, and 3-3, <strong>the</strong> cause <strong>of</strong> this oscillation can be<br />

deduced. Figure 2-2a depicts <strong>the</strong> ball rolling down <strong>the</strong> lane under several rows <strong>of</strong> ceiling<br />

lights. As stated be<strong>for</strong>e, <strong>the</strong>se lights act as a point source, ra<strong>the</strong>r than as a uni<strong>for</strong>mly<br />

distributed source <strong>of</strong> light. As <strong>the</strong> SMARTDOT module rotates up towards <strong>the</strong> ceiling, <strong>the</strong><br />

light sensor faces backwards (toward <strong>the</strong> foul line) and "sees" <strong>the</strong> ceiling lights that it has<br />

already passed under. These lights are detected earlier than <strong>the</strong>y "should" be, i.e., be<strong>for</strong>e<br />

<strong>the</strong> light sensor has rotated directly toward <strong>the</strong> ceiling. Consequently, <strong>the</strong> peak light level<br />

<strong>for</strong> that revolution occurs earlier than it should.<br />

As <strong>the</strong> ball continues down <strong>the</strong> lane, <strong>the</strong> module rotates toward <strong>the</strong> ceiling, and if it is not<br />

directly under a light, <strong>the</strong> light level gets darker (ra<strong>the</strong>r than brighter), and a dip occurs<br />

where <strong>the</strong> peak is expected to be. As <strong>the</strong> ball continues to rotate and travel down <strong>the</strong><br />

lane, <strong>the</strong> module eventually aligns with a different ceiling light and ano<strong>the</strong>r local peak is<br />

created. Figure 3-2 shows this phenomenon quite clearly. As <strong>the</strong> ball continues down<br />

<strong>the</strong> lane, <strong>the</strong>se point sources eventually combine to look like a single light source, hence<br />

<strong>the</strong> lack <strong>of</strong> "side lobes" in Figure 3-3.<br />

48

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

Saved successfully!

Ooh no, something went wrong!