Sunday, 26 January 2025
Vegan Dog Food... it's complicated!!
Here is a link to a more sensible one, co-written with my colleague Alex.
Thursday, 16 June 2022
Very Short Range HRV
OK, this blog is not ready for publication yet. Essentially, there has long been a question about how long a recording should be in order to capture a given frequency power of heart rate frequency. In this paper, amongst other things, we test this with a computational experiment.
and we conclude.....
/to be continued.
Thursday, 12 May 2022
DeepGANnel
DeepGANnel …finally published …and here is a blog about it. So Blogging 101 says “your blog post should have a point”. So this was my first stumbling point. …what would be my point? It could, of course, be the power of AI (that’s what we use in the paper), or the genius of our team that developed the idea? Well, OK taking all that as read; how about a blog about the “Trials and Tribulations of Publishing a Crossover paper?” It will be preaching to the converted I expect. Long ago, as an early career scientist (PDRA), I submitted a nice little pharmacology paper to Journal of Physiology. Senior author shall remain nameless. This paper was rejected and this was somewhat of a shock to the said Senior Author: “I have never had a Journal of Physiology paper rejected before” he pronounced. A then colleague (now wife) whispered… “well he has now” which gave us all a good titter. The fail, was probably, not just my fault to be fair, but the aura of an impending change of tide. I bet the days are gone where a few influential Senior scientists have their pet journals with guaranteed publication. But here is the story of DeepGANnel's publication which as been... quite a journey!
I figured after chatting with Yalin, Jaume and Frans, oooh around 2018(?) that a deep neural network would probably be pretty good at identifying single molecule level activity in ion channel data records. Thing is, by eye, you can often see the openings and closings of these proteisn, and sort of filter out the crap in your head. But to have an algorithm do this is pretty tricky…. So I presumed some AI might be just the ticket to do this. It works in our hands, yes, we’ve had deployment problems, changes to the underlying TensorFlow package we used etc…. But the basic principle is sound. Published here. Blogged previously here.
But the thing that makes this development really tricky is the need for masses of labelled training data. Not just for ion channels, but scFRET, Nanopore or ECG etc. You can’t just record these training data on a regular rig and go, because you don’t have the “ground truth” necessary for supervised training… essentially, you have no way to know whether a molecule was really open or closed to check if the AI actually worked. We found some devious methods to get around that, but it left Numan and I wondering whether you could actually use a different neural network to create the training set with which you could later train a detection network?! …so a simple idea was to use a GAN (first heard of after Numan/Jaume told me about them I think).
Now the clever bit is really not our usage of a GAN, but the very idea of a GAN. Here’s how they work. One neural network draws essentially a random picture of a thing…. A second neural network tries to see if it looks like the real thing or not. They then wrangle against each other until the picture gets more and more realistic. Forger versus Art Inspector...
So to deploy for electrophysiological data; we kind of turn a graph into a picture and then off you go. Turning a graph into a digital picture and visa versa is really trivial since of course, in computing terms; a picture is just a matrix of numbers anyway.
One of the fun (relatively!) things about these networks is you can watch the neural networks “learn” in real time. I’ve made a couple of cartoons of the training process here: First the generator (forger) spews out nonsense…. But the discriminator (inspector/or art critic) keeps correcting it and gradually the generator starts to learn to produce the desired output.
The first draft models were created quickly by Numan, but there was a problem. We needed both the ion channel signal… and the underlying ground truth to be perfectly synchronised. There was, so far as we (or the reviewers!!) were aware, no existing way of doing this? Sure various methods for associating the picture (say 512x512) produced with a particular label (cat vs dog vs car), but not a pixel by pixel ground truth. So the “simple” trick we used was essentially to make a picture that was 512x2 pixels in shape. Sort of a two lane picture. The first 512 pixel lane is the current converted to a pixel grey scale value…. The second 512 pixel lane is the ground truth; probability of a channel being open or closed, again converted to pixel greyscale. So they train perfectly together.
And it works! We also tested it with an ECG record, as you can see above, it was fine with this too. The signal is not absolutely perfect, but pretty good. Anyway; now just needed to publish it.
Time Table:
Beginning of the year, 2019… tossing around these ideas for synthesis of electrophysiological data with deep networks (Jaume, Numan and I). Firstly using, so called “autoencoders” which rand quite nicely with 1 channel ECG data. That was February 2019. Then we started to try with the GAN approach.
13th December 2019 the name of the network; “Deep-GANnel” is coined…. Feb 2020 Numan published a conference abstract on this, but still just generating one channel of (unlabelled) data. The idea at this point was to then feed the output into a new network that would label it, datapoint by datapoint. For me this didn’t really cut the mustard; what we really needed was this full annotation coming right out of the generator. So we treated, as described above, the image then as a 512x2 (in fact many different widths) and hey presto it worked!
Initially, we thought we just wanted it to generate any old ion channel data, so rather foolishly, we fed a wide range of different ion channel phenotypes in. This was actually an epic fail. It was like feeding in the images of a horse and a monkey and expecting it to simulate a realistic animal….. no you want it to produce horses right? ….so just feed it horses. We realised you needed to feed in a seed of the exact type of ion channel you wanted it to simulate. Now it really worked well.
17th April 2020. First draft of the paper ….
25th June 2020. Submission numero uno: Frontiers in SomethingorOther.
10th July 2020
They’d had it for over a month; could not even find an appropriate editor and reviewer set. AI-versant ion channel physiologists obviously far too rare!
10th August 2020…. Frontiers (lovely office staff) still not found an Editor comfortable with dealing with this!! …So I officially withdrew Frontiers Submission to go elsewhere.
14th August 2020…. submitted to PlosONE!!
2nd Sept 2020… PlosONE start to admin process DeepGANnel.
2nd October 2020…. Rejected!!!! …moderate rejection. To me there are three possible responses to paper submission. 1) Never darken our door again, 2) Do a load more stuff… 3) Make some little changes. Option 4) “Sure!!”. Is not something I have ever seen!!!! So of course, there were some silly comments in the rejection (along with very good points!!), there always are, I don’t take it personally. I may have been unclear, they may have misunderstood, I may have misunderstood them etc etc…. But the main thing they wanted was statistical evidence our methods were better than previous and wider examples of use (we only gave one previously). Of course the first of these is strictly impossible. There is no statistical measure of “better” and so we added a whole series more ion channels, and also added UMAP and TSNE clustering to show, more objectively, how realistic the data are. Also, and this is something I enjoyed including… a table of strengths and weaknesses of our method. It was actually really nice to just ‘fess up to the limitations”!!! Less pressure. So often in publication, you are trying to make something look as good as possible. Total openness is refreshing!! All the data; all the code, are on GitHub and FigShare. Despite the disappointment the original rejection brought…. The next version is oh so much better!!!! So thanks to the co-authors AND the editor/reviewers for this …and I learned some new techniques in those fancy clustering methods. As always, I was introduced to them by Jaume.
Took over a year, all the extra channels and experiments, to go again.
9th December 2021
Third Submission:
OK, Admin fail here…. Some error in the format of our resubmission. I think I highlighted changes, but tracked changes were necessary.
12th December 2021
Submitted again, with the change in format. This time makes it through the office checks by 14th December 2021.
14th January 2022
Original Editor no longer able to be involved. For all I know, they might not be well or just too busy. Hope the latter, but never will find out.
21st January 2022
A new editor found!! Thanks so much!!
21st February 2022… REJECTED!. but a soft rejection really, kind of class “3” from above.
25th February 2022… resubmitted….
7th April 2022… admin office checks completed in PlosONE office and can move to editor… OMG. This means 6 weeks after submitting, we were told that it had passed formatting checks and would now be assigned to an editor, who would choose reviewers…. My heart sunk: Yet another delay!! This usually takes a couple of days max!
But just 4 days after it landed back on the Editor’s desk…. Yay… deep joy!
11th April 2022 ACCEPTED… notwithstanding technical requirements, releasing the data we promised we would, clarifying funding etc. a further month of fiddling about with that type of thing. And proofs, as much as you get with PlosONE.
10th May 2022….. fully published…. So it was, off and on about 3 years. Actually, by my standards this is typical or rapid :-)
And now on to the next paper…..
Friday, 26 June 2020
Some Selected Papers
Thursday, 28 June 2018
Tail Docking - Again!
Sunday, 29 April 2018
OARSI - Is pseudoscience making a come-back?
- Friendly and lovely people,
- Commitment to ultimately delivering improved patient care.
- Enthusiasm from so many people.
- Food (lack of lunches!)
- Sending hundreds of tweets from the official OARSI account without being able to give my own opinion (I'm way too professional :-).
- An apparently general acceptance of “placebo”, “contextual response” and “clinical opinion”.
![]() |
| The leucotome, device invented by Moniz |
- Well, it may be because they have.
- It might be because they are reeeaaaally bad at judging their own pain.
- It may be because they are embarrassed about how much trouble they are being and how much they have just cost/spent.
- It may be that they so desperately want the treatment to work they kid themselves, even though their pain is unchanged.
- It might be because they didn’t really have real osteoarthritis, but aches and pains to some other cause and these were now less bad; their chronic pain had “regressed to the mean”.
- It may be because they have given up, and accept there is nothing that can be done and decide to move on.
- It may be because the treatment was so unpleasant they say they feel better to avoid further treatment.
- The degree of pain prior to treatment is so variable, either intensity or frequency (or both) that is is literally impossible for patients to report accurately and they throw a bone to the investigator and guess on the low side after they have received treatment from an obviously well-meaning and earnest person.
Monday, 12 March 2018
Novichok/sarin/VX: The Science bit
Russia must be a great place to be a pharmacologist. Not only are they making pharmacology a sport they are making sport, basically, pharmacology. Russian sports stars seem to dine on nothing but drugs; who needs milk and sugar on their cereal when they could have vodka and meldromium?
Now Sergei Skripal. So questions: Why did they use novichok? and how does it work? How is it treated? What are the biological unknowns?
Why novichok? Well there is the political interpretation of which I am not qualified to answer. I am guessing they didn’t like him much (!) and wanted to make a very public statement that the KGB NEVER forgets. …but pharmacologically, novichok is very similar to VX and the magic of that, over say, sarin, will be it’s so-called ”*logP*” that’s a measure of how fat soluble a drug is. It’s one of the foremost chemical properties you think about when using drugs (medically). The point being that the more fat-soluble a drug is, the better it absorbs through the skin. VX itself has a much greater logP than good old fashioned sarin. Sarin would need to get in the body through mouth etc, but VX ought to absorb straight through the skin. That’ll be why. The next level of “why“ is why this family of drugs (organophosphates)? So many poisons,so little time. I don't have a crisp answer for this, but a guess: This family of drugs, the “organophosphates” were originally developed as pesticides. Most neurotoxic drugs are developed for research in minute quantities and quite tricky to deal with. The organophosphates were originally developed by the absolute bucket load and even dropped from planes. So it stands to reason that it must pretty easy to make in the large quantities you would also need for warfare. Yuk. What a thought.
How do novichok/VX/sarin work? Well that’s widely reported. Nerves communicate (signal to one another and to muscle) by release of “neurotransmitter” chemicals. …and it is important for this function that they act fast and are then removed from the system. In this case we are talking about nerves running to two major targets of interest, the diaphragm to allow breathing and the heart. The chemical in question is acetylcholine. When you breath, acetylcholine is released from the nerves and acts on (for example) the muscles of the diaphragm brings air in and out. The acetylcholine is then REMOVED from the tissue by the enzyme “acetylcholinesterase”. If it is not removed the muscle stays locked up and can’t relax…. you therefore can’t take another breath. Meanwhile, back at the heart, the heart rate would tend to increase to get some more of that oxygen-depleted blood around the system…. but it can’t, because acetylcholine, now at excessive levels acts at the heart to actively slow it. Usually, any ACh wafting about in the body is broken down in milliseconds in the actual place it is released (brain, heart, lung/diaphragm)… or just seconds if it over-spills into the blood. Now it is washing about slowing the heart and halting the breathing. Other effects? Of course, I anticipate some confusion, salivation and even stomach cramps…
How is it treated? It is widely reported that Vx and sarin are treated with atropine. This is a cheap and cheerful drug we use ourselves a lot experimentally (It speeds the heart in an interesting and predictable way). It is pretty safe, I have even seen a whole class (not mine!) given atropine as part of a class demonstration. It was originally a natural chemical extracted from belladonna. The story goes that Roman… ummmm… lady people in the “entertainment” industry of the time put it in their eyes; the pupillary dilation apparently conveys the impression that the wearer is full of lust? You know that look? …no me neither. Now a biological unknown. HOW atropine treats novichok/VX/sarin poisoning is NOT entirely clear. Let’s back up: Acetylcholine acts on two different classes of the target protein (“receptors”); so called muscarinic and nicotinic (yes nicotinic is the target also activated by cigarettes). The first of these targets (muscarinic) is found on the heart; the second (nicotinic) is found in the diaphragm. Yes, you will hear heaps of experts trotting out to tell you that it blocks the action of acetylcholine right? Wrong. Yes of course it does; but it only blocks muscarinics and typically you die to of nicotinic actions in the diaphragm. So this is my point (eventually); one expert after another trots out to explain that the muscarinic blocker atropine works by blocking the actions of acetylcholine even though they must know the fatal actions of novichok/sarin/VX mostly do no involve muscarinic protein targets!! So how does it really work? No one knows. OK, there is literature to suggest that, in contravention to 100 years of pharmacology, atropine has a small degree of “off-target effects” on the “wrong” type of acetylcholine target and this is JUST enough to save someone’s life. Other benefits will be that it speeds up the heart, under these circumstances that's a good thing. …the other unpleasant effects, salivation and cramps will be dealt with by atropine’s accepted actions. Of course (no time to check literature, but off the top of my head) oximes are also used. These seem to bind the organophosphate (VX/novichok/sarin) and take it out of action. Next, you’d have to keep people on a respirator until the agent eventually gets metabolised and clears. Eventually it should!!! Hang on in there guys.
Other recent Russian assassinations: http://uk.businessinsider.com/list-alleged-russian-assassinations-in-britain-litvinenko–2018–3
Tuesday, 30 January 2018
Do Lecturers Shit?
Answer: Yes indeed some do. This is because they are animals closely related to humans and they have feelings, similar in a number of ways, to humans. To get stressed and nervous, to one degree or another is a common feature of animals including humans and lectures.
2) Do lectures get sad when told their lectures are rubbish?
Answer: Strangely some do. It is not fully understood why, but it could be the many hours they put into it combined with some genetic materials in common with humans.
3) Do lectures go to shops?
Answer: yes I often see the Tweet or hear the words "I just saw Dr X in xxxx (name of shop)" and also I have heard the comment "I just saw lecturer x walking along the street". Both of these phenomena are entirely possible. Like humans, lecturers sometimes have to move from one physical space to another. Often this involves walking or other form of transport. In fact some lecturers have dens, called "homes" where they go at night for shelter. These are often "off campus" and so they have evolved methods to get from Uni to their den and this sometimes involves some element of walking.
4) Do lecturers shit?
5) Do lecturers have to spend much time preparing lectures?
6) Do lecturers mate?
Saturday, 4 February 2017
Please Don't Wake Me Up Before You Go-Go
![]() |
| I think the moral of this graph is you should definitely NOT wake me up before you go go. |
References:
Knight et al. 2016 J Am Heart Assoc, 2016; 5 (12): e005098
Mittleman MA, et al. 1995 Circulation; 92:1720-1725
Leor J. et al. 1996. N Engl J Med 1996; 334:413-419.
Wilbert-Lampen U et al. 2008; N Engl J Med358:475-483.
Willich, S. N., et al. 1992. Am J Cardiology, 70(1), 65–68
Disclaimer:
We are funded by the BBSRC




















