Elsevier

NeuroImage

Volume 19, Issue 2, June 2003, Pages 422-429
NeuroImage

Regular article
Estimation of general linear model coefficients for real-time application

https://doi.org/10.1016/S1053-8119(03)00081-8Get rights and content

Abstract

An algorithm using an orthogonalization procedure to estimate the coefficients of general linear models (GLM) for functional magnetic resonance imaging (fMRI) calculations is described. The idea is to convert the basis functions or explanatory variables of a GLM into orthogonal functions using the usual Gram–Schmidt orthogonalization procedure. The coefficients associated with the orthogonal functions, henceforth referred to as auxiliary coefficients, are then easily estimated by applying the orthogonality condition. The original GLM coefficients are computed from these estimates. With this formulation, the estimates can be updated when new image data become available, making the approach applicable for real-time estimation. Since the contribution of each image data is immediately incorporated into the estimated values, storing the data in memory during the estimation process becomes unnecessary, minimizing the memory requirements of the estimation process. By employing Cholesky decomposition, the algorithm is a factor of two faster than the standard recursive least-squares approach. Results of the analysis of an fMRI study using this approach showed the algorithm’s potential for real-time application.

Introduction

Functional magnetic resonance imaging (fMRI) offers a noninvasive approach in studying human brain functions by mapping parts of the human brain that are activated in response to various physical stimuli or activities such as sounds, images, or finger movements. This “brain mapping” is achieved by detecting local changes in the blood oxygenation level that can occur in response to an increase in neuronal activities (Ogawa et al., 1990). These hemodynamic changes are measured using an MR scanner and the resulting series of MR images is then assessed for evidence of experimentally induced effects at every intracerebral voxel. Statistical analysis is carried out to check for evidence against the null hypothesis of no effects. This results in an “image” of statistics showing how significantly an intracerebral voxel is affected by the given experimental task.

Several statistics have been employed for hypothesis testing. The general linear model (GLM), however, provides a unified framework in the analysis of fMRI data (Friston et al., 1995). With its ability to model multiple experimental and confounding effects simultaneously, GLM provides for greater flexibility in experimental design and can be used to analyze fMRI time series extensively. However, to obtain reliable estimates of GLM coefficients, gathering several MR images is required in order to minimize the effects of noise, which can include sensor noise, bulk motion, and other physiological fluctuations. The large number of data involved in the analysis often requires considerable processing time and data storage. Thus, GLM is usually used to analyze fMRI time series long after the scanning session is completed.

Real-time analysis of fMRI data offers several advantages both for theoretical studies and clinical applications. With real-time analysis, monitoring the task performance of the subject and the resulting quality of the acquired data can be easily achieved. It could also make functional mapping experiments more interactive by allowing an ongoing paradigm to be altered if a need arises. These advantages and many others have been demonstrated in several studies Cox et al 1995, Gembris et al 2000, Smyser et al 2001, Voyvodic 1999, Yoo et al 1999. For instance, Cox et al. (1995) presented an algorithm that computes the correlation coefficient, in real-time, of a time course of images with a reference time series, with the mean and linear trend projected out. Gembris et al. (2000) reported a real-time algorithm that combines correlation analysis with a detrending, sliding window technique, and reference vector optimization. Most of these approaches employ a single predefined statistical quantity such as correlation coefficient and estimate this quantity while the data are being generated or immediately after all the data become available to produce the activation map. On the other hand, Smyser et al. (2001) reported a real-time implementation of multiple linear regression supported by a time-aware acquisition and processing system. Multiple linear regression analysis was carried out using Gentleman’s algorithm (Gentleman, 1974), which is designed to minimize both computational cost and memory requirement for large regression computations. This approach provides a flexible tool in performing substantial parametric analysis in real time.

Real-time estimation of general linear model coefficients can provide more sophisticated statistical analysis of fMRI time series as exemplified in Smyser et al. (2001). In this paper, we use an orthogonalization procedure to estimate the coefficients of GLMs for the real-time analysis of fMRI data. The algorithm is based on the usual Gram–Schmidt orthogonalization procedure. The basic idea is to convert the basis functions or explanatory variables of a GLM into orthogonal functions. The auxiliary coefficients, i.e., the coefficients associated with the orthogonal functions, are then easily estimated using the orthogonality condition. The values of the original GLM coefficients are computed from these estimates. This formulation offers several advantages, especially in the analysis of fMRI time series. With this approach, the estimates can be immediately updated when new image data become available, making it attractive for real-time estimation. Since the contribution of each image data is immediately incorporated into the estimated values, storing the data in memory during estimation becomes unnecessary. This minimizes the memory requirement, which is an important consideration in fMRI analysis. The contribution of each basis function in reducing the mean square error can also be known from the square of the auxiliary coefficients. Thus, values of the mean square error can be immediately obtained without recomputing the contribution of previous observations.

Several approaches based on orthogonalization procedures (e.g., Billings et al 1989, Korenberg 1988 have been employed in many model estimation problems. These methods have been proven to be very efficient in determining significant terms of the model and providing unbiased parameter estimates. One of these is Korenberg’s fast orthogonal search (FOS) algorithm (Korenberg, 1988), known for its robustness in obtaining a parsimonious model even when the model includes nonlinear terms. FOS has been successfully applied in the estimation of vector autoregressive model parameters (Bagarinao and Sato, 2002), in the detection of nonlinearities in short noisy time series (Barahona et al., 1996), and in the reconstruction of bifurcation diagrams (Bagarinao et al., 1999), among others. In the present study, an implicit orthogonalization procedure similar to the FOS is given. Unlike the other approaches where the estimation is done after all the data become available, the emphasis of the present study is on the real-time estimation of model coefficients.

Under Methods, we describe the algorithm and define the needed quantities relevant to the analysis of fMRI data. We discuss first the univariate case and later consider the multivariate implementation of the approach. The section ends with an outline of the different steps in the estimation process. Under Results, we apply the algorithm to the analysis of actual fMRI time series. Emphasis is given to the algorithm’s attractive features for real-time implementation. Results of a comparison of the computational complexity of the proposed approach to that of the recursive least-squares approach is also given. The discussion of results, together with the conclusion, is presented in the last section.

Section snippets

Methods

In the analysis of fMRI time series, the observed image data are considered a linear combination of L explanatory functions fi( · ) plus an error term: yk,s=bk,1f1(ts) + … +bk,LfL(ts)+εk,s, where yk,s is the observation at the kth voxel on time ts, s = 1, …, n is the scan number, bk,i are coefficients that need to be estimated, and εk,s are the residual errors or noise terms. The basis (explanatory) functions fi( · ) are assumed to span the space of possible fMRI responses for a given

Results

The approach was applied to the analysis of fMRI time series obtained using gradient recalled echo EPI sequence on a 3T MRI scanner (GE VH Signa i3.OT) equipped with a 16 element birdcage head coil. The imaging parameters of the EPI pulse sequence were as follows: repetition time TR = 5 s, echo time TE = 30 ms, and field of view FOV = 22 cm. For each scan, 30 slices were taken with each slice 64 × 64 in dimension. Functional images were taken while the subject lying in the scanner performed a

Discussion

The general linear model has provided a unified framework in the analysis of fMRI time series (Friston et al., 1995). Its strength is its ability to model multiple experimental and confounding effects simultaneously, which provides researchers greater flexibility in experimental design. Most typical algorithms currently used in estimating GLM coefficients, such as normal equations or singular value decomposition (SVD), often require that all MR images be acquired prior to data processing (Press

Acknowledgements

This work was started when E. Bagarinao was still with the Graduate School of Engineering Science, Osaka University under the Japan Society for the Promotion of Science (JSPS) fellowship program whose financial support is hereby acknowledged. This research was also supported by Grant-in-Aid for Scientific Research No. 12,00107.

References (17)

  • J.T. Voyvodic

    Real-time fMRI paradigm control, physiology, and behavior combined with near real-time statistical analysis

    NeuroImage

    (1999)
  • S.S. Yoo et al.

    Real-time adaptive functional MRI

    NeuroImage

    (1999)
  • H. Akaike

    A new look at the statistical model identification

    IEEE Trans. Automat. Control

    (1974)
  • E. Bagarinao et al.

    Reconstructing bifurcation diagrams from noisy time series using nonlinear autoregressive models

    Phys. Rev. E.

    (1999)
  • E. Bagarinao et al.

    Algorithm for vector autoregressive model parameter estimation using an orthogonalization procedure

    Ann. Biomed. Eng.

    (2002)
  • M. Barahona et al.

    Detection of nonlinear dynamics in short, noisy time series

    Nature (London)

    (1996)
  • S.A. Billings et al.

    Identification of MIMO non-linear systems using a forward-regression orthogonal estimator

    Int. J. Control

    (1989)
  • R.W. Cox et al.

    Real-time functional magnetic resonance imaging

    Magn. Reson. Med.

    (1995)
There are more references available in the full text version of this article.

Cited by (62)

  • Real-time fMRI for brain-computer interfacing

    2020, Handbook of Clinical Neurology
    Citation Excerpt :

    Instead, incremental algorithms provide constant calculation time per data point (volume) and enable real-time processing even for very long functional scans. While correlation analysis was used in early real-time fMRI studies (Cox et al., 1995), full (incremental) GLM analyses are now performed (Goebel, 2001; Smyser et al., 2001; Bagarinao et al., 2003; Weiskopf et al., 2004; Hinds et al., 2011). While the design matrix for main experimental conditions may be built in advance for a planned experiment, sophisticated implementations support building the design matrix incrementally allowing to incorporate real-time imaging and behavioral data as it becomes available.

  • Neu<sup>3</sup>CA-RT: A framework for real-time fMRI analysis

    2018, Psychiatry Research - Neuroimaging
    Citation Excerpt :

    Reviewed literature shows a wide variety of mass univariate and multivariate analysis algorithms being implemented in rtfMRI. Historically, statistical methods like t-tests, correlation analysis (Voyvodic, 1999), GLMs and multiple regression (for example Bagarinao et al., 2003) formed the basis of analysing single ROI activation or identifying artefacts in real-time. Thus researchers and clinicians are able to view, for example, real-time ROI activation maps or real-time subject motion estimations.

  • OpenNFT: An open-source Python/Matlab framework for real-time fMRI neurofeedback training based on activity, connectivity and multivariate pattern analysis

    2017, NeuroImage
    Citation Excerpt :

    In OpenNFT, whole-brain activation maps are estimated using incremental GLM (iGLM) statistical analysis (Bagarinao et al., 2003) and displayed in real-time. Incremental GLM algorithm is based on orthogonalization of the explanatory GLM regressors of which the parameter weights can then be estimated more efficiently (Bagarinao et al., 2003). For time-series data processing, cumulative GLM (cGLM) is used to correct for linear drift and head motions, i.e., when the time-series acquired up to the current value is used for a regular GLM estimation.

  • Real-time fMRI processing with physiological noise correction - Comparison with off-line analysis

    2015, Journal of Neuroscience Methods
    Citation Excerpt :

    Since the RETROICOR and RVT processes include frequency analysis for noise reduction and extracting peak points, recalculating whole estimates with an increased number of samples can improve the estimate of the regressor. This update, however, disables the use of the recursive regression method (Bagarinao et al., 2003) because the design matrix for the past data was changed. Recursive regression is useful to reduce computational time, but the current implementation demonstrated that computational time did not restrict running a full GLM analysis.

View all citing articles on Scopus
View full text