Friday 23 November 2018

Heal Force Extraction

Heal Force data extraction utility

This script will extract heart rate data from the Heal Force Prince 180D .DAT (or .ESK) files.

You will need to install and run the ECG Viewer Manager program to import the data from the device into your computer.

Choosing a file then use the 'Select' buttons followed by Ctrl+C to copy the data to the clipboard for export.

[Notes: ECG State: 1=below 0, 2=above 0, 129=QRS. A 300 Hz sampling rate is assumed. There is a 512 byte block of data that is ignored which probably contains useful information...]


Friday 19 October 2018

Preparing for a fast marathon is all about winning the training race

Winning the Training-race

Yet again I am trying to get into decent shape so that I can run a fast marathon. But, at the age of 52, running a sub-2:45 marathon is looking increasingly unlikely. I was not a runner as a kid and only started running a bit less than 10 years ago. I have completed 41 marathons but have yet to break 2:45. I know that to do it I will first need to win the training-race. By training-race I don't mean win a race in training, or even beat someone else or a previous time of mine on a training run. The training-race is the long period leading up to a marathon where the performance (hence the term race) is the main determinant of the marathon race time.

Redefining the meaning of race

A race is usually an event with a single fixed parameter. Most commonly races are of a fixed distance (e.g. 5K, 10K, half marathon etc). A variant of the fixed distance race is a race of poorly defined distance but all runners complete the same course. Cross-country races are a good example of that. Other races are of a fixed time where the aim is to cover as much distance as possible such as a 12 hour or 24 hour race. The training race is a race of undefined distance and undefined time that starts about 6-8 weeks before the 'real' marathon race. Whilst the training race seems a hard one to win, because neither the distance nor time are defined, your performance in that race is critical - it will determine how fast you can run the marathon you are training for. Most people don't realize that training is a race because the rules of the race aren't obvious - few coaches ever explain what the rules are. There are some parallels here with other races or competitions where the rules are unclear. The caucus-race (Alice in Wonderland) is such a race where everyone runs around in circles for an undetermined length of time before everyone is declared the winner. The rules here are simple, as long as you are 'in the race' and running around you will be one of the winners. In other competitions the rules are more complicated and less obvious, but nonetheless exist. Mornington Crescent is such an example.  Here the players submit to the pretence that rules exist - which, formally, they don't. Any player can win, at any time by saying; "Mornington Crescent". But, to achieve a real win the player must delay saying Mornington Crescent until it can be done so with great comic effect. The suspense generated by prevarications has to be carefully calibrated, in response to audience and player reactions, for the comic effect to work. The rules here are complex but the great comedians have an innate understanding of them.

Performance in one race predicts performance in another

We know that many types of human 'performance' can be predicted or estimated from other similar performances. This is a wide ranging observation. Someone who has an organized desk at work is also likely to have an organized filing cabinet, someone who wears expensive suits is likely to wear expensive shoes. Of course, there are going to be contradictions - but, the saying; "If You Want Something Done, Ask a Busy Person To Do It" has a good deal of truth to it. Someone who does a lot is likely to get a lot done. In many endurance sports we use this form of extrapolation to estimate race performances over different distances. In rowing the obvious example is Paul's Law whilst in running it is the Riegel formula. They are both equations that allow performance at one race distance to predict performance over a different distance. This form of performance-equivalence has become embedded within running in the form of age-graded performance tables. These tables work slightly differently from the Riegel formula in that they are based on the World Record performances at different distances of men and women of different ages. By way of example, as a 52 year old male who has recently completed a 5km road race in 20 mins, I would be ranked as a 73.3% age-grade. Assuming that the age-grade is some form of measure of my aerobic fitness then it would predict that I could run a 3:13:42 marathon - since that would also give a 73.3% age-grade for a 52 year old male. The Riegel formula is a little bit more aggressive, predicting a 3:11:49 marathon from a 20 min 5km. There are plenty of other examples of such predictive formulae that take one race effort and estimate performance over another distance. But, these races are single efforts - they take place at one point in time and are over relatively quickly. Would a formula that takes race performance over a longer period not be more accurate? This is where the training race becomes useful. It is not just a race we all do before a marathon (whether we intend to or not), it is also the training stress that determines our performance.

Defining the training race

Many scientists have tried to define what we might refer to as the training race - that is the combined set of parameters that can be used to predict marathon performance. Many of these predictors are just correlates of performance not causative. For instance, amongst the elite field having dark skin seems to correlate relatively well with performance. Some mistake correlation with causation and then attempt to justify the correlation with spurious assertions. The dark skin issue is just such an example where dark skin becomes the assertion that some athletes are genetically-gifted. Science seems to differ. There are very few genes that have been associated with endurance performance. Of course genes are important - but, the probably only determine a very small fraction of performance, and the number of important genes is likely to be very large indeed.
There are some factors that are both correlative and causative. Weight is a decent example of that. We know that most fast marathon runners are fairly light - and of course being light does not mean you will be able to run a fast marathon. But, if you are training for a marathon losing excess fat - again within reason - will probably result in better performances. It is very simple energetics - the less you weight the faster you travel for a given power output. So, weight probably belongs in the 'formula' that makes-up the definition of the training race. Marathon training will involve some optimization of weight, but it is not the primary determinant.
Of the attempts to correlate training performance with race performance the best that I have come across was a relatively short paper by Giovanni Tanda in 2011. In that paper, which I discuss elsewhere, he proposes that a combination of the number of miles run in the 8 weeks before the marathon and the time it took to run those miles is a good correlate of marathon performance. So, here we have a definition of the training race. It is not a fixed distance, or a fixed time but the output of a formula which includes both distance and time. This is not as complicated as Mornington Crescent, it is a simple collapse of two variables (distance and speed) into a single metric which is the marathon prediction. The winner of this training race is the person that can push this formula to the best marathon performance prediction. By that I mean, when training we need to understand that formula and stop thinking about either just speed or just distance and think about the way in which the two are mathematically combined to produce the marathon prediction.

The Training-Race - an eight week event of undefined distance and duration

So, all of this might sound a bit like waffle, but it isn't. There is a race to be won in training. It is real and we are all taking part. It is a race that determines the performance in the marathon. The winner of the training race is also, most likely, going to be the winner of the marathon. The training race is won by running as far as possible and as fast as possible for 8 weeks before the marathon. You can calculate who has won by putting the average distance and speed into the Tanda formula. The Tanda formula contains within it the mathematical relationship that governs how speed and distance trade. The person with the fastest predicted marathon time is the winner. They have pushed to two parameters (speed and distance) as far as possible. Of course, how you do that is the key question - how do you trade speed in training with distance. Is it better to run another 1 km fast or 5 km slower? These things can be calculated.

[Hastily written - due to be edited 19th Oct, 2018]

Friday 20 April 2018

Open Letter to Haruki Murakami

Dear Haruki,
Yesterday a colleague, who has an office opposite mine in the Department of Physiology, Development and Neuroscience here at Cambridge University (UK), stopped me just as I was about to get changed for my habitual lunchtime run to give me a copy of your book What I talk about when I talk about running. I confess I was slightly rude to him as I was in a rush to meet my running partner - but, when I saw that he had picked your book deliberately and inscribed it with some kind words - I fained a level of politeness, after all, Thorsten Boroviak is one of the politest people I know. I told him that I would read your book last night - and that is exactly what I did.

I had not come across any of your works, and I make it a general rule to never read books about running, so it was a new experience for me in more ways than one. I started reading it with some trepidation and a nagging concern that I would have to read what I hear about all too often - runners talking about running. Of course, my family would find that statement deeply ironic because our dinner time conversation is usually dominated by some form of running talk.

As I began to read, in many senses, my worst fears began to be confirmed. Here was a person, clearly passionate about running, who had labelled themselves as a runner of a particular type (3:30 marathon runner) on a gradual yearly decline to failure. You categorised your running, by mileage, into two groups and detailed occasionally your transition from building-up in training to tapering again as a pyramid. But, whilst I was impressed that you did not claim to know much about training and pace plays little role in the book, I was depressed as I read about the training in the months preceding each marathon.

The concept of training runs through the book with a continual comparison to the act of writing - something which comes far from easily to me. As a species we evolved to do a few things well by necessity of survival. We are good lovers, convincing liars (or possible intelligent sociopaths), excellent story tellers and superb runners. Without continual and effective reproduction, we would have disappeared long ago and part of that ability to acquire as many mating opportunities as possible relies on being able to hide our base instincts and portray our most attractive side. We are, as you say, not terribly nice people. The story telling is not just a way of cloaking our true nature but has played an important part in pre-history. Without handed-down tales of dangers, catastrophes, cautionary tales, great successes and hopes, human knowledge would have vanished with each generation. A novelist performs, in hard copy and lonely isolation, the function previously performed by the tribal elders in a more sociable form around the camp fire. The running bit was, of course, the critical requirement for each person - not just the next generation. It was the way we got our food - our reward. A successful hunt is much like a modern race, perhaps a marathon. But, it is one where successfully getting food is the equivalent of not just finishing, but finishing well. Perhaps a personal best, but more often than not simply getting to the end feeling that the execution was as good as it could have been. What I read in your book was a string - but, perhaps it was just one or two - failures. One time was expect, but something slower resulted.

I am of course a youngster - some 17 years younger than you. But, I run with a youngster who is 17 years younger than me (Kevin O'Holleran, a optical physicist here in the department). Quite why we run isn't clear - I guess it is little different from what you describe and certainly a lot more obsessive. We just run, and normally three times a day totally over 100 miles per week. I started running in my mid-forties just at the time you seemed to identify as the tipping point where age eats into performance. I too labelled myself as a 3:30 marathon runner, but by my late forties after about five mediocre years had managed to pull myself down to a 2:45 marathon - it was hard work and something I would have never thought possible until I applied my intellect to the process of training for a marathon. I guess this is where you and I differ. I looked at runners around me and found it hard to accept that they were better than me despite their better running style, youth and speed. In true Cambridge academic style I considered myself intellectually, and therefore also physically superior to them - I really am not a nice person!

I still run with a painful shuffle, pilling in as much training as possible such that suffering has become inevitable. Of course I will get slower as I age, but may be not yet. In three days time I will be running my 7th consecutive London Marathon - one each year since I started running - it will be the 38th marathon - if I finish. There will be no personal best this time since I only started training four weeks ago. But, like the last four, I hope to collect the race T-shirt so that I can place it - still within its sealed bag - at the back of my wardrobe.

Greetings,
Christof Schwiening, Cambridge, UK