How the Brain Solves Math: Inside Neural Activity

Brain Activity Patterns Reveal Four Distinct Stages of Mathematical Thinking

Summary: A recent Carnegie Mellon University neuroimaging study used fMRI and advanced analysis methods to identify distinct stages of cognition during mathematical problem solving, with potential applications for improving math instruction and adaptive learning technologies.

Source: Carnegie Mellon University

Overview

Researchers at Carnegie Mellon University have mapped the temporal sequence of mental processes people use when solving challenging math problems. By combining multivoxel pattern analysis (MVPA) with hidden semi-Markov models (HSMM) and applying the hybrid method to functional MRI (fMRI) data, the team identified four reproducible cognitive stages: encoding, planning, solving, and responding. The findings, published in Psychological Science, demonstrate that brain activation patterns correspond to these distinct processing stages and that each stage’s duration varies predictably with task demands.

Methods and approach

The study used a two-part analytical strategy. MVPA identifies spatial patterns of brain activation associated with particular mental states, while HSMM estimates the onset and duration of those states in time. The researchers hypothesized that combining these techniques would reveal not only which patterns correspond to different types of cognitive processing, but also when and for how long each stage occurred on individual trials of a real task.

To test the method, the team recorded fMRI data from eighty adult participants as they solved specific math problems inside the scanner. Before scanning, participants practiced particular strategies for solving the problem types presented. During the scan, they worked through target problems and received immediate feedback indicating correct or incorrect answers.

Image shows math work and a brain.
The experiment manipulated problem features to test whether changes in planning demand or execution difficulty would specifically lengthen the corresponding cognitive stages. Image for illustrative purposes.

Key results

Applying the HSMM-MVPA method to the fMRI recordings produced a clear four-stage model of task processing. The stages identified were:

  • Encoding — perceiving and registering the problem information
  • Planning — devising a solution strategy
  • Solving — performing the calculations or operations required
  • Responding — preparing and executing the motor response

Crucially, the experiment manipulated problem characteristics to target planning versus execution demands. When a problem required more planning to determine an appropriate approach, the planning stage was longer. When a solution required more calculations or steps, the solving stage lengthened. Motor difficulty increased responding time. These effects support the interpretation that the detected stages reflect bona fide cognitive processes rather than arbitrary signal fluctuations.

Implications for education and learning technologies

John R. Anderson, the study’s lead author and a longtime developer of cognitive tutors, noted that the approach opens new possibilities for aligning instructional design with the real-time unfolding of student thinking. If brain-based signatures of problem-solving stages can be linked to observable behavior, educators and adaptive learning systems could tailor instruction and feedback to the learner’s current mental state. Integrating these insights into cognitive tutors may improve how they diagnose student difficulties—whether a learner is struggling to plan an approach, to carry out calculations, or to execute a response.

More broadly, the HSMM-MVPA framework can be applied beyond mathematics. Using brain imaging methods with higher temporal resolution, such as EEG, could reveal even finer details about transitions between cognitive stages and enable real-time monitoring of thinking during a range of complex tasks.

About this research

Publication: The study was published in Psychological Science as “Hidden Stages of Cognition Revealed in Patterns of Brain Activation,” authored by John R. Anderson, Aryn A. Pyke, and Jon M. Fincham. Published online July 20, 2016 (doi:10.1177/0956797616654912).

Participants and procedure: Eighty participants who practiced specific strategies completed target math problems while undergoing fMRI scanning and received immediate feedback on their responses.

Funding: This research was supported by the National Science Foundation and the James S. McDonnell Foundation.

Takeaway

By mapping brain activation patterns onto meaningful cognitive stages, this study advances our understanding of how people think through complex problems in real time. The HSMM-MVPA approach offers a scalable way to dissect task performance into its component stages, with promising applications for educational research, adaptive tutoring systems, and further cognitive neuroscience studies aimed at improving learning outcomes.