News SmartNews Technology

Study shows successful use of ChatGPT in ag education

Published:

According to a study published this month, artificial intelligence tools such as ChatGPT show promise as useful means in agriculture to write simple computer programs for microcontrollers.

Microcontrollers are small computers that can perform tasks based on custom computer programs. They receive inputs from sensors and can be used in climate and irrigation controls, food processing systems, robotics, and drone applications, to name a few agricultural uses.

A recent study published by the Arkansas Agricultural Experiment Station and the Dale Bumpers College of Agricultural, Food, and Life Sciences showed that agriculture students who were unfamiliar with computer coding were able to program a microcontroller to perform a simple task using ChatGPT.

“Generative AI can make a big impact on agriculture … I can’t see how it wouldn’t,” said Don Johnson, University Professor of agricultural education, communications, and technology and the lead researcher on the project. “We need to prepare our graduates to be a part of that.”

“Generative” refers to the tool’s ability to create content.

Johnson’s latest study on the topic, “Agriculture students’ use of generative artificial intelligence for microcontroller programming,” was published in the Natural Sciences Education journal this month. Co-authors included Bumpers College faculty members in the agricultural education, communications, and technology department: Will Doss, assistant professor, and Christopher Estepp, associate professor.

Johnson said computer programming has typically not been taught in most undergraduate agriculture majors, but the inclusion of microcontrollers as components of agricultural equipment and systems has become more common. While there will always be a demand for individuals with deep expertise in computer programming, Johnson explained that the focus of these studies has been to explore how people without deep expertise can use microcontrollers in their academic and professional careers.

Johnson researches human capital development and agricultural technologies for the experiment station, the research arm of the University of Arkansas System Division of Agriculture.

ChatGPT
Image by Robalito, Shutterstock

“I think what we’ve established is that ag students can use generative artificial intelligence to write code to solve moderately difficult programming problems without any deep knowledge of programming,” Johnson said.

Johnson began investigating AI-assisted programming in 2022 when ChatGPT was released and learned that it could write code for microcontrollers like Arduinos. Not long afterward, he conducted a preliminary study comparing the abilities, interests, and confidence of two groups of undergraduate agriculture students as they programmed a microcontroller to blink two LEDs in a particular sequence. One group of students wrote their own programs, while the other group used ChatGPT.

The results indicated that students writing their own programs developed greater confidence and ability in Arduino programming than novice students using ChatGPT. However, both groups had the same level of success and interest in learning more about microcontrollers and coding.

The follow-up study published in August was conducted solely with undergraduate agricultural students without significant computer programming experience. The study aimed to determine the confidence in their ability to use ChatGPT to write Arduino code for a more advanced problem than in the first study. This second study required students to use ChatGPT to program the Arduino to turn on a transfer pump when the level of solution in a heating tank fell 8 inches or more below a sensor and then turn the pump off when the tank refilled to within 3 inches of the sensor.

“You would need some degree of sophistication in programming to write a code for this problem in the second study, and none of these students did,” Johnson said. “But they were successful. Nine of the 11 two-person teams were successful in getting the code to do exactly what it was supposed do.”

ChatGPT coaching in both studies involved informing the students what made a good prompt for the generative AI platform. Johnson explained that a good prompt would clearly describe the situation, components and connections, and desired outcome.

Johnson would like to take the experiment one step further by leaving the problem open-ended — let students come up with their own scenarios and use ChatGPT to write the code for a microcontroller.

“I want to give students the confidence to approach microcontrollers in a problem-solving orientation and say, ‘Yes, I can use this tool to solve my problem,” Johnson said.

»Related: How ag tech is utilizing artificial intelligence to leap forward

Sponsored Content on AGDaily
The views or opinions expressed in this article are those of the author and may not reflect those of AGDAILY.