A researcher has just finished writing a scientific paper. She knows her work could benefit from another perspective. Did she overlook something? Or perhaps there’s an application of her research she hadn’t thought of. A second set of eyes would be great, but even the friendliest of collaborators might not be able to spare the time to read all the required background publications to catch up.
Rapid advances in AI and ML have given way to programs that can generate creative text and useful software code. These general-purpose chatbots have recently captured the public imagination. Existing chatbots—based on large, diverse language models—lack detailed knowledge of scientific sub-domains.
By leveraging a document-retrieval method, Yager’s bot is knowledgeable in areas of nanomaterial science that other bots are not. The details of this project and how other scientists can leverage this AI colleague for their own work have recently been published in Digital Discovery.
Rise of the robots
“CFN has been looking into new ways to leverage AI/ML to accelerate nanomaterial discovery for a long time. Currently, it’s helping us quickly identify, catalog, and choose samples, automate experiments, control equipment, and discover new materials. Esther Tsai, a scientist in the electronic nanomaterials group at CFN, is developing an AI companion to help speed up materials research experiments at the National Synchrotron Light Source II (NSLS-II).” NSLS-II is another DOE Office of Science User Facility at Brookhaven Lab.
At CFN, there has been a lot of work on AI/ML that can help drive experiments through the use of automation, controls, robotics, and analysis, but having a program that was adept with scientific text was something that researchers hadn’t explored as deeply. Being able to quickly document, understand, and convey information about an experiment can help in a number of ways—from breaking down language barriers to saving time by summarizing larger pieces of work.
Watching your language
To build a specialized chatbot, the program required domain-specific text—language taken from areas the bot is intended to focus on. In this case, the text is scientific publications. Domain-specific text helps the AI model understand new terminology and definitions and introduces it to frontier scientific concepts. Most importantly, this curated set of documents enables the AI model to ground its reasoning using trusted facts.
To emulate natural human language, AI models are trained on existing text, enabling them to learn the structure of language, memorize various facts, and develop a primitive sort of reasoning. Rather than laboriously retrain the AI model on nanoscience text, Yager gave it the ability to look up relevant information in a curated set of publications. Providing it with a library of relevant data was only half of the battle. To use this text accurately and effectively, the bot would need a way to decipher the correct context.
“A challenge that’s common with language models is that sometimes they ‘hallucinate’ plausible sounding but untrue things,” explained Yager. “This has been a core issue to resolve for a chatbot used in research as opposed to one doing something like writing poetry. We don’t want it to fabricate facts or citations. This needed to be addressed. The solution for this was something we call ’embedding,’ a way of categorizing and linking information quickly behind the scenes.”
Embedding is a process that transforms words and phrases into numerical values. The resulting “embedding vector” quantifies the meaning of the text. When a user asks the chatbot a question, it’s also sent to the ML embedding model to calculate its vector value. This vector is used to search through a pre-computed database of text chunks from scientific papers that were similarly embedded. The bot then uses text snippets it finds that are semantically related to the question to get a more complete understanding of the context.
The user’s query and the text snippets are combined into a “prompt” that is sent to a large language model, an expansive program that creates text modeled on natural human language, that generates the final response. The embedding ensures that the text being pulled is relevant in the context of the user’s question. By providing text chunks from the body of trusted documents, the chatbot generates answers that are factual and sourced.
“The program needs to be like a reference librarian,” said Yager. “It needs to heavily rely on the documents to provide sourced answers. It needs to be able to accurately interpret what people are asking and be able to effectively piece together the context of those questions to retrieve the most relevant information. While the responses may not be perfect yet, it’s already able to answer challenging questions and trigger some interesting thoughts while planning new projects and research.”
Bots empowering humans
CFN is developing AI/ML systems as tools that can liberate human researchers to work on more challenging and interesting problems and to get more out of their limited time while computers automate repetitive tasks in the background. There are still many unknowns about this new way of working, but these questions are the start of important discussions scientists are having right now to ensure AI/ML use is safe and ethical.
“There are a number of tasks that a domain-specific chatbot like this could clear from a scientist’s workload. Classifying and organizing documents, summarizing publications, pointing out relevant info, and getting up to speed in a new topical area are just a few potential applications,” remarked Yager. “I’m excited to see where all of this will go, though. We never could have imagined where we are now three years ago, and I’m looking forward to where we’ll be three years from now.”
For researchers interested in trying this software out for themselves, the source code for CFN’s chatbot and associated tools can be found in this GitHub repository.
More information: Kevin G. Yager, Domain-specific chatbots for science using embeddings, Digital Discovery (2023). DOI: 10.1039/D3DD00112A

News
Revolutionary Cancer Vaccine Targets All Solid Tumors
The method triggers immune responses that inhibit melanoma, triple-negative breast cancer, lung carcinoma, and ovarian cancer. Cancer treatment vaccines have been in development since 2010, when the first was approved for prostate cancer, followed [...]
Scientists Uncover Hidden Protein Driving Autoimmune Attacks
Scientists have uncovered a critical piece of the puzzle in autoimmune diseases: a protein that helps release immune response molecules. By studying an ultra-rare condition, researchers identified ArfGAP2 as a key player in immune [...]
Mediterranean neutrino observatory sets new limits on quantum gravity
Quantum gravity is the missing link between general relativity and quantum mechanics, the yet-to-be-discovered key to a unified theory capable of explaining both the infinitely large and the infinitely small. The solution to this [...]
Challenging Previous Beliefs: Japanese Scientists Discover Hidden Protector of Heart
A Japanese research team found that the oxidized form of glutathione (GSSG) may protect heart tissue by modifying a key protein, potentially offering a novel therapeutic approach for ischemic heart failure. A new study [...]
Millions May Have Long COVID – So Why Can’t They Get Diagnosed?
Millions of people in England may be living with Long Covid without even realizing it. A large-scale analysis found that nearly 10% suspect they might have the condition but remain uncertain, often due to [...]
Researchers Reveal What Happens to Your Brain When You Don’t Get Enough Sleep
What if poor sleep was doing more than just making you tired? Researchers have discovered that disrupted sleep in older adults interferes with the brain’s ability to clean out waste, leading to memory problems [...]
How to prevent chronic inflammation from zombie-like cells that accumulate with age
In humans and other multicellular organisms, cells multiply. This defining feature allows embryos to grow into adulthood, and enables the healing of the many bumps, bruises and scrapes along the way. Certain factors can [...]
Breakthrough for long Covid patients who lost sense of smell
A breakthrough nasal surgery has restored the sense of smell for a dozen long Covid patients. Experts at University College London Hospitals NHS Foundation Trust successfully employed a technique typically used for correcting blocked nasal passages, [...]
Scientists Invent Plastic That Can Dissolve In Seawater In Just A Few Hours
Plastic waste and pollution in the sea have been among the most serious environmental problems for decades, causing immense damage to marine life and ecosystems. However, a breakthrough discovery may offer a game-changing solution. [...]
Muscles from the 3D printer
Swiss researchers have developed a method for printing artificial muscles out of silicone. In the future, these could be used on both humans and robots. Swiss researchers have succeeded in printing artificial muscles out [...]
Beneficial genetic changes observed in regular blood donors
Researchers at the Francis Crick Institute have identified genetic changes in blood stem cells from frequent blood donors that support the production of new, non-cancerous cells. Understanding the differences in the mutations that accumulate [...]
Shocking Amounts of Microplastics in the Brain – It Could Be Increasing Our Risk of Dementia
The brain has higher concentrations of plastic particles compared to other organs, with increased levels found in dementia patients. In a comprehensive commentary published in Brain Medicine, researchers highlight alarming new evidence of microplastic accumulation [...]
Baffling Scientists for Centuries: New Study Unravels Mystery of Static Electricity
ISTA physicists demonstrate that contact electrification depends on the contact history of materials. For centuries, static electricity has intrigued and perplexed scientists. Now, researchers from the Waitukaitis group at the Institute of Science and [...]
Tumor “Stickiness” – Scientists Develop Potential New Way To Predict Cancer’s Spread
UC San Diego researchers have developed a device that predicts breast cancer aggressiveness by measuring tumor cell adhesion. Weakly adherent cells indicate a higher risk of metastasis, especially in early-stage DCIS. This innovation could [...]
Scientists Just Watched Atoms Move for the First Time Using AI
Scientists have developed a groundbreaking AI-driven technique that reveals the hidden movements of nanoparticles, essential in materials science, pharmaceuticals, and electronics. By integrating artificial intelligence with electron microscopy, researchers can now visualize atomic-level changes that were [...]
Scientists Sound Alarm: “Safe” Antibiotic Has Led to an Almost Untreatable Superbug
A recent study reveals that an antibiotic used for liver disease patients may increase their risk of contracting a dangerous superbug. An international team of researchers has discovered that rifaximin, a commonly prescribed antibiotic [...]