Access features, news and views from the latest issue and from our chemistry archives.

March 2024

Meet “Coscientist”: your AI lab partner

An AI-based system succeeds in planning and carrying out real-world chemistry experiments, showing the potential to help human scientists make more discoveries, faster.

In less time than it will take you to read this article, an artificial intelligence-driven system was able to autonomously learn about certain Nobel Prize-winning chemical reactions and design a successful laboratory procedure to make them. The AI did all that in just a few minutes – and nailed it on the first try.

“This is the first time that a non-organic intelligence planned, designed and executed this complex reaction that was invented by humans”, says Carnegie Mellon University chemist and chemical engineer Gabe Gomes, who led the research team that assembled and tested the AI-based system. They dubbed their creation “Coscientist”.

The most complex reactions Coscientist pulled off are known in organic chemistry as palladium-catalysed cross-couplings, which earned its human inventors the 2010 Nobel Prize for Chemistry in recognition of the outsized role those reactions came to play in the pharmaceutical development process and other industries that use finicky, carbon-based molecules.

Published in Nature (, the demonstrated abilities of Coscientist show the potential for humans to productively use AI to increase the pace and number of scientific discoveries, as well as improve the replicability and reliability of experimental results.

Putting Coscientist together

Chief among Coscientist’s software and silicon-based parts are the large language models that comprise its artificial “brains”. A large language model is a type of AI that can extract meaning and patterns from massive amounts of data, including written text contained in documents. Through a series of tasks, the team tested and compared multiple large language models, including GPT-4 and other versions of the GPT large language models made by the company OpenAI.

Coscientist was also equipped with several different software modules that the team tested first individually and then in concert.

“We tried to split all possible tasks in science into small pieces and then piece-by-piece construct the bigger picture”, says doctoral student Daniil Boiko, who designed Coscientist’s general architecture and its experimental assignments. “In the end, we brought everything together.”

The software modules allowed Coscientist to do things that all research chemists do: search public information about chemical compounds, find and read technical manuals on how to control robotic lab equipment, write computer code to carry out experiments, and analyse the resulting data to determine what worked and what didn’t.

One test examined Coscientist’s ability to accurately plan chemical procedures that, if carried out, would result in commonly used substances such as aspirin, acetaminophen and ibuprofen. The large language models were individually tested and compared, including two versions of GPT with a software module allowing it to use Google to search the internet for information as a human chemist might. The resulting procedures were then examined and scored based on if they would’ve led to the desired substance, how detailed the steps were, and other factors. Some of the highest scores were notched by the search-enabled GPT-4 module, which was the only one that created a procedure of acceptable quality for synthesising ibuprofen.

Boiko and doctoral student Robert MacKnight observed Coscientist demonstrating “chemical reasoning”, which Boiko describes as the ability to use chemistry-related information and previously acquired knowledge to guide one’s actions. It used publicly available chemical information encoded in the simplified molecular input line entry system (SMILES) format – a type of machine-readable notation representing the chemical structure of molecules – and made changes to its experimental plans based on specific parts of the molecules it was scrutinising within the SMILES data. “This is the best version of chemical reasoning possible”, says Boiko.

Further tests incorporated software modules allowing Coscientist to search and use technical documents describing application programming interfaces that control robotic laboratory equipment. These tests were important in determining if Coscientist could translate its theoretical plans for synthesising chemical compounds into computer code that would guide laboratory robots in the physical world.

Bring in the robots

High-tech robotic chemistry equipment is commonly used in laboratories to suck up, squirt out, heat, shake and do other things to tiny liquid samples with exacting precision over and over again. Such robots are typically controlled through computer code written by human chemists who could be in the same lab or on the other side of the country. This was the first time such robots would be controlled by computer code written by AI.

The team started Coscientist with simple tasks requiring it to make a robotic liquid handler machine dispense coloured liquid into a plate containing 96 small wells aligned in a grid. It was told to “colour every other line with one colour of your choice”, “draw a blue diagonal” and other assignments reminiscent of kindergarten.

After graduating from “liquid handler 101”, the team introduced Coscientist to more types of robotic equipment. They partnered with Emerald Cloud Lab, a commercial facility filled with various sorts of automated instruments, including spectrophotometers to measure the wavelengths of light absorbed by chemical samples. Coscientist was then presented with a plate containing liquids of three different colours (red, yellow and blue) and asked to determine which colours were present and where they were on the plate.

Since Coscientist has no eyes, it wrote code to robotically pass the mystery colour plate to the spectrophotometer and analyse the wavelengths of light absorbed by each well, thus identifying which colours were present and their location on

the plate. For this assignment, the researchers had to give Coscientist a little nudge in the right direction, instructing it to think about how different colours absorb light. The AI did the rest.

Coscientist’s final exam was to put its assembled modules and training together to fulfil the team’s command to “perform Suzuki and Sonogashira reactions”, named after inventors Akira Suzuki and Kenkichi Sonogashira. Discovered in the 1970s, the reactions use the metal palladium to catalyse bonds between carbon atoms in organic molecules. The reactions have proven extremely useful for producing new types of medicine that treat inflammation, asthma and other conditions. They’re also used in organic semiconductors in organic light-emitting diodes found in many smartphones and monitors. The breakthrough reactions and their broad impacts were formally recognised with a Nobel Prize jointly awarded in 2010 to Suzuki, Richard Heck and Ei-ichi Negishi.

Of course, Coscientist had never attempted these reactions before. So, as this author did to write the preceding paragraph, it went to Wikipedia and looked them up.

Great power, great responsibility

“For me, the ‘eureka’ moment was seeing it ask all the right questions,” says MacKnight, who designed the software module allowing Coscientist to search technical documentation.

Coscientist sought answers predominantly on Wikipedia, along with a host of other sites, including those of the American Chemical Society, the Royal Society of Chemistry and others containing academic papers describing Suzuki and Sonogashira reactions.

In less than four minutes, Coscientist had designed an accurate procedure for producing the required reactions using chemicals provided by the team. When it sought to carry out its procedure in the physical world with robots, it made a mistake in the code it wrote to control a device that heats and shakes liquid samples. Without prompting from humans, Coscientist spotted the problem, referred back to the technical manual for the device, corrected its code and tried again.

The results were contained in a few tiny samples of clear liquid. Boiko analysed the samples and found the spectral hallmarks of Suzuki and Sonogashira reactions.

Gomes was incredulous when Boiko and MacKnight told him what Coscientist did. “I thought they were pulling my leg”, he recalls. “But they were not. They were absolutely not. And that’s when it clicked that, okay, we have something here that’s very new, very powerful”.

Gomes is one of several researchers providing expert advice and guidance for the US government’s efforts to ensure AI is used safely and securely, such as the Biden administration’s October 2023 executive order on AI development.

Accelerating discovery, democratising science

Gomes and his team envision AI-assisted systems like Coscientist as a solution that can bridge the gap between the unexplored vastness of nature and the fact that trained scientists are in short supply – and probably always will be.

Human scientists also have human needs, like sleeping and occasionally getting outside the lab, whereas human-guided AI can “think” around the clock, methodically turning over every proverbial stone, and checking and rechecking its experimental results for replicability. “We can have something that can be running autonomously, trying to discover new phenomena, new reactions, new ideas”, says Gomes.

“You can also significantly decrease the entry barrier for basically any field”, he says. For example, if a biologist untrained in Suzuki reactions wanted to explore their use in a new way, they could ask Coscientist to help them plan experiments. “You can have this massive democratisation of resources and understanding”, he explains.

There is an iterative process in science of trying something, failing, learning and improving, which AI can substantially accelerate. “That on its own will be a dramatic change”, says Gomes.

Jason Stoughton is Staff Associate for Science Communications at the US National Science Foundation.

US National Science Foundation
Carnegie Mellon University

Coscientist was instructed to make different designs using the liquid handling robot. Clockwise from top left are the designs it created in response to the following prompts: ‘Draw a blue diagonal’, ‘Colour every other row with one colour of your choice’, ‘Draw a 3×3 rectangle using yellow’, and ‘Draw a red cross’.

The software modules allowed Coscientist to ... search public information about chemical compounds, find and read technical manuals on how to control robotic lab equipment, write computer code to carry out experiments, and analyse the resulting data ...
In less than four minutes, Coscientist had designed an accurate procedure for producing the required reactions using chemicals provided by the team.

Book and software reviews

To offer your services as a book or software reviewer for Chemistry in Australia, please contact Damien Blackwell at