Lately there’s been an awful lot of talking about ChatGPT – the Large Language Model (LLM) generative artificial intelligence engine from OpenAI. Based on 45TB (terabytes) of text-based training data and being the first LLM to surpass 100 billion parameters (learned variables from the training process), ChatGPT-3 (2020) is a powerful and high-profile tool that is changing the way that we interact with digital technology for learning and information retrieval. Or so we are told.
For the purposes of this exercise, I accessed ChatGPT-4 (March 2023) in the period between 25th May 2023 and 3rd June 2023. The training dataset size and the number of parameters generated are not publicly available for this version.
But what have LLMs ever done for chromatographers? Moreover, can a digital refugee like me use the tool effectively to advance my work in separation science?
I’m really a newcomer to this technology, recently having my first foray under the guidance of my son, who “simply couldn’t function without it” as a Physics undergraduate. Apparently, it’s an amazing assistant for writing new computer code! Anyway, after a few lessons in the basics and coming to the realisation that interactions with ChatGPT need to be more conversations than “one and done” questions, I started my investigation. Unlike other articles on the subject, which show the questions, the responses from ChatGPT and a commentary on the suitability of the answers, I’ve focused my research on what the LLM can deliver to the chromatography community and what needs to be done to get there. Of course, if you want to see the answers to each question, you can simply enter the questions/conversations as I’ve documented them. A further qualification is that I deliberately didn’t make this a “narrow and deep”, quantitative-type search. Rather, I wanted to explore various types of interactions that may result in useful information for chromatographers, but this should become obvious as we progress.
My first searches related to troubleshooting issues and the questioning was as follows:
The responses were very general, with nothing specific that I could put to action if I had this issue in the laboratory. I had to get more specific with each question to elicit something practical. There was nothing here that I couldn’t have obtained from similar Google searches.
Whilst these questions were answered with some good general information, once again there was nothing actionable. The search for a specific liner part number yielded only the names of major GC manufacturers and a suggestion to contact them.
Here, it was obvious that the LLM was agglomerating information from various elements of its dataset (which is current to September 2021) and “building the response” on the fly. Essentially, it was asking me to use leak detection fluid around the inlet with the GC (and therefore the gas flows) turned off. The final suggestion would not have been usable in terms of a practical process for leak checking a GC inlet; in fact, I would worry about the safety of some of the recommendations.
I have to say, whilst the answers to these two questions were still general, there were helpful suggestions for the types of extractables that may be seen when each of the different solvents are used. I appreciate that this is a niche question; however, it’s the type of information that is perhaps less accessible from a general web search.
In terms of providing anything useful for troubleshooting problems in the lab, I’m not seeing any benefit to the use of AI. ChatGPT-4 is telling me that it doesn’t have access to specific tables of information or specific literature that may help give more specific responses. Whilst the responses may be good to obtain “directions of further investigation” for the less experienced chromatographer, they tend to be wide-reaching and sometimes contradictory, so the “trust” level that must be established between the user and the technology is not being established in these early exchanges. As a colleague recently described it to me, you tend to put more weight behind someone’s response when you know what they have told you in the past has been correct or useful. I’m not feeling this with ChatGPT at this point. Furthermore, the LLM seems very quick to “fold” when challenged. Even with answers that are more or less accurate, when challenged, it comes back with an apology and an alternative suggestion, which is often less accurate than the previous one!
Let’s see what happens when I search for information which may be of help when planning a separation or analysing data.
What I got back was pretty much nonsense, and it didn’t get any better with some “coaching”. Let’s try something more straightforward.
Bingo – correct the first time. Thus, further research must be done on the limits of the model’s ability to produce useful SMILES information for more complex molecules.
For the benefit of readers, this is the SMILES string for 4-Dimethylaminophenol.
Norepinephrine is (R)-4-(2-amino-1-hydroxyethyl)benzene-1,2-diol (noradrenaline), and really nothing like the compound I was interested in. Once again, I’m losing trust in the model’s ability.
Turns out the model was not that great at looking up CAS numbers either. Eventually, it agreed with me after suggesting dipropylene glycol and pyrroloquinoline quinone disodium salt in the previous two responses. I then wondered, would it fair any better with physicochemical data?
This is close to the literature value that I found (Barratt MD; Toxicol In Vitro 10: 85-94 (1996)).
This is close to the ACD Labs predicted value that I found via ChemSpider (5.03).
ACD Labs predicted values were taken from ChemSpider (2.09) and Chemaxon (2.06).
The response indicates that it is not possible to calculate the correct value.
ACD Labs predicted values were taken from ChemSpider (3.89) and Chemaxon (3.82).
Here, I decided to include the full response from ChatGPT-4:
“To estimate the LogD value at pH 5.5 for dodecanoic acid (lauric acid), we need to consider its acid dissociation constant (pKa) and the ionization behavior at that pH.
The pKa of dodecanoic acid is approximately 4.88. At pH 5.5, which is lower than the pKa, the majority of dodecanoic acid will be in its protonated form (RCOOH) rather than the deprotonated form (RCOO-).
Since LogD represents the distribution coefficient between octanol and water, we need to consider the relative solubilities of the protonated and deprotonated forms in those phases.
As dodecanoic acid is more soluble in the aqueous phase when protonated, the LogD value at pH 5.5 is expected to be lower than the LogP value. While I don't have access to specific data or software to provide an exact LogD value at pH 5.5, it is likely to be lower than the LogP value of 4.92, reflecting the increased solubility of the protonated form in the aqueous phase at lower pH.”
As you can see, the logic is very flawed, and at this point I decided to turn my attention to other search types. I appreciate that all the above information could have been found from a Google search; however, I wanted to see if there was merit in exploring how deep we could go with conversations regarding optimisation of eluent pH. However, we never got out of the shallow end.
Let’s try something more specific on method development for HPLC.
The responses were very general and spectacularly misleading. For example, the following recommendation:
“Adjust the composition of the mobile phase to optimize the separation. For example, you can start with a gradient program ranging from 70% to 90% water and 30% to 10% acetonitrile over a suitable time period (e.g., 20-30 minutes).”
Here, I was pointed in the direction of PubChem and Google Scholar. Nothing trustworthy or useful resulted from this conversation.
Okay, I’m giving this thing one last try. How about a buffer calculation?
Following some reasonably sensible logic, the final part of the response was:
"Substituting the given values:
pH = 3.128 + log((0.0025 + [H+])/0.0175)
To solve this equation, we need the concentration of H+ ions. However, without additional information about the solution or the pH of the initial solution, it is not possible to provide an exact pH value using the Henderson-Hasselbalch equation alone.”
My head hurts.
I have many more types of searches to try, but in terms of my confidence in my correspondent’s responses, I would have more trust in the responses of P.T. Barnum or Walter Mitty.
I must admit that I’m very much a newbie to so-called “AI”. It’s possible that I just haven’t stumbled upon what LLMs are good for, in terms of helping the aged chromatographer. If you’ve had better experiences with “AI” for analytical sciences, please write and let me know. Perhaps I’m not focussing in on the areas where the model can shine. I dearly wanted this exercise to be a rabbit hole down which I disappeared for a conversation with a learned digital colleague. Either I got hung up in the test questions which establish early trust, or I’m just a digital refugee looking for a digital native to hold my hand and introduce me to the wonders of the new age. One thing is for sure, I am going to tell my son to check his code very carefully – who knows what might happen when executes his programs!
Analytical Challenges in Measuring Migration from Food Contact Materials
November 2nd 2015Food contact materials contain low molecular weight additives and processing aids which can migrate into foods leading to trace levels of contamination. Food safety is ensured through regulations, comprising compositional controls and migration limits, which present a significant analytical challenge to the food industry to ensure compliance and demonstrate due diligence. Of the various analytical approaches, LC-MS/MS has proved to be an essential tool in monitoring migration of target compounds into foods, and more sophisticated approaches such as LC-high resolution MS (Orbitrap) are being increasingly used for untargeted analysis to monitor non-intentionally added substances. This podcast will provide an overview to this area, illustrated with various applications showing current approaches being employed.
Using Chromatography to Study Microplastics in Food: An Interview with Jose Bernal
December 16th 2024LCGC International sat down with Jose Bernal to discuss his latest research in using pyrolysis gas chromatography–mass spectrometry (Py-GC–MS) and other chromatographic techniques in studying microplastics in food analysis.
The Use of SPME and GC×GC in Food Analysis: An Interview with Giorgia Purcaro
December 16th 2024LCGC International sat down with Giorgia Purcaro of the University of Liege to discuss the impact that solid-phase microextraction (SPME) and comprehensive multidimensional gas chromatography (GC×GC) is having on food analysis.