Skip to content

Commit 6ce012e

Browse files
yipinnngyiping0505lunebellec
authored
upload a page for my project (#387)
* upload a page for my project * Add files via upload Add cover image. * Update content/en/project/spatial_navigation_hippocampal_data/index.md --------- Co-authored-by: yipinnng <[email protected]> Co-authored-by: Lune Bellec <[email protected]>
1 parent c56c117 commit 6ce012e

File tree

5 files changed

+97
-0
lines changed

5 files changed

+97
-0
lines changed
457 KB
Loading
337 KB
Loading
21.4 KB
Loading
55 KB
Loading
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
type: "project" # DON'T TOUCH THIS ! :)
3+
date: "2025-06-15" # Date you first upload your project.
4+
# Title of your project (we like creative title)
5+
title: "Practice extracting functional signals from specific brain region"
6+
7+
# List the names of the collaborators within the [ ]. If alone, simple put your name within []
8+
names: [Yiping Lu]
9+
10+
# Your project GitHub repository URL
11+
github_repo: https://github.com/yipinnng/yiping_project
12+
13+
# If you are working on a project that has website, indicate the full url including "https://" below or leave it empty.
14+
website:
15+
16+
# List +- 4 keywords that best describe your project within []. Note that the project summary also involves a number of key words. Those are listed on top of the [github repository](https://github.com/PSY6983-2021/project_template), click `manage topics`.
17+
# Please only lowercase letters
18+
tags: [fmri, hippocampus, navigation, brainhack]
19+
20+
# Summarize your project in < ~75 words. This description will appear at the top of your page and on the list page with other projects..
21+
22+
summary: "This project aims to extract and analyze fMRI signals from the hippocampus during spatial navigation, using a reproducible workflow based on open tools and data formats."
23+
24+
# If you want to add a cover image (listpage and image in the right), add it to your directory and indicate the name
25+
# below with the extension.
26+
image: "cover.png"
27+
28+
---
29+
<!-- This is an html comment and this won't appear in the rendered page. You are now editing the "content" area, the core of your description. Everything that you can do in markdown is allowed below. We added a couple of comments to guide your through documenting your progress. -->
30+
31+
## Project definition
32+
33+
### Background
34+
35+
Spatial navigation is a complex cognitive function requiring the integration of diverse sensory inputs to compute goal locations and update self-position during movement. These inputs can be broadly categorized into allocentric and egocentric. Effective navigation depends on the dynamic interaction between these two spatial strategies.
36+
37+
To further investigate how the brain transforms between allocentric and egocentric representations, we developed a virtual environment in which participants navigate from a first-person perspective or learn routes from a top-down map. By manipulating the learning and retrieval modalities (e.g., first-person learning followed by top-down retrieval, and vice versa), we aim to examine the neural mechanisms underlying the transformation between spatial reference frames and the role of non-primary sensory information in navigation.
38+
39+
To address the aims, I’ll observe the connectivity between brain regions, but the virtual map still need a pilot test before recruiting participants. So for my proposal pitch in brain hack school is to practice using NiBabel to extract functional signals from specific brain regions based on EPI data. And I choose hippocampus cause it’s a region can integrate the spatial information to form a cognitive map in our brain.
40+
41+
### Tools
42+
43+
The project will rely on the following technologies:
44+
* Python, The main programming language for scripting and data analysis.
45+
* Nibabel, For loading and manipulating neuroimaging data in NIfTI format.
46+
* Nilearn, For statistical analysis and visualization of functional MRI data.
47+
* AAL2 Atlas, Used for anatomical parcellation and identifying brain regions of interest.
48+
* MNI152 Standard Brain Template, Used as the reference space for normalization and visualization.
49+
50+
### Data
51+
52+
The fMRI dataset used in this project comes from a previous spatial navigation experiment conducted in our lab. The data analyzed here corresponds to one subject and includes task-based functional images and corresponding anatomical scans. All data were preprocessed and organized in BIDS format prior to analysis. A manually labeled hippocampal mask was also used to extract region-specific signals.
53+
54+
### Deliverables
55+
56+
At the end of this project, we will have:
57+
- **Code**: Python scripts and Jupyter notebooks used for loading, processing, and analyzing the fMRI data.
58+
- **Figures**: Output images illustrating key results, such as brain activation maps and region-specific signal extractions.
59+
- **Slides**: A summary presentation describing the project background, methods, results, and conclusions, prepared for the final showcase.
60+
61+
## Results
62+
63+
### Progress overview
64+
65+
This project began with selecting and preparing a task-based fMRI dataset from a previous spatial navigation experiment conducted in our lab. The data were converted to BIDS format and preprocessed to ensure compatibility with analysis tools.
66+
67+
Using Python-based neuroimaging libraries such as Nibabel and Nilearn, I extracted time-series signals from the hippocampus using a predefined mask. Additionally, I aligned the subject's brain image to MNI space for standardized analysis and applied the AAL2 atlas for anatomical reference.
68+
69+
### Tools I learned during this project
70+
71+
- **Nibabel**: I learned how to load, manipulate, and save NIfTI images using Nibabel, which helped me extract fMRI signals from specific brain regions such as the hippocampus.
72+
- **Nilearn**: I used Nilearn's `resample_to_img` function to match spatial resolution between brain images and anatomical masks, ensuring accurate region-of-interest extraction.
73+
- **ANTs (Advanced Normalization Tools)**: I applied nonlinear image registration using `ants.registration` to align subject-specific images to the MNI standard brain. This taught me how to implement spatial normalization in a reproducible way.
74+
- **Python scripting**: Through scripting with loops and conditionals, I automated the processing of multiple runs and trials across different image types (e.g., t-values and betas), which helped streamline my analysis workflow.
75+
76+
### Results
77+
78+
#### Image registration to MNI space
79+
80+
All beta images from the spatial navigation task (spanning 8 runs and 7 trials) were registered to the MNI152 standard brain using the ANTs library. The `SyN` nonlinear transformation ensured that each subject-specific image was accurately aligned to a common anatomical space.
81+
82+
Each output was visually inspected to verify successful alignment, and the registered images were saved for downstream analysis. These MNI-aligned images enable consistent anatomical localization across trials and facilitate integration with standard atlases like AAL2.
83+
84+
![Hippocampus Beta Map](figures/figure1.png)
85+
86+
#### Hippocampus region extraction
87+
88+
Following registration, a binary hippocampus mask was resampled to each aligned beta image using nearest-neighbor interpolation (`nilearn.image.resample_to_img`). The resampled mask ensured voxel-level correspondence between the mask and the functional images.
89+
90+
We then extracted signals specific to the hippocampus by multiplying each image with the resampled mask, effectively zeroing out all non-hippocampal voxels. The resulting hippocampus-only beta images were saved for further statistical analysis or visualization.
91+
92+
An example of the hippocampus mask from AAL2 and hippocampus-masked output are shown below:
93+
94+
![Hippocampus Beta Map](figures/figure3.png)
95+
96+
![Hippocampus Beta Map](figures/figure2.png)
97+

0 commit comments

Comments
 (0)