changed style

This commit is contained in:
Jan Benda 2024-06-07 15:29:12 +02:00
parent f0d290d11b
commit 77757c82cf

View File

@ -1,212 +1,131 @@
% Template for PLoS
% Version 3.6 Aug 2022
%
% % % % % % % % % % % % % % % % % % % % % %
%
% -- IMPORTANT NOTE
%
% This template contains comments intended
% to minimize problems and delays during our production
% process. Please follow the template instructions
% whenever possible.
%
% % % % % % % % % % % % % % % % % % % % % % %
%
% Once your paper is accepted for publication,
% PLEASE REMOVE ALL TRACKED CHANGES in this file
% and leave only the final text of your manuscript.
% PLOS recommends the use of latexdiff to track changes during review, as this will help to maintain a clean tex file.
% Visit https://www.ctan.org/pkg/latexdiff?lang=en for info or contact us at latex@plos.org.
%
%
% There are no restrictions on package use within the LaTeX files except that no packages listed in the template may be deleted.
%
% Please do not include colors or graphics in the text.
%
% The manuscript LaTeX source should be contained within a single file (do not use \input, \externaldocument, or similar commands).
%
% % % % % % % % % % % % % % % % % % % % % % %
%
% -- FIGURES AND TABLES
%
% Please include tables/figure captions directly after the paragraph where they are first cited in the text.
%
% DO NOT INCLUDE GRAPHICS IN YOUR MANUSCRIPT
% - Figures should be uploaded separately from your manuscript file.
% - Figures generated using LaTeX should be extracted and removed from the PDF before submission.
% - Figures containing multiple panels/subfigures must be combined into one image file before submission.
% For figure citations, please use "Fig" instead of "Figure".
% See http://journals.plos.org/plosone/s/figures for PLOS figure guidelines.
%
% Tables should be cell-based and may not contain:
% - spacing/line breaks within cells to alter layout or alignment
% - do not nest tabular environments (no tabular environments within tabular environments)
% - no graphics or colored text (cell background color/shading OK)
% See http://journals.plos.org/plosone/s/tables for table guidelines.
%
% For tables that exceed the width of the text column, use the adjustwidth environment as illustrated in the example table in text below.
%
% % % % % % % % % % % % % % % % % % % % % % % %
%
% -- EQUATIONS, MATH SYMBOLS, SUBSCRIPTS, AND SUPERSCRIPTS
%
% IMPORTANT
% Below are a few tips to help format your equations and other special characters according to our specifications. For more tips to help reduce the possibility of formatting errors during conversion, please see our LaTeX guidelines at http://journals.plos.org/plosone/s/latex
%
% For inline equations, please be sure to include all portions of an equation in the math environment. For example, x$^2$ is incorrect; this should be formatted as $x^2$ (or $\mathrm{x}^2$ if the romanized font is desired).
%
% Do not include text that is not math in the math environment. For example, CO2 should be written as CO\textsubscript{2} instead of CO$_2$.
%
% Please add line breaks to long display equations when possible in order to fit size of the column.
%
% For inline equations, please do not include punctuation (commas, etc) within the math environment unless this is part of the equation.
%
% When adding superscript or subscripts outside of brackets/braces, please group using {}. For example, change "[U(D,E,\gamma)]^2" to "{[U(D,E,\gamma)]}^2".
%
% Do not use \cal for caligraphic font. Instead, use \mathcal{}
%
% % % % % % % % % % % % % % % % % % % % % % % %
%
% Please contact latex@plos.org with any questions.
%
% % % % % % % % % % % % % % % % % % % % % % % %
\documentclass[10pt,letterpaper]{article}
\usepackage[top=0.85in,left=2.75in,footskip=0.75in]{geometry}
% amsmath and amssymb packages, useful for mathematical formulas and symbols
\usepackage{amsmath,amssymb}
\title{Weakly nonlinear responses at low intrinsic noise levels in two types of electrosensory primary afferents}
% Use adjustwidth environment to exceed column width (see example table in text)
\usepackage{changepage}
\author{Alexandra Barayeu\textsuperscript{1},
Maria Schlungbaum\textsuperscript{2,3},
Benjamin Lindner\textsuperscript{2,3},
Jan Benda\textsuperscript{1, 4}
Jan Grewe\textsuperscript{1, $\dagger$}}
% textcomp package and marvosym package for additional characters
\usepackage{textcomp,marvosym}
\date{\normalsize
\textsuperscript{1} Institute for Neurobiology, Eberhard Karls Universit\"at T\"ubingen, Germany\\
\textsuperscript{2} Bernstein Center for Computational Neuroscience Berlin, Berlin, Germany\\
\textsuperscript{3} Department of Physics, Humboldt University Berlin, Berlin, Germany\\
\textsuperscript{4} Bernstein Center for Computational Neuroscience Tübingen, Germany\\
\textsuperscript{$\dagger$} corresponding author: \url{jan.grewe@uni-tuebingen.de}}
% cite package, to clean up citations in the main text. Do not remove.
\usepackage{cite}
\newcommand{\runningtitle}{}
% Use nameref to cite supporting information files (see Supporting Information section for more info)
\usepackage{nameref}%,hyperref
\usepackage[breaklinks=true,colorlinks=true,citecolor=blue!30!black,urlcolor=blue!30!black,linkcolor=blue!30!black]{hyperref}
%%%%% overall style %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \usepackage{natbib}%sort,comma,,round
% \setcitestyle{super,comma,sort&compress}%authoryear,
% number the lines:
\newcommand{\setlinenumbers}{false}
% line numbers
\usepackage[right]{lineno}
% use double spacing:
\newcommand{\setdoublespacing}{false}
% ligatures disabled
\usepackage[nopatch=eqnum]{microtype}
\DisableLigatures[f]{encoding = *, family = * }
% show authors:
\newcommand{\showauthors}{true}
% color can be used to apply background shading to table cells only
\usepackage[table]{xcolor}
% show keywords:
\newcommand{\showkeywords}{true}
% show author contributions:
\newcommand{\showcontributions}{true}
% array package and thick rules for tables
\usepackage{array}
% figures and captions at end:
\newcommand{\figsatend}{false}
% create "+" rule type for thick vertical lines
\newcolumntype{+}{!{\vrule width 2pt}}
% remove images from figures:
\newcommand{\nofigs}{false}
% create \thickcline for thick horizontal lines of variable length
\newlength\savedwidth
\newcommand\thickcline[1]{%
\noalign{\global\savedwidth\arrayrulewidth\global\arrayrulewidth 2pt}%
\cline{#1}%
\noalign{\vskip\arrayrulewidth}%
\noalign{\global\arrayrulewidth\savedwidth}%
}
% \thickhline command for thick horizontal lines that span the table
\newcommand\thickhline{\noalign{\global\savedwidth\arrayrulewidth\global\arrayrulewidth 2pt}%
\hline
\noalign{\global\arrayrulewidth\savedwidth}}
% Remove comment for double spacing
%\usepackage{setspace}
%\doublespacing
% Text layout
\raggedright
\setlength{\parindent}{0.5cm}
\textwidth 5.25in
\textheight 8.75in
% Bold the 'Figure #' in the caption and separate it from the title/caption with a period
% Captions will be left justified
\usepackage[aboveskip=1pt,labelfont=bf,labelsep=period,justification=raggedright,singlelinecheck=off]{caption}
\renewcommand{\figurename}{Fig}
% Use the PLoS provided BiBTeX style
%\bibliographystyle{plos2015}
\bibliographystyle{apalike}%alpha}%}%alpha}%apalike}
% Remove brackets from numbering in List of References
\makeatletter
\renewcommand{\@biblabel}[1]{\quad#1.}
\makeatother
% Header and Footer with logo
\usepackage{lastpage,fancyhdr,graphicx}
\usepackage{epstopdf}
%\pagestyle{myheadings}
\pagestyle{fancy}
\fancyhf{}
%\setlength{\headheight}{27.023pt}
%\lhead{\includegraphics[width=2.0in]{PLOS-submission.eps}}
\rfoot{\thepage/\pageref{LastPage}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrule}{\hrule height 2pt \vspace{2mm}}
\fancyheadoffset[L]{2.25in}
\fancyfootoffset[L]{2.25in}
\lfoot{\today}
\usepackage{lipsum}
\usepackage[mediumspace,mediumqspace,Gray,amssymb]{SIunits}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% line numbering, spacing, authors, keywords %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{ifthen}
%% BEGIN MACROS SECTION
%%%%% species names %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\Lepto}{\emph{Apteronotus leptorhynchus}}
\newcommand{\lepto}{\emph{A. leptorhynchus}}
\newcommand{\Eigen}{\emph{Eigenmannia virescens}}
\newcommand{\eigen}{\emph{E. virescens}}
\usepackage[nointegrals]{wasysym}
%%%%% notes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\note}[2][]{\textbf{[#1: #2]}}
%\newcommand{\note}[2][]{}
\newcommand{\noteab}[1]{\note[AB]{#1}}
\newcommand{\notejb}[1]{\note[JB]{#1}}
\newcommand{\notejg}[1]{\note[JG]{#1}}
\newcommand{\notems}[1]{\note[MS]{#1}}
\newcommand{\notebl}[1]{\note[BL]{#1}}
\ifthenelse{\boolean{\setlinenumbers}}{%
\usepackage{lineno}\linenumbers}%
{\newenvironment{linenomath}{}{}}
%%%%% equation references %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\eqref}[1]{(\ref{#1})}
\newcommand{\eref}[1]{\ref{#1}}
\newcommand{\eqn}{Eq}
\newcommand{\Eqn}{Eq}
\newcommand{\eqns}{Eqs}
\newcommand{\Eqns}{Eqs}
\newcommand{\Eqnref}[1]{\Eqn~\eqref{#1}}
\newcommand{\Eqnsref}[1]{\Eqns~\eqref{#1}}
\ifthenelse{\boolean{\setdoublespacing}}{%
\usepackage{setspace}\doublespacing}{}
\ifthenelse{\boolean{\showauthors}}{}{\author{}\date{}}
\usepackage[inline]{enumitem}
\newenvironment{keywords}%
{\paragraph{Keywords}\begin{itemize*}[label={},itemjoin={~$|$\ },afterlabel={}]}%
{\end{itemize*}\par}
\usepackage{comment}
\ifthenelse{\boolean{\showkeywords}}{}{\excludecomment{keywords}}
\newenvironment{contributions}{\section{Author contributions}}{\par}
\ifthenelse{\boolean{\showcontributions}}{}{\excludecomment{contributions}}
%%%%% page style %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[left=25mm,right=25mm,top=25mm,bottom=25mm]{geometry}
\pagestyle{myheadings}
\markright{\runningtitle}
%%%%% language %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[english]{babel}
%%%%% fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{pslatex} % nice font for pdf file
%%%%% section style %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[sf,bf,it,big,clearempty]{titlesec}
\usepackage{titling}
\renewcommand{\maketitlehooka}{\sffamily\bfseries}
\renewcommand{\maketitlehookb}{\rmfamily\mdseries}
\setcounter{secnumdepth}{-1}
%%%%% math %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath}
\usepackage{lualatex-math}
%%%%% units %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[mediumspace,mediumqspace,Gray]{SIunits} % \ohm, \micro
%%%%% graphics %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xcolor}
%\pagecolor{white}
\usepackage{graphicx}
\usepackage{tabularx}
\newcommand{\trh}{\rule[-1ex]{0pt}{3.5ex}}
\newcommand{\trt}{\rule{0pt}{2.5ex}}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
%%%%% figures %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% captions:
\ifthenelse{\boolean{\setdoublespacing}}{%
\usepackage[format=plain,singlelinecheck=off,labelfont=bf,font={small,sf,doublespacing}]{caption}}%
{\usepackage[format=plain,singlelinecheck=off,labelfont=bf,font={small,sf}]{caption}}
% put caption on separate float:
\newcommand{\breakfloat}{\end{figure}\begin{figure}[t]}
% references to panels of a figure within the caption:
\newcommand{\figitem}[2][]{\ifthenelse{\equal{#1}{}}{\textsf{\bfseries #2}}{\textsf{\bfseries #2}}$_{\sf #1}$}
\newcommand{\figitem}[1]{\textsf{\bfseries\uppercase{#1}}\penalty10000 }
% references to panels of a figure within the text:
%\newcommand{\panel}[2][]{\textsf{#2}}
\newcommand{\panel}[2][]{\ifthenelse{\equal{#1}{}}{\textsf{#2}}{\textsf{#2}$_{\sf #1}$}}%\ifthenelse{\equal{#1}{}}{\textsf{#2}}{\textsf{#2}$_{\sf #1}$}
\newcommand{\panel}[1]{\textsf{#1}}
% references to figures:
\newcommand{\fref}[1]{\textup{\ref{#1}}}
\newcommand{\subfref}[2]{\textup{\ref{#1}}\,\panel{#2}}
% references to figures in normal text:
\newcommand{\fig}{Fig}
\newcommand{\Fig}{Figure}
\newcommand{\figs}{Figs}
\newcommand{\Figs}{Figures}
\newcommand{\fig}{fig.}
\newcommand{\Fig}{Fig.}
\newcommand{\figs}{figs.}
\newcommand{\Figs}{Figs.}
\newcommand{\figref}[1]{\fig~\fref{#1}}
\newcommand{\Figref}[1]{\Fig~\fref{#1}}
\newcommand{\figsref}[1]{\figs~\fref{#1}}
@ -216,40 +135,94 @@
\newcommand{\subfigsref}[2]{\figs~\subfref{#1}{#2}}
\newcommand{\Subfigsref}[2]{\Figs~\subfref{#1}{#2}}
% references to figures within brackets:
\newcommand{\figb}{Fig}
\newcommand{\figsb}{Figs}
\newcommand{\figb}{fig.}
\newcommand{\Figb}{Fig.}
\newcommand{\figsb}{figs.}
\newcommand{\Figsb}{Figs.}
\newcommand{\figrefb}[1]{\figb~\fref{#1}}
\newcommand{\Figrefb}[1]{\Figb~\fref{#1}}
\newcommand{\figsrefb}[1]{\figsb~\fref{#1}}
\newcommand{\Figsrefb}[1]{\Figsb~\fref{#1}}
\newcommand{\subfigrefb}[2]{\figb~\subfref{#1}{#2}}
\newcommand{\Subfigrefb}[2]{\Figb~\subfref{#1}{#2}}
\newcommand{\subfigsrefb}[2]{\figsb~\subfref{#1}{#2}}
\newcommand{\Subfigsrefb}[2]{\Figsb~\subfref{#1}{#2}}
% figure placement:
\ifthenelse{\boolean{\figsatend}}{%
\setcounter{topnumber}{10}%
\setcounter{totalnumber}{10}%
\renewcommand{\textfraction}{0.0}%
\renewcommand{\topfraction}{1.0}%
\renewcommand{\floatpagefraction}{0.0}%
\usepackage[nolists,markers,figuresonly]{endfloat}%
\ifthenelse{\boolean{\nofigs}}{\renewcommand{\efloatseparator}{\mbox{}}}{}%
\newcommand{\figurecaptions}{\pagestyle{empty}\clearpage\processdelayedfloats\renewcommand{\figureplace}{}}}%
{\setcounter{topnumber}{1}%
\setcounter{totalnumber}{2}%
\renewcommand{\textfraction}{0.2}%
\renewcommand{\topfraction}{0.8}%
\renewcommand{\floatpagefraction}{0.7}%
\newcommand{\figurecaptions}{}%
}
\newcommand*{\captionc}[1]{\captionof{figure}{#1}}
%%%%% changes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\remove}[2][]{%
\protect\ifthenelse{\value{showtrackchanges}<2}%
{\protect\ifthenelse{\value{showtrackchanges}=0}%
{}% 0
{\ifthenelse{\equal{#1}{}}{}{\textit{\textbf{[#1:]}} }\st{#2}}}% 1
{\protect\ifthenelse{\value{showtrackchanges}=2}%
{\protect\marginpar{\protect\rule[-0.3ex]{0.5mm}{2ex}}\ifthenelse{\equal{#1}{}}{}{\textit{\textbf{[#1:]}} }\st{#2}}% 2
{\protect\marginpar{\small\textbf{deleted\ifthenelse{\equal{#1}{}}{}{ [#1]}:} #2}}}}% 3
\newcommand{\add}[2][]{%
\protect\ifthenelse{\value{showtrackchanges}<2}%
{\protect\ifthenelse{\value{showtrackchanges}=0}%
{#2}% 0
{\textcolor{red}{\ifthenelse{\equal{#1}{}}{}{\textit{[#1:]} }#2}}}% 1
{\protect\ifthenelse{\value{showtrackchanges}=2}%
{{\protect\marginpar{\protect\rule[-0.3ex]{0.5mm}{2ex}}\bfseries \ifthenelse{\equal{#1}{}}{}{\textit{[#1:]} }#2}}% 2
{\protect\marginpar{\small\textbf{inserted\ifthenelse{\equal{#1}{}}{}{ [#1]}}}{\bfseries #2}}}}% 3
\newcommand{\change}[2][]{%
\protect\ifthenelse{\value{showtrackchanges}<2}%
{\protect\ifthenelse{\value{showtrackchanges}=0}%
{#2}% 0
{\textcolor{red}{\ifthenelse{\equal{#1}{}}{}{\textit{[#1:]} }#2}}}% 1
{\protect\ifthenelse{\value{showtrackchanges}=2}%
{\protect\marginpar{\protect\rule[-0.3ex]{0.5mm}{2ex}}{\bfseries \ifthenelse{\equal{#1}{}}{}{\textit{[#1:]} }#2}}% 2
{\protect\marginpar{\small\textbf{changed\ifthenelse{\equal{#1}{}}{}{ [#1]}}}{\bfseries #2}}}}% 3
% no images in figures:
\ifthenelse{\boolean{\nofigs}}{%
\newcommand{\showfigure}[1]{}}%
{\newcommand{\showfigure}[1]{#1}}
% bibliography ----------------------------------
\usepackage[round,colon]{natbib}
\renewcommand{\bibsection}{\section{References}}
\setlength{\bibsep}{0pt}
\setlength{\bibhang}{1.5em}
\bibliographystyle{jneurosci}
\usepackage[breaklinks=true,colorlinks=true,citecolor=blue!30!black,urlcolor=blue!30!black,linkcolor=blue!30!black]{hyperref}
%%%%% tables %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% references to tables:
\newcommand{\tref}[1]{\textup{\ref{#1}}}
% references to tables in normal text:
\newcommand{\tab}{Tab.}
\newcommand{\Tab}{Table}
\newcommand{\tabs}{Tabs.}
\newcommand{\Tabs}{Tables}
\newcommand{\tabref}[1]{\tab~\tref{#1}}
\newcommand{\Tabref}[1]{\Tab~\tref{#1}}
\newcommand{\tabsref}[1]{\tabs~\tref{#1}}
\newcommand{\Tabsref}[1]{\Tabs~\tref{#1}}
% references to tables within the bracketed text:
\newcommand{\tabb}{Tab.}
\newcommand{\tabsb}{Tab.}
\newcommand{\tabrefb}[1]{\tabb~\tref{#1}}
\newcommand{\tabsrefb}[1]{\tabsb~\tref{#1}}
%%%%% equation references %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\eqref}[1]{(\ref{#1})}
\newcommand{\eref}[1]{\ref{#1}}
\newcommand{\eqn}{Eq}
\newcommand{\Eqn}{Eq}
\newcommand{\eqns}{Eqs}
\newcommand{\Eqns}{Eqs}
\newcommand{\Eqnref}[1]{\Eqn~\eqref{#1}}
\newcommand{\Eqnsref}[1]{\Eqns~\eqref{#1}}
%%%%% species names %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\Lepto}{\emph{Apteronotus leptorhynchus}}
\newcommand{\lepto}{\emph{A. leptorhynchus}}
\newcommand{\Eigen}{\emph{Eigenmannia virescens}}
\newcommand{\eigen}{\emph{E. virescens}}
%%%%% notes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\note}[2][]{\textbf{[#1: #2]}}
%\newcommand{\note}[2][]{}
\newcommand{\noteab}[1]{\note[AB]{#1}}
\newcommand{\notejb}[1]{\note[JB]{#1}}
\newcommand{\notejg}[1]{\note[JG]{#1}}
\newcommand{\notems}[1]{\note[MS]{#1}}
\newcommand{\notebl}[1]{\note[BL]{#1}}
%%%%% new commands %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\fstim}{\ensuremath{f_{\rm{stim}}}}
@ -332,24 +305,6 @@
\newcommand{\bdiffehalf}{$\bdiff{}=\feod{}/2$}%diff of both
%beat frequencies
%%%%% tables %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% references to tables:
\newcommand{\tref}[1]{\textup{\ref{#1}}}
% references to tables in normal text:
\newcommand{\tab}{Tab.}
\newcommand{\Tab}{Table}
\newcommand{\tabs}{Tabs.}
\newcommand{\Tabs}{Tables}
\newcommand{\tabref}[1]{\tab~\tref{#1}}
\newcommand{\Tabref}[1]{\Tab~\tref{#1}}
\newcommand{\tabsref}[1]{\tabs~\tref{#1}}
\newcommand{\Tabsref}[1]{\Tabs~\tref{#1}}
% references to tables within the bracketed text:
\newcommand{\tabb}{Tab.}
\newcommand{\tabsb}{Tab.}
\newcommand{\tabrefb}[1]{\tabb~\tref{#1}}
\newcommand{\tabsrefb}[1]{\tabsb~\tref{#1}}
%%%%%%%%%%%%%%%%%%%%%%% Frequency combinations
\newcommand{\fsum}{\ensuremath{f_{1} + f_{2}}}%sum
\newcommand{\fdiff}{\ensuremath{|f_{1}-f_{2}|}}%diff of
@ -421,98 +376,40 @@
\newcommand{\fp}{\ensuremath{\rm{FP}}}%sum
\newcommand{\cd}{\ensuremath{\rm{CD}}}%sum
%% END MACROS SECTION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\vspace*{0.2in}
% Title must be 250 characters or less.
\begin{flushleft}
{\Large
\textbf{Weakly nonlinear responses at low intrinsic noise levels in two types of electrosensory primary afferents}
}
\newline
% Insert author names, affiliations and corresponding author email (do not include titles, positions, or degrees).
\\
Alexandra Barayeu\textsuperscript{1},
Maria Schlungbaum\textsuperscript{2,3},
Benjamin Lindner\textsuperscript{2,3},
Jan Benda\textsuperscript{1, 4}
Jan Grewe\textsuperscript{1, *}
\\
\bigskip
\textbf{1} Institute for Neurobiology, Eberhard Karls Universit\"at T\"ubingen, 72076 T\"ubingen, Germany\\
\textbf{2} Bernstein Center for Computational Neuroscience Berlin, Berlin, Germany\\
\textbf{3} Department of Physics, Humboldt University Berlin, Berlin, Germany\\
\textbf{4} Bernstein Center for Computational Neuroscience Tübingen, Tübingen, 72076, Germany\\
\bigskip
% Insert additional author notes using the symbols described below. Insert symbol callouts after author names as necessary.
%
% Remove or comment out the author notes below if they aren't used.
%
\paragraph{Short title:}
\paragraph{Corresponding author:}Jan Grewe, E-mail: jan.grewe@uni-tuebingen.de
\paragraph{Conflict of interest:}The authors declare no conflict of interest.
\paragraph{Author Contributions:} All authors designed the study and discussed the results. AB performed the data analyses and modelling, AB and JG drafted the paper, all authors discussed and revised the manuscript.
\paragraph{Keywords:} population coding $|$ conduction delay $|$ heterogeneity $|$ electric fish $|$ mutual information
% Additional Equal Contribution Note
% Also use this double-dagger symbol for special authorship notes, such as senior authorship.
% \ddag These authors also contributed equally to this work.
\maketitle
% Current address notes
% \textcurrency Current Address: Dept/Program/Center, Institution Name, City, State, Country % change symbol to "\textcurrency a" if more than one current address note
% \textcurrency b Insert second current address
% \textcurrency c Insert third current address
%\paragraph{Short title:}
%\paragraph{Corresponding author:}Jan Grewe, E-mail: jan.grewe@uni-tuebingen.de
%\paragraph{Conflict of interest:}The authors declare no conflict of interest.
%\paragraph{Author Contributions:} All authors designed the study and discussed the results. AB performed the data analyses and modelling, AB and JG drafted the paper, all authors discussed and revised the manuscript.
% Deceased author note
% \dag Deceased
% Group/Consortium Author Note
% \textpilcrow Membership list can be found in the Acknowledgments section.
\paragraph{Keywords:} population coding $|$ conduction delay $|$ heterogeneity $|$ electric fish $|$ mutual information
% Use the asterisk to denote corresponding authorship and provide email address in note below.
* jan.grewe@uni-tuebingen.de
\end{flushleft}
% Please keep the abstract below 300 words
\section*{Abstract}
\section{Abstract}
Neuronal processing is inherently nonlinear, mechanisms such as the spiking threshold, or recitication during synaptic transmission are central to neuronal computations. Here we address the consequences of nonlinear interactions between two sinewave stimuli in the context of an electrosensory cocktail party in weakly electric fish. In a previous field study, it was observed that an extremely weak intruder signal was detected despite the presence of a much stronger female signal. Modelling studies showed that, in some scenarios, the presence of the strong female signal leads to an improved intruder detection. This was associated with nonlinearities in neuronal processing. Theoretical work has shown that the presence of two independent periodic signals can lead to nonlinear interactions. We here extend on this by applying the analysis of the second-order susceptibility to experimentally recorded primary electroreceptor afferents of the active (P-units) and the passive (ampullary cells) electrosensory system. Our combined experimental and modelling approach shows that nonlinear interactions can be found in these cells and depends on the level of intrinsic noise. We can further show that simple white-noise stimulation can be used to quickly access the second-order susceptibility of a system even when the system is driven by the amplitude modulation of a carrier such as the electric organ discharge of weakly electric fish. This method can thus be easily applied to describe nonlinear processing in any sensory modality whether they are driven by direct stimuli or amplitude modulations.
% Please keep the Author Summary between 150 and 200 words
% Use first person. PLOS ONE authors please skip this step.
% Author Summary not valid for PLOS ONE submissions.
\section*{Author summary}
\section{Author summary}
Weakly electric fish use their self-generated electric field to detect a wide range of behaviorally relevant stimuli. Intriguingly, they show detection performances of stimuli that are (i) extremely weak and (ii) occur in the background of strong foreground signals, reminiscent of what is often described as the cocktail party problem. Such performances are achieved by boosting the signal detection through nonlinear mechanisms. We here analyze nonlinear encoding in two different populations of primary electrosensory afferences of the weakly electric fish. We derive the rules under which nonlinear effects can be observed in both electrosensory subsystems. In a combined experimental and modelling approach we generalize the approach of nonlinear susceptibility to systems that respond to amplitude modulations of a carrier signal.
\linenumbers
%Nonlinearities contribute to the encoding of the full behaviorally relevant signal range in primary electrosensory afferents.
%Nonlinear effects identified as mechanisms that contribute
%Nonlinearities in primary electrosensory afferents, the P-units, of \textit{Apteronotus leptorhynchus} enables the encoding of a wide dynamic range of behavioral-relevant beat frequencies and amplitudes
%Nonlinearities in primary electrosensory afferents contribute to the representation of a wide range of beat frequencies and amplitudes
%Nonlinearities contribute to the encoding of a wide range of beat frequencies and amplitudes in primary electrosensory afferents
%The role of nonlinearities in the encoding of a wide range of beat frequencies and amplitudes in primary electrosensory afferents
%Nonlinearities facilitate the encoding of a wide range of beat frequencies and amplitudes in primary electrosensory afferents
%\begin{abstract}
%In this work, the influence of nonlinearities on stimulus encoding in the primary sensory afferents of weakly electric fish of the species \lepto{} was investigated. These fish produce an electric organ discharge (EOD) with a fish-specific frequency. When the EOD of one fish interferes with the EOD of another fish, it results in a signal with a periodic amplitude modulation, called beat. The beat provides information about the sex and size of the encountered conspecific and is the basis for communication. The beat frequency is predicted as the difference between the EOD frequencies and the beat amplitude corresponds to the size of the smaller EOD field. Primary sensory afferents, the P-units, phase-lock to the EOD and encode beats with changes in their firing rate. In this work, the nonlinearities of primary electrosensory afferents, the P-units of weakly electric fish of the species \lepto{} and \eigen{} were addressed. Nonlinearities were characterized as the second-order susceptibility of P-units, in a setting where at least three fish were present. The nonlinear responses of P-units were especially strong in regular firing P-units. White noise stimulation was confirmed as a method to retrieve the socond-order suscepitbility in P-units.% with bursting being identified as a factor enhancing nonlinear interactions.
%\end{abstract}
%\end{frontmatter}
\newpage
\section{Introduction}
\section*{Introduction}
\begin{figure*}[t]
\includegraphics[width=\columnwidth]{plot_chi2}
\caption{\label{fig:lifresponse} First- (linear) and second-order response functions of the leaky integrate-and-fire model. \figitem{A} Magnitude of the first-order response function $|\chi_1(f_1)|$, also known as ``gain'' quantifies the response amplitude relative to the stimulus amplitude, both measured at the stimulus frequency. \figitem{B} Magnitude of the second-order response function $|\chi_2(f_, f_2)|$ quantifies the response at the sum of two stimulus frequencies. For linear systems, the second-order response functions is zero, because linear systems do not create new frequencies and thus there is no response at the summed frequencies. The plots show the analytical solutions from \cite{Lindner2001} and \cite{Voronenko2017} with $\mu = 1.1$ and $D = 0.001$.}
\end{figure*}
Nonlinear processes are key to neuronal information processing. Decision making is a fundamentally nonlinear process on the systemic level. On the cellular level, spiking neurons are inherently nonlinear: whether an action potential is elicited depends on the membrane potential to exceed a threshold\cite{Hodgkin1952,Koch1995}. Because of such nonlinearities, understanding and predicting neuronal responses to sensory stimuli is in general a difficult task.
@ -531,11 +428,12 @@ Field observations have shown that courting males were able to react to distant
\section{Results}
\begin{figure*}[t]
\includegraphics[width=\columnwidth]{plot_chi2}
\caption{\label{fig:lifresponse} First- (linear) and second-order response functions of the leaky integrate-and-fire model. \figitem{A} Magnitude of the first-order response function $|\chi_1(f_1)|$, also known as ``gain'' quantifies the response amplitude relative to the stimulus amplitude, both measured at the stimulus frequency. \figitem{B} Magnitude of the second-order response function $|\chi_2(f_, f_2)|$ quantifies the response at the sum of two stimulus frequencies. For linear systems, the second-order response functions is zero, because linear systems do not create new frequencies and thus there is no response at the summed frequencies. The plots show the analytical solutions from \cite{Lindner} and \cite{Voronenko2017} with $\mu = 1.1$ and $D = 0.001$.}
\end{figure*}
Theoretical work on leaky integrate-and-fire and conductance-based models suggests a distinct structure of the second-order response function for neurons with low levels of intrinsic noise driven in the super-threshold regime with low stimulus amplitudes (\figrefb{fig:lifresponse}, \citealp{Voronenko2017}). Here, we re-analyze a large set of recordings of P-units and ampullary cells of the active and passive electrosensory systems of the brown ghost knifefish \textit{Apteronotus leptorhynchus} together with simulations of LIF-based models of P-unit spiking in order to search for such weakly nonlinear responses in real neurons. We start out with a few example P-units to demonstrate the basic concepts.
\subsection{Nonlinear responses in P-units stimulated with two beat frequencies}
\begin{figure*}[t]
\includegraphics[width=\columnwidth]{motivation}
@ -544,24 +442,17 @@ Field observations have shown that courting males were able to react to distant
\end{figure*}
\section*{Results}
Theoretical work on leaky integrate-and-fire and conductance-based models suggests a distinct structure of the second-order response function for neurons with low levels of intrinsic noise driven in the super-threshold regime with low stimulus amplitudes (\figrefb{fig:lifresponse}, \citealp{Voronenko2017}). Here, we re-analyze a large set of recordings of P-units and ampullary cells of the active and passive electrosensory systems of the brown ghost knifefish \textit{Apteronotus leptorhynchus} together with simulations of LIF-based models of P-unit spiking in order to search for such weakly nonlinear responses in real neurons. We start out with a few example P-units to demonstrate the basic concepts.
\subsection*{Nonlinear responses in P-units stimulated with two beat frequencies}
Without any external stimulation, a P-unit fires action potentials at a spontaneous baseline rate \fbase{} to the fish's own EOD of frequency \feod{}. Accordingly, a peak at \fbase{} is present in the power spectrum of this baseline activity (\subfigrefb{fig:motivation}{A}). Superposition of the receiver's EOD with an EOD of another fish with frequency $f_1$ results in a beat, a periodic amplitude modulation of the receiver's EOD. The frequency of the beat is given by the difference frequency $\Delta f_1 = f_1 - \feod$ between the two fish. P-units encode this beat in their firing rate \cite{Bastian1981a,Barayeu2023} and consequently a peak at this beat frequency appears the the power spectrum of the response (\subfigrefb{fig:motivation}{B}). A second peak at the first harmonic indicates a nonlinear response that here is easily identified by the clipping of the P-unit's firing rate at zero. Pairing the fish with another fish with a higher beat frequency $\Delta f_2 = f_2 - \feod$ results in a weaker response with a single peak in the response power spectrum (\subfigrefb{fig:motivation}{C}). Note that $\Delta f_2$ has been choosen to match the P-unit's baseline firing rate.
When stimulating the fish with both frequencies, additional peaks appear in the response power spectrum at the sum \bsum{} and the difference frequency \bdiff{} (\subfigrefb{fig:motivation}{D}). Thus, the response is not equal to sum of the responses to the two beats presented separately. These peaks at the sum and the difference of the two stimulus frequencies are a hallmark of nonlinear interactions that by definition are absent in linear systems.
For this example we have chosen two specific stimulus (beat) frequencies. However, for a full characterization of nonlinear repsonses we would need to measure the response of the P-units to many different combinations of stimulus frequencies. In addition, the beat stimuli in the example were strong and partially revealed saturating nonlinearities of the P-units. For weakly nonlinear responses we need to use stimuli of much lower amplitudes.
\subsection*{Nonlinear signal transmission in low-CV P-units}
\subsection{Nonlinear signal transmission in low-CV P-units}
Weakly nonlinear responses are expected in cells with sufficiently low intrinsic noise levels, i.e. low baseline CVs \cite{Voronenko2017}. P-units fire action potentials probabilistically phase-locked to the self-generated EOD \cite{Bastian1981a}. Skipping of EOD cycles leads to the characteristic multimodal ISI distribution with maxima at integer multiples of the EOD period (\subfigrefb{fig:cells_suscept}{A}). In this example the baseline ISI distribution has a CV$_{\text{base}}$ of 0.2, which is at the lower end of the P-unit population \cite{Hladnik2023}. Spectral analysis of the baseline activity shows two major peaks: the first is located at the baseline firing rate \fbase, the second is located at the discharge frequency \feod{} of the electric organ and is flanked by two smaller peaks at $\feod \pm \fbase{}$ (\subfigref{fig:cells_suscept}{B}).
\begin{figure*}[tp]
\begin{figure*}[t]
\includegraphics[width=\columnwidth]{cells_suscept}
\caption{\label{fig:cells_suscept} Estimation of linear and nonlinear stimulus encoding in a low-CV P-unit (cell identifier ``2010-06-21-ai"). \figitem{A} Interspike interval (ISI) distribution of the cell's baseline activity, i.e. the cell is driven only by the unperturbed own electric field. The low CV of the ISIs indicates quite regular firing. \figitem{B} Power spectral density of the baseline response with peaks at the cell's baseline firing rate \fbase{} and the fish's EOD frequency \feod{}. \figitem{C} Random amplitude modulation stimulus (top, with cutoff frequency of 300\,Hz) and evoked responses (spike raster, bottom) of the same P-unit. The stimulus contrast (right) measures the strength of the AM. \figitem{D} Gain of the transfer function (first-order susceptibility), \Eqnref{linearencoding_methods}, computed from the responses to 10\,\% (light purple) and 20\,\% contrast (dark purple) RAM stimulation of 10\,s duration. \figitem{E, F} Absolute value of the second-order susceptibility, \Eqnref{eq:susceptibility}, for both the low and high stimulus contrast. Pink triangles mark vertical, horizontal, and diagonal lines where \fone, \ftwo{} or \fsum{} are equal to \fbase{}. \figitem{G} Second-order susceptibilities projected onto the diagonal (means of all anti-diagonals of the matrices shown in \panel{E, F}). Dots mark \fbase{}, horizontal dashed lines mark medians of the projected susceptibilities.}
\end{figure*}
@ -575,22 +466,22 @@ For the low-CV P-unit we observe a band of slightly elevated second-order suscep
In contrast, a high-CV P-unit (CV$_{\text{base}}=0.4$) does not exhibit pronounced nonlinearities even at low stimulus contrasts (\figrefb{fig:cells_suscept_high_CV}).
\subsection{Ampullary afferents exhibit strong nonlinear interactions}
\begin{figure*}[t]
\includegraphics[width=\columnwidth]{ampullary}
\caption{\label{fig:ampullary} Estimation of linear and nonlinear stimulus encoding in an ampullary afferent (cell identifier ``2012-04-26-ae"). \figitem{A} Interspike interval (ISI) distribution of the cell's baseline activity. The very low CV of the ISIs indicates almost perfect periodic spiking. \figitem{B} Power spectral density of baseline activity with peaks at the cell's baseline firing rate and its harmonics. \figitem{C} Bad-limited white noise stimulus (top, with cutoff frequency of 150\,Hz) added to the fish's self-generated electric field and spike raster of the evoked responses (bottom) for two stimulus contrasts as indicated (right). \figitem{D} Gain of the transfer function, \Eqnref{linearencoding_methods}, of the responses to stimulation with 2\,\% (light green) and 20\,\% contrast (dark green). \figitem{E, F} Absolute value of the second-order susceptibility, \Eqnref{eq:susceptibility}, for both stimulus contrasts as indicated. Pink triangles indicate baseline firing rate. \figitem{G} Projections of the second-order susceptibilities in \panel{E, F} onto the diagonal. \notejb{`` Wurden die ampullaeren auch auf 10s ausgewertet?.''}
}
\end{figure*}
\subsection*{Ampullary afferents exhibit strong nonlinear interactions}
Irrespective of the CV, neither of the two example P-units shows the complete expected structure of nonlinear interactions. Electric fish posses an additional electrosensory system, the passive or ampullary electrosensory system, that responds to low-frequency exogeneous electric stimuli. The population of ampullary afferents is much less heterogeneous, and known for the much lower CVs of their baseline ISIs (CV$_{\text{base}}=0.06$--$0.22$)\cite{Grewe2017}. Ampullary cells do not phase-lock to the EOD and the ISIs are unimodally distributed (\subfigrefb{fig:ampullary}{A}). As a consequence of the high regularity of their baseline spiking activity, the corresponding power spectrum shows distinct peaks at the baseline firing rate \fbase{} and harmonics of it. Since the cells do not fire phase locked to the EOD, there is no peak at \feod{} (\subfigrefb{fig:ampullary}{B}). When driven by a low-contrast noise stimulus (note: this is not an AM but a stimulus that is added to the self-generated EOD, \subfigref{fig:ampullary}{C}), ampullary cells exhibit very pronounced bands in the second-order susceptibility, where \fsum{} is equal to \fbase{} or its harmonic (yellow diagonals in \subfigrefb{fig:ampullary}{E}), implying strong nonlinear response components at these frequency combinations (\subfigrefb{fig:ampullary}{G}, top). With higher stimulus contrasts these bands disappear (\subfigrefb{fig:ampullary}{F}), the projection onto the diagonal looses its distinct peak at \fsum{} and its overal level is reduced (\subfigrefb{fig:ampullary}{G}, bottom).
\subsection*{Model-based estimation of the nonlinear structure}
\subsection{Model-based estimation of the nonlinear structure}
In the example recordings shown above (\figsrefb{fig:cells_suscept} and \fref{fig:ampullary}), we only observe nonlinear responses on the anti-diagnal of the second-order susceptibility, where the sum of the two stimulus frequencies matches the neuron's baseline firing rate, which is in line with theoretical expectations\cite{Voronenko2017}. However, a pronounced nonlinear response at frequencies \foneb{} or \ftwob{}, although predicted by theory, cannot be observed. Here we investigate how these discrepancies can be understood.
\begin{figure*}[tp]
\begin{figure*}[t]
\includegraphics[width=\columnwidth]{model_and_data}
\caption{\label{model_and_data} Estimating second-order susceptibilities in the limit of weak stimuli. \figitem{A} \suscept{} estimated from $N=11$ trials of an electrophysiological recording of another low-CV P-unit (cell 2012-07-03-ak) driven with a weak RAM stimulus. \notejb{The stimulus strength was with 2.5\,\% contrast in the electrophysiologically recorded P-unit. The contrast for the P-unit model was with 0.009\,\%, thus reproducing the CV of the electrophysiolgoical recorded P-unit during the 2.5\,\% contrast stimulation (see table~\ref{modelparams} for model parameters).} Pink edges mark baseline firing rate where enhanced nonlinear responses are expected. \figitem[i]{B} \textit{Standard condition} of model simulations with intrinsic noise (bottom) and a RAM stimulus (top). \figitem[ii]{B} \suscept{} estimated from simulations of the cell's LIF model counterpart (cell 2012-07-03-ak, table~\ref{modelparams}) based on the same number of trials as in the electrophysiological recording. \figitem[iii]{B} Same as \panel[ii]{B} but using $10^6$ stimulus repetitions. \figitem[i-iii]{C} Same as in \panel[i-iii]{B} but in the \textit{noise split} condition: there is no external RAM signal driving the model. Instead, a large part (90\,\%) of the total intrinsic noise is treated as signal and is presented as an equivalent amplitude modulation (\signalnoise, center), while the intrinsic noise is reduced to 10\,\% of its original strength (see methods for details). In addition to one million trials, this reveals the full expected structure of the second-order susceptibility.}
\end{figure*}
@ -606,11 +497,14 @@ Note, that the increased number of trials goes along with a substantial reductio
With high levels of intrinsic noise, we would not expect the nonlinear response features to survive. Indeed, we do not find these features in a high-CV P-unit and its corresponding model (not shown).
\subsection*{Second-order susceptibility can explain nonlinear peaks in pure sinewave stimulation}
\subsection{Second-order susceptibility can explain nonlinear peaks in pure sinewave stimulation}
We estimated the second-order susceptibility of P-unit responses using RAM stimuli. In particular, we found pronounced nonlinear responses in the limit of weak stimulus amplitudes. How do these findings relate to the situation of two pure sinewave stimuli with finite amplitudes that approximates the interference of EODs of real animals? For the P-units the relevant signals are the beat frequencies \bone{} and \btwo{} that arise from the interference of either of the two foreign EODs with the receiving fish's own EOD (\figref{fig:motivation}). In the introductory example, the response power spectrum showed peaks from nonlinear interactions at the sum of the two beat frequencies (orange marker, \subfigrefb{fig:motivation}{D}) and at the difference between the two beat frequencies (red marker, \subfigrefb{fig:motivation}{D}). In this example, $\Delta f_{2}$ was similar to \fbase{}, corresponding to the horizontal line of the second-order susceptibility estimated for a vanishing external RAM stimulus (\subfigrefb{model_and_data}\,\panel[iii]{C}). In the three-fish example, there was a second nonlinearity at the difference between the two beat frequencies (red dot, \subfigrefb{fig:motivation}{D}), that is not covered by the so-far shown part of the second-order susceptibility (\subfigrefb{model_and_data}\,\panel[iii]{C}), in which only the response at the sum of the two stimulus frequencies is addressed. % less prominent,
\begin{figure*}[tp]
\begin{figure*}[t]
\includegraphics[width=\columnwidth]{model_full}
\notejb{zero missing on y-axis in B}
\notejb{add tick at 100Hz in E \& F}
\notejb{C-F tags a bit lower, D\&F tag closer to yaxis}
\caption{\label{fig:model_full} Using second-order susceptibility to predict responses to sine-wave stimuli. \figitem[]{A} Absolute value of the second-order susceptibility, \Eqnref{eq:susceptibility}, for both positive and negative frequencies. \susceptf{} was estimated from $N=10^6$ trials of model simulations in the noise-split condition (cell 2012-07-03-ak, see table~\ref{modelparams} for model parameters). White lines indicate zero frequencies. Nonlinear responses at \fsum{} are quantified in the upper right and lower left quadrants. Nonlinear responses at \fdiff{} are quantified in the upper left and lower right quadrants. Baseline firing rate of this cell was at $\fbase=120$\,Hz. The position of the orange/red letters correspond to the beat frequencies used for the stimulation with pure sine-waves in the subsequent panels and indicate the sum/difference of those beat frequencies. \figitem[]{B} Absolute value of the first-order susceptibility. \figitem{C--F} Black line -- power spectral density of model simulations in response to stimulation with two pure sine waves, \fone{} and \ftwo, in addition to the receiving fish's own EOD (three fish scenario). The contrasts of beat beats is 0.0065. Colored circles highlight the height of selected peaks in the power spectrum. Black circles highlight the peak height that can be predicted from \panel{A, B}. Grey line -- power spectral density of model in the baseline condition. \figitem{B} The sum of the two beat frequencies match \fbase{}. \figitem{C} The difference of \fone{} and \ftwo{} match \fbase{}. \figitem{D} Only the first beat frequency matches \fbase{}. \figitem{C} None of the two beat frequencies matches \fbase{}. \noteab{Für die Transfer Funktion habe ich jetzt einen Faktor 1, für die Nichtlinearität einen Faktor 30, aber vielleicht wenn ich über mehrere Punkte mitteln muss und das alles so noisy ist das eben noch keine Gute Abschätzung in der Stauration?}}
\end{figure*}
@ -627,7 +521,7 @@ Is it possible based on the second-order susceptibility estimated by means of RA
\end{figure*}
%\Eqnref{response_modulation}
\subsection*{Low CVs and weak stimuli are associated with strong nonlinearity}
\subsection{Low CVs and weak stimuli are associated with strong nonlinearity}
All the statements about nonlinear encoding in p-type and ampullary electroreceptor afferents based on single cell examples shown above are supported by the analysis of our pool of 221 P-units and 47 ampullary afferents recorded in 71 specimen. For a comparison across cells we summarize the structure of the second-order susceptibilities in a single number, the peakedness of the nonlinearity \nli{} \Eqnref{eq:nli_equation}, that characterizes the size of the expected peak of the projections of a \suscept{} matrix onto its diagonal at the baseline firing rate (e.g. \subfigref{fig:cells_suscept}{G}). \nli{} assumes high values when the peak at \fbase{} is pronounced relative to the median of projections onto the diagonal and is small when there is no distinct peak. The \nli{} values of the P-unit population depend weakly on the CV of the baseline ISI distribution. Cells with lower baseline CVs tend to have more pronounced peaks in their projections than those that have high baseline CVs (\subfigrefb{fig:data_overview}{A}). This negative correlation is more pronounced against the CV measured during stimulation (\subfigrefb{fig:data_overview}{C}).
The effective stimulus strength also plays an important role. We quantify the effect a stimulus has on a cell's response by the response modulation --- the standard deviation of a cell's firing rate in response to a RAM stimulus. P-units are heterogeneous in their sensitivity, their response modulations to the same stimulus contrast vary a lot \cite{Grewe2017}. Cells with weak responses to a stimulus, be it an insensitive cell or a weak stimulus, have higher \nli{} values and thus a more pronounced ridge in the second-order susceptibility at \fsumb{} in comparison to strongly responding cells that basically have flat second-order susceptibilities (\subfigrefb{fig:data_overview}{E}). How pronounced nonlinear response components are in P-units thus depends on the baseline CV (a proxy for the internal noise level), and both the CV and response strength during stimulation (effective output noise).
@ -637,7 +531,7 @@ The effective stimulus strength also plays an important role. We quantify the ef
The population of ampullary cells is generally more homogeneous, with lower baseline CVs than P-units. Accordingly, \nli{} values of ampullary cells are indeed much higher than in P-units by about a factor of ten. Ampullary cells also show a negative correlation with baseline CV. Again, sensitive cells with strong response modulations are at the bottom of the distribution and have \nli{} values close to one (\subfigrefb{fig:data_overview}{B, D}). The weaker the response modulation, because of less sensitive cells or weaker stimulus amplitudes, the stronger the nonlinear component of a cell's response (\subfigrefb{fig:data_overview}{F}).
%(Pearson's $r=-0.35$, $p < 0.01$) (Pearson's $r=-0.59$, $p < 0.0001$)
\section*{Discussion}
\section{Discussion}
\notejb{Leftovers from discussion}
@ -665,16 +559,16 @@ The appearing difference peak is known as the social envelope\cite{Stamper2012En
%\,\panel[iii]{C}
\subsection*{Theory applies to systems with and without carrier}
\subsection{Theory applies to systems with and without carrier}
Theoretical work\cite{Voronenko2017} explained analytically the occurrence of nonlinear products when a LIF model neuron is stimulated with pure sine-waves. To investigate whether the same mechanisms occur in electroreceptor afferents which are driven by AMs of a carrier and not by pure sine-waves, we followed the previous approach and quantified the second-order susceptibility from responses to white-noise stimuli \cite{Voronenko2017, Egerland2020, Neiman2011fish,Nikias1993}. We expected to see elevated second-order susceptibility where either of the foreign signals matches the baseline firing rate ($f_1=f_{base}$ or $f_2=f_{base}$) or when the sum equals the baseline firing rate of the neuron (\fsumb{}) creating a triangular pattern of elevated \suscept{} e.g.\,\subfigref{model_and_data}\,\panel[iii]{C}. Indeed, we find traces of the same nonlinearities in the neuronal responses of p-type electroreceptor afferents. The nonlinear pattern observed in the experimental data, however, matches to the expectations only partially and only in a subset of neurons (\figsref{fig:cells_suscept} and\,\ref{fig:ampullary}). Nevertheless, the theory holds also for systems that are driven by AMs of a carrier and is thus more widely applicable.
\subsection*{Intrinsic noise limits nonlinear responses}
\subsection{Intrinsic noise limits nonlinear responses}
Only those P-units that exhibit low coefficients of variation (CV) of the interspike-interval distribution (\subfigref{fig:cells_suscept}{A}) in their unperturbed baseline response show the expected nonlinerities (\subfigref{fig:data_overview}{A}). Such low-CV cells are rare among the 221 P-units that we used in this study. The afferents of the passive electrosensory system, the ampullary cells, however have generally lower CVs and show a much clearer nonlinearity pattern than the low-CV P-unit exemplified here (compare \figsref{fig:cells_suscept} and \ref{fig:ampullary}). The single ampullary cell featured in \figref{fig:ampullary} is a representative of the majority of ampullary cells analyzed here. All ampullary cells have CVs below 0.4 with a median around 0.12 and the observed \nli{}s are 10-fold higher than in P-units.
The CV serves as a proxy for the intrinsic noise in the cells. In both cell types, we observe a negative correlation between \nli{} and the CV, indicating that it is the level of intrinsic noise that plays a role here. These findings are in line with previous studies that propose that noise linearizes the system\cite{Roddey2000, Chialvo1997, Voronenko2017}. More intrinsic noise has been demonstrated to increase the CV and reduce nonlinear phase-locking in vestibular afferents\cite{Schneider2011}. Reduced noise, on the other hand, has been associated with stronger nonlinearity in pyramidal cells of the ELL\cite{Chacron2006}. Further support for the notion of noise limiting the nonlinearity comes from our P-unit LIF model that faithfully reproduces P-unit activity\cite{Barayeu2023}. We can use this model and apply a noise-split \cite{Lindner2022} based on the to the Furutsu-Novikov theorem\cite{Novikov1965,Furutsu1963}, to increase the signal-to-noise ratio in the cell while keeping the overall response variability constant (see methods). Treating 90\,\% of the total noise as signal and simulating large numbers of trial uncovers the full nonlinear structure (\figref{model_and_data}) seen in LIF neurons and the analytical derivations when driven with sine-wave stimuli\cite{Voronenko2017}.
%
\subsection*{Noise stimulation approximates the real three-fish interaction}
\subsection{Noise stimulation approximates the real three-fish interaction}
Our analysis is based on the neuronal responses to white noise stimulus sequences. For the P-units, the stimulus was a random amplitude modulation (RAM) while it was a direct noise stimulus for the ampullary cells. These broad-band stimuli have the advantage that all behaviorally relevant frequencies can be measured with a single stimulus presentation and it is a widely used approach to characterize sensory coding\cite{French1973,Marmarelis1999, Borst1999, Chacron2005, Grewe2017}. However, these stimuli also increase the total level of noise in the system and may have a linearizing effect on signal transmission. In a our P-unit models, we were able to make use of the Furutsu-Novikov theorem to estimate nonlinear signal transmission for zero-amplitude stimulation. Only with this procedure and many trials, we find for low-CV P-units all the pronounced ridges in the second-order susceptibility that we would expect according to theory \cite{Voronenko2017}.
In the natural situation, the stimuli are periodic signals defined by the difference frequencies. How well can we extrapolate from the white noise analysis to the pure sinewave situation? \notejg{Predictions from the X2 matrix and the equations in Voronekov}
@ -687,7 +581,7 @@ In contrast to the situation with individual frequencies (direct sine-waves or s
% Here it was demonstrated that the second-order susceptibility for the two RAM noise input frequencies \fone{} and \ftwo{} can approximate a three-fish setting, where the driving force for the P-unit are two beats with frequencies \bone{} and \btwo{}. This was confirmed by a low-CV P-unit, where nonlinearities in the P-unit response occurred at the sum and difference of the beat frequencies for pure sine-wave stimulation (\figrefb{fig:motivation}). In this P-unit the nonlinearity appeared in a three-wave setting with \bone{} being close to \fbase{}, corresponding to a frequency combination on the vertical line at \foneb{} in the second-order susceptibility (\subfigrefb{fig:model_full}{B}). This implies that even if only the diagonal structure can be accessed with noise stimulation in the second-order susceptibility in an experiment (\subfigrefb{fig:model_full}{A}), it can be taken as an indicator that the whole nonlinear structure should be present during pure sine-wave stimulation in the same cell. With this RAM stimulation was demonstrated to be an effective method to scan the three-fish or two-beat plane and estimate the whole theoretically predicted nonlinear structure in experimentally recorded cells.
\subsection*{Selective readout versus integration of heterogeneous populations}% Nonlinearity might be influenced once integrating from a P-unit population with heterogeneous baseline properties}%Heterogeneity of P-units might influence
\subsection{Selective readout versus integration of heterogeneous populations}% Nonlinearity might be influenced once integrating from a P-unit population with heterogeneous baseline properties}%Heterogeneity of P-units might influence
The observed nonlinear effects might facilitate the detectability of faint signals during a three fish setting, the electrosensory cocktail party. These nonlinear effects are, however, very specific with respect to the relation of stimulus frequencies and the P-unit baseline frequency. The EOD frequencies of the interacting fish would be drawn from the distributions of EOD frequencies found in male and female fish\cite{Hopkins1974Eigen, Meyer1987, Henninger2018, Henninger2020}. To be behaviorally relevant the faint signal detection would require reliable neuronal signaling irrespective of the individual EOD frequencies.
P-units, however are very heterogeneous in their baseline firing properties\cite{Grewe2017, Hladnik2023}. The baseline firing rates vary in wide ranges (50--450\,Hz). This range covers substantial parts of the beat frequencies that may occur during animal interactions which is limited to frequencies below the Nyquist frequency (0 -- \feod/2)\cite{Barayeu2023}. It is thus likely that there are P-units which match approximately to the specificities of the different encounters.
@ -695,20 +589,20 @@ P-units, however are very heterogeneous in their baseline firing properties\cite
On the other hand, the nonlinearity was found only in low-CV P-units (with white noise stimulation). The CVs are also very heterogeneous (0.1--1.4, \figref{fig:data_overview}\panel{A}) in our sample. Only a small fraction of the P-units has a sufficiently low level of intrinsic noise and will exhibit nonlinear responses. The P-units project to the ELL\cite{Krahe2014} and the integrating pyramidal cells in the different segments receive inputs in the range of 10s to 1000s of neurons\cite{Maler2009a}. Since the receptive fields of the pyramidal neurons are patches of adjacent receptors on the fish's body surface \cite{Bastian2002, Maler2009a, Haggard2023} and the input heterogeneity does not depend on the location of the receptor on the fish body \cite{Hladnik2023} the pyramidal cell input population will be heterogeneous. Heterogeneity was shown to be generally advantageous for the encoding in this\cite{Hladnik2023} and other systems\cite{Padmanabhan2010, Beiran2018}. At the same time it contradicts the apparent need for a selective readout of low-CV cells to maintain information arising through nonlinear interactions.
A possible readout mechanism should be the topic of future studies that need to take into account that the nonlinearities are stronger in pure sine-wave stimulation and the fraction of cells that show it under naturalistic stimulation might be larger than expected from the distribution of CVs.
\subsection*{Behavioral relevance of nonlinear interactions}
\subsection{Behavioral relevance of nonlinear interactions}
The behavioral relevance of the weak signal detection in P-units is evident from the courtship context observed in freely interacting animals\cite{Henninger2018}. Outside courtship behavior, the encoding of secondary or social envelopes is a common need\cite{Stamper2012Envelope}. In a previous study it was demonstrated that information about low-frequency secondary envelopes would not be present in P-units' responses but would arise thorough nonlinear processing downstream in the ELL \cite{Middleton2006,Middleton2007}. Based on our work we would predict that only a small subset of cells, with low CVs, should encode the social envelopes under white noise stimulation. An absence of low-CVs cells in the population analyzed in the previous studies could explain their conclusions. On the other hand, another study showed that P-units with strong nonlinearities, low firing rates and high CVs could indeed encode social envelopes\cite{Savard2011}. These findings are in contrast to the previously mentioned work\cite{Middleton2007} and, at first glance, also to our results. The missing link, that has not been considered in this work, might be the bursting of P-units, the repeated firing of spikes after one EOD period interleaved with longer intervals of quietness\cite{Chacron2004}. Bursting was not explicitly addressed in the previous work, still the reported high CVs of the envelope encoding P-units indicate a higher rate of bursting\cite{Savard2011}. How bursts influence the second-order susceptibility of P-units will be addressed in following works (in preparation). Note that in this work we operated in a regime of weak stimuli and that the envelope encoding addressed in \cite{Savard2011,Middleton2007} operates in a regime of strong stimuli, where the firing rate is saturated. The exact transition from the nonlinearities in a regime of weak stimuli to a regime of strong stimuli could be addressed in further P-unit studies.
Sinusoidal AMs are relevant in interactions with a few fish. We can understand the noise as the presence of many animals with individual EOD frequencies at the same time. Under noise stimulation, nonlinearities were demonstrated to be strong for weak stimuli but were shown to decrease for stronger noise stimuli (\figrefb{fig:cells_suscept}). As long as the noise signal is weak, those fish are distant and the nonlinearity is maintained. An increasing stimulus amplitude would indicate that many fish are close to the receiver and a decrease of nonlinear effects can be observed. These findings imply that the nonlinear effects arising in the presence of three fish decline the more fish join. \lepto{} usually prefers small groups of fish\cite{Stamper2010}. Thus, the described second-order susceptibility might still be behaviorally relevant under natural conditions. The decline of nonlinear effects when several fish are present might be an adaptive process reducing the number of frequencies represented in its primary sensory afferents to a minimum. Such representation would still leave room to create nonlinear effects at later processing steps in higher-order neurons.
The afferents of the passive electrosensory system, the ampullary cells, were found to exhibit much stronger nonlinearities than P-units (\figref{fig:data_overview}). The adequate stimulus for this system is a direct stimulation not an amplitude modulation. In this sense the ampullary cells are closer to the LIF models used by Voroneko and colleagues\cite{Voronenko2017} and we can thus expect that the same nonlinear mechanisms are at work here. For the ampullary system, the sinewave stimulation is not as relevant as for the P-unit system. Ampullary cells encode low-frequency exogenous electric signals such as muscle potentials induced by prey movement\cite{Kalmijn1974, Engelmann2010, Neiman2011fish}. The simultaneous muscle activity of a swarm of prey (such as \textit{Daphnia}) resembles Gaussian white noise\cite{Neiman2011fish}, similar to the stimuli used here. Our results show some similarities with the analyses by Neiman and Russel\cite{Neiman2011fish} who study the encoding in ampullary afferents in the paddlefish. There, the power spectrum of the spontaneous activity also shows a peak at the baseline frequency (internal oscillator) but also at the oscillation frequency measured at the epithelium and interactions of both. Most of the latter disappear in the case of external stimulation, though. Here we find only peaks at the baseline frequency of the neuron and its harmonics. There are interesting similarities and dissimilarities; stimulus encoding in the paddlefish as well as in the brown ghost is very linear for low frequencies and there are nonlinearities in both systems. Linear encoding in the paddlefish shows a gap in the spectrum at the frequency of the epitheliar oscillation, instead the nonlinear response is very pronounced there. In \lepto{}, the dominating frequency under baseline conditions is the baseline firing rate, and we do see increased nonlinearity in this frequency range. The baseline frequency, however, is outside the linear coding range\cite{Grewe2017} while it is within the linear coding range in paddlefish\cite{Neiman2011fish}. Interestingly, the nonlinear response in the paddlefish ampullaries increases with stimulus intensity while it disappears in our case (\subfigrefb{fig:data_overview}{F}). The population of ampullary cells is much more homogeneous with respect to the baseline rate (131$\pm$29\,Hz) and stimulus encoding properties than the P-units\cite{Grewe2017}. This implies that, if the stimulus contains the appropriate frequency components that sum up to the baseline rate, there should be a nonlinear response at a frequency that is similar for the full population of ampullary cells (the baseline frequency) that is outside the linear coding range. Postsynaptic cells integrating ampullary input might be able to extract this nonlinear response from the input population. How such nonlinear effects in ampullary cells might influence prey detection should be addressed in further studies.
\subsection*{Conclusion}
\subsection{Conclusion}
We have demonstrated that there are pronounced nonlinear responses in the primary electrosensory afferences of the weakly electric fish \lepto{}, systems that are very often characterized using linear methods. The observed nonlinearities match the expectations from previous theoretical studies\cite{Voronenko2017}. We can confirm that the theory applies also to systems that are encoding amplitude modulations of a carrier signal. Comparisons of P-units and ampullary cells showed that it is the level of intrinsic noise that determines how strongly nonlinear the system acts. Using the second-oder susceptibility estimated from the responses to white noise stimuli provides an easy way to determine the nonlinearity of the system under study. P-units share several features with mammalian
auditory nerve fibers and such nonlinear effects might also be expected in the auditory system during the encoding of amplitude modulations \cite{Joris2004}.
\section*{Methods}
\section{Methods}
\subsection*{Experimental subjects and procedures}
\subsection{Experimental subjects and procedures}
Within this project we re-evaluated datasets that were recorded between 2010 and 2023 at the Ludwig Maximilian University (LMU) M\"unchen and the Eberhard-Karls University T\"ubingen. All experimental protocols complied with national and European law and were approved by the respective Ethics Committees of the Ludwig-Maximilians Universität München (permit no. 55.2-1-54-2531-135-09) and the Eberhard-Karls Unversität Tübingen (permit no. ZP 1/13 and ZP 1/16).
The final sample consisted of 221 P-units and 47 ampullary electroreceptor afferents recorded in 71 weakly electric fish of the species \lepto{}. The original electrophysiological recordings were performed on male and female weakly electric fish of the species \lepto{} that were obtained from a commercial supplier for tropical fish (Aquarium Glaser GmbH, Rodgau,
@ -717,29 +611,29 @@ Germany). The fish were kept in tanks with a water temperature of $25\pm1\,^\cir
Before surgery, the animals were deeply anesthetized via bath application with a solution of MS222 (120\,mg/l, PharmaQ, Fordingbridge, UK) buffered with Sodium Bicarbonate (120\,mg/l). The posterior anterior lateral line nerve (pALLN) was exposed by making a small cut into the skin covering the nerve. The cut was placed dorsal of the operculum just before the nerve descends towards the anterior lateral line ganglion (ALLNG). Those parts of the skin that were to be cut were locally anesthetized by cutaneous application of liquid lidocaine hydrochloride (20\,mg/ml, bela-pharm GmbH). During the surgery water supply was ensured by a mouthpiece to maintain anesthesia with a solution of MS222 (100\,mg/l) buffered with Sodium Bicarbonate (100\,mg/l). After surgery fish were immobilized by intramuscular injection of from 25\,$\micro$l to 50\,$\micro$l of tubocurarine (5\,mg/ml dissolved in fish saline; Sigma-Aldrich).
Respiration was then switched to normal tank water and the fish was transferred to the experimental tank.
\subsection*{Experimental setup}
\subsection{Experimental setup}
For the recordings fish were positioned centrally in the experimental tank, with the major parts of their body submerged into the water. Those body parts that were above the water surface were covered with paper tissue to avoid drying of the skin. Local analgesia was refreshed in intervals of two hours by cutaneous reapplication of Lidocaine (2\,\%; bela-pharm, Vechta, Germany) around the surgical wounds. Electrodes (borosilicate; 1.5\,mm outer diameter; GB150F-8P; Science Products, Hofheim, Germany) were pulled to a resistance of 50--100\,\mega\ohm{} (model P-97; Sutter Instrument, Novato, CA) and filled with 1\,M KCl solution. Electrodes were fixed in a microdrive (Luigs-Neumann, Ratingen, Germany) and lowered into the nerve (\figrefb{fig:setup}, blue triangle). Recordings of electroreceptor afferents were amplified and lowpass filtered at 10\,kHz (SEC-05, npi-electronics, Tamm, Germany, operated in bridge mode). All signals, neuronal recordings, recorded EOD and the generated stimulus, were digitized with sampling rates of 20 or 40\,kHz (PCI-6229, National Instruments, Austin, TX). RELACS (\url{www.relacs.net}) running on a Linux computer was used for online spike and EOD detection, stimulus generation, and calibration. Recorded data was then stored on the hard drive for offline analysis.
\subsection*{Identification of P-units and ampullary cells}
\subsection{Identification of P-units and ampullary cells}
The neurons were classified into cell types during the recording by the experimenter. P-units were classified based on baseline firing rates of 50--450\,Hz and a clear phase-locking to the EOD and their responses to amplitude modulations of their own EOD\cite{Grewe2017, Hladnik2023}. Ampullary cells were classified based on firing rates of 80--200\,Hz absent phase-locking to the EOD and responses to low-frequency sinusoidal stimuli\cite{Grewe2017}. We here selected only those cells of which the neuron's baseline activity as well as the responses to frozen noise stimuli were recorded.
\subsection*{Electric field recordings}
\subsection{Electric field recordings}
The electric field of the fish was recorded in two ways: 1. we measured the so-called \textit{global EOD} with two vertical carbon rods ($11\,\centi\meter$ long, 8\,mm diameter) in a head-tail configuration (\figrefb{fig:setup}, green bars). The electrodes were placed isopotential to the stimulus. This signal was differentially amplified with a factor between 100 and 500 (depending on the recorded animal) and band-pass filtered (3 to 1500\,Hz pass-band, DPA2-FX; npi electronics, Tamm, Germany). 2. The so-called \textit{local EOD} was measured with 1\,cm-spaced silver wires located next to the left gill of the fish and orthogonal to the fish's longitudinal body axis (amplification 100 to 500 times, band-pass filtered with 3 to 1\,500\,Hz pass-band, DPA2-FX; npi-electronics, Tamm, Germany, \figrefb{fig:setup}, red markers). This local measurement recorded the combination of the fish's own field and the applied stimulus and thus serves as a proxy of the transdermal potential that drives the electroreceptors.
\subsection*{Stimulation}
\subsection{Stimulation}
The stimulus was isolated from the ground (ISO-02V, npi-electronics, Tamm, Germany) and delivered via two horizontal carbon rods (30 cm length, 8 mm diameter) located $15\,\centi\meter$ laterally to the fish (\figrefb{fig:setup}, gray bars). The stimulus was calibrated with respect to the local EOD.
\begin{figure*}[!ht]%(\subfigrefb{beat_amplitudes}{B}).
\begin{figure*}[t]
\includegraphics[width=\columnwidth]{Settup}
\caption{\label{fig:setup} Electrophysiolocical recording setup. The fish, depicted as a black scheme and surrounded by isopotential lines, was positioned in the center of the tank. Blue triangle -- electrophysiological recordings were conducted in the posterior anterior lateral line nerve (pALLN). Gray horizontal bars -- electrodes for the stimulation. Green vertical bars -- electrodes to measure the \textit{global EOD} placed isopotential to the stimulus, i.e. recording fish's unperturbed EOD. Red dots -- electrodes to measure the \textit{local EOD} picking up the combination of fish's EOD and the stimulus. The local EOD was measured with a distance of 1 \,cm between the electrodes. All measured signals were amplified, filtered, and stored for offline analysis.}
\end{figure*}
\subsection*{White noise stimulation}\label{rammethods}
\subsection{White noise stimulation}\label{rammethods}
The fish were stimulated with band-limited white noise stimuli with a cut-off frequency of 150, 300 or 400\,Hz. The stimulus intensity is given as the contrast, i.e. the standard deviation of the white noise stimulus in relation to the fish's EOD amplitude. The contrast varied between 1 and 20\,\%. Only cell recordings with at least 10\,s of white noise stimulation were included for the analysis. When ampullary cells were recorded, the white noise was directly applied as the stimulus. To create random amplitude modulations (RAM) for P-unit recordings, the EOD of the fish was multiplied with the desired random amplitude modulation profile (MXS-01M; npi electronics).
% and between 2.5 and 40\,\% for \eigen
\subsection*{Data analysis} Data analysis was performed with Python 3 using the packages matplotlib\cite{Hunter2007}, numpy\cite{Walt2011}, scipy\cite{scipy2020}, pandas\cite{Mckinney2010}, nixio\cite{Stoewer2014}, and thunderfish (\url{https://github.com/bendalab/thunderfish}).
\subsection{Data analysis} Data analysis was performed with Python 3 using the packages matplotlib\cite{Hunter2007}, numpy\cite{Walt2011}, scipy\cite{scipy2020}, pandas\cite{Mckinney2010}, nixio\cite{Stoewer2014}, and thunderfish (\url{https://github.com/bendalab/thunderfish}).
%sklearn\cite{scikitlearn2011},
@ -824,7 +718,7 @@ For this index, the second-order susceptibility matrix was projected onto the di
If the same frozen noise was recorded several times in a cell, each noise repetition resulted in a separate second-order susceptibility matrix. The mean of the corresponding \nli{} values was used for the population statistics in \figref{fig:data_overview}.
\subsection*{Leaky integrate-and-fire models}\label{lifmethods}
\subsection{Leaky integrate-and-fire models}\label{lifmethods}
Leaky integrate-and-fire (LIF) models with a carrier were constructed to reproduce the specific firing properties of P-units \cite{Chacron2001,Sinz2020}. The sole driving input into the P-unit model during baseline, i.e. when no external stimulus was given, is the fish's own EOD modeled as a cosine wave
\begin{equation}
@ -875,23 +769,23 @@ Whenever the membrane voltage $V_m(t)$ crossed the spiking threshold $\theta=1$
% \cite{Fourcaud-Trocme2003}, where $\Delta_V$ was varied from 0.001 to 0.1.
%, \figrefb{eif}
\begin{figure*}[!ht]
\begin{figure*}[t]
\includegraphics[width=\columnwidth]{flowchart}
\caption{\label{flowchart}
Flowchart of a LIF P-unit model with EOD carrier. The main steps of the model are depicted in the left model column (Model cell identifier 2012-07-03-ak, see table~\ref{modelparams} for model parameters). The three other columns show the relevant signals in three different settings. (i) the baseline situation, no external stimulus, only the animal's self-generated EOD (i.e. the carrier) is present (ii) RAM stimulation, the carrier is amplitude modulated with a weak (2\,\% contrast) stimulus, (iii) Noise split condition in which 90\,\% of the internal noise is used as a driving stimulus scaled with the correction factor $\rho$ (see text). Note: that the firing rate and the CV of the ISI distribution is the same in this and the baseline condition. \figitem{A} Thresholding: a simple linear threshold was applied to the EOD carrier, \Eqnref{eq:eod}. The red line on top depicts the amplitude modulation (AM). \figitem{B} Dendritic low-pass filtering attenuates the carrier. \figitem{C} A Gaussian noise is added to the signal in B. Note the reduced internal noise amplitude in the noise split (iii) condition. \figitem{D} Spiking output of the LIF model in response to the addition of B and C. \figitem{E} Power spectra of the LIF neuron's spiking activity. Under the baseline condition (\panel[i]{E}) there are several peaks, from left to right, at the baseline firing rate $\fbase{}$, $f_{EOD} - \fbase{}$ $f_{EOD}$, and $f_{EOD} + \fbase{}$. In the stimulus driven regime (\panel[ii]{E}), there is only a peak at \feod, while under the noise split condition (\panel[iii]{E}) again all peaks are present.}
\end{figure*}
\subsection*{Numerical implementation}
\subsection{Numerical implementation}
The model's ODEs were integrated by the Euler forward method with a time-step of $\Delta t = 0.05$\,ms. The intrinsic noise $\xi(t)$ (\Eqnref{eq:LIF}, \subfigrefb{flowchart}{C}) was added by drawing a random number from a normal distribution $\mathcal{N}(0,\,1)$ with zero mean and standard deviation of one in each time step $i$. This number was multiplied with $\sqrt{2D}$ and divided by $\sqrt{\Delta t}$:
\begin{equation}
\label{eq:LIFintegration}
V_{m_{i+1}} = V_{m_i} + \left(-V_{m_i} + \mu + \alpha V_{d_i} - A_i + \sqrt{\frac{2D}{\Delta t}}\mathcal{N}(0,\,1)_i\right) \frac{\Delta t}{\tau_m}
\end{equation}
\subsection*{Model parameters}\label{paramtext}
\subsection{Model parameters}\label{paramtext}
The eight free parameters of the P-unit model $\beta$, $\tau_m$, $\mu$, $D$, $\tau_A$, $\Delta_A$, $\tau_d$, and $t_{ref}$, were fitted to both the baseline activity (baseline firing rate, CV of ISIs, serial correlation of ISIs at lag one, and vector strength of spike coupling to EOD) and the responses to step-like increases and decreases in EOD amplitude (onset-state and steady-state responses, effective adaptation time constant). For each simulation, the start parameters $A$, $V_{d}$ and $V_{m}$ were drawn from a random starting value distribution, estimated from a 100\,s baseline simulation after an initial 100\,s of simulation that was discarded as a transient.
\subsection*{Stimuli for the model}
\subsection{Stimuli for the model}
The model neurons were driven with similar stimuli as the real neurons in the original experiments. To mimic the interaction with one or two foreign animals the receiving fish's EOD (\Eqnref{eq:eod}) was normalized to an amplitude of one and the respective EODs of a second or third fish were added.%\Eqnref{ eq.\,\ref{eq:eod}
The random amplitude modulation (RAM) input to the model was created by drawing random amplitude and phases from Gaussian distributions for each frequency component in the range 0--300 Hz. An inverse Fourier transform was applied to get the final amplitude RAM time-course. The input to the model was then
@ -905,7 +799,7 @@ From each simulation run, the first second was discarded and the analysis was ba
% The second-order susceptibility in the model was calculated with \Eqnref{eq:susceptibility}, resulting in matrices as in \figrefb{model_and_data} and \figrefb{fig:model_full}. For this, the model neuron was presented the input $x(t)$ for 2\,s, with the first second being dismissed as the transient. The second-order susceptibility calculation was performed on the last second, resulting in a frequency resolution of 1\,Hz.
\subsection*{Model noise split into a noise and a stimulus component}\label{intrinsicsplit_methods}% the Furutsu-Novikov Theorem with the same correlation function
\subsection{Model noise split into a noise and a stimulus component}\label{intrinsicsplit_methods}% the Furutsu-Novikov Theorem with the same correlation function
According to previous works \cite{Lindner2022} the total noise of a LIF model ($\xi$) can be split up into several independent noise processes. Here we split the internal noise into two parts: (i) One part is treated as a driving input signal $s_\xi(t)$, a RAM stimulus where frequencies above 300\,Hz are discarded (\Eqnref{eq:ram_split}), and used to calculate the cross-spectra in \Eqnref{eq:crosshigh} and (ii) the remaining noise $\sqrt{2D \, c_{\rm{noise}}} \cdot \xi(t)$ that is treated as pure noise (\Eqnref{eq:Noise_split_intrinsic}). In this way the effective signal-to-noise ratio can be increased while maintaining the total noise in the system.
%\sqrt{\rho \, 2D \,c_{\rm{signal}}} \cdot \xi(t)
@ -980,9 +874,9 @@ In the here used model a small portion of the original noise was assigned to the
%\bibliography{journalsabbrv,references}
\newpage
\section*{Supporting information}
\section{Supporting information}
%\subsection*{High-CV P-units do not exhibit increased nonlinear interactions at \fsum}
%\subsection{High-CV P-units do not exhibit increased nonlinear interactions at \fsum}