Kyle Boddy Entrepreneur, Hacker, Biomechanics Researcher, Baseball Lover.

7Sep/110

Why Understanding Particle Physics is Vital to Understanding Baseball Pitching

Baseball coaches and gurus are constantly trying to simplify the baseball pitching motion to sell services and products. To me, this is intellectually dishonest and does a very large disservice to the chaotic nature of kinesiology and biomechanics. The best way I can explain this is by letting Richard Feynman do it. Since I can't figure out how to embed a YouTube video at a certain time, click here for the explanation in the latest Symphony of Science video.

The transcript of his short speech is:

"It's very hard to imagine all the crazy things that things really are like. 'Electrons act like waves,' no they don't exactly. 'They act like particles,' no they don't exactly."

People get frustrated when statements like this are made! Feynman's rebuttal was to say that if he simplified the argument for you any further, he'd be lying to you about how it works. The same holds true in baseball pitching and kinesiology in general.

First of all, most baseball coaches are very ignorant when it comes to the actual, very real classical mechanics of throwing a baseball. Example statements by these coaches that are said when trying to fix someone's "mechanics" are:

  • Bend your back when you release the ball
  • Stride farther to increase fastball velocity
  • Grab some dirt on the way down

But even "enlightened" coaches will say psuedo-scientific things like:

  • Scapular loading stretches out the muscles in the shoulder and increases the stretch-shortening cycle
  • The faster the hips and shoulders turn, the more velocity can be imparted to the baseball
  • Your muscles are like a rubber band - stretch them out before contracting them to throw harder

The body is more than a series of levers, pulleys, and rope tied together, just like our universe is more than the simple answer of 12 particles of matter and 4 forces of nature. It's about the interaction between these items that we seek to understand - something we're very far away from in both disciplines, I might add. The famous double-slit experiment demonstrates the duality of waves and particles. Feynman famously said that the entire mystery of quantum mechanics could be understood through the double-slit experiment, and there are multiple interpretations of understanding this experiment. Peter Shor put it very well when he said:

Interpretations of quantum mechanics, unlike Gods, are not jealous, and thus it is safe to believe in more than one at the same time. So if the many-worlds interpretation makes it easier to think about the research you’re doing in April, and the Copenhagen interpretation makes it easier to think about the research you’re doing in June, the Copenhagen interpretation is not going to smite you for praying to the many-worlds interpretation. At least I hope it won’t, because otherwise I’m in big trouble.

The same is true about the understanding of kinesiological phenomenon like the Stretch-Shortening Cycle. We think we understand how this works as exercise scientists, but the mechanism of action remains unknown. This is much simpler to understand than the double-slit experiment, of course, but the problem plagues this phenomenon as it does with many indescribable things that seem to be true.

Research exists that show that the forces on the elbow present when a pitcher is throwing 90+ MPH is enough force to rupture the ulnar collateral ligament, yet a pitcher can throw for years without severe damage to this ligament. We think we know how the muscles in the forearm help to protect the elbow depending on the angular velocities of the arm, but we do not know. The truth, simply put, is that the forces required to throw this hard are enough to rupture the UCL, period. So why doesn't the UCL rupture in all athletes? And why do some UCLs rupture at speeds much lower than 90 MPH? Does it have to do with the positioning of the forearm at release, or how the inertial mass of the baseball is achieved? All good questions, all without real, true answers - and it's exceedingly likely that there will never be concrete answers to these questions in my lifetime.

Others have said the job of coaching (and teaching) is to simplify a subject matter so that people can understand it. "The duality of waves and particles is too confusing, can't you simplify it," someone might ask? The ultimate answer, of course, is:

I'm not going to lie to you so you can feel good about understanding something that no one understands. If you want that, there are plenty of coaches who have never picked up a textbook on kinesiology or physics who will tell you things that will satisfy you.

31Aug/110

The Pleasure IS Hard Work, Not the Outcome

I had two conversations that inspired me to make this blog post. Last night I had a lengthy conversation about some career opportunities that I may or may not have down the line in addition to various topics that always creep into our late-night conversations, and today I had a short talk with another close friend of mine that I don't see all that often. What came up in both conversations is the fact that I like to work hard on difficult to solve problems, mostly related to baseball. The first person shares this love for hard work with me, though in a different realm - so we commiserate easily about that. The second person does not, however - he's incredibly frustrated at his job where he busts his ass and has little energy afterwards to pursue opportunities that he likes to do.

My second friend told me today that he's very proud of me. Knowing that he probably wasn't referring to my newborn son, I asked him: "Proud of what?" He said: "You pursue your dreams, and this opportunity that you're involved with now seems like a dream opportunity finally come to life due to all your hard work!"

I reflected for a bit, and it made sense why he was burnt out from hard work at his day job and frustrated with some aspects of his life. (He is generally a very positive and happy person, lest I make it sound like he's always negative.) I told him: "Achieving the goals and ends I have for myself are the least important part of my life. I take great pleasure in the hard work I do to pursue these goals that I have - I do not expect to be content when I reach these mid-term goals that I have for myself." He responded that he wished he had energy to pursue some of the goals he had but that his day job sucked much of the life out of him, and I told him: "Your day job is what it is. Leave it there. My day job often frustrates me due to its complexity, but at the end of the day, we are both employed, earning a pretty good salary, and if this is what we fall back on, then that's pretty good. Cherish the fact that you will have the opportunity to work hard on projects you love. Whether or not they bear fruit is meaningless."

I give my Introduction to Political Science professor (in junior college) a lot of credit for enlightening me to process-oriented concepts; a life philosophy that was ironed out by studying sabermetrics and the Moneyball revolution.

My first friend put it very succinctly: "The opportunity to put in hours and hours of hard work on something that has meaning to you is a very rare opportunity in the world."

When I summed all this up for my second friend, he seemed to understand. I hope he is able to find peace and the time to find the same opportunity that I've been given, for it is the greatest gift that I have in my life.

27Aug/110

WiiMote, Motion Plus, Accelerometers, Gyroscopes, Baseball Pitching, and What it All Means

I am working on a much larger post (and page, and even separate website) to detail my work with modeling baseball biomechanics, but I made a post that I want to catalog here on my blog for sharing and archival purposes. This was originally written on a messageboard, so if the formatting is off, I apologize.

---

Here's a great video about accelerometers and gyroscopes:

http://www.youtube.com/watch?v=s19W-MG-whE

What do I really care about when I'm using the Wii parts? Well, to build a fully functioning Inertial Mass Unit (IMU) to get 1:1 motion capture/control, I need to do what they demonstrate above. However, this is very complicated and requires 6 DOF. The degrees of freedom are:

Moving up and down (heaving)
Moving left and right (swaying)
Moving forward and backward (surging)
Tilting forward and backward (pitching)
Turning left and right (yawing)
Tilting side to side (rolling)

I really only care about what the forearm is doing in relation to the elbow; this eliminates the first three DOF. Fortunately for me, the first 3 DOF are handled by accelerometers and the last 3 DOF are handled by gyroscopes. What matters the most is tracking:

-Humeral internal rotation velocity rate of change (pitch)
-Forearm pronation/supination rate of change (roll)

And to a lesser extent:

-Ulnar/radial degrees of flexion rate of change (yaw)

So the next step is synchronizing what I see on high-speed two-dimensional frontal plane (side view) video and what I get from the gyroscopes. By doing this, I can nearly eliminate the need to have a four or five high-speed camera system that uses Direct Linear Transformation to recreate a three-dimensional model of a pitcher. This is awesome, because DLT is both ****ing ridiculously time intensive as well as somewhat expensive due to the need for 4+ high-speed cameras ($150 each minimum with current consumer technology) and the software to handle it ($50, but it's very bare bones).

It's cool to be the guy doing the most to push low-cost / DIY biomechanical analysis of amateur athletics, but it also means I have no peer groups to work with. The Internet helps, but very few people are working with this kind of technology to produce the stuff I want to make. It's both exciting to be a pioneer in a field and incredibly frustrating because I have no formal education in physics or mechanical engineering, so I need to read pretty much everything I can get my hands on to understand it all.

I'd be remiss if I didn't mention that it's a bit terrifying that I could very well be wasting a lot of my time from an application/technology standpoint. If this product is so good (and I believe it is), then it already should exist given that the underlying technologies have been around for some time, though it can be said that it's only been affordable since the Wii and smartphones have given rise to cheap small consumer electronics for accelerometers and gyroscopes - not very long. But there's no proven market for what I want to sell, and it will never be huge.

Fortunately, I see this as an awesome opportunity to learn about science and to contribute - however marginally - to the field. Science and technology are two wholly separate disciplines, and as Richard Feynman famously said about his work: "I do things for the pleasure of finding things out."

26Apr/112

Mass Geolocation Script (PHP)

I recently wrote a mass geolocation script in PHP since Google seems to be taking down all the websites that offer this vital service. Right now it:

  • Checks a table for records without lat/long coordinates
  • Sends those records' addresses to Google's geolocation API
  • Updates your records with the lat/long coordinates

It checks for the "#" sign and handles it since Google has problems with translating "2020 Anywhere Place #200" as a real address, but there are probably other errors I haven't adequately checked for.

At the moment it updates records that are missing lat/long coordinates and writes zeroes into those fields if it can't geolocate the address correctly. As a result, if you run the script again, it will assume those records were updated correctly and will pass over them, since they are not null. This is a known issue and is one (of many) areas of improvement for the script.

I didn't want to spend a ton of hours on the script to make it a full-fledged awesome service, since Google doesn't seem to like that. It's just a basic script that handles common problems and works well enough.

You can get it over at my GitHub repo page for GeoCode. Enjoy.

20Apr/110

Football Outsiders is a Joke

This article is terrible and I'm not really going to explain why, but anytime you see this kind of language:

-were chosen in the first two rounds
-had at least 33 games started in college
-completed at least 58 percent of passes in college

You can be reasonably sure the author is either lying, stupid, and/or dishonest. Note that these three traits are not mutually exclusive from one another.

5Apr/110

Humor: Recursion

Ah, Google.

Awesome.

4Apr/110

Newest XAMPP Doesn’t Work as Expected

I was going to type up a giant thing about why the newest XAMPP doesn't work well with MySQL because it's packaged with a beta PHP version and stuff... but I honestly don't want to elaborate. Just know that I wasted 4-6 hours of my life and about an hour of Site5's support because of the newest XAMPP being a beta product without the label.

If you use Windows, don't use XAMPP 1.7.4. Use 1.7.3 and get it from the SourceForge archive. Trust me.

Tagged as: No Comments