All schools in Upshur County will close at 1 p.m. today. All B-UHS sporting events today are canceled.

WVU research team steers students through murky waters of ChatGPT coding

West Virginia University researchers are studying how high school seniors and college students can utilize ChatGPT to learn how to code, while recognizing the potential shortcomings of the AI-powered chatbot. (WVU Photo/Alyssa Reeves)

West Virginia University researchers are preparing high school seniors and college students to harness the power of ChatGPT, the popular artificial intelligence chatbot, through coding while addressing the platform’s potential shortcomings.

In a paper published in Quantitative Biology, a team led by Gangqing “Michael” Hu, assistant professor in the WVU School of Medicine Department of Microbiology, Immunology and Cell Biology, explored how they could help students overcome the fear of learning code and enhance their critical thinking skills.

“This is like kids wading in the muddy shoreline seeking beautiful seashells,” Hu said. “The kids are the beginning students and the muddy shoreline is ChatGPT. The beautiful seashells represent all the attractive opportunities which beginners cannot resist. But the ChatGPT shoreline is muddy with challenges such as the uncertainty from the chatbot’s response — including misleading artifacts — and students’ overreliance on AI for coding.”

ChatGPT produces human-like responses to text-based conversations and is being used by multiple companies to respond to customer inquiries and provide general information. Anyone can use it to seek information on a plethora of subjects.

One of the responses from ChatGPT can be code, and in this case the platform becomes a coding tool through prompting.

“This is a new tool of learning coding and there are some misconceptions,” Hu said. “Students may think coding is not important because of prompting or they may have a fear in trying to learn it. We need to educate them on the purpose of this chatbot-assisted learning. Because some of the code from the chatbot can be wrong, students need to use critical thinking to be able to tell if the answer is correct and, if it is not, how to find a solution.”

One of the biggest drawbacks to ChatGPT is that generated responses to questions can be either correct, incorrect or incomplete. In fact, it takes a human to provide carefully crafted prompts to fully harness the tool in providing valid and robust results.

Inspired by adaptive learning in educational literature, the team used the OPTIMAL model to facilitate chatbot-aided scientific data analysis. OPTIMAL, which stands for Optimization of Prompts Through Iterative Mentoring and Assessment, involves a series of steps to improve communication with a chatbot. In this case, it was geared toward bioinformatics, the science of collecting and analyzing large amounts of biological, medical and health information. Researchers say the model can be used for other purposes as well, such as finance and economics.

“The OPTIMAL model is like rubber boots for the children to wear at the muddy shoreline,” Hu said. “The boots protect the kids from getting dirty much like the model is a protective mechanism to prevent the students from being misled by inaccurate information from the chatbot. The model aims to improve both coding skills and prompting skills through an iterative communication with a chatbot guided by critical thinking and assessment.”

Following the OPTIMAL model, students review all the information needed for input and receive guidance on how to create a set of draft prompts. Once they input the prompt, the chatbot produces code and students are ready to give it a test.

If error messages result after running the code, students must evaluate the error and determine the best way to proceed, such as instructing the chatbot to revise the code or debugging the code manually.

The process continues until the code no longer issues errors and outputs a result for critical assessment. At the end of the session, students reflect on the entire communication process and review the code to identify any missing details to finalize the prompts.

The research team found that merely using the chatbot as a code-generating tool may limit creative thinking and that reviewing the code at the end of each session is just as important as optimizing the prompts.

The work brought together researchers from a spectrum of disciplines: Evelyn Shue, student volunteer in the Department of Microbiology, Immunology and Cell Biology; Bingxin Li, WVU John Chambers College of Business and Economics; Xin Li, WVU Benjamin M. Statler College of Engineering and Mineral Resources; Zifeng Feng, University of Texas at El Paso; and Li Liu, Arizona State University.

The team plans to evaluate the OPTIMAL model’s effectiveness in enhancing traditional bioinformatics education for beginners in the classroom.

“This assessment should encompass improvements in coding skills, prompting skills, problem-solving abilities, and critical thinking during interactions with a chatbot,” Hu said.

Future research will delve into more profound insights and strategies on applying ChatGPT to precision education.

“There are certainly other sorts of rubber boots,” Hu said.

Share this story:

Local Businesses

RECENT Stories

Buckhannon Banter: Get the local lowdown for July 2, 2025

This week in Buckhannon, local organizations plan events and clinics — including a big July 4th celebration — and several community initiatives aim to engage residents of all ages.

Emergency agencies stress need for coordinated incident plans during large events with road closures

Emergency officials emphasized the need for incident action plans and coordination with public safety agencies for large events that close major streets, citing upcoming car shows and other street-closure events to ensure fast, safe emergency responses.
BUHS Sports

B-U now in Class AAAA in all sports; moved to new South Region after WVSSAC restructuring

Buckhannon-Upshur High School will compete in Class AAAA — the highest division — for all sports and has been moved to the new South Region under a two-year realignment by the West Virginia Secondary School Activities Commission.

Stockert Youth and Community Center Board Meeting Agenda: July 3, 2025

The Stockert Youth and Community Center Board will meet July 3, 2025, with an agenda set to discuss organizational matters and upcoming events.

Buckhannon Waste Board Agenda: July 3, 2025

The City of Buckhannon Waste Collection Board has released the agenda for its upcoming meeting on July 3, 2025.

Woman arrested on six felony charges after allegedly shooting at a man in Upshur County

Jocelyn M. Krum, 28, of Charleston, was arrested on six felony charges after allegedly entering a Mt. Lebanon Road residence in Upshur County with a rifle and shooting at a man before fleeing the scene.

Buckhannon man sentenced to 11 to 21 years for Bailey Ridge Road shootout

Austin W. Arbogast, 26, was sentenced to 11 to 21 years in prison after pleading guilty to four felony charges stemming from a March 2024 shootout on Bailey Ridge Road while attempting to retrieve his child.

Mountain East Conference extends invitation to Shawnee State University

The Mountain East Conference has approved Shawnee State University as its 12th full-time member, with the school set to join in 2026 pending NCAA Division II acceptance and expanding league competition in 19 sports.
Davis and Elkins College

Davis & Elkins College students recognized for high academic honors for Spring 2025 semester

Davis & Elkins College has announced the Spring 2025 president’s list, for students earning 4.0 GPAs, and dean’s list, for those earning 3.6 to 3.99, honoring academic excellence campus-wide.