Suppr超能文献

Shady:一个用于实时视觉刺激操纵的软件引擎。

Shady: A software engine for real-time visual stimulus manipulation.

机构信息

Burke Neurological Institute, White Plains, NY, USA; Blythedale Children's Hospital, Valhalla, NY, USA.

Burke Neurological Institute, White Plains, NY, USA; Blythedale Children's Hospital, Valhalla, NY, USA.

出版信息

J Neurosci Methods. 2019 May 15;320:79-86. doi: 10.1016/j.jneumeth.2019.03.020. Epub 2019 Apr 1.

Abstract

BACKGROUND

Precise definition, rendering and manipulation of visual stimuli are essential in neuroscience. Rather than implementing these tasks from scratch, scientists benefit greatly from using reusable software routines from freely available toolboxes. Existing toolboxes work well when the operating system and hardware are painstakingly optimized, but may be less suited to applications that require multi-tasking (for example, closed-loop systems that involve real-time acquisition and processing of signals).

NEW METHOD

We introduce a new cross-platform visual stimulus toolbox called Shady (https://pypi.org/project/Shady)-so called because of its heavy reliance on a shader program to perform parallel pixel processing on a computer's graphics processor. It was designed with an emphasis on performance robustness in multi-tasking applications under unforgiving conditions. For optimal timing performance, the CPU drawing management commands are carried out by a compiled binary engine. For configuring stimuli and controlling their changes over time, Shady provides a programmer's interface in Python, a powerful, accessible and widely-used high-level programming language.

RESULTS

Our timing benchmark results illustrate that Shady's hybrid compiled/interpreted architecture requires less time to complete drawing operations, exhibits smaller variability in frame-to-frame timing, and hence drops fewer frames, than pure-Python solutions under matched conditions of resource contention. This performance gain comes despite an expansion of functionality (e.g. "noisy-bit" dithering as standard on all pixels and all frames, to enhance effective dynamic range) relative to previous offerings.

CONCLUSIONS

Shady simultaneously advances the functionality and performance available to scientists for rendering visual stimuli and manipulating them in real time.

摘要

背景

在神经科学中,精确定义、呈现和操作视觉刺激至关重要。科学家们通过使用可重复使用的软件例程从免费的工具包中受益,而不是从头开始实现这些任务。现有的工具包在操作系统和硬件经过精心优化时效果很好,但可能不太适合需要多任务处理的应用程序(例如,涉及实时采集和处理信号的闭环系统)。

新方法

我们引入了一个名为 Shady 的新跨平台视觉刺激工具包(https://pypi.org/project/Shady),之所以这样命名,是因为它严重依赖于着色器程序来在计算机的图形处理器上并行处理像素。它的设计重点是在苛刻条件下的多任务应用程序中具有性能鲁棒性。为了获得最佳的定时性能,CPU 绘图管理命令由编译后的二进制引擎执行。为了配置刺激并控制它们随时间的变化,Shady 在 Python 中提供了一个程序员接口,这是一种功能强大、易于访问且广泛使用的高级编程语言。

结果

我们的定时基准测试结果表明,Shady 的混合编译/解释架构在匹配的资源竞争条件下,与纯 Python 解决方案相比,完成绘图操作所需的时间更少,帧到帧的定时变化更小,因此丢帧率更低。尽管相对于以前的产品,功能(例如在所有像素和所有帧上标准的“噪声位”抖动,以增强有效动态范围)有所扩展,但仍能获得这种性能提升。

结论

Shady 同时提高了科学家渲染视觉刺激和实时操作它们的功能和性能。

相似文献

1
Shady: A software engine for real-time visual stimulus manipulation.
J Neurosci Methods. 2019 May 15;320:79-86. doi: 10.1016/j.jneumeth.2019.03.020. Epub 2019 Apr 1.
2
NIMH MonkeyLogic: Behavioral control and data acquisition in MATLAB.
J Neurosci Methods. 2019 Jul 15;323:13-21. doi: 10.1016/j.jneumeth.2019.05.002. Epub 2019 May 6.
3
PyGaze: an open-source, cross-platform toolbox for minimal-effort programming of eyetracking experiments.
Behav Res Methods. 2014 Dec;46(4):913-21. doi: 10.3758/s13428-013-0422-2.
4
Accuracy and precision of stimulus timing and reaction times with Unreal Engine and SteamVR.
PLoS One. 2020 Apr 8;15(4):e0231152. doi: 10.1371/journal.pone.0231152. eCollection 2020.
5
The Eyelink Toolbox: eye tracking with MATLAB and the Psychophysics Toolbox.
Behav Res Methods Instrum Comput. 2002 Nov;34(4):613-7. doi: 10.3758/bf03195489.
6
Interactive Light Stimulus Generation with High Performance Real-Time Image Processing and Simple Scripting.
Front Neuroinform. 2017 Dec 13;11:70. doi: 10.3389/fninf.2017.00070. eCollection 2017.
7
Ultrahigh temporal resolution of visual presentation using gaming monitors and G-Sync.
Behav Res Methods. 2018 Feb;50(1):26-38. doi: 10.3758/s13428-017-1003-6.
8
Falcon: a highly flexible open-source software for closed-loop neuroscience.
J Neural Eng. 2017 Aug;14(4):045004. doi: 10.1088/1741-2552/aa7526.
9
Dual-monitor deterministic hardware for visual stimuli generation in neuroscience experiments.
Annu Int Conf IEEE Eng Med Biol Soc. 2010;2010:1547-9. doi: 10.1109/IEMBS.2010.5626823.
10
Achieving precise display timing in visual neuroscience experiments.
J Neurosci Methods. 2010 Aug 30;191(2):171-9. doi: 10.1016/j.jneumeth.2010.06.018. Epub 2010 Jun 30.

引用本文的文献

1
Quantitative patterns of visual impairment and recovery in children with brain injury.
Res Sq. 2024 Jul 30:rs.3.rs-4511323. doi: 10.21203/rs.3.rs-4511323/v1.
2
Behavioral science labs: How to solve the multi-user problem.
Behav Res Methods. 2024 Dec;56(8):8238-8258. doi: 10.3758/s13428-024-02467-4. Epub 2024 Aug 12.
3
Tracking-Based Interactive Assessment of Saccades, Pursuits, Visual Field, and Contrast Sensitivity in Children With Brain Injury.
Front Hum Neurosci. 2021 Oct 29;15:737409. doi: 10.3389/fnhum.2021.737409. eCollection 2021.
4
: A neuroscientist's sound toolkit.
Heliyon. 2021 Feb 10;7(2):e06236. doi: 10.1016/j.heliyon.2021.e06236. eCollection 2021 Feb.

本文引用的文献

1
PsychoPy2: Experiments in behavior made easy.
Behav Res Methods. 2019 Feb;51(1):195-203. doi: 10.3758/s13428-018-01193-y.
3
Generating Stimuli for Neuroscience Using PsychoPy.
Front Neuroinform. 2009 Jan 15;2:10. doi: 10.3389/neuro.11.010.2008. eCollection 2008.
4
Vision egg: an open-source library for realtime visual stimulus generation.
Front Neuroinform. 2008 Nov 4;2:4. doi: 10.3389/neuro.11.004.2008. eCollection 2008.
6
PsychoPy--Psychophysics software in Python.
J Neurosci Methods. 2007 May 15;162(1-2):8-13. doi: 10.1016/j.jneumeth.2006.11.017. Epub 2007 Jan 23.
8
The Psychophysics Toolbox.
Spat Vis. 1997;10(4):433-6.
10
Accurate control of contrast on microcomputer displays.
Vision Res. 1991;31(7-8):1337-50. doi: 10.1016/0042-6989(91)90055-a.

文献AI研究员

20分钟写一篇综述,助力文献阅读效率提升50倍。

立即体验

用中文搜PubMed

大模型驱动的PubMed中文搜索引擎

马上搜索

文档翻译

学术文献翻译模型,支持多种主流文档格式。

立即体验