brewing biofuel in the lab with ai and iot -凯发k8网页登录

online interface gets students into the lab—virtually


“it’s always difficult to think, ‘ok, what am i going to give my students as an assignment this year?’” says , a lecturer in the school of chemical and metallurgical engineering at the (wits), in johannesburg, south africa. “previously, i have given them a data set from a flotation cell”—a tank that separates minerals from tailings; students mathematically modeled the flotation cell to match the real data—“from a mine in australia. but that’s very abstract,” higginson says. “you have all this data, but you don’t have any connection to it if you’ve never been there and never seen it in operation.” furthermore, he says, “it’s not happening in real time. it’s just a big spreadsheet.”

last year, he tried something different. wits has a brewery plant on campus, the . higginson had been using a part of it for his ph.d. research on creating bioethanol, a fuel additive. for one of the experiments, he allowed his students to observe it remotely. wherever they were, they could see him set up equipment in the lab on a webcam and see data streaming to the website. when it came time to model the data, they felt more involved. “we got good feedback from the students,” higginson says. “i think it was one of those things where they hadn’t seen something quite like it before.”

the university of the witwatersrand. (image credit: university of the witwatersrand)

remote control brewing

bioethanol is a renewable fuel source created by fermenting crops. it can be blended with gasoline, or it can power vehicles on its own. south africa grows a large amount of sugarcane, which could potentially be used to produce bioethanol, however costs have prevented large-scale production in the country. higginson hoped to optimize its production in a 100-liter steel fermentation tank using artificial intelligence.

the microbrewery plant at the university of the witwatersrand, showing the fermentation vessel on the right. (image credit: antony higginson)

“this project is about giving the students an experience of [a system like scada] without having to greatly expand the amount of available lab equipment.”

antony higginson, university of the witwatersrand

key to the fermentation process is the amount of nutrition fed to the yeast at the start of a batch. if the sugar comes from a particular batch of cane or molasses, it might have more or less nitrogen than expected, making prediction and control difficult. higginson trained neural networks to predict the final ethanol concentration based on the fermentation’s early progression and used that information to add more sugar or dilute the existing sugar throughout the process to increase the eventual ethanol concentration.

an experiment could run as long as a week, and higginson couldn’t be in the lab 24/7 to monitor its progress and check for faults. so, he found a way to monitor the experiments remotely. sensors measuring variables such as temperature and density were connected to a programmable logic controller (plc) and to two arduino® microcontrollers. another small device, a raspberry pi®, operated as a server, aggregating the data from the arduino boards and sending it to the plc, which acted as the main controller for the system. normally, he would monitor the process on a lab computer running supervisory control and data acquisition (scada) software, but that pc had no internet connection.

to monitor the experiment remotely, he sent data from the raspberry pi to thingspeak™, an iot analytics platform that aggregates data and presents it graphically, which was available to all students at the university through for matlab®. thingspeak users can view the data in real time on any device that has a web browser. once the experiment ended, higginson imported the data from thingspeak into matlab for further analysis. previously, to get data from the experiment, he’d have to copy a spreadsheet from the scada pc to a flash drive.

thingspeak automatically formats different kinds of data to be compatible. “you don’t need to do any messing around with data types,” higginson says. “you just import the data to matlab, and you have a nice big data table that has all the information that you might want to use.”

the thingspeak website displays the raw live data from each sensor, while matlab provides advanced analysis and visualization capabilities. higginson could visualize the data from various batches and overlay the charts to compare them. and watching the data in real time, he could see if there were any issues such as a malfunctioning pump. thingspeak also let him control the experiment remotely.

higginson realized he could use this setup for his class on process control, a fourth-year class in both the chemical and metallurgical engineering curricula. process control is at the heart of many industrial activities at factories and power plants: it’s the monitoring and management of operations based on feedback. before heading into the workforce, students need experience with real processes. “it’s all well and good to have simulated data,” higginson says, “but you don’t really get the messiness of real data unless you have real data.”

higginson would love to invite everyone to watch the fermentation in person. while that may be possible at some universities, wits has limited space and resources compared to many of the universities in the united states and europe. “we’ve got a class of over a hundred,” higginson says, “so it’s not easy to squash them all into a lab.”

sensors and connections in the bioreactor system. (image credit: antony higginson)

the setup solves another problem common in south africa: unstable electricity supply. the country regularly implements rolling blackouts, locally known as load shedding, which means the university servers are sometimes inaccessible to students. but if they have a battery-powered device and a cellular connection, they can access the streaming data on the thingspeak servers.

while conducting one of the ph.d. experiments, higginson streamed the data to his students. their assignment was to build a computational model that reproduced the data. whereas higginson had been using neural networks for his research, these models were meant to be simpler. the equations were grounded in physics principles, and students needed to fit only three or four parameters, mostly related to the transfer of heat between different elements of the system. one was the amount of energy added by the pump that circulates water. matlab has the required tools built in, including functions to fit lines to the heat transfer data. students learned which matlab functions to use.

they also needed to select which data to use to try to model the system. at one point, a pipe flowing into the cooling tank iced over, which stopped the heat transfer out of the system. “the temperature just kept climbing and climbing,” higginson says. “so, they’re able to see things in the process like that where problems had occurred. then they’d have to avoid those sections of anomalous data.”

the engineering council of south africa expects schools to assess a set of abilities called graduate attributes. “the one that we were assessing in this assignment was the use of engineering tools, including information technology,” higginson says. “it is about them getting to grips with the data, getting to grips with the tools that are available, and being able to produce something using those tools.”

“in the real world, process control engineers often use scada systems, which are more robust. but they can cost tens or hundreds of thousands of dollars to build and maintain,” says professor , who runs the data analytics, numerics, and control engineering (dance) group at wits.

“this project is about giving the students an experience of that type of system without having to greatly expand the amount of available lab equipment,” higginson says. “it’s not quite being in a control room and seeing all the data coming in from a plant, but it’s a reasonable facsimile. the data comes in every minute, and you have to follow that trend the whole way through and then start playing with the data after that.”

scaling up

“what [thingspeak] gives you is an ability to prototype very quickly and have something that’s going to collect all your data and share it with collaborators.”

antony higginson, university of the witwatersrand

“i never expected that connecting something to the cloud would have been easier than putting in an ethernet cable connecting the scada to the internet,” higginson says. “but it is. and then sharing that data—you’d think maybe it’s difficult. no, it’s a couple of lines of code and anyone can get the data.”

data = thingspeakread(1694104, 'daterange', [datetime(2023,03,28,10,00,00), datetime(2023,03,30,04,00,00)], outputformat='timetable');

higginson notes that from an engineering perspective, setting up that data infrastructure without thingspeak would have been expensive and time-consuming. he might have had to hire someone to administer the network. but now the data is safe and accessible. “and i’m not going to have students calling me at 11 p.m. saying, ‘ok, i can’t access the data; the server’s down.’”

“a remote lab like this could easily scale beyond 100 students,” says marco rossi, an engineer at mathworks who supports the university of the witwatersrand and others in the region. “if he wanted, higginson could share the data with anyone at any university with a matlab license.”

higginson suggests that universities could pool their resources so that one runs a large-scale experiment, and students at the others see the data. higginson and brooks presented their teaching setup in a last year at the international federation of automatic control (ifac) symposium on advances in control education. brooks notes another paper from the conference describing a test track that a group from germany had developed for miniature autonomous vehicles. it’s connected to the cloud, and students at other universities can book time to do experiments using the vehicles. brooks says a student could potentially develop a collision avoidance algorithm using matlab and watch its performance over video. “the idea of taking the information and putting it somewhere that is easy to see in real time for students is exciting.”

(image credit: antony higginson) " data-toggle="lightbox" class="add_margin_0 ">

thingspeak displays the raw live data from each sensor. for more data visualization, (image credit: antony higginson)

meanwhile, other wits students are exploring the potential of thingspeak. one group developed neural networks to model the bioreactor’s cooling system. “without my needing to tell them how to do anything, they actually figured out how to get at the data and start playing around with it,” higginson says. “and i was kind of surprised when they brought me some results and said, ‘ok, this is what we’ve done.’”

while thingspeak can benefit education, many researchers will find it useful for their own work, higginson says. “what it gives you is an ability to prototype very quickly and have something that’s going to collect all your data and share it with collaborators.” it helped him work with brooks, his ph.d. supervisor. “i was easily able to show him all the stuff that i was doing, rather than having to create a word document and say, ‘this is the graph that i made from the temperature. this is the graph that i made from whatever else.’ i was able to say instead, ‘look at what’s happening on the thingspeak page. you can see how all the graphs are kind of trending toward the same position. what does that mean?’”

higginson says the ease of the cloud-based system makes the lab scada system unnecessary. “i haven’t actually gone in to collect the data from that computer for a very long time,” higginson says, “because i haven’t needed to.” tools similar to thingspeak are available, but higginson was already working with matlab, which made the transition very easy.

some former students are using the skills they developed working with data and matlab in their industries. one is working on pulp and paper, another on minerals processing. a third has applied it at a craft distillery in johannesburg, figuring out how to digitalize a small production facility. “it’s really a very tiny craft distillery, where they don’t have online digital measurements,” higginson says. “and, of course, it’s very expensive to install those kinds of systems.”

“the platforms are now at a point where the tools are really easy to use,” higginson says. “it’s just a question of finding ways to use them.”


read other stories

panel navigation

ai / academia

making better beer and wine with data and machine learning

gps-wearing dogs, an electronic nose, and a robot that pours the perfect beer

iot / academia

ai / academia

网站地图