Using Math and Logic to Train Robots

Using math to teach robots how to think isn’t science fiction. It’s Brendon Johnson’s research.
A student in the University of South Florida’s Master of Science in Computer Engineering program, Johnson spends his days in the Bio-Inspired Robotics Lab under the guidance of Professor Alfredo Weitzenfeld. There, he is doing more than simply programming machines. He’s teaching them to learn.
“I’ve always loved math and logic,” he said. “With reinforcement learning, you take math and logic and let the machine figure things out over time. It becomes more than just programming. It becomes learning.”
He shares an example of how this works in the lab. In one project, a small robot on wheels edges forward, hesitates at a junction, turns left, bumps into a wall, and tries again. It’s not following a map or a script. It’s learning, slowly building knowledge from each success or mistake.
“Reinforcement learning mimics how animals or humans learn,” Johnson explained. “So, if you do something right, you get a reward. If you do something wrong, you get punished. The idea is to train a robot or agent to figure out the best action for each situation.”
So rather than feeding the robot a rigid list of instructions, Johnson designs algorithms that allow it to experiment. The machine earns rewards for behaviors that help it navigate a maze or complete a task and learns to avoid the ones that don’t. Over time, it becomes smarter and more capable.
How do you reward a machine?
“Usually it’s a numerical score,” Johnson explained. “The robot gets a higher value when it performs a desired action, like reaching the goal, and a lower or negative value when it fails. Over time, the machine learns which actions earn better scores.”
A Program That Builds Deep Knowledge and Practical Skills
After earning a bachelor’s degree in computer engineering, Johnson knew that he wanted to specialize in reinforcement learning, a field he described as “kind of niche.”
“I graduated from a great program at Brigham Young University, where they had great engineers and computer scientists, but none of them had conducted research in this area. I learned about the work Dr. Weitzenfeld does in his lab and that was a big part of the reason I chose USF,” he said. “I liked the mix of robotics and reinforcement learning which is inspired biology.”
The New Mexico resident said the affordable tuition helped with his decision, too. “I was looking around the country for good schools, discovered the robotics program and research opportunities, and realized USF was a good value, too,” he said.
Johnson opted for the thesis track of the MS in Computer Engineering program. It gave him a strong foundation in computing systems, and he had the chance to take varied electives while specializing in machine learning and robotics.
He says the variety of elective courses made the program enjoyable. He is quick to point out, though, that interesting and enjoyable doesn’t equate to easy. The courses were rigorous, and the faculty pushed him at times.
“The courses were challenging but always applicable,” he said. “What you learn in class, you can test in the lab. That combination of theory and practice is what makes it stick.”
Faculty support also played a central role. Under Weitzenfeld’s mentorship, Johnson gained the confidence to refine his ideas and take initiative as a researcher.
“I had the freedom to explore and solve problems on my own, but I always knew I could get feedback or guidance,” he said. “That balance helped me grow.”
Looking Ahead
Johnson defended his thesis last month and will soon start the doctoral program at USF. In his paper, “Hierarchical Reinforcement Learning in Multi-Goal Spatial Navigation with Autonomous Robots,” he writes about testing manual versus automatic sub‑goal creation, examining termination function frequency and demonstrating clear advantages in performance and adaptability. In the doctoral program, he plans to explore how experience-driven learning and computer vision can work together to help machines better interpret their surroundings.
“It’s exciting to build something that learns,” he said. “It’s not just programming a machine. It’s teaching it how to improve, adapt and solve new problems, and that’s what the future is about.
Looking ahead, Johnson hopes to apply his research in real-world tech fields, especially autonomous systems. ‘I’d like to do reinforcement learning in robotics,’ he said. Whether in cars, drones, or future smart devices, he’s focused on what’s next: Building systems that can truly learn.