Temporal Interference Modulates Medial Temporal and Frontoparietal Activity During Mnemonic Discrimination: A High-Resolution Whole-Brain fMRI Investigation.
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
C++ · 268 lines · 8.9 KB · no license
- //
- // canvas.cpp
- // BPSO
- //
- // Created by Craig Stark on 11/17/11.
- // Copyright 2011 Craig Stark. All rights reserved.
- //
- #include "wx/wxprec.h"
- #ifndef WX_PRECOMP
- #include "wx/wx.h"
- #endif
- #include <wx/app.h>
- #include <wx/filename.h>
- #include <wx/stdpaths.h>
- #include <wx/image.h>
- #include <wx/dcbuffer.h>
- #include <wx/utils.h>
- #include <wx/font.h>
- #include "main.h"
- #include "parameters.h"
- extern c_DisplayFrame *MainFrame;
- BEGIN_EVENT_TABLE(c_DisplayCanvas, wxWindow)
- EVT_PAINT(c_DisplayCanvas::OnPaint)
- EVT_KEY_DOWN(c_DisplayCanvas::OnKey)
- EVT_LEFT_DOWN(c_DisplayCanvas::OnLMouseClick)
- //EVT_ERASE_BACKGROUND(MyCanvas::OnErase)
- END_EVENT_TABLE()
- c_DisplayCanvas::c_DisplayCanvas(wxWindow *parent,int xsize,int ysize):
- wxWindow(parent, wxID_ANY,wxPoint(0,0),wxSize(xsize,ysize)) {
- DisplayedImage = NULL;
- DisplayState = 0;
- Response = 0;
- DisplayedImage = new wxImage(xsize,ysize,true);
- SetBackgroundStyle(wxBG_STYLE_CUSTOM);
- SetBackgroundColour(wxColour((unsigned char) 255, (unsigned char) 255,(unsigned char) 255));
- }
- void c_DisplayCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
- wxAutoBufferedPaintDC dc(this);
- wxArrayString TouchLabels;
- wxMemoryDC memDC;
- if (DisplayedImage && !DisplayedImage->IsOk())
- return;
- // if (DisplayState == DISP_Idle)
- // return;
- // PrepareDC(dc);
- wxSize sz = dc.GetSize();
- dc.SetFont(dc.GetFont().Scaled(2));
- static int i=0;
- i++;
- MainFrame->SetStatusText(wxString::Format("Resp %d %d",Response, i));
- if (DisplayState == DISP_Blank) // ISI
- dc.Clear();
- else if (DisplayState == DISP_Stim) { // Show image
- wxBitmap TempBitmap = wxBitmap(*DisplayedImage,24);
- memDC.SelectObject(TempBitmap);
- int xsize = DisplayedImage->GetWidth();
- int ysize = DisplayedImage->GetHeight();
- dc.Clear();
- dc.Blit((sz.GetWidth()-xsize)/2, (sz.GetHeight()-ysize)/2, xsize , ysize, &memDC, 0, 0, wxCOPY, false);
- }
- else if (DisplayState == DISP_StudyInstructions) { // Study instructions
- dc.Clear();
- wxString instructs = _("Indoor or Outdoor?");
- wxSize t_sz = dc.GetTextExtent(instructs);
- dc.DrawText(instructs,
- wxPoint((sz.GetWidth()-t_sz.GetWidth())/2, (sz.GetHeight()-t_sz.GetHeight())/2 - t_sz.GetHeight()));
- instructs = _("Press spacebar to start");
- t_sz = dc.GetTextExtent(instructs);
- dc.DrawText(instructs,
- wxPoint((sz.GetWidth()-t_sz.GetWidth())/2, (sz.GetHeight()-t_sz.GetHeight())/2 + t_sz.GetHeight()));
- }
- else if (DisplayState == DISP_TestInstructions) { // Test instructions
- dc.Clear();
- wxString instructs = _("Old, Similar, or New?");
- if (P_2ChoiceTest)
- instructs = _("Old or New?");
- wxSize t_sz = dc.GetTextExtent(instructs);
- dc.DrawText(instructs,
- wxPoint((sz.GetWidth()-t_sz.GetWidth())/2, (sz.GetHeight()-t_sz.GetHeight())/2 - t_sz.GetHeight()));
- instructs = _("Press spacebar to start");
- t_sz = dc.GetTextExtent(instructs);
- dc.DrawText(instructs,
- wxPoint((sz.GetWidth()-t_sz.GetWidth())/2, (sz.GetHeight()-t_sz.GetHeight())/2 + t_sz.GetHeight()));
- }
- else if (DisplayState == DISP_Idle) {
- if (Logo && Logo->IsOk()) {
- wxBitmap TempBitmap = wxBitmap(*Logo,24);
- memDC.SelectObject(TempBitmap);
- int xsize = Logo->GetWidth();
- int ysize = Logo->GetHeight();
- dc.Clear();
- dc.Blit((sz.GetWidth()-xsize)/2, (sz.GetHeight()-ysize)/2, xsize , ysize, &memDC, 0, 0, wxCOPY, false);
- }
- }
- // dc.DrawText(wxNow(),wxPoint(10,10));
- if ((P_AllowTouch) && (DisplayState != DISP_Idle)) {
- wxSize WindowSize = GetSize();
- dc.SetPen(*wxBLACK_DASHED_PEN);
- wxSize t_sz;
- if (P_NPossibleResponses == 2) {
- dc.DrawLine(WindowSize.x / 2,WindowSize.y,WindowSize.x / 2,(90 * WindowSize.y) / 100);
- if (P_TouchLabels.Count() == 2) {
- if (Response == RESP_1)
- dc.SetTextForeground(*wxBLUE);
- else
- dc.SetTextForeground(*wxBLACK);
- dc.DrawText(P_TouchLabels[0],
- wxPoint(WindowSize.x / 4 - (dc.GetTextExtent(P_TouchLabels[0]).GetWidth() / 2), (90 * WindowSize.y) / 100));
- if (Response == RESP_2)
- dc.SetTextForeground(*wxBLUE);
- else
- dc.SetTextForeground(*wxBLACK);
- dc.DrawText(P_TouchLabels[1],
- wxPoint(3 * WindowSize.x / 4 - (dc.GetTextExtent(P_TouchLabels[1]).GetWidth() / 2), (90 * WindowSize.y) / 100));
- }
- }
- else if (P_NPossibleResponses == 3) {
- dc.DrawLine(2*WindowSize.x / 3,WindowSize.y,2*WindowSize.x / 3,(90 * WindowSize.y) / 100);
- dc.DrawLine(WindowSize.x / 3,WindowSize.y,WindowSize.x / 3,(90 * WindowSize.y) / 100);
- if (P_TouchLabels.Count() == 3) {
- if (Response == RESP_1)
- dc.SetTextForeground(*wxBLUE);
- else
- dc.SetTextForeground(*wxBLACK);
- dc.DrawText(P_TouchLabels[0],
- wxPoint(WindowSize.x / 6 - (dc.GetTextExtent(P_TouchLabels[0]).GetWidth() / 2), (90 * WindowSize.y) / 100));
- if (Response == RESP_2)
- dc.SetTextForeground(*wxBLUE);
- else
- dc.SetTextForeground(*wxBLACK);
- dc.DrawText(P_TouchLabels[1],
- wxPoint(WindowSize.x / 2 - (dc.GetTextExtent(P_TouchLabels[1]).GetWidth() / 2), (90 * WindowSize.y) / 100));
- if (Response == RESP_3)
- dc.SetTextForeground(*wxBLUE);
- else
- dc.SetTextForeground(*wxBLACK);
- dc.DrawText(P_TouchLabels[2],
- wxPoint(5 * WindowSize.x / 6 - (dc.GetTextExtent(P_TouchLabels[2]).GetWidth() / 2), (90 * WindowSize.y) / 100));
- }
- }
- }
- memDC.SelectObject(wxNullBitmap);
- }
- void c_DisplayCanvas::OnKey(wxKeyEvent &evt) {
- wxUniChar r=evt.GetUnicodeKey();
- Response = 0;
- // wxMessageBox(wxString::Format("%c %u",(char) r, (unsigned int) r));
- if (r) { // standard key
- if (P_Resp1Keys.Find(r) != wxNOT_FOUND)
- Response = RESP_1;
- else if (P_Resp2Keys.Find(r) != wxNOT_FOUND)
- Response = RESP_2;
- else if (P_Resp3Keys.Find(r) != wxNOT_FOUND)
- Response = RESP_3;
- else if (r == WXK_SPACE) // Don't think these versions are used
- Response = RESP_Start;
- else if (r == WXK_ESCAPE)
- Response = RESP_Break;
- /* else if ((DisplayState == DISP_Idle) && (r==WXK_F10)) {
- if (P_CustomMode)
- P_CustomMode = 0;
- else
- P_CustomMode = 1;
- wxMessageBox(wxString::Format("JS mode set to %d",P_CustomMode));
- }*/
- }
- else {
- switch (evt.GetKeyCode()) {
- case WXK_SPACE:
- Response = RESP_Start;
- break;
- case WXK_ESCAPE:
- Response = RESP_Break;
- break;
- case WXK_F10:
- if (DisplayState == DISP_Idle) {
- if (P_CustomMode)
- P_CustomMode = 0;
- else
- P_CustomMode = 1;
- wxMessageBox(wxString::Format("JS Mode set to %d - restart to have effect",P_CustomMode));
- }
- break;
- }
- }
- if ((DisplayState == DISP_Blank) || (DisplayState == DISP_Stim)) {
- if (Response == RESP_Start) {
- Response = 0;
- }
- }
- if (Response) {
- RT = swatch.Time();
- // MainFrame->SetStatusText(wxString::Format("%d %ld",Response,RT));
- }
- if ( (DisplayState == DISP_Idle) && ( (Response==RESP_1) || (Response==RESP_2) || (Response==RESP_3)) ) {
- MainFrame->SetStatusText(wxString::Format("Resp %d",Response));
- wxTheApp->Yield(true);
- wxMilliSleep(200);
- MainFrame->SetStatusText("");
- Response = RESP_None;
- }
- }
- void c_DisplayCanvas::OnLMouseClick(wxMouseEvent &evt) {
- wxPoint click_location;
- click_location = evt.GetPosition();
- wxSize WindowSize = GetSize();
- Response = 0;
- if (click_location.y >= (90 * WindowSize.y / 100)) {
- if (P_NPossibleResponses == 2) {
- if (click_location.x < WindowSize.x / 2)
- Response = RESP_1;
- else
- Response = RESP_2;
- }
- else if (P_NPossibleResponses == 3) {
- if (click_location.x < WindowSize.x / 3)
- Response = RESP_1;
- else if (click_location.x < (2 * WindowSize.x / 3))
- Response = RESP_2;
- else
- Response = RESP_3;
- }
- }
- else if ((DisplayState == DISP_StudyInstructions) || (DisplayState == DISP_TestInstructions))
- Response = RESP_Start;
- if (Response) {
- RT = swatch.Time();
- // MainFrame->SetStatusText(wxString::Format("%d %ld",Response,RT));
- }
- if ( (DisplayState == DISP_Idle) && ( (Response==RESP_1) || (Response==RESP_2) || (Response==RESP_3)) ) {
- MainFrame->SetStatusText(wxString::Format("Resp %d",Response));
- wxTheApp->Yield(true);
- wxMilliSleep(200);
- MainFrame->SetStatusText("");
- Response = RESP_None;
- }
- this->Refresh();
- evt.Skip();
- }
- c_DisplayCanvas::~c_DisplayCanvas() {
- if (DisplayedImage) delete DisplayedImage;
- }
canvas.cpp at commit d67d6e7, no license · at the source
Overview
- Department of Psychology, The Pennsylvania State University, University Park, Pennsylvania, USA
- Department of Psychological and Brain Sciences, University of Massachusetts, Amherst, Massachusetts, USA
Abstract
Mnemonic discrimination—the ability to distinguish between existing memories and similar new inputs—supports accurate memory in the face of interference (e.g., in a card game, recognizing that the card you are currently seeing, the King of Hearts, is distinct from the King of Diamonds you encountered earlier in the same hand). Although hippocampal pattern separation has been emphasized as a key mechanism for this process, recent theoretical frameworks and empirical findings suggest that surrounding medial temporal lobe and cortical regions also contribute by resolving interference. An important source of interference in everyday life is temporal interference: similar events may compete not only because they overlap perceptually, but also because they are separated by intervening experiences (e.g., distinguishing the King of Hearts you are currently holding in your hand from the King of Diamonds you encountered earlier in the game becomes increasingly difficult as additional cards are played and additional hands intervene between the two episodes). Here, we examined how temporal interference impacts mnemonic discrimination and its neural correlates using high‐resolution fMRI and a continuous recognition task in which the lag between an item's first presentation and its subsequent target or similar lure was systematically manipulated (10, 60, or 140 intervening trials). Behaviorally, increasing lag impaired both mnemonic discrimination and target recognition. At the neural level, lag effects were not observed in hippocampal subfields. Instead, temporal interference modulated activity in extrahippocampal MTL regions including parahippocampal and perirhinal cortex, as well as distributed cortical regions including frontoparietal control areas. Importantly, lag‐related modulation was process‐specific, with partially dissociable patterns for successful mnemonic discrimination and target recognition. Together, these findings demonstrate that temporal interference engages a distributed MTL‐cortical network that supports interference resolution during mnemonic discrimination.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above.
celstark/MST
d67d6e723dffba37b14cdb5f2a5852d645dcdf39, 5 March 2025Availability: 2 checks, the latest on 11 November 2026: the link answers
- 11 November 2026: the link answers
- 8 October 2026: the link answers
21 files
- CPP_Standalone/
canvas.cpp , C++, 268 lines - CPP_Standalone/
files.cpp , C++, 316 lines - CPP_Standalone/
main.cpp , C++, 1,013 lines - CPP_Standalone/
main.h , C/C++, 164 lines - CPP_Standalone/
parameters.cpp , C++, 231 lines - CPP_Standalone/
parameters.h , C/C++, 67 lines - LagGenerator/
CreateJSOrders.py , Python, 239 lines - LagGenerator/
CreateOrderLagBins_0_180 , MATLAB, 351 lines.m - LagGenerator/
CreateOrder_AllShort.m , MATLAB, 364 lines - LagGenerator/
CreateOrder_Copt2.m , MATLAB, 374 lines - LagGenerator/
Set_320/ , MATLAB, 382 linesCreateOrder_320.m - LagGenerator/
Set_320/ , MATLAB, 18 linesTestLagGenerator.m - LagGenerator/
Set_80x4/ , MATLAB, 32 linesCreateEichOrder.m - LagGenerator/
Set_80x4/ , MATLAB, 385 linesCreateOrder_80.m - LagGenerator/
TestLagGenerator.m , MATLAB, 17 lines - LagGenerator/
make_lags.py , Python, 185 lines - MST_Continuous_PsychoPy.
py , Python, 560 lines - MST_Continuous_PsychoPy_
320.py , Python, 575 lines - MST_Continuous_PsychoPy_
80x4.py , Python, 586 lines - MST_PsychoPy.py, Python, 587 lines
- README.md, Text, 33 lines
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 20 scripts, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
Data Availability Statement
The data that support the findings of this study are openly available in OSF at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 1 November 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 13 MeSH terms, 1 funder, 112 references.
Cite
This paper
Seo, M. S., Wagner, R. L., Chamberlain, J. D., Canada, K. L., & Dennis, N. A. (2026). Temporal Interference Modulates Medial Temporal and Frontoparietal Activity During Mnemonic Discrimination: A High-Resolution Whole-Brain fMRI Investigation. Hippocampus, 36(6), e70137. https://
BibTeX
@article{seo2026temporal
author = {Seo, Min Sung and Wagner, Rebecca L and Chamberlain, Jordan D and Canada, Kelsey L and Dennis, Nancy A},
title = {{Temporal Interference Modulates Medial Temporal and Frontoparietal Activity During Mnemonic Discrimination: A High-Resolution Whole-Brain fMRI Investigation}},
journal = {Hippocampus},
year = {2026},
month = nov,
volume = {36},
number = {6},
pages = {e70137},
publisher = {Wiley},
issn = {1050-9631},
doi = {10.1002/
url = {https://
pmid = {42823833},
pmcid = {PMC13631462}
}
RIS
TY - JOUR
AU - Seo, Min Sung
AU - Wagner, Rebecca L
AU - Chamberlain, Jordan D
AU - Canada, Kelsey L
AU - Dennis, Nancy A
TI - Temporal Interference Modulates Medial Temporal and Frontoparietal Activity During Mnemonic Discrimination: A High-Resolution Whole-Brain fMRI Investigation
T2 - Hippocampus
J2 - Hippocampus
PY - 2026
DA - 2026/
VL - 36
IS - 6
SP - e70137
SN - 1050-9631
PB - Wiley
DO - 10.1002/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1002/
"type": "article-journal",
"title": "Temporal Interference Modulates Medial Temporal and Frontoparietal Activity During Mnemonic Discrimination: A High-Resolution Whole-Brain fMRI Investigation",
"container-title": "Hippocampus",
"author": [
{
"family": "Seo",
"given": "Min Sung"
},
{
"family": "Wagner",
"given": "Rebecca L"
},
{
"family": "Chamberlain",
"given": "Jordan D"
},
{
"family": "Canada",
"given": "Kelsey L"
},
{
"family": "Dennis",
"given": "Nancy A"
}
],
"container-title-short":
"volume": "36",
"issue": "6",
"page": "e70137",
"DOI": "10.1002/
"PMID": "42823833",
"PMCID": "PMC13631462",
"ISSN": "1050-9631",
"publisher": "Wiley",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
11,
1
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1073/pnas.2603114123 [code]
- The human hippocampus can pattern separate memories by meaning.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: PsychoPy, pandas, SciPy, 1 other tool, 20 references
- [2] doi:10.1162/imag_a_00404 [code]
- Pattern separation involves regions beyond the hippocampus in non-demented elderly individuals: A 7T object lure task fMRI study.Journal: Imaging neuroscience (Cambridge, Mass.)In common: fMRI, 21 references
- [3] doi:10.1162/imag.a.1088 [code]
- fMRI signals of pattern separation in the neocortex and hippocampus to non-meaningful objects and their spatial location.Journal: Imaging neuroscience (Cambridge, Mass.)In common: pandas, SciPy, NumPy, fMRI, 19 references
- [4] doi:10.1002/hipo.70141 [code]
- The Strength of Target Representations Drives Mnemonic Discrimination: Evidence From Extended Delay and Hippocampal Damage.Journal: HippocampusIn common: 17 references
- [5] doi:10.3389/fnbeh.2023.1080366 [code]
- Optimizing the mnemonic similarity task for efficient, widespread use.Journal: Frontiers in behavioral neuroscienceIn common: PsychoPy, pandas, SciPy, 1 other tool, 14 references
- [6] doi:10.1038/s41467-023-36805-5 [code]
- Flexible reuse of cortico-hippocampal representations during encoding and recall of naturalistic events.Journal: Nature communicationsIn common: pandas, SciPy, NumPy, 17 references
- [7] doi:10.1038/s42003-025-09408-7
- Hippocampal-prefrontal connectivity relates to inter-individual differences and training gains in distinguishing similar memories.Journal: Communications biologyIn common: 13 references
- [8] doi:10.1038/s41597-024-02931-y [code]
- An fMRI Dataset on Social Reward Processing and Decision Making in Younger and Older Adults.Journal: Scientific dataIn common: PsychoPy, pandas, SciPy, 1 other tool, fMRI, 15 references
- [9] doi:10.7554/elife.80281 [code]
- Representational integration and differentiation in the human hippocampus following goal-directed navigation.Journal: eLifeIn common: pandas, NumPy, 16 references
- [10] doi:10.1162/imag.a.6 [code]
- Evaluating lesion-specific preprocessing pipelines for rs-fMRI in stroke patients: Impact on functional connectivity and behavioral prediction.Journal: Imaging neuroscience (Cambridge, Mass.)In common: pandas, SciPy, NumPy, fMRI, 16 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 20 scripts, and 0 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:247b590d5292ddd3…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1002/hipo.70137)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1002/hipo.70137.svg
:target: https://openscicode.org/badge/doi/10.1002/hipo.70137
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1002/hipo.70137"><img src="https://openscicode.org/badge/doi/10.1002/hipo.70137.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
