neuralGAM: An R Package for Fitting Generalized Additive Neural Networks
The paper introduces **neuralGAM**, an R package that enhances the interpretability of deep learning by implementing Generalized Additive Neural Networks, which fit independent neural networks to estimate individual feature contributions while maintaining high accuracy and architectural flexibility.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to teach a robot how to predict the weather. You could build a giant, super-complex brain for the robot, stuffing it with millions of tiny connections. This "black box" brain might get the forecast right almost every time, but if you ask it, "Why do you think it will rain?" it might just stare back with a blank look. It knows what to do, but it can't explain how it figured it out. This is the famous "black-box problem" in artificial intelligence. On the other hand, you could build a simple, transparent machine where every single gear and lever is visible. This "white box" is easy to understand, but it might be too simple to handle the messy, complicated reality of a stormy sky. For years, scientists have been stuck trying to choose between a smart-but-mysterious brain and a clear-but-dumb machine. The big question is: Can we build a robot that is both a genius at predicting the future and a great teacher who can explain its thinking step-by-step?
This is exactly the puzzle tackled by a new tool called neuralGAM, introduced by researchers Ines Ortega-Fernandez and Marta Sestelo. They created a special R package (a toolbox for the R programming language) that builds a new kind of AI brain. Instead of one giant, tangled web of connections, their model builds a team of small, independent experts. Imagine a sports team where you have a separate specialist for every single player on the field: one expert studies the quarterback, another studies the wind, and a third studies the referee. Each expert learns their own specific job using a powerful neural network, but they all report their findings to a central coach who simply adds them all up. This "Generalized Additive Neural Network" (GANN) allows the AI to use the super-smart learning power of deep neural networks while keeping the model transparent enough to show you exactly how much each factor contributed to the final prediction.
The researchers tested this idea with two different scenarios. First, they created a fake, made-up world with perfect, known rules to see if their tool could find the hidden patterns. They found that neuralGAM was incredibly accurate, matching the performance of other complex methods, but with a huge bonus: it could draw clear, smooth pictures showing exactly how each variable changed the result. It even added "confidence bands," which are like fuzzy shadows around the lines, telling you how sure the model is about its answer. When they moved to a real-world challenge—predicting whether a flight would be delayed based on weather and flight data—the tool performed just as well as a "black box" neural network that couldn't explain itself. However, unlike the black box, neuralGAM could show you why a delay was likely. For instance, it revealed that very cold temperatures or high humidity increased delay risks in specific, smooth ways, and it could tell you when it was guessing because there wasn't enough data in that area.
The paper suggests that this approach offers a sweet spot between being a mysterious genius and a transparent teacher. While the "black box" models might squeeze out a tiny bit more accuracy in some cases, they lose the ability to show us the logic behind the decision. The neuralGAM tool, by contrast, proves that you don't have to sacrifice intelligence to get clarity. It shows that by breaking a complex problem into smaller, independent pieces and letting a neural network solve each piece, you can get a model that is both highly accurate and easy to understand. The researchers are careful to note that this is a new method that works well for specific types of data (like numbers, yes/no outcomes, and counts), and they are already dreaming up ways to make it even better by teaching it to handle more complex relationships between variables in the future. For anyone who wants to use AI but is tired of trusting a magic box they can't see inside, this package offers a fresh, clear, and powerful alternative.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.