<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.3 20210610//EN"  "JATS-archivearticle1-3-mathml3.dtd"><article xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.3"><front><journal-meta><journal-id journal-id-type="nlm-ta">elife</journal-id><journal-id journal-id-type="publisher-id">eLife</journal-id><journal-title-group><journal-title>eLife</journal-title></journal-title-group><issn publication-format="electronic" pub-type="epub">2050-084X</issn><publisher><publisher-name>eLife Sciences Publications, Ltd</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">98485</article-id><article-id pub-id-type="doi">10.7554/eLife.98485</article-id><article-id pub-id-type="doi" specific-use="version">10.7554/eLife.98485.3</article-id><article-version article-version-type="publication-state">version of record</article-version><article-categories><subj-group subj-group-type="display-channel"><subject>Tools and Resources</subject></subj-group><subj-group subj-group-type="heading"><subject>Neuroscience</subject></subj-group></article-categories><title-group><article-title>A deep learning framework for automated and generalized synaptic event analysis</article-title></title-group><contrib-group><contrib contrib-type="author"><name><surname>O'Neill</surname><given-names>Philipp S</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0009-0001-9208-7304</contrib-id><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="fn" rid="con1"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author"><name><surname>Baccino-Calace</surname><given-names>Martín</given-names></name><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="fn" rid="con2"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author"><name><surname>Rupprecht</surname><given-names>Peter</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0001-8235-8257</contrib-id><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="aff" rid="aff4">4</xref><xref ref-type="other" rid="fund7"/><xref ref-type="fn" rid="con3"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author"><name><surname>Lee</surname><given-names>Sungmoo</given-names></name><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="fn" rid="con4"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author"><name><surname>Hao</surname><given-names>Yukun A</given-names></name><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="fn" rid="con5"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author"><name><surname>Lin</surname><given-names>Michael Z</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0002-0492-1961</contrib-id><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="aff" rid="aff6">6</xref><xref ref-type="other" rid="fund4"/><xref ref-type="fn" rid="con6"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author"><name><surname>Friedrich</surname><given-names>Rainer W</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0001-9107-0482</contrib-id><xref ref-type="aff" rid="aff7">7</xref><xref ref-type="aff" rid="aff8">8</xref><xref ref-type="other" rid="fund5"/><xref ref-type="other" rid="fund6"/><xref ref-type="fn" rid="con7"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author"><name><surname>Mueller</surname><given-names>Martin</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0003-1624-6761</contrib-id><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="aff" rid="aff9">9</xref><xref ref-type="fn" rid="con8"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author" corresp="yes"><name><surname>Delvendahl</surname><given-names>Igor</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0002-6151-2363</contrib-id><email>igor.delvendahl@physiologie.uni-freiburg.de</email><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="other" rid="fund8"/><xref ref-type="other" rid="fund9"/><xref ref-type="other" rid="fund10"/><xref ref-type="fn" rid="con9"/><xref ref-type="fn" rid="conf1"/></contrib><aff id="aff1"><label>1</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/02crff812</institution-id><institution>Department of Molecular Life Sciences, University of Zurich (UZH)</institution></institution-wrap><addr-line><named-content content-type="city">Zurich</named-content></addr-line><country>Switzerland</country></aff><aff id="aff2"><label>2</label><institution>Neuroscience Center Zurich</institution><addr-line><named-content content-type="city">Zurich</named-content></addr-line><country>Switzerland</country></aff><aff id="aff3"><label>3</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/0245cg223</institution-id><institution>Institute of Physiology, Faculty of Medicine, University of Freiburg</institution></institution-wrap><addr-line><named-content content-type="city">Freiburg</named-content></addr-line><country>Germany</country></aff><aff id="aff4"><label>4</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/02crff812</institution-id><institution>Brain Research Institute, University of Zurich</institution></institution-wrap><addr-line><named-content content-type="city">Zurich</named-content></addr-line><country>Switzerland</country></aff><aff id="aff5"><label>5</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/00f54p054</institution-id><institution>Department of Neurobiology, Stanford University</institution></institution-wrap><addr-line><named-content content-type="city">Stanford</named-content></addr-line><country>United States</country></aff><aff id="aff6"><label>6</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/00f54p054</institution-id><institution>Department of Bioengineering, Stanford University</institution></institution-wrap><addr-line><named-content content-type="city">Stanford</named-content></addr-line><country>United States</country></aff><aff id="aff7"><label>7</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/01bmjkv45</institution-id><institution>Friedrich Miescher Institute for Biomedical Research</institution></institution-wrap><addr-line><named-content content-type="city">Basel</named-content></addr-line><country>Switzerland</country></aff><aff id="aff8"><label>8</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/02s6k3f65</institution-id><institution>Faculty of Natural Sciences, University of Basel</institution></institution-wrap><addr-line><named-content content-type="city">Basel</named-content></addr-line><country>Switzerland</country></aff><aff id="aff9"><label>9</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/02crff812</institution-id><institution>University Research Priority Program (URPP), Adaptive Brain Circuits in Development and Learning (AdaBD), University of Zurich</institution></institution-wrap><addr-line><named-content content-type="city">Zurich</named-content></addr-line><country>Switzerland</country></aff></contrib-group><contrib-group content-type="section"><contrib contrib-type="editor"><name><surname>Dickman</surname><given-names>Dion K</given-names></name><role>Reviewing Editor</role><aff><institution-wrap><institution-id institution-id-type="ror">https://ror.org/03taz7m60</institution-id><institution>University of Southern California</institution></institution-wrap><country>United States</country></aff></contrib><contrib contrib-type="senior_editor"><name><surname>Chen</surname><given-names>Lu</given-names></name><role>Senior Editor</role><aff><institution-wrap><institution-id institution-id-type="ror">https://ror.org/00f54p054</institution-id><institution>Stanford University</institution></institution-wrap><country>United States</country></aff></contrib></contrib-group><pub-date publication-format="electronic" date-type="publication"><day>05</day><month>03</month><year>2025</year></pub-date><volume>13</volume><elocation-id>RP98485</elocation-id><history><date date-type="sent-for-review" iso-8601-date="2024-04-11"><day>11</day><month>04</month><year>2024</year></date></history><pub-history><event><event-desc>This manuscript was published as a preprint.</event-desc><date date-type="preprint" iso-8601-date="2024-04-03"><day>03</day><month>04</month><year>2024</year></date><self-uri content-type="preprint" xlink:href="https://doi.org/10.1101/2023.11.02.565316"/></event><event><event-desc>This manuscript was published as a reviewed preprint.</event-desc><date date-type="reviewed-preprint" iso-8601-date="2024-06-28"><day>28</day><month>06</month><year>2024</year></date><self-uri content-type="reviewed-preprint" xlink:href="https://doi.org/10.7554/eLife.98485.1"/></event><event><event-desc>The reviewed preprint was revised.</event-desc><date date-type="reviewed-preprint" iso-8601-date="2025-02-17"><day>17</day><month>02</month><year>2025</year></date><self-uri content-type="reviewed-preprint" xlink:href="https://doi.org/10.7554/eLife.98485.2"/></event></pub-history><permissions><copyright-statement>© 2024, O'Neill et al</copyright-statement><copyright-year>2024</copyright-year><copyright-holder>O'Neill et al</copyright-holder><ali:free_to_read/><license xlink:href="http://creativecommons.org/licenses/by/4.0/"><ali:license_ref>http://creativecommons.org/licenses/by/4.0/</ali:license_ref><license-p>This article is distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License</ext-link>, which permits unrestricted use and redistribution provided that the original author and source are credited.</license-p></license></permissions><self-uri content-type="pdf" xlink:href="elife-98485-v1.pdf"/><self-uri content-type="figures-pdf" xlink:href="elife-98485-figures-v1.pdf"/><abstract><p>Quantitative information about synaptic transmission is key to our understanding of neural function. Spontaneously occurring synaptic events carry fundamental information about synaptic function and plasticity. However, their stochastic nature and low signal-to-noise ratio present major challenges for the reliable and consistent analysis. Here, we introduce miniML, a supervised deep learning-based method for accurate classification and automated detection of spontaneous synaptic events. Comparative analysis using simulated ground-truth data shows that miniML outperforms existing event analysis methods in terms of both precision and recall. miniML enables precise detection and quantification of synaptic events in electrophysiological recordings. We demonstrate that the deep learning approach generalizes easily to diverse synaptic preparations, different electrophysiological and optical recording techniques, and across animal species. miniML provides not only a comprehensive and robust framework for automated, reliable, and standardized analysis of synaptic events, but also opens new avenues for high-throughput investigations of neural function and dysfunction.</p></abstract><kwd-group kwd-group-type="author-keywords"><kwd>synaptic transmission</kwd><kwd>data analysis</kwd><kwd>machine learning</kwd><kwd>neurons</kwd><kwd>electrophysiology</kwd><kwd>imaging</kwd></kwd-group><kwd-group kwd-group-type="research-organism"><title>Research organism</title><kwd><italic>D. melanogaster</italic></kwd><kwd>Human</kwd><kwd>Mouse</kwd><kwd>Zebrafish</kwd></kwd-group><funding-group><award-group id="fund1"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/501100001711</institution-id><institution>Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung</institution></institution-wrap></funding-source><award-id>PZ00P3_174018</award-id><principal-award-recipient><name><surname>Delvendahl</surname><given-names>Igor</given-names></name></principal-award-recipient></award-group><award-group id="fund2"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/501100001711</institution-id><institution>Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung</institution></institution-wrap></funding-source><award-id>PZ00P3_209114</award-id><principal-award-recipient><name><surname>Rupprecht</surname><given-names>Peter</given-names></name></principal-award-recipient></award-group><award-group id="fund3"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/501100001711</institution-id><institution>Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung</institution></institution-wrap></funding-source><award-id>310030B_152833/1</award-id><principal-award-recipient><name><surname>Friedrich</surname><given-names>Rainer W</given-names></name></principal-award-recipient></award-group><award-group id="fund4"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/100000002</institution-id><institution>National Institutes of Health</institution></institution-wrap></funding-source><award-id>1UM1MH136462</award-id><principal-award-recipient><name><surname>Lin</surname><given-names>Michael Z</given-names></name></principal-award-recipient></award-group><award-group id="fund5"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/100008273</institution-id><institution>Novartis Foundation</institution></institution-wrap></funding-source><principal-award-recipient><name><surname>Friedrich</surname><given-names>Rainer W</given-names></name></principal-award-recipient></award-group><award-group id="fund6"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/501100000781</institution-id><institution>European Research Council</institution></institution-wrap></funding-source><award-id>742576</award-id><principal-award-recipient><name><surname>Friedrich</surname><given-names>Rainer W</given-names></name></principal-award-recipient></award-group><award-group id="fund7"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/501100001645</institution-id><institution>Boehringer Ingelheim Fonds</institution></institution-wrap></funding-source><principal-award-recipient><name><surname>Rupprecht</surname><given-names>Peter</given-names></name></principal-award-recipient></award-group><award-group id="fund8"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/501100001659</institution-id><institution>Deutsche Forschungsgemeinschaft</institution></institution-wrap></funding-source><award-id>535029399</award-id><principal-award-recipient><name><surname>Delvendahl</surname><given-names>Igor</given-names></name></principal-award-recipient></award-group><award-group id="fund9"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/501100001659</institution-id><institution>Deutsche Forschungsgemeinschaft</institution></institution-wrap></funding-source><award-id>535030493</award-id><principal-award-recipient><name><surname>Delvendahl</surname><given-names>Igor</given-names></name></principal-award-recipient></award-group><award-group id="fund10"><funding-source><institution-wrap><institution>UZH Alumni Research Talent Development fund</institution></institution-wrap></funding-source><principal-award-recipient><name><surname>Delvendahl</surname><given-names>Igor</given-names></name></principal-award-recipient></award-group><funding-statement>The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.</funding-statement></funding-group><custom-meta-group><custom-meta specific-use="meta-only"><meta-name>Author impact statement</meta-name><meta-value>miniML, a deep learning-based method, facilitates synaptic event analysis with high accuracy and versatility across diverse synaptic preparations, enabling high-throughput investigations of neural function and dysfunction.</meta-value></custom-meta><custom-meta specific-use="meta-only"><meta-name>publishing-route</meta-name><meta-value>prc</meta-value></custom-meta></custom-meta-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>Synaptic communication serves as the fundamental basis for a wide spectrum of brain functions, from computation and sensory integration to learning and memory. Synaptic transmission either arises from spontaneous or action potential-evoked fusion of neurotransmitter-filled synaptic vesicles (<xref ref-type="bibr" rid="bib35">Kaeser and Regehr, 2014</xref>) resulting in an electrical response in the postsynaptic cell. Such synaptic events are a salient feature of all neural circuits and can be recorded using electrophysiological or imaging techniques.</p><p>Random fluctuations in the release machinery or intracellular Ca<sup>2+</sup> concentration cause spontaneous fusions of single vesicles (’miniature events’) (<xref ref-type="bibr" rid="bib36">Kavalali, 2015</xref>), which play an important role in synaptic development and stability (<xref ref-type="bibr" rid="bib47">McKinney et al., 1999</xref>; <xref ref-type="bibr" rid="bib12">Banerjee et al., 2021</xref>; <xref ref-type="bibr" rid="bib35">Kaeser and Regehr, 2014</xref>; <xref ref-type="bibr" rid="bib36">Kavalali, 2015</xref>). Measurements of amplitude, kinetics, and timing of these events provide essential information about the function of individual synapses and neural circuits. Miniature events are therefore key to our understanding of fundamental processes, such as synaptic plasticity or synaptic computation that support neural function (<xref ref-type="bibr" rid="bib2">Abbott and Regehr, 2004</xref>; <xref ref-type="bibr" rid="bib26">Holler et al., 2021</xref>). For example, amplitude changes of miniature events are a proxy of neurotransmitter receptor modulation, which is thought to be the predominant mechanism driving activity-dependent long-term alterations in synaptic strength (<xref ref-type="bibr" rid="bib27">Huganir and Nicoll, 2013</xref>; <xref ref-type="bibr" rid="bib46">Malinow and Malenka, 2002</xref>) and homeostatic synaptic plasticity (<xref ref-type="bibr" rid="bib70">Turrigiano et al., 1998</xref>; <xref ref-type="bibr" rid="bib51">O’Brien et al., 1998</xref>). In addition to spontaneous vesicle fusions, synaptic events can also result from presynaptic action potentials in neural networks. Alterations in spontaneous neurotransmission have been observed in models of different neurodevelopmental and neurodegenerative disorders (<xref ref-type="bibr" rid="bib5">Alten et al., 2021</xref>; <xref ref-type="bibr" rid="bib7">Ardiles et al., 2012</xref>; <xref ref-type="bibr" rid="bib49">Miller et al., 2014</xref>). Thus, a comprehensive analysis of synaptic events is paramount for studying synaptic function and understanding neural diseases. However, the detection and quantification of synaptic events in electrophysiological or fluorescence recordings remains a major challenge. Synaptic events are often small in size, resulting in a low signal-to-noise ratio (SNR), and their stochastic occurrence further complicates reliable detection and evaluation.</p><p>Several techniques have been developed for synaptic event detection: Finite-difference approaches use crossings of a predefined threshold, typically in either raw data (<xref ref-type="bibr" rid="bib37">Kim et al., 2021</xref>), baseline-normalized data (<xref ref-type="bibr" rid="bib40">Kudoh and Taguchi, 2002</xref>), or their derivatives (<xref ref-type="bibr" rid="bib6">Ankri et al., 1994</xref>). Template-based methods use a predefined template and generate a matched filter via a scaling factor (<xref ref-type="bibr" rid="bib34">Jonas et al., 1993</xref>; <xref ref-type="bibr" rid="bib16">Clements and Bekkers, 1997</xref>), deconvolution (<xref ref-type="bibr" rid="bib53">Pernía-Andrade et al., 2012</xref>) or an optimal filtering approach (<xref ref-type="bibr" rid="bib61">Shi et al., 2010</xref>; <xref ref-type="bibr" rid="bib78">Zhang et al., 2021</xref>). In addition, Bayesian inference (<xref ref-type="bibr" rid="bib48">Merel et al., 2016</xref>), machine learning (<xref ref-type="bibr" rid="bib73">Wang et al., 2024</xref>), and peak finding routines (<xref ref-type="bibr" rid="bib50">Mori et al., 2024</xref>) can be used to detect synaptic events. These techniques have facilitated the analysis of synaptic events. However, they also have several relevant limitations, such as a strong dependence of detection performance on a threshold and other decisive hyperparameters, or the need for visual inspection of results by an experienced investigator to avoid false positives. The widespread use of synaptic event recordings and the difficulty in obtaining results that are reliable across investigators and laboratories highlight the need for an automated, accurate, efficient, and reproducible synaptic event analysis method.</p><p>Artificial intelligence (AI) technologies such as deep learning (<xref ref-type="bibr" rid="bib41">LeCun et al., 2015</xref>) can significantly enhance biological data analysis (<xref ref-type="bibr" rid="bib58">Richards et al., 2022</xref>) and thus contribute to a better understanding of neural function. Convolutional neural networks (CNNs) are especially effective for image classification, but can also be used for one-dimensional data (<xref ref-type="bibr" rid="bib72">Wang et al., 2016</xref>; <xref ref-type="bibr" rid="bib33">Ismail Fawaz et al., 2019</xref>). CNNs have been successfully applied in neuroscience to segment brain regions (<xref ref-type="bibr" rid="bib30">Iqbal et al., 2019</xref>), detect synaptic vesicles in electron microscopy images (<xref ref-type="bibr" rid="bib28">Imbrosci et al., 2022</xref>), identify spikes in Ca<sup>2+</sup> imaging data (<xref ref-type="bibr" rid="bib60">Rupprecht et al., 2021</xref>), and localize neurons in brain slices (<xref ref-type="bibr" rid="bib76">Yip et al., 2021</xref>), or neurons with fluorescence signals in time-series data (<xref ref-type="bibr" rid="bib19">Denis et al., 2020</xref>; <xref ref-type="bibr" rid="bib63">Sità et al., 2022</xref>).</p><p>Here, we present <italic>miniML</italic>, a novel approach for detecting and analyzing spontaneous synaptic events using supervised deep learning. The miniML model is an end-to-end classifier trained on an extensive dataset of annotated synaptic events. When applied to time-series data, miniML provides high-performance event detection with negligible false-positive rates, outperforming existing methods. The method is fast, robust to threshold choice, and generalizable across diverse data types, allowing for efficient and reproducible analysis, even for large datasets. We anticipate that AI-based synaptic event analysis will greatly enhance the investigation of synaptic function, plasticity, and computation from the individual synapse to the network level.</p></sec><sec id="s2" sec-type="results"><title>Results</title><sec id="s2-1"><title>miniML enables highly accurate classification of synaptic events</title><p>To investigate whether an AI model can detect stochastic synaptic events in noisy single-trial time-series data, we designed a deep neural network consisting of CNN, long short-term memory (LSTM), and fully connected dense layers (’miniML’, <xref ref-type="fig" rid="fig1">Figure 1A</xref>). The CNN-LSTM model takes a section of a univariate time-series recording as input and outputs a label for that section of data (<xref ref-type="fig" rid="fig1">Figure 1B</xref>). The miniML model is trained to classify short segments of electrophysiological data as either positive or negative for a synaptic event using supervised learning. The trained classifier can then be applied to unseen time-series data to localize events.</p><fig-group><fig id="fig1" position="float"><label>Figure 1.</label><caption><title>High performance classification of synaptic events using a deep neural network.</title><p>(<bold>A</bold>) Overview of the analysis workflow. Data segments from electrophysiological recordings are extracted and labeled to train an artificial neural network. The deep learning-based model is then applied to detect events in novel time-series data. (<bold>B</bold>) Schematic of the model design. Data is input to a convolutional network consisting of blocks of 1D convolutional, ReLU, and average pooling layers. The output of the convolutional layers is processed by a bidirectional LSTM block, followed by two fully connected layers. The final output is a label in the interval [0, 1]. (<bold>C</bold>) Loss (binary crossentropy) and accuracy of the model over training epochs for training and validation data. (<bold>D</bold>) Receiver operating characteristic of the best performing model. Area under the curve (AUC) is indicated; dashed line indicates performance of a random classifier. (<bold>E</bold>) UMAP representation of the training data as input to the final layer of the model, indicating linear separability of the two event classes after model training.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig1-v1.tif"/></fig><fig id="fig1s1" position="float" specific-use="child-fig"><label>Figure 1—figure supplement 1.</label><caption><title>Visualization of model training.</title><p>(<bold>A</bold>) Saliency maps (<xref ref-type="bibr" rid="bib62">Simonyan et al., 2013</xref>) for four example events of the training data. Darker regions indicate discriminative data segments. Data and saliency values are min-max scaled. (<bold>B</bold>) The miniML model transforms input to enhance separability. Shown is a Uniform Manifold Approximation and Projection (UMAP) dimensionality reduction of the original training dataset. (<bold>C</bold>) UMAP of the input to the final ML model layer. Examples of labeled training samples are illustrated. Model training greatly improves linear separability of the two labeled event classes.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig1-figsupp1-v1.tif"/></fig><fig id="fig1s2" position="float" specific-use="child-fig"><label>Figure 1—figure supplement 2.</label><caption><title>Impact of dataset size, class balance, and model architecture on training performance.</title><p>(<bold>A</bold>) To test how size of the training dataset impacts model training, we took random subsamples from the MF–GC dataset and trained miniML models using fivefold cross validation. (<bold>B</bold>–<bold>D</bold>) Comparison of loss (<bold>B</bold>), accuracy (<bold>C</bold>) and area under the ROC curve (AUC; <bold>D</bold>) across increasing dataset sizes. Data are means of model training sessions with k-fold cross-validation. Shaded areas represent SD. Note the log-scale of the abscissa. (<bold>E</bold>) Comparison of model training with unbalanced training data. (<bold>F</bold>) Area under the ROC curve for models trained with different levels of unbalanced training data. Unbalanced datasets impair classification performance. (<bold>G</bold>) Accuracy and F1 score for different model architectures plotted against number of free parameters. The CNN-LSTM architecture provided the best model performance with the lowest number of free parameters. <italic>EarlyStopping</italic> was used for all models to prevent overfitting (difference between training and validation accuracy &lt;0.3%). ResNet, Residual Neural Network; MLP, multi-layer perceptron.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig1-figsupp2-v1.tif"/></fig></fig-group><p>To train the miniML model, we first extracted a large number of synaptic events and corresponding event-free sections from previous voltage-clamp recordings of cerebellar mossy fiber to granule cell (MF–GC) miniature excitatory postsynaptic currents (mEPSCs) (<xref ref-type="bibr" rid="bib17">Delvendahl et al., 2019</xref>). All samples were then visually inspected and labeled to generate the training dataset. We applied data augmentation techniques to include examples of typical false positives in the training data (Materials and methods). In total, the training data comprised ∼30,000 samples that were split into training and validation sets (0.75/0.25). Across training epochs, loss decreased and accuracy increased, stabilizing after ∼30 epochs (<xref ref-type="fig" rid="fig1">Figure 1C</xref>). The model with the highest validation accuracy was selected for further use, achieving 98.4% (SD 0.1, fivefold cross-validation). Saliency map analysis (<xref ref-type="bibr" rid="bib62">Simonyan et al., 2013</xref>) indicated that the AI model mainly relied on the data sections around the peak of synaptic events to discriminate with respect to the labels (<xref ref-type="fig" rid="fig1s1">Figure 1—figure supplement 1</xref>). The trained miniML model achieved an area under the receiver operating characteristic (ROC) curve close to 1 (<xref ref-type="fig" rid="fig1">Figure 1D</xref>), indicating almost perfect separability of the classes (<xref ref-type="fig" rid="fig1">Figure 1E</xref>, <xref ref-type="fig" rid="fig1s1">Figure 1—figure supplement 1</xref>). Deep learning typically requires large datasets for training (<xref ref-type="bibr" rid="bib71">van der Ploeg et al., 2014</xref>). To investigate how miniML’s classification performance depended on the dataset size, we systematically varied the number of training samples. As expected, the accuracy increased with larger datasets. However, the performance gain was marginal when exceeding 5000 samples (&lt;0.2%, <xref ref-type="fig" rid="fig1s2">Figure 1—figure supplement 2</xref>), indicating that relatively small datasets suffice for effective model training (<xref ref-type="bibr" rid="bib11">Bailly et al., 2022</xref>). These results demonstrate the efficacy of supervised deep learning in accurately classifying segments of neurophysiological data containing synaptic events.</p></sec><sec id="s2-2"><title>The miniML model robustly detects synaptic events in electrophysiological recordings</title><p>Synaptic events are typically recorded as continuous time-series data of either membrane voltage or current. To apply the trained classifier to detect events in arbitrarily long data, we used a sliding window approach (<xref ref-type="fig" rid="fig2">Figure 2A</xref>). Time-series data are divided into overlapping sections that correspond to the input shape of the CNN-LSTM classifier. We used a stride for the sliding window, which reduces the number of inferences needed and speeds up the computation time while maintaining high detection performance (<xref ref-type="fig" rid="fig2s1">Figure 2—figure supplement 1</xref>). By reshaping the data into short sections, model inference can be run in batches and employ parallel processing techniques, including graphics processing unit (GPU) computing, resulting in analysis times of a few seconds for minute-long recordings (<xref ref-type="fig" rid="fig2s1">Figure 2—figure supplement 1</xref>). The miniML detection method is thus time-efficient and can be easily integrated into (high-throughput) data analysis pipelines. To facilitate the use of the method, miniML also includes a graphical user interface (<xref ref-type="fig" rid="fig2s2">Figure 2—figure supplement 2</xref>).</p><fig-group><fig id="fig2" position="float"><label>Figure 2.</label><caption><title>Applying AI-based classification to robustly detect synaptic events in electrophysiological time-series data.</title><p>(<bold>A</bold>) Event detection workflow using a deep learning classifier. Time-series data are reshaped with a window size corresponding to length of the training data and a given stride. Peak detection of the model output allows event localization (orange dashed line indicates peak threshold) and subsequent quantification. (<bold>B</bold>) Example of event detection in a voltage-clamp recording from a cerebellar granule cell. Top: Prediction trace (top) and corresponding raw data with synaptic events (bottom). Dashed line indicates minimum peak height of 0.5, orange circles indicate event localizations. (<bold>C</bold>) Zoom in for different data segments. Detected events are highlighted by gray boxes. (<bold>D</bold>) Event analysis for the cell shown in (<bold>B</bold>) (total recording time, 120 s). Top: Detected events with average (light blue). Bottom: Event amplitude histogram.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig2-v1.tif"/></fig><fig id="fig2s1" position="float" specific-use="child-fig"><label>Figure 2—figure supplement 1.</label><caption><title>Fast computation time for event detection using miniML.</title><p>(<bold>A</bold>) Detected events and analysis runtime plotted versus stride. Note that runtime can be minimized by using stride sizes up to 5% of the event window size without impacting detection performance. (<bold>B</bold>) Analysis runtime with different computer hardware for a 120-s long recording at 50 kHz sampling (total of 6,000,000 samples). Runtime is given as wall time including event analysis. GPU computing enables analysis runtimes shorter than 20 s.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig2-figsupp1-v1.tif"/></fig><fig id="fig2s2" position="float" specific-use="child-fig"><label>Figure 2—figure supplement 2.</label><caption><title>A graphical user interface for miniML.</title><p>(<bold>A</bold>) Workflow for synaptic event analysis using miniML. Optional steps include data pre-processing, model selection, and event rejection. (<bold>B</bold>) Screenshot of the graphical user interface (GUI). Users can use the GUI to load, inspect, and analyze data. After running the event detection, all detected events are marked by red dots. Individual event parameters are displayed in tabular form, where events can be enlarged and rejected. The final results can be saved in different formats via the GUI.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig2-figsupp2-v1.tif"/></fig><fig id="fig2s3" position="float" specific-use="child-fig"><label>Figure 2—figure supplement 3.</label><caption><title>miniML performance on event-free data.</title><p>(<bold>A</bold>) Confidence (top) and raw data with detected events from a MF–GC recording. Dashed line indicates miniML minimum peak height. (<bold>B</bold>) Recording from the same cell after addition of blockers of synaptic transmission (NBQX, APV, Bicuculline, Strychnine). miniML does not detect any events under these conditions. Note that addition of Bicuculline blocks tonic inhibition in cerebellar GCs, causing a reduction in holding current and reduced noise (<xref ref-type="bibr" rid="bib39">Kita et al., 2021</xref>).</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig2-figsupp3-v1.tif"/></fig></fig-group><p>The output of the miniML model predicts the label—no event or event—for each time step (i.e. stride) with a numerical value ranging from zero to one (<xref ref-type="fig" rid="fig1">Figure 1B</xref>). These output values can be interpreted as the confidence that the corresponding data segment contains a synaptic event. Model inference thus outputs a prediction trace that has a slightly lower temporal resolution compared to the original input according to the stride of the sliding window. Using peak finding on the prediction trace allows extracting data segments with individual events from a recording. While 0.5 represents a reasonable minimum peak value, the exact choice is not critical to detection performance (see below). To quantify events, extracted sections are checked for overlapping events, and detected events are aligned by the steepest slope, allowing calculation of individual event statistics. <xref ref-type="fig" rid="fig2">Figure 2B</xref> illustrates the sliding window approach to detect spontaneous events in time-series data, such as a continuous voltage-clamp recording of spontaneous mEPSCs in a cerebellar GC. miniML provided a clear peak for all synaptic events present, without false positives (<xref ref-type="fig" rid="fig2">Figure 2C</xref>, <xref ref-type="fig" rid="fig2s3">Figure 2—figure supplement 3</xref>), allowing fast and reliable event quantification (<xref ref-type="fig" rid="fig2">Figure 2D</xref>). These data demonstrate that a deep learning model can be applied to detect synaptic events in electrophysiological time-series data.</p></sec><sec id="s2-3"><title>AI-based event detection is superior to previous methods</title><p>To benchmark the AI model’s event detection performance, we compared it with commonly used template-based approaches (template-matching <xref ref-type="bibr" rid="bib16">Clements and Bekkers, 1997</xref> and deconvolution <xref ref-type="bibr" rid="bib53">Pernía-Andrade et al., 2012</xref>), and a finite-threshold-based method (<xref ref-type="bibr" rid="bib40">Kudoh and Taguchi, 2002</xref>). Some of these—or similar—algorithms are implemented in proprietary software solutions to record and analyze electrophysiological data. We also included a Bayesian event detection approach (<xref ref-type="bibr" rid="bib48">Merel et al., 2016</xref>), SimplyFire (<xref ref-type="bibr" rid="bib50">Mori et al., 2024</xref>), and the automated event detection routine of MiniAnalysis software (Synaptosoft Inc). To compare synaptic event detection methods, we developed a standardized benchmarking pipeline (<xref ref-type="fig" rid="fig3">Figure 3A</xref>). We first performed event-free voltage-clamp recordings from mouse cerebellar GCs (in the presence of blockers of inhibitory and excitatory transmission; see Materials and methods and <xref ref-type="fig" rid="fig2s3">Figure 2—figure supplement 3</xref>). We then generated synthetic events with a two-exponential time course and superimposed these on the raw recording to produce ground-truth data (<xref ref-type="fig" rid="fig3">Figure 3B–C</xref>). Event amplitudes were drawn from a log-normal distribution (<xref ref-type="fig" rid="fig3s1">Figure 3—figure supplement 1</xref>) with varying means to cover the range of SNRs typically observed in recordings of miniature events (2–15 dB, data from n = 170 GC recordings, <xref ref-type="fig" rid="fig3">Figure 3D</xref>). We generated events with kinetics that closely matched the template used for the matched-filtering approaches, thus ensuring a conservative comparison of miniML with other methods applied under optimal conditions (i.e. using the exact average event shape as template). To measure detection performance, we calculated recall (i.e. sensitivity), precision (fraction of correct identifications) and the F1 score. Recall depended on SNR for all methods, with miniML and deconvolution showing the highest values (<xref ref-type="fig" rid="fig3">Figure 3E</xref>). The precision was highest for miniML, which detected no false positives at any SNR, in contrast to all other methods (<xref ref-type="fig" rid="fig3">Figure 3F</xref>). When assessing overall performance, miniML provided the highest F1 scores across SNRs (<xref ref-type="fig" rid="fig3">Figure 3G</xref>). In addition, miniML showed superior results when changing event kinetics, indicating higher robustness to variable event shapes (<xref ref-type="fig" rid="fig3">Figure 3H</xref>, <xref ref-type="fig" rid="fig3s1">Figure 3—figure supplement 1</xref>), which may be particularly important in neurons with diverse synaptic inputs due to mixed receptor populations (<xref ref-type="bibr" rid="bib43">Lesperance et al., 2020</xref>), or during pharmacological experiments (<xref ref-type="bibr" rid="bib31">Ishii et al., 2020</xref>).</p><fig-group><fig id="fig3" position="float"><label>Figure 3.</label><caption><title>Systematic benchmarking demonstrates that AI-based event detection is superior to previous methods.</title><p>(<bold>A</bold>) Scheme of event detection benchmarking. Six methods are compared using precision and recall metrics. (<bold>B</bold>) Event-free recordings were superimposed with generated events to create ground-truth data. Depicted example data have a signal-to-noise ratio (SNR) of 9 dB. (<bold>C</bold>) Left: Output of the detection methods for data in (<bold>B</bold>). Right: Improvement in SNR relative to the data. Note that MiniAnalysis is omitted from this analysis because the software does not provide output trace data. (<bold>D</bold>) SNR from mEPSC recordings at MF–GC synapses (n = 170, whiskers cover full range of data). (<bold>E–G</bold>) Recall, precision, and F1 score versus SNR for the six different methods. Data are averages of three independent runs for each SNR. (<bold>H</bold>) Average F1 score versus event kinetics. Detection methods relying on an event template (template-matching, deconvolution and Bayesian) are not very robust to changes in event kinetics. (<bold>I</bold>) Evaluating the threshold dependence of detection methods. Asterisk marks event close to detection threshold. (<bold>J</bold>) Number of detected events vs. threshold (in % of default threshold value, range 5–195) for different methods. Dashed line indicates true event number.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig3-v1.tif"/></fig><fig id="fig3s1" position="float" specific-use="child-fig"><label>Figure 3—figure supplement 1.</label><caption><title>Extended benchmarking and threshold dependence of event detection.</title><p>(<bold>A</bold>) Example event-free recording (Top) and power density spectrum of the data (Bottom). (<bold>B</bold>) Top: Data trace from (<bold>A</bold>) superimposed with simulated synaptic events. Bottom: Amplitude histogram of simulated events for a signal-to-noise ratio (SNR) of 10.8 dB. Solid line represents the log-normal distribution from which event amplitudes were drawn; Inset shows individual simulated events. (<bold>C</bold>) Recall, precision and F1 score for five detection methods with simulated events that have a 2× faster decay than in <xref ref-type="fig" rid="fig3">Figure 3</xref>. (<bold>D</bold>) Same as in (<bold>C</bold>), but for events with a 4.5× slower decay time constant. Note that we did not adjust detection hyperparameters for the comparisons in (<bold>C</bold>) and (<bold>D</bold>). (<bold>E</bold>) Runtime of five different synaptic event detection methods for a 120 s section of data recorded with 50 kHz sampling rate. Average wall-time of five runs. * miniML was run using a GPU, and data were downsampled to 20 kHz for the Bayesian analysis. (<bold>F</bold>) Normalized amplitude of the peaks in the different methods’ detection traces (‘detection peak amplitude’) versus normalized event amplitude. A linear dependence indicates that detection traces contain implicit amplitude information, which will cause a strong threshold dependence of the detection result. Note that miniML’s output does not contain amplitude information. (<bold>G</bold>) F1 score versus threshold (in % of default threshold value, range 5–195) for different methods.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig3-figsupp1-v1.tif"/></fig></fig-group><p>Conventional event detection methods typically produce a detection trace with a shape identical to the input data and values in an arbitrary range (<xref ref-type="fig" rid="fig3">Figure 3C</xref>). In contrast, miniML generates output in the interval [0, 1], which can be interpreted as the confidence of event occurrence. The output of event detection methods—the detection trace—significantly increases the SNR with respect to the original data. In our benchmark scenario, miniML and the Bayesian method provided the greatest discrimination from background noise (<xref ref-type="fig" rid="fig3">Figure 3C</xref>). To locate the actual event positions, a threshold must be applied to the detection trace, which can drastically affect the results, as peaks in the detection trace may depend on the event amplitude. Intriguingly, miniML’s detection trace peaks did not depend on event amplitudes, setting it apart from other methods (<xref ref-type="fig" rid="fig3s1">Figure 3—figure supplement 1</xref>). For template-based methods, recommendations on threshold selection are provided (<xref ref-type="bibr" rid="bib16">Clements and Bekkers, 1997</xref>; <xref ref-type="bibr" rid="bib53">Pernía-Andrade et al., 2012</xref>), but users usually need to adjust this parameter according to their specific data. The choice of the threshold strongly influences the detection performance, as even small changes can lead to marked increases in false positives or false negatives. To investigate the threshold dependence of different methods, we systematically varied the threshold and analyzed the number of detected events and the F1 score. Notably, miniML’s detection performance remained consistent over a wide range (5–195%, <xref ref-type="fig" rid="fig3">Figure 3I-J</xref>, <xref ref-type="fig" rid="fig3s1">Figure 3—figure supplement 1</xref>), with false positives occurring only at the lower threshold limit (5%, corresponding to a cutoff value of 0.025 in the detection trace). Conversely, the other detection methods were very sensitive to threshold changes (<xref ref-type="fig" rid="fig3">Figure 3J</xref>, <xref ref-type="fig" rid="fig3s1">Figure 3—figure supplement 1</xref>) due to the comparatively low SNR ratio of the output traces (but note that the Bayesian method is only slightly threshold dependent). In addition, the miniML threshold (i.e. minimum peak) value is bounded with an intuitive meaning. These comparisons underscore that miniML requires no prior knowledge of the exact event shape and is virtually threshold independent, thus enabling reliable event detection.</p></sec><sec id="s2-4"><title>miniML reliably detects spontaneous synaptic events in out-of-sample data</title><p>We trained the miniML model using data from cerebellar MF–GC synapses, which enabled reliable analysis of mEPSC recordings from this preparation (<xref ref-type="fig" rid="fig2">Figures 2</xref> and <xref ref-type="fig" rid="fig4">4A-C</xref>). Comparison with several previous detection methods revealed that miniML detected more events with a waveform that is consistent with mEPSCs (<xref ref-type="fig" rid="fig4">Figure 4D</xref>, <xref ref-type="fig" rid="fig4s1">Figure 4—figure supplement 1</xref>). Synaptic event properties, such as kinetics, SNR, or frequency, are variable between preparations. This heterogeneity is caused by, for example, differences in the number and type of postsynaptic neurotransmitter receptors, the number of synaptic inputs, postsynaptic membrane properties, or presynaptic release properties. To test miniML’s generalizability, we evaluated the detection performance on out-of-sample data. We recorded and analyzed data from the mouse calyx of Held synapse (<xref ref-type="fig" rid="fig4">Figure 4E</xref>), a large axosomatic synapse in the auditory brainstem that relays rate-coded information over a large bandwidth and with high temporal precision. Due to the large number of active zones, synaptic events are quite frequent. Despite being trained on cerebellar MF–GC data, miniML accurately detected mEPSCs in these recordings (<xref ref-type="fig" rid="fig4">Figure 4F–H</xref>). This result may be facilitated by the fast event kinetics at the calyx of Held, which approach those of MF–GC mEPSCs. To test whether miniML could also detect events with slower kinetics, we applied it to recordings from cerebellar Golgi cells (<xref ref-type="fig" rid="fig4">Figure 4I</xref>; <xref ref-type="bibr" rid="bib39">Kita et al., 2021</xref>). These interneurons in the cerebellar cortex provide surround inhibition to GCs and receive input from parallel fiber and MF synapses. miniML reliably detected synaptic events in these recordings (<xref ref-type="fig" rid="fig4">Figure 4J–L</xref>), although event decay kinetics were slower compared to the training data (Golgi cell, 1.83 ms [SD 0.44 ms, n = 10 neurons], GC training data, 0.9 ms). Synaptic events are also commonly recorded from neuronal culture preparations. We determined whether miniML could be applied to recordings from cultured human induced pluripotent stem cell (iPSC)-derived neurons. We patch-clamped neurons in 8-week-old cultures of predominantly cortical glutamatergic identity (<xref ref-type="bibr" rid="bib8">Asadollahi et al., 2023</xref>) and recorded spontaneous synaptic events in voltage-clamp (<xref ref-type="fig" rid="fig4">Figure 4M</xref>). Using miniML on these human iPSC-derived neuron data showed robust detection of synaptic events (<xref ref-type="fig" rid="fig4">Figure 4N–P</xref>), which had an average frequency of 0.15 Hz (SD 0.24 Hz, n = 56 neurons). Taken together, the consistent performance across different synaptic preparations indicates that the miniML model can be directly applied to out-of-sample data with similar kinetics. miniML also provided higher event detection accuracy than template-based or finite-threshold-based detection methods, which are prone to false positives (<xref ref-type="fig" rid="fig4">Figure 4D, H, L, P</xref>, <xref ref-type="fig" rid="fig4s1">Figure 4—figure supplement 1</xref>).</p><fig-group><fig id="fig4" position="float"><label>Figure 4.</label><caption><title>Application of miniML to electrophysiological recordings from diverse synaptic preparations.</title><p>(<bold>A</bold>) Schematic and example voltage-clamp recordings from mouse cerebellar GCs. Orange circles mark detected events. (<bold>B</bold>) Representative individual mEPSC events detected by miniML. (<bold>C</bold>) All detected events from (<bold>A</bold>), aligned and overlaid with average (light blue). (<bold>C</bold>) Detected event numbers for miniML, template matching, and deconvolution. (<bold>E–H</bold>) Same as in (<bold>A–D</bold>), but for recordings from mouse calyx of Held synapses. (<bold>I–L</bold>) Same as in (<bold>A–D</bold>), but for recordings from mouse cerebellar Golgi cells. (<bold>M–P</bold>) Same as in (<bold>A–D</bold>), but for recordings from cultured human induced pluripotent stem cell (iPSC)-derived neurons. miniML consistently detects spontaneous events in all four preparations and retrieves more events than matched-filtering approaches.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig4-v1.tif"/></fig><fig id="fig4s1" position="float" specific-use="child-fig"><label>Figure 4—figure supplement 1.</label><caption><title>Event detection in different synaptic preparations.</title><p>(<bold>A</bold>) Amplitude histogram with kernel-density estimate (light blue line) of miniML-detected events for the mouse granule cell recording shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>. (<bold>B</bold>) Detected events for miniML and matched-filtering approaches. Color-coded representative examples of events unique to any of the three detection methods are shown. (<bold>C</bold>) Detected events for miniML and two finite-threshold approaches with representative unique detected events. (<bold>D</bold>–<bold>F</bold>) Same as in (<bold>A</bold>–<bold>C</bold>), but for the calyx of Held example. (<bold>G</bold>–<bold>H</bold>) Same as in (<bold>A</bold>–<bold>C</bold>), but for the Golgi cell example. Due to the slower event kinetics, miniML was run with a 1.5× larger window size. (<bold>J</bold>–<bold>L</bold>) Same as in (<bold>A</bold>–<bold>C</bold>), but for the hiPSC-derived neuron example. Example event traces were filtered for display purposes with a 18-samples Hann window.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig4-figsupp1-v1.tif"/></fig></fig-group></sec><sec id="s2-5"><title>Generalization of miniML to diverse event and data types via transfer learning</title><p>While applicable to out-of-sample data (<xref ref-type="fig" rid="fig4">Figure 4</xref>), simulations indicated that larger differences in event kinetics and waveform may ultimately hinder detection when using the MF–GC mEPSC model (<xref ref-type="fig" rid="fig5s1">Figure 5—figure supplement 1</xref>). Not only distinct event waveforms, but also different hardware and recording conditions may affect the characteristics of the recorded data. Scalability and generalizability are important for robust event detection. To facilitate the application of miniML to different preparations, recording conditions, and data types, we employed a transfer learning (TL) strategy. TL is a powerful technique in machine learning that allows for the transfer of knowledge learned from one task or domain to another (<xref ref-type="bibr" rid="bib77">Yosinski et al., 2014</xref>; <xref ref-type="bibr" rid="bib15">Caruana, 1994</xref>). TL is widely used with CNNs to take advantage of large pre-trained models and repurpose them to solve new, unseen tasks (<xref ref-type="bibr" rid="bib68">Theodoris et al., 2023</xref>). Importantly, only a part of the network needs to be trained for the novel task, which significantly reduces the number of training samples needed and speeds up training while avoiding overfitting (<xref ref-type="bibr" rid="bib77">Yosinski et al., 2014</xref>). We therefore reasoned that TL based on freezing the convolutional layers during training of our pre-trained network could be used to train a new model to detect events with different shapes and/or kinetics, using a lower number of training samples (<xref ref-type="fig" rid="fig5">Figure 5A</xref>).</p><fig-group><fig id="fig5" position="float"><label>Figure 5.</label><caption><title>Transfer learning allows analyzing different types of events with small amounts of training data.</title><p>(<bold>A</bold>) Illustration of the transfer learning (TL) approach. The convolutional layers of a trained miniML model are frozen before retraining with new, smaller datasets. (<bold>B</bold>) Comparison of TL and full training for MF–GC mEPSP data. Shown are loss and accuracy versus sample size for full training and TL. Indicated subsets of the dataset were split into training and validation sets; lines are averages of fivefold crossvalidation, shaded areas represent 95% CI. Note the log-scale of the abscissa. (<bold>C</bold>) Average AUC, accuracy, and training time of models trained with the full dataset or with TL on a reduced dataset. TL models yield comparable classification performance with reduced training time using only 12.5% of the samples. (<bold>D</bold>) Example recordings of synaptic events in voltage-clamp and current-clamp mode consecutively from the same neuron. (<bold>E</bold>) Average peak normalized mEPSC and mEPSP waveform from the example in (<bold>D</bold>). Note the different event kinetics depending on recording mode. (<bold>F</bold>) Event frequency for mEPSPs plotted against mEPSCs. Dashed line represents identity, solid line with shaded area represents linear regression.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig5-v1.tif"/></fig><fig id="fig5s1" position="float" specific-use="child-fig"><label>Figure 5—figure supplement 1.</label><caption><title>Recall depends on event kinetics.</title><p>(<bold>A</bold>) Recall versus event kinetics for the MF–GC model. Kinetics (i.e. rise and decay time constants) of simulated events were changed as indicated. miniML robustly detects events with up to ∼fourfold slower kinetics (dark blue, dashed line indicates 80% recall). Resampling of the data improves the recall in synthetic data with altered event kinetics (light blue). (<bold>B</bold>) Event kinetics for different preparations and/or recording modes. Data are normalized to MF–GC mEPSCs (dashed line).</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig5-figsupp1-v1.tif"/></fig><fig id="fig5s2" position="float" specific-use="child-fig"><label>Figure 5—figure supplement 2.</label><caption><title>Transfer learning facilitates model training across different datasets.</title><p>(<bold>A</bold>) Loss and accuracy versus number of training dataset samples for three different datasets (mouse MF–GC mEPSPs, <italic>Drosophila</italic> NMJ mEPSCs, zebrafish (ZF) spontaneous EPSCs). Dashed lines indicate transfer learning (TL), whereas solid lines depict results from full training. Points are averages of fivefold cross-validation and shaded areas represent 95% CI. (<bold>B</bold>) Average AUC, accuracy, and training time for TL using 500 samples, and full training using 4000 samples. Error bars denote 95% CI.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig5-figsupp2-v1.tif"/></fig></fig-group><p>We tested the use of TL for miniML with recordings of miniature excitatory postsynaptic potentials (mEPSPs) in mouse cerebellar GCs. These events have opposite polarity and slower kinetics compared to the original mEPSC training data. We compared TL-based model training to full training (with all layers trainable and reinitialized weights), varying the training sample size. Whereas accuracy increased and loss decreased with the number of samples (<xref ref-type="fig" rid="fig5">Figure 5B</xref>), TL models performed well with as few as 400 samples. Under these conditions, accuracy was only slightly lower than for full training with almost 10 times the sample size (median accuracy, 95.4 vs 96.1%; <xref ref-type="fig" rid="fig5">Figure 5C</xref>). This suggests that TL can significantly reduce the sample size needed for training, minimizing the time-consuming process of event extraction and labeling. Across different datasets, TL-trained models performed comparably to those trained from scratch (<xref ref-type="fig" rid="fig5s2">Figure 5—figure supplement 2</xref>). Taken together, these data demonstrate that TL allows model training with an order of magnitude smaller amount of training data, making miniML easily transferable to new datasets with diverse characteristics.</p><p>To investigate how a TL-trained model performs in event detection, we analyzed data in different recording modes (voltage-clamp vs. current-clamp). The different noise conditions typically encountered in current-clamp and the difference between EPSP and EPSC waveforms necessitate distinct detection schemes for common detection methods. Recording miniature EPSPs and EPSCs in the same cerebellar GCs (<xref ref-type="fig" rid="fig5">Figure 5D–E</xref>) enabled us to compare detection performance via event frequency. mEPSPs could be approximated by a two-exponential time course, similar to postsynaptic currents. However, their kinetics were considerably slower due to the charging of the plasma membrane (<xref ref-type="fig" rid="fig5">Figure 5E</xref>). We used a TL-trained model for mEPSP detection and the standard miniML model for mEPSCs. Remarkably, the average event frequencies were very similar in the two different recording modes (voltage-clamp: 0.49 Hz, SD 0.53 Hz, current-clamp: 0.54 Hz, SD 0.6 Hz, n = 15 for both) and highly correlated across neurons (<xref ref-type="fig" rid="fig5">Figure 5F</xref>). This highlights the reliability of TL with small training sets for the consistent detection of synaptic events in datasets with varying characteristics.</p></sec><sec id="s2-6"><title>miniML reveals diversity of synaptic event kinetics in an ex vivo whole brain preparation</title><p>The presence of overlapping and highly variable event shapes pose additional challenges for event detection methods. To evaluate miniML’s performance in such complex scenarios, we analyzed a dataset recorded from principal neurons of the adult zebrafish telencephalon (<xref ref-type="bibr" rid="bib59">Rupprecht and Friedrich, 2018</xref>). We focused on spontaneous excitatory inputs to these neurons, characterized by diverse event shapes and frequencies (<xref ref-type="bibr" rid="bib59">Rupprecht and Friedrich, 2018</xref>). Training via TL (see Materials and methods) yielded a model that enabled the reliable detection of spontaneous excitatory currents (<xref ref-type="fig" rid="fig6">Figure 6A</xref>). Analysis of event properties across cells revealed broad distributions of event statistics (<xref ref-type="fig" rid="fig6">Figure 6B</xref>), including a large diversity of event rise and decay kinetics (<xref ref-type="fig" rid="fig6">Figure 6B–C</xref>). Notably, miniML consistently identified synaptic events with diverse kinetics and shapes.</p><fig id="fig6" position="float"><label>Figure 6.</label><caption><title>Synaptic event detection for neurons in a full-brain explant preparation of adult zebrafish.</title><p>(<bold>A</bold>) Application of TL to facilitate event detection for EPSC recordings. (<bold>B</bold>) Extraction of amplitudes, event frequencies, decay times, and rise time for all neurons in the dataset (n = 34). Bars are means and error bars denote SD. (<bold>C</bold>) Typical (mean) event kinetics for the analyzed neurons, ordered by decay times. Event traces are peak-normalized. (<bold>D–E</bold>) Example recordings with slow (dark blue) and fast (light blue) event kinetics. (<bold>F</bold>) Examples of events taken from (<bold>D–E</bold>), illustrating the diversity of kinetics within and across neurons. (<bold>G</bold>) Distribution of event decay kinetics across single events for two example neurons (traces shown in (<bold>D–E</bold>)). (<bold>H</bold>) Distribution of event rise kinetics across single events for same two example neurons. (<bold>I</bold>) Mapping of decay times (color-coded as in (<bold>C</bold>)) onto the anatomical map of the recording subregion of the telencephalon. (<bold>J</bold>) Mean decay and rise times are correlated across neurons. (<bold>K</bold>) Decay time distributions are broader (SD of decay time distributions) when mean decay times are larger. (<bold>L</bold>) Input resistance as a proxy for cell size is negatively correlated with the decay time.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig6-v1.tif"/></fig><p>We next used the extracted event kinetics features of individual neurons (<xref ref-type="fig" rid="fig6">Figure 6D–H</xref>) to demonstrate miniML’s utility in better understanding the diversity of an existing dataset. First, we explored whether the anatomical location of each neuron could predict event decay times. We mapped the recorded neurons to an anatomical reference and plotted decay times as a function of their position but did not find a strong relationship (<xref ref-type="fig" rid="fig6">Figure 6I</xref>; correlation with position p &gt; 0.05 in all three dimensions). Second, we tested the hypothesis that slower event kinetics are associated with larger cells. In large cells, EPSCs may undergo stronger filtering as they propagate from synaptic sites to the soma. Consistent with this idea, we observed correlations between decay and rise times across neurons (<xref ref-type="fig" rid="fig6">Figure 6J</xref>). Furthermore, the distribution of decay times (examples shown in <xref ref-type="fig" rid="fig6">Figure 6H</xref>) was broader for neurons with longer decay times (<xref ref-type="fig" rid="fig6">Figure 6K</xref>), suggesting a broader distribution of distances from synapses to the cell body. Finally, for a subset of neurons, we recorded input resistance, which approximates the cell membrane resistance and is therefore a proxy for cell size. Input resistance was negatively correlated with decay times across neurons (<xref ref-type="fig" rid="fig6">Figure 6L</xref>), consistent with the hypothesis that diverse event kinetics across neurons are determined by the conditions of synaptic event propagation to the soma and, more specifically, cell size. Taken together, this analysis underscores the versatility of miniML, as it can be successfully applied to new datasets with varying recording conditions. miniML consistently extracted synaptic events across a spectrum of event kinetics, enabling the identification and investigation of key factors determining event kinetics and other event-related properties across neurons.</p></sec><sec id="s2-7"><title>miniML robustly detects mEPSC differences upon genetic receptor perturbation</title><p>We next applied miniML to analyze data obtained from the <italic>Drosophila melanogaster</italic> larval neuromuscular junction (NMJ) (<xref ref-type="bibr" rid="bib10">Baccino-Calace et al., 2022</xref>). This synapse is characterized by a higher frequency of spontaneous synaptic events with a slower time course compared with typical brain slice recordings. In addition, mEPSC recordings are performed using two-electrode voltage-clamp, which can be associated with large leak currents and rather low SNR. Because of the different event shapes in these data, we used a small dataset of manually extracted NMJ events to train a TL model. The TL model was able to reliably detect synaptic events in wild-type (WT) NMJ recordings (<xref ref-type="fig" rid="fig7">Figure 7A–C</xref>). We next assessed event detection upon deletion of the non-essential glutamate receptor subunit <italic>GluRIIA</italic>, which causes a strong reduction in mEPSC amplitude and faster kinetics (<xref ref-type="bibr" rid="bib20">DiAntonio et al., 1999</xref>). A separate TL model allowed reliable synaptic event detection in recordings from <italic>GluRIIA</italic> mutant larvae (<xref ref-type="fig" rid="fig7">Figure 7D–F</xref>). We observed a 54% reduction in mEPSC amplitude compared to WT (<xref ref-type="fig" rid="fig7">Figure 7G</xref>), consistent with previous reports (<xref ref-type="bibr" rid="bib20">DiAntonio et al., 1999</xref>; <xref ref-type="bibr" rid="bib54">Petersen et al., 1997</xref>). In addition, the event frequency was reduced by 64% (<xref ref-type="fig" rid="fig7">Figure 7H</xref>). Although event amplitude distributions had a similar shape in both genotypes (<xref ref-type="fig" rid="fig7">Figure 7C and F</xref>), small events below the detection limit in <italic>GluRIIA</italic> synapses may contribute to the observed frequency difference. Half decay and rise times were also shorter at <italic>GluRIIA</italic> than at WT NMJs (−58% and −18%, respectively; <xref ref-type="fig" rid="fig7">Figure 7I–J</xref>), which can be explained by the faster desensitization of the remaining <italic>GluRIIB</italic> receptors (<xref ref-type="bibr" rid="bib20">DiAntonio et al., 1999</xref>). Thus, miniML can be applied to two-electrode voltage clamp recordings at the <italic>Drosophila</italic> NMJ and robustly resolves group differences upon genetic receptor perturbation.</p><fig id="fig7" position="float"><label>Figure 7.</label><caption><title>Event detection at <italic>Drosophila</italic> neuromuscular synapses upon altered glutamate receptor composition.</title><p>(<bold>A</bold>) Two-electrode voltage-clamp recordings from wild-type (WT) <italic>Drosophila</italic> NMJs were analyzed using miniML with transfer learning. (<bold>B</bold>) Left: Example voltage-clamp recording with detected events highlighted. Right: Three individual mEPSCs on expanded time scale. (<bold>C</bold>) Left: All detected events from the example in (<bold>B</bold>) overlaid with the average (blue line). Right: Event amplitude histogram. (<bold>D–F</bold>) Same as in (<bold>A–C</bold>), but for <italic>GluRIIA</italic> mutant flies. (<bold>G</bold>) Comparison of median event amplitude for WT and GluRIIA NMJs. Both groups are plotted on the left axes; Cohen’s d is plotted on a floating axis on the right as a bootstrap sampling distribution (red). The mean difference is depicted as a dot (black); the 95% confidence interval is indicated by the ends of the vertical error bar. (<bold>H</bold>) Event frequency is lower in <italic>GluRIIA</italic> mutant NMJs than in WT. (<bold>I</bold>) Knockout of <italic>GluRIIA</italic> speeds event decay time. (<bold>J</bold>) Faster event rise times in <italic>GluRIIA</italic> mutant NMJs.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig7-v1.tif"/></fig></sec><sec id="s2-8"><title>miniML enables reliable analysis of optical miniature events from live imaging experiments</title><p>To assess miniML’s generalizability to non-electrophysiological data, we applied it to analyze events in time-series data from live fluorescence imaging experiments. Recent developments of highly sensitive fluorescent probes have enabled the recording of synaptic events using various imaging techniques (<xref ref-type="bibr" rid="bib24">Hao et al., 2024</xref>; <xref ref-type="bibr" rid="bib4">Aggarwal et al., 2023</xref>; <xref ref-type="bibr" rid="bib3">Abdelfattah et al., 2023</xref>; <xref ref-type="bibr" rid="bib56">Ralowicz et al., 2024</xref>). These technological advances offer exciting new possibilities in the study of synaptic function, but also generate novel challenges for the detection and analysis of synaptic events. Live imaging datasets typically feature a lower sampling rate, lower SNR, and distinct noise profile compared with electrophysiological recordings. Nevertheless, the waveforms of imaged synaptic release events, voltage changes, or Ca<sup>2+</sup> transients closely resemble those used to train miniML. Thus, we hypothesized that miniML could also be employed for event detection in fluorescence imaging data.</p><p>We first used miniML to analyze a previously published dataset <xref ref-type="bibr" rid="bib4">Aggarwal et al., 2023</xref> from rat neuronal cultures expressing the glutamate sensor iGluSnFR3 (<xref ref-type="fig" rid="fig8">Figure 8A–B</xref>). These data, recorded in the presence of TTX, contain spontaneous transient increases in fluorescence intensity representing individual release events (‘optical minis’). Initially, we selected a small subset of events from the data to train a TL model. Given the low sampling rate of the imaging (100 Hz), we upsampled the data by a factor of 10 to match the model’s input shape. The TL model was subsequently applied to all detected sites (n = 1524) within the widefield recording (<xref ref-type="bibr" rid="bib4">Aggarwal et al., 2023</xref>). A qualitative assessment of the imaging traces showed excellent event detection, with miniML consistently localizing the iGluSnFR3 fluorescence transients at varying SNRs (<xref ref-type="fig" rid="fig8">Figure 8C</xref>). The detected optical minis had similar kinetics to those reported in <xref ref-type="bibr" rid="bib4">Aggarwal et al., 2023</xref> (10–90% rise time, median 21.8 ms; half decay time, median 48.7 ms, <xref ref-type="fig" rid="fig8">Figure 8D</xref>). In addition, analysis of event frequencies across sites revealed a power-law distribution (<xref ref-type="fig" rid="fig8">Figure 8E</xref>), consistent with fractal behavior of glutamate release (<xref ref-type="bibr" rid="bib45">Lowen et al., 1997</xref>). Thus, miniML can reliably detect synaptic release events in time-series data from iGluSnFR3 recordings.</p><fig id="fig8" position="float"><label>Figure 8.</label><caption><title>Optical detection of spontaneous glutamate release events in cultured neurons using iGluSnFR3 and miniML.</title><p>(<bold>A</bold>) miniML was applied to recordings from rat primary culture neurons expressing iGluSnFR3. Data from <xref ref-type="bibr" rid="bib4">Aggarwal et al., 2023</xref>. (<bold>B</bold>) Example epifluorescence image of iGluSnFR3-expressing cultured neurons. Image shows a single frame with three example regions of interest (ROIs) indicated. (<bold>C</bold>) <inline-formula><mml:math id="inf1"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>F</mml:mi><mml:mrow><mml:mo>/</mml:mo></mml:mrow><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:mstyle></mml:math></inline-formula> traces for the regions shown in (<bold>B</bold>). Orange circles indicate detected optical minis. Note the different signal-to-noise ratios of the examples. (<bold>D</bold>) Top: Heatmap showing average optical minis for all sites with detected events, sorted by amplitude. Bottom: Grand average optical mini. (<bold>E</bold>) Top: Histogram with kernel density estimate (solid line) of event amplitudes for n = 1524 ROIs of the example in (<bold>B</bold>). Note the log-scale of the abscissa. Bottom: Event frequency histogram.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig8-v1.tif"/></fig><p>To further investigate miniML’s performance in imaging data, we performed simultaneous electrophysiological and fluorescence recordings of mEPSPs in cultured rat hippocampal neurons expressing ASAP5-Kv (<xref ref-type="bibr" rid="bib24">Hao et al., 2024</xref>) at physiological temperature (<xref ref-type="fig" rid="fig9">Figure 9A–B</xref>). ASAP5 allows resolving small voltage changes in the mV-range, as illustrated by the close correlation of optical and current-clamp signals (<xref ref-type="fig" rid="fig9">Figure 9C</xref>). However, event detection is more challenging in voltage imaging data due to the lower SNR compared to electrophysiological recordings (ASAP5: 2.26, SD 0.46; electrophysiology: 4.79, SD 0.74; n = 5 neurons; <xref ref-type="fig" rid="fig9s1">Figure 9—figure supplement 1</xref>). Photon shot noise and other sources of noise in the imaging setup not only limit the SNR, but can also lead to spurious event detection (<xref ref-type="bibr" rid="bib74">Wilt et al., 2013</xref>; <xref ref-type="bibr" rid="bib64">Sjulson and Miesenböck, 2007</xref>).</p><fig-group><fig id="fig9" position="float"><label>Figure 9.</label><caption><title>Optical detection of mEPSPs in cultured rat hippocampal neurons using ASAP5 and miniML.</title><p>(<bold>A</bold>) Event detection in simultaneous recordings of membrane voltage using electrophysiology and ASAP5 voltage imaging. (<bold>B</bold>) Example epifluorescence image of an ASAP5-Kv-expressing cultured rat hippocampal neuron. (<bold>C</bold>) <inline-formula><mml:math id="inf2"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>F</mml:mi><mml:mrow><mml:mo>/</mml:mo></mml:mrow><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:mstyle></mml:math></inline-formula> trace (Top) and simultaneous current-clamp recording (Bottom) from the neuron shown in (<bold>B</bold>). Events detected by miniML are indicated. (<bold>D</bold>) Detected events from the example recording in (<bold>B–C</bold>) overlaid with average (colored line). Top: ASAP5-Kv recording. Bottom: Current-clamp recording. (<bold>E</bold>) Top: Peak-scaled average mEPSP (dark blue) and optical events (light blue). Bottom: Amplitudes measured in optical and electrophysiological data are highly correlated (Pearson correlation coefficient <italic>r</italic> = 0.9). (<bold>F</bold>) Comparative analysis of detection performance in ASAP5 data. (<bold>G</bold>) Example ASAP5 recording with detected event positions indicated for different analysis methods (miniML, template matching, deconvolution). (<bold>H</bold>) Precision and Recall of all three detection methods for n = 5 neurons. miniML showed highest recall (miniML, 0.38 ± 0.05; template matching, 0.25 ± 0.05 (Cohen’s d, 1.25); deconvolution, 0.09 ± 0.01 (Cohen’s d, 3.87); mean  ± SEM) with similar precision (0.93 ± 0.01; 0.95 ± 0.02; 0.8 ± 0.1). Bars are median values.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig9-v1.tif"/></fig><fig id="fig9s1" position="float" specific-use="child-fig"><label>Figure 9—figure supplement 1.</label><caption><title>mEPSP detection in ASAP5 recordings.</title><p>(<bold>A</bold>) Signal-to-noise ratio (SNR) of mEPSPs in electrophysiology and ASAP5 for five neurons. (<bold>B</bold>) Overlay of simultaneous current-clamp and ASAP5 recording. Events detected by miniML in both types of recordings are indicated. (<bold>C</bold>) Examples of mEPSPs detected in the electrophysiology data that were either detected by miniML in ASAP5 data (orange dots) or missed (blacked dots). (<bold>D</bold>) mEPSP amplitude versus optical amplitude for detected events in five neurons (color-coded). Line is a linear fit to the data (slope = 0.95 mV/−%<inline-formula><mml:math id="inf3"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>F</mml:mi><mml:mrow><mml:mo>/</mml:mo></mml:mrow><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:mstyle></mml:math></inline-formula>, Pearson correlation coefficient = 0.83). (<bold>E</bold>) Event half decay time (Left) and rise time (Right) for five neurons from electrophysiology (’Ephys’) and ASAP5 data. Data were calculated from the event averages of each cell. The lower sampling rate of imaging acquisition (400 Hz) vs. electrophysiology (10,000 Hz) likely contributes to the slower event kinetics observed in ASAP5 data.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig9-figsupp1-v1.tif"/></fig><fig id="fig9s2" position="float" specific-use="child-fig"><label>Figure 9—figure supplement 2.</label><caption><title>Methods comparison for event detection in ASAP5 recordings.</title><p>(<bold>A</bold>) Average waveforms of detected events in ASAP5 data for miniML (n = 101 events), template-matching (n = 82 events), and deconvolution (n = 15 events). Data are from the example shown in <xref ref-type="fig" rid="fig9">Figure 9C</xref>, shaded areas represent SEM. (<bold>B</bold>) Recall of events in ASAP5 data versus mEPSP amplitude for miniML, template-matching, and deconvolution. Lines are averages of five recordings with SEM as shaded area. (<bold>C</bold>) F1 score for event detection in ASAP5 data was higher using miniML (0.53 ± 0.04 , mean ± SEM) than for template-matching (0.39 ± 0.05; Cohen’s d, 1.35) and deconvolution (0.17 ± 0.01; Cohen’s d, 5.1). Bars are median values, n = 5 neurons.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-98485-fig9-figsupp2-v1.tif"/></fig></fig-group><p>We trained separate miniML TL models to detect mEPSPs in optical and current-clamp data (<xref ref-type="fig" rid="fig9">Figure 9C–D</xref>). Optical detection yielded events that closely resembled mEPSPs, with slightly slower decay and rise kinetics (<xref ref-type="fig" rid="fig9">Figure 9E</xref>, <xref ref-type="fig" rid="fig9s1">Figure 9—figure supplement 1</xref>). Analysis of the corresponding amplitudes of mEPSPs and optically detected events confirmed that ASAP5 linearly reports subthreshold voltage changes in neurons (<xref ref-type="fig" rid="fig9">Figure 9E</xref>), in line with previous reports (<xref ref-type="bibr" rid="bib24">Hao et al., 2024</xref>). To provide a more quantitative assessment of detection performance, we compared miniML to established template-based analysis methods (<xref ref-type="fig" rid="fig9">Figure 9F</xref>). The simultaneous recording of membrane voltage through both optical and electrophysiological means allowed us to establish ground truth data for evaluating detection performance. We quantified the detection of events by different methods in imaging data relative to electrophysiology, with threshold settings of the matched-filtering approaches adjusted to achieve ∼90% precision. High precision of event detection is crucial for robust data analysis. At comparable levels of precision, miniML demonstrated superior recall of mEPSPs compared with template matching or deconvolution (<xref ref-type="fig" rid="fig9">Figure 9G–H</xref>). Notably, miniML detected ∼40% of mEPSPs in optical data, a substantial improvement over template-based methods (<xref ref-type="fig" rid="fig9">Figure 9H</xref>, <xref ref-type="fig" rid="fig9s2">Figure 9—figure supplement 2</xref>). These voltage imaging experiments suggest that miniML facilitates the optical detection of mEPSPs. More extensive training datasets may further increase the recall performance of miniML in voltage imaging datasets.</p><p>Together, the analysis of different optical recordings containing synaptic events demonstrates that miniML generalizes beyond electrophysiological data and can support the evaluation of fluorescence imaging datasets. miniML may thus pave the way for high-throughput analyses of spontaneous events in diverse imaging experiments.</p></sec></sec><sec id="s3" sec-type="discussion"><title>Discussion</title><p>Here, we developed and evaluated miniML, a novel supervised deep learning approach for detecting spontaneous synaptic events. miniML provides a comprehensive and versatile framework for analyzing synaptic events in diverse time-series data with several important advantages over current methods.</p><p>miniML outperforms existing methods for synaptic event detection, particularly with respect to false positives, which is crucial for the accurate quantification of synaptic transmission. In addition to its high precision, miniML’s detection performance is robust to threshold choice. This effectively eliminates the trade-off between false positive and false negative rates typically present in event detection methods (<xref ref-type="bibr" rid="bib48">Merel et al., 2016</xref>; <xref ref-type="bibr" rid="bib16">Clements and Bekkers, 1997</xref>; <xref ref-type="bibr" rid="bib53">Pernía-Andrade et al., 2012</xref>; <xref ref-type="bibr" rid="bib50">Mori et al., 2024</xref>). Thus, miniML is highly reproducible and overcomes the need for laborious manual event inspection, enabling automated synaptic event analysis. Automated, reproducible data analysis is key to open science and the use of publicly available datasets (<xref ref-type="bibr" rid="bib9">Ascoli et al., 2017</xref>; <xref ref-type="bibr" rid="bib23">Ferguson et al., 2014</xref>). The Python-based software implementation of miniML enables a high degree of automatization, making it well suited for analyzing large-scale neurophysiological datasets. In addition, we provide a graphical user interface akin to MiniAnalysis or SimplyFire software.</p><p>Our results from a wide variety of preparations, covering different species and neuronal preparations, demonstrate the robustness of miniML and its general applicability to the study of synaptic physiology. miniML generalizes well to different experimental preparations, conditions, and data types. Data with event waveforms that are similar to the original miniML training data (i.e. mouse cerebellar GC recordings) can be analyzed immediately. For more distinct event waveforms or data properties, data resampling and/or retraining of a classifier via TL enables event detection optimized for the respective recording conditions. Importantly, TL requires only a few hundred labeled events for training, facilitating its application to novel datasets. For example, an existing miniML model can be easily retrained to eliminate potential false positives, for example due to sudden changes in noise characteristics. This scalability is a key advantage of the miniML approach over traditional methods.</p><p>Event detection with miniML is not restricted to electrophysiological data, but can also be applied to optical time-series data derived from live imaging experiments using, for example reporters of glutamate (<xref ref-type="bibr" rid="bib4">Aggarwal et al., 2023</xref>), Ca<sup>2+</sup> (<xref ref-type="bibr" rid="bib69">Tran and Stricker, 2021</xref>), or membrane voltage (<xref ref-type="bibr" rid="bib44">Li et al., 2020</xref>). Optical recordings of subthreshold events enable high-throughput or subcellular characterizations of synaptic function in vitro or in vivo, but they usually exhibit lower SNR and lower sampling rate than electrophysiological recordings. The development of novel optical sensors with improved sensitivity and temporal resolution (<xref ref-type="bibr" rid="bib22">Evans et al., 2023</xref>; <xref ref-type="bibr" rid="bib79">Zhang et al., 2023</xref>; <xref ref-type="bibr" rid="bib24">Hao et al., 2024</xref>) facilitates optical recordings of synaptic events, but also necessitates efficient and robust event detection methods. Our results demonstrate that miniML performs better than previous methods in identifying small synaptic events in fluorescence imaging data. The combination of advanced voltage imaging techniques and AI-based analysis has the potential to transform our ability to extract meaningful information from optical recordings at limiting SNR and may open up new possibilities for studying synaptic activity across large populations of neurons simultaneously. miniML can also be used for the analysis of evoked postsynaptic responses, such as failure analysis or quantification of unitary events, and for functional connectivity studies (<xref ref-type="bibr" rid="bib14">Campagnola et al., 2022</xref>). In addition, the method could be extended to other areas of biology and medicine where signal detection is critical, such as clinical neurophysiology or imaging.</p><p>Comprehensive performance comparison is essential for evaluation and selection of analysis methods. Benchmarking requires standardized ground truth data, but unlike, for example spike inference from Ca<sup>2+</sup> imaging (<xref ref-type="bibr" rid="bib67">Theis et al., 2016</xref>), these are usually not available for spontaneous synaptic event recordings. Furthermore, the results can vary between simulated and real data (<xref ref-type="bibr" rid="bib67">Theis et al., 2016</xref>). We therefore established a benchmarking pipeline using event-free recordings with synthetic events, circumventing differences in the noise power spectrum of simulations vs. recordings (<xref ref-type="bibr" rid="bib48">Merel et al., 2016</xref>; <xref ref-type="bibr" rid="bib53">Pernía-Andrade et al., 2012</xref>). This approach may provide a general toolbox for evaluating the effectiveness of different synaptic event detection methods. Our comparison of detection performance in real-world data further underscores that miniML’s detection performance surpasses existing methods.</p><p>The supervised learning approach of miniML requires labeled training data. Although TL requires only a few hundred training samples, these data need to be collected and annotated by the user. Future directions may explore unsupervised learning techniques such as autoencoders to reduce the dependence on annotated training data. In addition, at very high event frequencies, individual synaptic events may overlap, making their separation difficult. Although miniML can generally detect overlapping events, very close events may not always be detected and there may be a lower bound. Implementing additional techniques such as wavelet transformation, or spectral domain or shapelet analysis (<xref ref-type="bibr" rid="bib75">Ye and Keogh, 2009</xref>; <xref ref-type="bibr" rid="bib13">Batal and Hauskrecht, 2009</xref>) may improve the accuracy of event detection, especially for overlapping events.</p><p>miniML presents an innovative data analysis method that will advance the field of synaptic physiology. Its open-source Python software design ensures seamless integration into existing data analysis pipelines and enables widespread use of the method, fostering the development of new applications and further innovation. Remarkably, despite its deep learning approach, miniML runs at relatively rapid speed on commodity hardware. Due to its robust, generalizable, and unbiased detection performance, miniML allows researchers to perform more accurate and efficient synaptic event analysis. A standardized, more efficient, and reproducible analysis of synaptic events will promote important new insights into synaptic physiology and dysfunction (<xref ref-type="bibr" rid="bib42">Lepeta et al., 2016</xref>; <xref ref-type="bibr" rid="bib80">Zoghbi and Bear, 2012</xref>) and help improve our understanding of neural function.</p></sec><sec id="s4" sec-type="materials|methods"><title>Materials and methods</title><table-wrap id="keyresource" position="anchor"><label>Key resources table</label><table frame="hsides" rules="groups"><thead><tr><th align="left" valign="bottom">Reagent type (species) or resource</th><th align="left" valign="bottom">Designation</th><th align="left" valign="bottom">Source or reference</th><th align="left" valign="bottom">Identifiers</th><th align="left" valign="bottom">Additional information</th></tr></thead><tbody><tr><td align="left" valign="bottom">Strain, strain background (<italic>Mus musculus</italic>, ♀ and ♂)</td><td align="left" valign="bottom">C57BL/6JRj</td><td align="left" valign="bottom">Janvier Labs</td><td align="left" valign="bottom">RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:MGI:2670020">MGI:2670020</ext-link></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Chemical compound, drug</td><td align="left" valign="bottom">D-APV</td><td align="left" valign="bottom">Tocris</td><td align="left" valign="bottom">Cat. # 0106</td><td align="left" valign="bottom">50 µM</td></tr><tr><td align="left" valign="bottom">Chemical compound, drug</td><td align="left" valign="bottom">NBQX</td><td align="left" valign="bottom">HelloBio</td><td align="left" valign="bottom">Cat. # HB0443</td><td align="left" valign="bottom">10 µM</td></tr><tr><td align="left" valign="bottom">Chemical compound, drug</td><td align="left" valign="bottom">Bicuculline</td><td align="left" valign="bottom">Sigma</td><td align="left" valign="bottom">Cat. # 14343</td><td align="left" valign="bottom">10 µM</td></tr><tr><td align="left" valign="bottom">Chemical compound, drug</td><td align="left" valign="bottom">Strychnine</td><td align="left" valign="bottom">Sigma</td><td align="left" valign="bottom">Cat. # S8753</td><td align="left" valign="bottom">1 µM</td></tr><tr><td align="left" valign="bottom">Software, algorithm</td><td align="left" valign="bottom">Patchmaster</td><td align="left" valign="bottom">HEKA Elektronik</td><td align="left" valign="bottom">RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_000034">SCR_000034</ext-link></td><td align="left" valign="bottom">Version 2x90.5</td></tr><tr><td align="left" valign="bottom">Software, algorithm</td><td align="left" valign="bottom">Mini Analysis Program</td><td align="left" valign="bottom">Synaptosoft</td><td align="left" valign="bottom">RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_002184">SCR_002184</ext-link></td><td align="left" valign="bottom">Version 6.0</td></tr><tr><td align="left" valign="bottom">Software, algorithm</td><td align="left" valign="bottom">Python</td><td align="left" valign="bottom">Python Software Foundation</td><td align="left" valign="bottom">RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_008394">SCR_008394</ext-link></td><td align="left" valign="bottom">Version 3.9 or 3.10</td></tr><tr><td align="left" valign="bottom">Software, algorithm</td><td align="left" valign="bottom">TensorFlow</td><td align="left" valign="bottom">Google</td><td align="left" valign="bottom">RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_016345">SCR_016345</ext-link></td><td align="left" valign="bottom">Version 2.12 or 2.15</td></tr><tr><td align="left" valign="bottom">Other</td><td align="left" valign="bottom">Borosilicate glass</td><td align="left" valign="bottom">Science Products</td><td align="left" valign="bottom">Cat. # GB150F-10P</td><td align="left" valign="bottom">Outer/inner diameter: 1.5/0.86 mm</td></tr></tbody></table></table-wrap><sec id="s4-1"><title>Electrophysiological recordings</title><p>Animals were treated according to national and institutional guidelines. All experiments were approved by the Cantonal Veterinary Office of Zurich (approval number no. ZH206/2016 and ZH009/2020). Experiments were performed in male and female C57BL/6 J mice (Janvier Labs, France, RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:MGI:2670020">MGI:2670020</ext-link>). Mice were 1–5 months-old, but for recordings from the Calyx of Held, which were performed in P9 animals. Animals were housed in groups of 3–5 in standard cages under a 12h-light/12h-dark cycle with food and water ad libitum. Mice were sacrificed by rapid decapitation after isoflurane anesthesia. The cerebellar vermis was quickly removed and mounted in a chamber filled with chilled extracellular solution. Parasagittal 300-µm-thick slices were cut with a Leica VT1200S vibratome (Leica Microsystems, Germany), transferred to an incubation chamber at 35 °C for 30 min, and then stored at room temperature until experiments. The extracellular solution (artificial cerebrospinal fluid, ACSF) for slicing and storage contained (in mM): 125 NaCl, 25 NaHCO<sub>3</sub>, 20 D-glucose, 2.5 KCl, 2 CaCl<sub>2</sub>, 1.25 NaH<sub>2</sub>PO<sub>4</sub>, 1 MgCl<sub>2</sub>, aerated with 95% O<sub>2</sub> and 5% CO<sub>2</sub>.</p><p>Slices were visualized using an upright microscope with a 60×, 1 NA water immersion objective, infrared optics, and differential interference contrast (Scientifica, UK). The recording chamber was continuously perfused with ACSF. For event-free recordings, we blocked excitatory and inhibitory transmission using ACSF supplemented with 50 µM D-APV, 10 µM NBQX, 10 µM bicuculline, and 1 µM strychnine. Patch pipettes (open-tip resistances of 3–8 MΩ) were filled with solution containing (in mM): 150 K-D-gluconate, 10 NaCl, 10 HEPES, 3 MgATP, 0.3 NaGTP, 0.05 ethyleneglycol-bis(2-aminoethylether)-N,N,N’,N’-tetraacetic acid (EGTA), pH adjusted to 7.3 with KOH. Voltage-clamp and current-clamp recordings were made using a HEKA EPC10 amplifier controlled by Patchmaster software (HEKA Elektronik GmbH, Germany, RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_000034">SCR_000034</ext-link>). Voltages were corrected for a liquid junction potential of +13 mV. Experiments were performed at room temperature (21–25 °C). Miniature EPSCs (mEPSCs) were recorded at a holding potential of −100 mV or −80 mV, and miniature EPSPs (mEPSPs) at the resting membrane potential. Data were filtered at 2.9 kHz and digitized at 50 kHz. Synaptic event recording periods typically lasted 120 s.</p><p>Voltage-clamp recordings were performed on human iPSC-derived neurons as described in <xref ref-type="bibr" rid="bib8">Asadollahi et al., 2023</xref>. We recorded spontaneous EPSCs in 8-week-old neuronal cultures with cortical glutamatergic identity at a holding potential of −80 mV and with ACSF consisting of (in mM): 135 NaCl, 10 HEPES, 10 D-glucose, 5 KCl, 2 CaCl<sub>2</sub>, 1 MgCl<sub>2</sub>. Synaptic events were observed in ∼51% of neurons. The experimental procedures for recordings of spontaneous or miniature EPSCs in zebrafish and <italic>Drosophila</italic> are described in <xref ref-type="bibr" rid="bib59">Rupprecht and Friedrich, 2018</xref> and <xref ref-type="bibr" rid="bib10">Baccino-Calace et al., 2022</xref>, respectively.</p></sec><sec id="s4-2"><title>Combined electrophysiological and optical mEPSP recordings</title><p>Cultured rat hippocampal neurons at 17–20 days in vitro were patched and imaged simultaneously at physiological temperature (30–34 °C) following the procedure described in <xref ref-type="bibr" rid="bib24">Hao et al., 2024</xref>. Briefly, for electrophysiological recordings, extracellular solution containing 145 mM NaCl, 3 mM KCl, 2 mM CaCl<sub>2</sub>, 2 mM MgCl<sub>2</sub>, 10 mM HEPES, and 10 mM glucose (pH adjusted to 7.4, Osmolarity 310 mOsm/kg) supplemented with TTX (1 µM) and PTX (50 µM), and a pipette solution containing 123 mM K-gluconate, 10 mM KCl, 8 mM NaCl, 1 mM MgCl<sub>2</sub>, 10 mM HEPES, 1 mM EGTA, 0.1 mM CaCl<sub>2</sub>, 1.5 mM MgATP, 0.2 mM Na<sub>4</sub>GTP, and 4 mM glucose (pH adjusted to 7.2, Osmolarity 295–300 mOsm/kg) were used. Whole-cell recordings were performed with a Multiclamp 700B amplifier, Digidata 1440 A digitizer, and pClamp software (all from Molecular Devices). Patch pipettes (open-tip resistances of 3–5 MΩ) were produced from glass capillaries with filament (outer diameter, 1.5 mm; inner diameter, 1.0 mm; King Precision Glass). Electrophysiological recordings were digitized at 10 kHz for acquisition and then lowpass filtered with 1 kHz cut-off frequency in post-processing in Clampfit.</p><p>ASAP5-Kv was excited using a SOLIS-470C LED light source (Thorlabs) with a 482/18 nm bandpass filter (Semrock); excitation light was set to provide an irradiance of 46 mW/mm<sup>2</sup>. Imaging data were acquired at 400 fps using an iXon 860 EMCCD camera (Andor – Oxford Instruments) and a 525/50 nm bandpass filter (Semrock). Neurons requiring more than ±100 pA holding current to maintain the resting membrane potential near −70 mV were excluded from the analysis.</p></sec><sec id="s4-3"><title>Training data and annotation</title><p>We used synaptic event recordings from a previous publication (<xref ref-type="bibr" rid="bib17">Delvendahl et al., 2019</xref>) to generate the training dataset. mEPSCs were extracted based on low-threshold template-matching. Corresponding sections of data without events were randomly selected from the recordings. The extracted windows had a length of 600 data points. Given our sampling rate of 50 kHz, this corresponds to 12 ms. We subsequently manually scored data sections as event-containing (label = 1) or not event-containing (label = 0). The ratio of events to non-events was kept close to one to ensure efficient training. Based on empirical observations of model performance, we included relatively small amplitude events that are often missed by other methods. Similarly, including negative examples that are commonly picked up as false positives, resulted in more accurate prediction traces. We used data augmentation techniques to further improve model discrimination. We simulated waveforms of non-synaptic origin, which are occasionally encountered during recordings, and superimposed them onto noise recordings. Examples included rapid current transients that can be caused by peristaltic perfusion pump systems often used in brain slices recordings, or slow currents with a symmetric rise and decay time course. A total of 4500 segments were created and labeled as 0. To maintain the ratio of negative to positive examples, we added an equivalent number of synthetic synaptic events. The biexponential waveform described in the section <italic>Benchmarking detection methods</italic> was used for event simulation. The final training dataset contained 30,140 samples (21,140 from recorded traces and 9,000 simulated samples).</p></sec><sec id="s4-4"><title>Deep learning model architecture</title><p>We built a discriminative end-to-end deep learning model for one-dimensional time-series classification (<xref ref-type="bibr" rid="bib33">Ismail Fawaz et al., 2019</xref>). The neural network architecture comprised multiple convolutional layers, an LSTM layer, and a fully connected layer. The approach is related to networks designed for event detection in audio (<xref ref-type="bibr" rid="bib52">Passricha and Aggarwal, 2019</xref>) and image data (<xref ref-type="bibr" rid="bib32">Islam et al., 2020</xref>; <xref ref-type="bibr" rid="bib21">Donahue et al., 2017</xref>), or classification of genomic data (<xref ref-type="bibr" rid="bib66">Tasdelen and Sen, 2021</xref>). The combination of convolutional and recurrent neural network layers helps to improve the classification performance for time-series data. In particular, LSTM layers allow learning temporal features. An initial comparison of different types of network architectures showed superior performance of a CNN-LSTM model over CNN-Dense, Residual Neural Network (ResNet), and multi-layer perceptron (MLP) architectures (<xref ref-type="fig" rid="fig1s2">Figure 1—figure supplement 2</xref>).</p><p>The miniML model was built using TensorFlow, an open-source machine learning library for Python (<xref ref-type="bibr" rid="bib1">Abadi et al., 2015</xref>). To optimize the model architecture, we performed a Bayesian optimization of hyperparameters. Hyperparameter ranges were chosen for the free parameters of all layers. Optimization was then performed with a maximum number of trials of 50. Models were evaluated using the validation dataset. Because a higher number of free parameters tended to increase inference times, we then empirically tuned the chosen hyperparameter combination to achieve a trade-off between number of free parameters and accuracy.</p><p>The deep learning network takes batches of one-dimensional (1D) univariate time-series data as input, which are converted into a tensor of shape (batch size, data length, 1). The data is passed to three convolutional blocks. Each block consists of a 1D convolutional layer with a leaky Rectified Linear Unit (leaky ReLU) activation function followed by an average pooling layer. To avoid overfitting, each convolutional block uses batch normalization (<xref ref-type="bibr" rid="bib29">Ioffe and Szegedy, 2015</xref>). Batch normalization reduced training time by about two times and improved the accuracy of the resulting model. We added a fourth convolutional block that includes a convolutional layer, batch normalization and a leaky ReLU activation function, but no average pooling layer. The output of the final convolutional layer passes through a bidirectional recurrent layer of LSTM units. The final layers consist of a fully connected dense unit layer and a dropout layer (<xref ref-type="bibr" rid="bib65">Srivastava et al., 2014</xref>), followed by a single unit with sigmoid activation. The output of the neural network is a scalar between [0, 1]. The layers and parameters used, including output shape and number of trainable parameters, are summarized in <xref ref-type="table" rid="table1">Table 1</xref>. The total number of trainable parameters was 190,913.</p><table-wrap id="table1" position="float"><label>Table 1.</label><caption><title>Overview of model architecture.</title></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" valign="bottom">Block</th><th align="left" valign="bottom">Layer</th><th align="left" valign="bottom">Output shape</th><th align="left" valign="bottom">Parameters</th><th align="left" valign="bottom">Settings</th><th align="left" valign="bottom">Values</th></tr></thead><tbody><tr><td align="left" valign="bottom">Convolutional Block I</td><td align="left" valign="bottom">1D Convolutional</td><td align="left" valign="bottom">(None, 600, 32)</td><td align="left" valign="bottom">320</td><td align="left" valign="bottom">Filters</td><td align="left" valign="bottom">32</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Layer</td><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Kernel Size</td><td align="left" valign="bottom">9</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Padding</td><td align="left" valign="bottom">’same’</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Batch Normalization</td><td align="left" valign="bottom">(None, 600, 32)</td><td align="left" valign="bottom">128</td><td align="left" valign="bottom">All</td><td align="left" valign="bottom">default</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Leaky ReLU</td><td align="left" valign="bottom">(None, 600, 32)</td><td align="left" valign="bottom">0</td><td align="left" valign="bottom"><inline-formula><mml:math id="inf4"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>α</mml:mi></mml:mstyle></mml:math></inline-formula></td><td align="left" valign="bottom">0.3</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Avg. Pooling</td><td align="left" valign="bottom">(None, 200, 32)</td><td align="left" valign="bottom">0</td><td align="left" valign="bottom">Pool Size</td><td align="left" valign="bottom">3</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Strides</td><td align="left" valign="bottom">3</td></tr><tr><td align="left" valign="bottom">Convolutional Block II</td><td align="left" valign="bottom">1D Convolutional</td><td align="left" valign="bottom">(None, 200, 48)</td><td align="left" valign="bottom">10’800</td><td align="left" valign="bottom">Filters</td><td align="left" valign="bottom">48</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Layer</td><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Kernel Size</td><td align="left" valign="bottom">7</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Padding</td><td align="left" valign="bottom">’same’</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Batch Normalization</td><td align="left" valign="bottom">(None, 200, 48)</td><td align="left" valign="bottom">192</td><td align="left" valign="bottom">All</td><td align="left" valign="bottom">default</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Leaky ReLU</td><td align="left" valign="bottom">(None, 200, 48)</td><td align="left" valign="bottom">0</td><td align="left" valign="bottom"><inline-formula><mml:math id="inf5"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>α</mml:mi></mml:mstyle></mml:math></inline-formula></td><td align="left" valign="bottom">0.3</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Avg. Pooling</td><td align="left" valign="bottom">(None, 100, 48)</td><td align="left" valign="bottom">0</td><td align="left" valign="bottom">Pool Size</td><td align="left" valign="bottom">2</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Strides</td><td align="left" valign="bottom">2</td></tr><tr><td align="left" valign="bottom">Convolutional Block III</td><td align="left" valign="bottom">1D Convolutional</td><td align="left" valign="bottom">(None, 100, 64)</td><td align="left" valign="bottom">15’424</td><td align="left" valign="bottom">Filters</td><td align="left" valign="bottom">64</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Layer</td><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Kernel Size</td><td align="left" valign="bottom">5</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Padding</td><td align="left" valign="bottom">’same’</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Batch Normalization</td><td align="left" valign="bottom">(None, 100, 64)</td><td align="left" valign="bottom">256</td><td align="left" valign="bottom">All</td><td align="left" valign="bottom">default</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Leaky ReLU</td><td align="left" valign="bottom">(None, 100, 64)</td><td align="left" valign="bottom">0</td><td align="left" valign="bottom"><inline-formula><mml:math id="inf6"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>α</mml:mi></mml:mstyle></mml:math></inline-formula></td><td align="left" valign="bottom">0.3</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Avg. Pooling</td><td align="left" valign="bottom">(None, 50, 64)</td><td align="left" valign="bottom">0</td><td align="left" valign="bottom">Pool size</td><td align="left" valign="bottom">2</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Strides</td><td align="left" valign="bottom">2</td></tr><tr><td align="left" valign="bottom">Convolutional Block IV</td><td align="left" valign="bottom">1D Convolutional</td><td align="left" valign="bottom">(None, 50, 80)</td><td align="left" valign="bottom">15’440</td><td align="left" valign="bottom">Filters</td><td align="left" valign="bottom">80</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Layer</td><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Kernel Size</td><td align="left" valign="bottom">5</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Padding</td><td align="left" valign="bottom">’same’</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Batch Normalization</td><td align="left" valign="bottom">(None, 50, 80)</td><td align="left" valign="bottom">320</td><td align="left" valign="bottom">All</td><td align="left" valign="bottom">default</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Leaky ReLU</td><td align="left" valign="bottom">(None, 50, 80)</td><td align="left" valign="bottom">0</td><td align="left" valign="bottom"><inline-formula><mml:math id="inf7"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>α</mml:mi></mml:mstyle></mml:math></inline-formula></td><td align="left" valign="bottom">0.3</td></tr><tr><td align="left" valign="bottom">LSTM Layer</td><td align="left" valign="bottom">Bidirectional LSTM</td><td align="left" valign="bottom">(None, 96)</td><td align="left" valign="bottom">135’936</td><td align="left" valign="bottom">Units</td><td align="left" valign="bottom">96</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Dropout Rate</td><td align="left" valign="bottom">0.2</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Merge Mode</td><td align="left" valign="bottom">’sum’</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Activation</td><td align="left" valign="bottom">tanh</td></tr><tr><td align="left" valign="bottom">Fully Connected Layers</td><td align="left" valign="bottom">Dense</td><td align="left" valign="bottom">(None, 128)</td><td align="left" valign="bottom">12’416</td><td align="left" valign="bottom">Units</td><td align="left" valign="bottom">128</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Activation</td><td align="left" valign="bottom">Leaky ReLU</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Dropout</td><td align="left" valign="bottom">(None, 128)</td><td align="left" valign="bottom">0</td><td align="left" valign="bottom">Dropout Rate</td><td align="left" valign="bottom">0.2</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Dense</td><td align="left" valign="bottom">(None, 1)</td><td align="left" valign="bottom">129</td><td align="left" valign="bottom">Units</td><td align="left" valign="bottom">1</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="left" valign="bottom">Activation</td><td align="left" valign="bottom">sigmoid</td></tr></tbody></table></table-wrap></sec><sec id="s4-5"><title>Training and evaluation</title><p>The network was trained with Tensorflow 2.12 and Python 3.10 with CUDA 11.4. Datasets were scaled between zero and one, and split into training and validation data (0.75/0.25). The model was compiled using the Adam optimizer (<xref ref-type="bibr" rid="bib38">Kingma and Ba, 2014</xref>) with AMSGrad (<xref ref-type="bibr" rid="bib57">Reddi et al., 2019</xref>). We trained the classifier using a learning rate  <inline-formula><mml:math id="inf8"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>η</mml:mi></mml:mstyle></mml:math></inline-formula> = 2E–5 and batch size of 128 on the training data. Training was run for maximum 100 epochs with early stopping to avoid overfitting. Validation data was used to evaluate training performance. Early stopping was applied when the validation loss did not improve for eight consecutive epochs. Typically, training lasted for 20–40 epochs. We used binary cross-entropy loss and binary accuracy as measures of performance during training. The best performing model was selected from a training run, and a receiver-operating characteristic (ROC) was calculated. We used accuracy and area under the ROC curve to evaluate training performance. To accelerate training, we used a GPU; training time for the neural network was ∼8 min on a workstation with NVIDIA Tesla P100 16 GB GPU (Intel Xeon 2.2 GHz CPU, 16 GB RAM).</p></sec><sec id="s4-6"><title>Model and training visualization</title><p>To analyze the discriminative data segments, we calculated per-sample saliency maps with SmoothGrad using the Python package <italic>tf-keras-viz</italic> (<xref ref-type="bibr" rid="bib62">Simonyan et al., 2013</xref>). Saliency maps were smoothed with a 10-point running average filter for display purposes. To illustrate the transformation by the model, we performed dimensionality reduction of the training data by Uniform Manifold Approximation and Projection (UMAP), using either the raw dataset or the input to the final layer of the deep learning model.</p></sec><sec id="s4-7"><title>Applying the classifier for event detection</title><p>The trained miniML classifier takes sections of data with predefined length as input. To detect events in arbitrarily long recordings, a sliding window procedure is used. Time-series data from voltage-clamp or current-clamp recordings is segmented using a sliding window with stride. The resulting 2D-tensor is min-max scaled and then used as model input for inference. To overcome the potential limitation of long computation times, we used a sliding window with stride procedure. Using a stride &gt;1 significantly reduces the inference time of the model (<xref ref-type="fig" rid="fig2s1">Figure 2—figure supplement 1</xref>), especially for data with high sampling rates or long recording times. This approach results in a prediction trace with data being spaced at <inline-formula><mml:math id="inf9"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>s</mml:mi><mml:mi>a</mml:mi><mml:mi>m</mml:mi><mml:mi>p</mml:mi><mml:mi>l</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>g</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>t</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi><mml:mi>v</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mo>∗</mml:mo><mml:mi>s</mml:mi><mml:mi>t</mml:mi><mml:mi>r</mml:mi><mml:mi>i</mml:mi><mml:mi>d</mml:mi><mml:mi>e</mml:mi></mml:mstyle></mml:math></inline-formula>. With <inline-formula><mml:math id="inf10"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>s</mml:mi><mml:mi>t</mml:mi><mml:mi>r</mml:mi><mml:mi>i</mml:mi><mml:mi>d</mml:mi><mml:mi>e</mml:mi><mml:mo>=</mml:mo><mml:mn>20</mml:mn></mml:mstyle></mml:math></inline-formula>, a 120 s recording at 50 kHz sampling rate can be analyzed in ∼15 s on a laptop computer (Apple M1Pro, 16 GB RAM, <xref ref-type="fig" rid="fig2s1">Figure 2—figure supplement 1</xref>). To maintain temporal precision, the prediction trace is resampled to the sampling frequency of the raw data.</p><p>Events in the input data trace result in distinct peaks in the prediction trace. We applied a maximum filter to enhance post-processing of the data. Thus, by applying a threshold to the prediction trace, synaptic event positions can be detected. Our analyses indicate that the absolute threshold value is not important in the [0.05, 0.95] range (<xref ref-type="fig" rid="fig3s1">Figure 3—figure supplement 1</xref>). Data following a threshold crossing in the prediction trace are cut from the raw data and aligned by steepest rise. To find the point of steepest rise, a peak-search is performed in the first derivative of the short data segment. If multiple peaks are detected, any peak that has a prominence ≥0.25 relative to the largest detected prominence is treated as an additional event that is in close proximity or overlapping. The resulting 2D-array with aligned events can be further analyzed to obtain descriptive statistics on, e.g., amplitude, charge, or rise and decay kinetics of individual events.</p></sec><sec id="s4-8"><title>Benchmarking detection methods</title><p>We compared the deep learning-based miniML with the following previously described detection methods: template-matching (<xref ref-type="bibr" rid="bib16">Clements and Bekkers, 1997</xref>), deconvolution (<xref ref-type="bibr" rid="bib53">Pernía-Andrade et al., 2012</xref>), a finite threshold-based approach (<xref ref-type="bibr" rid="bib40">Kudoh and Taguchi, 2002</xref>), the commercial MiniAnalysis software (version 6.0.7, Synaptosoft), SimplyFire (<xref ref-type="bibr" rid="bib50">Mori et al., 2024</xref>), and a Bayesian inference procedure (<xref ref-type="bibr" rid="bib48">Merel et al., 2016</xref>). Detection methods were implemented in Python 3.9, except for the Bayesian method, which was run using Matlab R2022a, and MiniAnalysis running as stand-alone software on Windows.</p><p>We used generated standardized data to benchmark the detection performance of different methods. Event-free recordings (see section <italic>Electrophysiological recordings</italic> for details) were superimposed with simulated events having a biexponential waveform:<disp-formula id="equ1"><mml:math id="m1"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>I</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>=</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:mn>1</mml:mn><mml:mo>−</mml:mo><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mfrac><mml:mrow><mml:mo>−</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:msub><mml:mi>τ</mml:mi><mml:mrow><mml:mi>r</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:mfrac><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msup><mml:mo stretchy="false">)</mml:mo><mml:mo>∗</mml:mo><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mfrac><mml:mrow><mml:mo>−</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:msub><mml:mi>τ</mml:mi><mml:mrow><mml:mi>d</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>a</mml:mi><mml:mi>y</mml:mi></mml:mrow></mml:msub></mml:mfrac><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msup></mml:mstyle></mml:mrow></mml:math></disp-formula></p><p>where <inline-formula><mml:math id="inf11"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>I</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mstyle></mml:math></inline-formula> is the current as a function of time, and <inline-formula><mml:math id="inf12"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:msub><mml:mi>τ</mml:mi><mml:mrow><mml:mi>r</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:mstyle></mml:mrow></mml:mstyle></mml:math></inline-formula> and <inline-formula><mml:math id="inf13"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:msub><mml:mi>τ</mml:mi><mml:mrow><mml:mi>d</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>a</mml:mi><mml:mi>y</mml:mi></mml:mrow></mml:msub></mml:mstyle></mml:mrow></mml:mstyle></mml:math></inline-formula> are the rise and decay time constants, respectively. Simulated event amplitudes were drawn from a log-normal distribution with variance 0.4. Mean amplitude was varied to generate diverse signal-to-noise ratios (SNR; mean event amplitude / standard deviation of the noise). Decay time constants were drawn from a normal distribution with mean 1.0 ms and variance 0.25 ms (<xref ref-type="bibr" rid="bib17">Delvendahl et al., 2019</xref>). Generated events were randomly placed in the event-free recording with an average frequency of 0.7 Hz and a minimum spacing of 3 ms. Generated traces provided ground-truth data for the evaluation of the different methods.</p><p>To quantify detection performance of different methods over a range of signal-to-noise ratios, we calculated the number of true positives (TP), false positives (FP) and false negatives (FN). From these, the following metrics were calculated:<disp-formula id="equ2"><mml:math id="m2"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>P</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi>T</mml:mi><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi><mml:mi>P</mml:mi><mml:mo>+</mml:mo><mml:mi>F</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:math></disp-formula><disp-formula id="equ3"><mml:math id="m3"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>l</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi>T</mml:mi><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi><mml:mi>P</mml:mi><mml:mo>+</mml:mo><mml:mi>F</mml:mi><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:math></disp-formula><disp-formula id="equ4"><mml:math id="m4"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>F</mml:mi><mml:mn>1</mml:mn><mml:mo>=</mml:mo><mml:mn>2</mml:mn><mml:mo>∗</mml:mo><mml:mfrac><mml:mrow><mml:mi>P</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mo>∗</mml:mo><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mi>P</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>l</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:math></disp-formula></p><p>For all metrics, higher values indicate a better model performance. We also evaluated detection performance under non-optimal conditions (i.e., events that did not precisely match the event template or the training data). To do this, we varied the kinetics of simulated events by either increasing (mean = 4.5 ms) or decreasing (mean = 0.5 ms) the average decay time constant (<xref ref-type="fig" rid="fig3s1">Figure 3—figure supplement 1</xref>).</p></sec><sec id="s4-9"><title>Hyperparameter settings of detection methods</title><p>For all benchmarking conditions, threshold settings were: −4 for template-matching, <inline-formula><mml:math id="inf14"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mn>5</mml:mn><mml:mo>∗</mml:mo><mml:mi>S</mml:mi><mml:mi>D</mml:mi></mml:mstyle></mml:math></inline-formula> of the detection trace for deconvolution, and −4 pA for the finite-threshold method. Both template-based methods used a template waveform corresponding to the average of the simulated events. For the Bayesian detection approach, we used the code provided by the authors (<xref ref-type="bibr" rid="bib48">Merel et al., 2016</xref>) with the following adjustments to the default hyperparameters: minimum amplitude = 3.5, noise <inline-formula><mml:math id="inf15"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>ϕ</mml:mi><mml:mo>=</mml:mo><mml:mo stretchy="false">[</mml:mo><mml:mn>0.90</mml:mn><mml:mo>;</mml:mo><mml:mo>−</mml:mo><mml:mn>0.52</mml:mn><mml:mo stretchy="false">]</mml:mo></mml:mstyle></mml:math></inline-formula>, rate = 0.5. We chose a cutoff of <inline-formula><mml:math id="inf16"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mn>6</mml:mn><mml:mo>∗</mml:mo><mml:mi>S</mml:mi><mml:mi>D</mml:mi></mml:mstyle></mml:math></inline-formula> of the event time posteriors as threshold. For SimplyFire, we used the following hyperparameters: direction = −1; kernel = 300; stride = 100; minimum amplitude = 4 pA. MiniAnalysis (Synaptosoft) was run in the automatic detection mode with default settings for EPSCs and amplitude and area thresholds of −4 pA and 4, respectively. We used a minimum peak height of 0.5 and minimum peak width of 10 strides for miniML. To compare different event detection methods in real-world data <xref ref-type="fig" rid="fig4">Figure 4</xref>, we used the following detection hyperparameters: We applied miniML with a window size of 600 and minimum peak width of 5 strides. For the Golgi cell data, window size was set to 900 to account for the slower event kinetics. Detection thresholds for template matching and deconvolution thresholds were set at −3.5 and 6, respectively. We adjusted the template for each preparation based on the average waveform extracted with a generic template. MiniAnalysis was run with area and amplitude thresholds of 5; amplitude threshold was increased to −20 pA and −8 pA for Calyx of Held and Golgi cell data, respectively.</p></sec><sec id="s4-10"><title>Transfer learning</title><p>To make the miniML method applicable to data with different characteristics, such as different event kinetics, noise characteristics, or recording mode, we used a transfer learning (TL) approach (<xref ref-type="bibr" rid="bib55">Pratt et al., 1991</xref>). We froze the convolutional layers of the fully trained MF–GC miniML model, resulting in a new model with only the LSTM and dense layers being trainable. Thus, the convolutional layers act as pre-trained feature detectors and much fewer training samples are required. Hyperparameters and training conditions were the same as for full-training (see <italic>Training and evaluation</italic>) with the following exceptions: learning rate  <inline-formula><mml:math id="inf17"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>η</mml:mi></mml:mstyle></mml:math></inline-formula> = 2E–8, patience = 15, batch size = 32, dropout rate = 0.5. The training data were resampled to 600 data points to match the input shape of the original model.</p><p>To compare TL with full training, random subsets of the training data (mEPSPs in cerebellar GCs, spontaneous EPSCs in zebrafish, or mEPSCs at the <italic>Drosophila</italic> neuromuscular junction) with increasing size were generated and used to train models using fivefold cross-validation. We always used the same size of the validation dataset. After comparing TL with full training (<xref ref-type="fig" rid="fig5">Figure 5</xref>, <xref ref-type="fig" rid="fig5s2">Figure 5—figure supplement 2</xref>), we trained separate models to analyze the different datasets using subsets of the available training data.</p></sec><sec id="s4-11"><title>Quantifications</title><p>Computing times were quantified using the performance counter function of the built-in Python package <italic>time</italic> and are given as wall times. Statistical comparisons were made using permutation t-tests with 5000 reshuffles (<xref ref-type="bibr" rid="bib25">Ho et al., 2019</xref>). Effect sizes are reported as Cohen’s d or mean difference, with 95% confidence intervals obtained by bootstrapping (5000 samples; the confidence interval is bias-corrected and accelerated) (<xref ref-type="bibr" rid="bib25">Ho et al., 2019</xref>).</p><p>Raw data were filtered with a Hann window for event analysis after the detection. The number of points of the filter window was adjusted based on the sampling rate (default, 20 samples). Event amplitudes were quantified as difference between detected event peaks and a short baseline window before event onset. Decay times refer to half decay times (time until signal reaches 50% of the amplitude), and rise times were quantified as 10–90% rise times (time between 10% and 90% of the amplitude). These event statistics were calculated for each individual event and averaged per cell.</p></sec><sec id="s4-12"><title>Computer code</title><p>All code was implemented in Python version 3.9 or 3.10 (RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_008394">SCR_008394</ext-link>) with the following libraries: TensorFlow (RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_016345">SCR_016345</ext-link>), SciPy (RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_008058">SCR_008058</ext-link>), NumPy (RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_008633">SCR_008633</ext-link>), Matplotlib (RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_008624">SCR_008624</ext-link>), Pandas (RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_018214">SCR_018214</ext-link>), h5py (RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_024812">SCR_024812</ext-link>), scikit-learn (RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_002577">SCR_002577</ext-link>), pyABF, dabest (RRID:<ext-link ext-link-type="uri" xlink:href="https://identifiers.org/RRID:SCR_022340">SCR_022340</ext-link>).</p></sec></sec></body><back><sec sec-type="additional-information" id="s5"><title>Additional information</title><fn-group content-type="competing-interest"><title>Competing interests</title><fn fn-type="COI-statement" id="conf1"><p>No competing interests declared</p></fn></fn-group><fn-group content-type="author-contribution"><title>Author contributions</title><fn fn-type="con" id="con1"><p>Conceptualization, Data curation, Software, Formal analysis, Investigation, Visualization, Writing – review and editing</p></fn><fn fn-type="con" id="con2"><p>Data curation, Software, Formal analysis, Investigation, Visualization, Writing – review and editing</p></fn><fn fn-type="con" id="con3"><p>Resources, Formal analysis, Visualization, Writing – review and editing</p></fn><fn fn-type="con" id="con4"><p>Resources, Data curation, Writing – review and editing</p></fn><fn fn-type="con" id="con5"><p>Resources, Writing – review and editing</p></fn><fn fn-type="con" id="con6"><p>Resources, Supervision, Writing – review and editing</p></fn><fn fn-type="con" id="con7"><p>Resources, Supervision, Writing – review and editing</p></fn><fn fn-type="con" id="con8"><p>Supervision, Funding acquisition, Writing – review and editing</p></fn><fn fn-type="con" id="con9"><p>Conceptualization, Resources, Data curation, Software, Formal analysis, Supervision, Funding acquisition, Investigation, Visualization, Writing – original draft, Project administration, Writing – review and editing</p></fn></fn-group><fn-group content-type="ethics-information"><title>Ethics</title><fn fn-type="other"><p>Animals were treated according to national and institutional guidelines. All experiments were approved by the Cantonal Veterinary Office of Zurich (approval number no. ZH206/2016 and ZH009/2020).</p></fn></fn-group></sec><sec sec-type="supplementary-material" id="s6"><title>Additional files</title><supplementary-material id="mdar"><label>MDAR checklist</label><media xlink:href="elife-98485-mdarchecklist1-v1.docx" mimetype="application" mime-subtype="docx"/></supplementary-material></sec><sec sec-type="data-availability" id="s7"><title>Data availability</title><p>All data generated or analysed during this study are included in the manuscript and supporting files. Datasets used for model training are available from Zenodo (<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5281/zenodo.14507343">https://doi.org/10.5281/zenodo.14507343</ext-link>). miniML source code and pre-trained models are available online (<ext-link ext-link-type="uri" xlink:href="https://github.com/delvendahl/miniML">https://github.com/delvendahl/miniML</ext-link>, copy archived at <xref ref-type="bibr" rid="bib18">Delvendahl, 2025</xref>) including analysis code. We used datasets from previous publications to generate training sets and to assess the application of miniML in zebrafish and <italic>Drosophila</italic> (<xref ref-type="bibr" rid="bib59">Rupprecht and Friedrich, 2018</xref>; <xref ref-type="bibr" rid="bib17">Delvendahl et al., 2019</xref>; <xref ref-type="bibr" rid="bib10">Baccino-Calace et al., 2022</xref>). In addition, a published dataset (<xref ref-type="bibr" rid="bib4">Aggarwal et al., 2023</xref>) was used to probe the application of miniML to glutamate imaging data (<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.25378/janelia.21985406">https://doi.org/10.25378/janelia.21985406</ext-link>).</p><p>The following previously published datasets were used:</p><p><element-citation publication-type="data" specific-use="references" id="dataset1"><person-group person-group-type="author"><name><surname>Podgorski</surname><given-names>K</given-names></name></person-group><year iso-8601-date="2023">2023</year><data-title>iGluSnFR3 Code and Data Supplement</data-title><source>figshare</source><pub-id pub-id-type="doi">10.25378/janelia.21985406</pub-id></element-citation></p><p><element-citation publication-type="data" specific-use="references" id="dataset2"><person-group person-group-type="author"><name><surname>O'Neill</surname><given-names>PS</given-names></name><name><surname>Baccino Calace</surname><given-names>M</given-names></name><name><surname>Rupprecht</surname><given-names>P</given-names></name><name><surname>Lee</surname><given-names>S</given-names></name><name><surname>Hao</surname><given-names>YA</given-names></name><name><surname>Lin</surname><given-names>MZ</given-names></name><name><surname>Friedrich</surname><given-names>RW</given-names></name><name><surname>Mueller</surname><given-names>M</given-names></name><name><surname>Delvendahl</surname><given-names>I</given-names></name></person-group><year iso-8601-date="2024">2024</year><data-title>Training data for miniML</data-title><source>Zenodo</source><pub-id pub-id-type="doi">10.5281/zenodo.14507343</pub-id></element-citation></p></sec><ack id="ack"><title>Acknowledgements</title><p>We thank Mark D Robinson and Anu G Nair for helpful discussions.</p><p>This work received funding by the Swiss National Science Foundation (grant PZ00P3 174018 to ID, grant PZ00P3 209114 to PR, grant 310030B 152833/1 to RF), the German Research Foundation (grants DE3925/1-1 and 3925/2–1 to ID), the NIH (grant 1UM1MH136462 to MZL), the Novartis Research Foundation (to RF), the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (grant agreement No 742576 to RF), a fellowship from the Boehringer Ingelheim Fonds (to PR), and the UZH Alumni Research Talent Development fund (to ID). The funding bodies had no role in study design, data collection and interpretation, or the decision to submit the work for publication.</p></ack><ref-list><title>References</title><ref id="bib1"><element-citation publication-type="software"><person-group person-group-type="author"><name><surname>Abadi</surname><given-names>M</given-names></name><name><surname>Agarwal</surname><given-names>A</given-names></name><name><surname>Barham</surname><given-names>P</given-names></name><name><surname>Brevdo</surname><given-names>E</given-names></name><name><surname>Chen</surname><given-names>Z</given-names></name><name><surname>Citro</surname><given-names>C</given-names></name><name><surname>Corrado</surname><given-names>GS</given-names></name><name><surname>Davis</surname><given-names>A</given-names></name><name><surname>Dean</surname><given-names>J</given-names></name><name><surname>Devin</surname><given-names>M</given-names></name><name><surname>Ghemawat</surname><given-names>S</given-names></name><name><surname>Goodfellow</surname><given-names>I</given-names></name><name><surname>Harp</surname><given-names>A</given-names></name><name><surname>Irving</surname><given-names>G</given-names></name><name><surname>Isard</surname><given-names>M</given-names></name><name><surname>Jia</surname><given-names>Y</given-names></name><name><surname>Jozefowicz</surname><given-names>R</given-names></name><name><surname>Kaiser</surname><given-names>L</given-names></name><name><surname>Kudlur</surname><given-names>M</given-names></name><name><surname>Levenberg</surname><given-names>J</given-names></name><name><surname>Mané</surname><given-names>D</given-names></name><name><surname>Monga</surname><given-names>R</given-names></name><name><surname>Moore</surname><given-names>S</given-names></name><name><surname>Murray</surname><given-names>D</given-names></name><name><surname>Olah</surname><given-names>C</given-names></name><name><surname>Schuster</surname><given-names>M</given-names></name><name><surname>Shlens</surname><given-names>J</given-names></name><name><surname>Steiner</surname><given-names>B</given-names></name><name><surname>Sutskever</surname><given-names>I</given-names></name><name><surname>Talwar</surname><given-names>K</given-names></name><name><surname>Tucker</surname><given-names>P</given-names></name><name><surname>Vanhoucke</surname><given-names>V</given-names></name><name><surname>Vasudevan</surname><given-names>V</given-names></name><name><surname>Viégas</surname><given-names>F</given-names></name><name><surname>Vinyals</surname><given-names>O</given-names></name><name><surname>Warden</surname><given-names>P</given-names></name><name><surname>Wattenberg</surname><given-names>M</given-names></name><name><surname>Wicke</surname><given-names>M</given-names></name><name><surname>Yu</surname><given-names>Y</given-names></name><name><surname>Zheng</surname><given-names>X</given-names></name></person-group><year iso-8601-date="2015">2015</year><data-title>TensorFlow: large-scale machine learning on heterogeneous systems</data-title><version designator="TF 2.18">TF 2.18</version><source>TensorFlow</source><ext-link ext-link-type="uri" xlink:href="https://www.tensorflow.org/">https://www.tensorflow.org/</ext-link></element-citation></ref><ref id="bib2"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Abbott</surname><given-names>LF</given-names></name><name><surname>Regehr</surname><given-names>WG</given-names></name></person-group><year iso-8601-date="2004">2004</year><article-title>Synaptic computation</article-title><source>Nature</source><volume>431</volume><fpage>796</fpage><lpage>803</lpage><pub-id pub-id-type="doi">10.1038/nature03010</pub-id><pub-id pub-id-type="pmid">15483601</pub-id></element-citation></ref><ref id="bib3"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Abdelfattah</surname><given-names>AS</given-names></name><name><surname>Zheng</surname><given-names>J</given-names></name><name><surname>Singh</surname><given-names>A</given-names></name><name><surname>Huang</surname><given-names>YC</given-names></name><name><surname>Reep</surname><given-names>D</given-names></name><name><surname>Tsegaye</surname><given-names>G</given-names></name><name><surname>Tsang</surname><given-names>A</given-names></name><name><surname>Arthur</surname><given-names>BJ</given-names></name><name><surname>Rehorova</surname><given-names>M</given-names></name><name><surname>Olson</surname><given-names>CVL</given-names></name><name><surname>Shuai</surname><given-names>Y</given-names></name><name><surname>Zhang</surname><given-names>L</given-names></name><name><surname>Fu</surname><given-names>TM</given-names></name><name><surname>Milkie</surname><given-names>DE</given-names></name><name><surname>Moya</surname><given-names>MV</given-names></name><name><surname>Weber</surname><given-names>TD</given-names></name><name><surname>Lemire</surname><given-names>AL</given-names></name><name><surname>Baker</surname><given-names>CA</given-names></name><name><surname>Falco</surname><given-names>N</given-names></name><name><surname>Zheng</surname><given-names>Q</given-names></name><name><surname>Grimm</surname><given-names>JB</given-names></name><name><surname>Yip</surname><given-names>MC</given-names></name><name><surname>Walpita</surname><given-names>D</given-names></name><name><surname>Chase</surname><given-names>M</given-names></name><name><surname>Campagnola</surname><given-names>L</given-names></name><name><surname>Murphy</surname><given-names>GJ</given-names></name><name><surname>Wong</surname><given-names>AM</given-names></name><name><surname>Forest</surname><given-names>CR</given-names></name><name><surname>Mertz</surname><given-names>J</given-names></name><name><surname>Economo</surname><given-names>MN</given-names></name><name><surname>Turner</surname><given-names>GC</given-names></name><name><surname>Koyama</surname><given-names>M</given-names></name><name><surname>Lin</surname><given-names>BJ</given-names></name><name><surname>Betzig</surname><given-names>E</given-names></name><name><surname>Novak</surname><given-names>O</given-names></name><name><surname>Lavis</surname><given-names>LD</given-names></name><name><surname>Svoboda</surname><given-names>K</given-names></name><name><surname>Korff</surname><given-names>W</given-names></name><name><surname>Chen</surname><given-names>TW</given-names></name><name><surname>Schreiter</surname><given-names>ER</given-names></name><name><surname>Hasseman</surname><given-names>JP</given-names></name><name><surname>Kolb</surname><given-names>I</given-names></name></person-group><year iso-8601-date="2023">2023</year><article-title>Sensitivity optimization of a rhodopsin-based fluorescent voltage indicator</article-title><source>Neuron</source><volume>111</volume><fpage>1547</fpage><lpage>1563</lpage><pub-id pub-id-type="doi">10.1016/j.neuron.2023.03.009</pub-id><pub-id pub-id-type="pmid">37015225</pub-id></element-citation></ref><ref id="bib4"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Aggarwal</surname><given-names>A</given-names></name><name><surname>Liu</surname><given-names>R</given-names></name><name><surname>Chen</surname><given-names>Y</given-names></name><name><surname>Ralowicz</surname><given-names>AJ</given-names></name><name><surname>Bergerson</surname><given-names>SJ</given-names></name><name><surname>Tomaska</surname><given-names>F</given-names></name><name><surname>Mohar</surname><given-names>B</given-names></name><name><surname>Hanson</surname><given-names>TL</given-names></name><name><surname>Hasseman</surname><given-names>JP</given-names></name><name><surname>Reep</surname><given-names>D</given-names></name><name><surname>Tsegaye</surname><given-names>G</given-names></name><name><surname>Yao</surname><given-names>P</given-names></name><name><surname>Ji</surname><given-names>X</given-names></name><name><surname>Kloos</surname><given-names>M</given-names></name><name><surname>Walpita</surname><given-names>D</given-names></name><name><surname>Patel</surname><given-names>R</given-names></name><name><surname>Mohr</surname><given-names>MA</given-names></name><name><surname>Tillberg</surname><given-names>PW</given-names></name><collab>GENIE Project Team</collab><name><surname>Looger</surname><given-names>LL</given-names></name><name><surname>Marvin</surname><given-names>JS</given-names></name><name><surname>Hoppa</surname><given-names>MB</given-names></name><name><surname>Konnerth</surname><given-names>A</given-names></name><name><surname>Kleinfeld</surname><given-names>D</given-names></name><name><surname>Schreiter</surname><given-names>ER</given-names></name><name><surname>Podgorski</surname><given-names>K</given-names></name></person-group><year iso-8601-date="2023">2023</year><article-title>Glutamate indicators with improved activation kinetics and localization for imaging synaptic transmission</article-title><source>Nature Methods</source><volume>20</volume><fpage>925</fpage><lpage>934</lpage><pub-id pub-id-type="doi">10.1038/s41592-023-01863-6</pub-id><pub-id pub-id-type="pmid">37142767</pub-id></element-citation></ref><ref id="bib5"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Alten</surname><given-names>B</given-names></name><name><surname>Zhou</surname><given-names>Q</given-names></name><name><surname>Shin</surname><given-names>OH</given-names></name><name><surname>Esquivies</surname><given-names>L</given-names></name><name><surname>Lin</surname><given-names>PY</given-names></name><name><surname>White</surname><given-names>KI</given-names></name><name><surname>Sun</surname><given-names>R</given-names></name><name><surname>Chung</surname><given-names>WK</given-names></name><name><surname>Monteggia</surname><given-names>LM</given-names></name><name><surname>Brunger</surname><given-names>AT</given-names></name><name><surname>Kavalali</surname><given-names>ET</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>Role of aberrant spontaneous neurotransmission in SNAP25-associated encephalopathies</article-title><source>Neuron</source><volume>109</volume><fpage>59</fpage><lpage>72</lpage><pub-id pub-id-type="doi">10.1016/j.neuron.2020.10.012</pub-id><pub-id pub-id-type="pmid">33147442</pub-id></element-citation></ref><ref id="bib6"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ankri</surname><given-names>N</given-names></name><name><surname>Legendre</surname><given-names>P</given-names></name><name><surname>Faber</surname><given-names>DS</given-names></name><name><surname>Korn</surname><given-names>H</given-names></name></person-group><year iso-8601-date="1994">1994</year><article-title>Automatic detection of spontaneous synaptic responses in central neurons</article-title><source>Journal of Neuroscience Methods</source><volume>52</volume><fpage>87</fpage><lpage>100</lpage><pub-id pub-id-type="doi">10.1016/0165-0270(94)90060-4</pub-id><pub-id pub-id-type="pmid">8090022</pub-id></element-citation></ref><ref id="bib7"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ardiles</surname><given-names>AO</given-names></name><name><surname>Tapia-Rojas</surname><given-names>CC</given-names></name><name><surname>Mandal</surname><given-names>M</given-names></name><name><surname>Alexandre</surname><given-names>F</given-names></name><name><surname>Kirkwood</surname><given-names>A</given-names></name><name><surname>Inestrosa</surname><given-names>NC</given-names></name><name><surname>Palacios</surname><given-names>AG</given-names></name></person-group><year iso-8601-date="2012">2012</year><article-title>Postsynaptic dysfunction is associated with spatial and object recognition memory loss in a natural model of Alzheimer’s disease</article-title><source>PNAS</source><volume>109</volume><fpage>13835</fpage><lpage>13840</lpage><pub-id pub-id-type="doi">10.1073/pnas.1201209109</pub-id><pub-id pub-id-type="pmid">22869717</pub-id></element-citation></ref><ref id="bib8"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Asadollahi</surname><given-names>R</given-names></name><name><surname>Delvendahl</surname><given-names>I</given-names></name><name><surname>Muff</surname><given-names>R</given-names></name><name><surname>Tan</surname><given-names>G</given-names></name><name><surname>Rodríguez</surname><given-names>DG</given-names></name><name><surname>Turan</surname><given-names>S</given-names></name><name><surname>Russo</surname><given-names>M</given-names></name><name><surname>Oneda</surname><given-names>B</given-names></name><name><surname>Joset</surname><given-names>P</given-names></name><name><surname>Boonsawat</surname><given-names>P</given-names></name><name><surname>Masood</surname><given-names>R</given-names></name><name><surname>Mocera</surname><given-names>M</given-names></name><name><surname>Ivanovski</surname><given-names>I</given-names></name><name><surname>Baumer</surname><given-names>A</given-names></name><name><surname>Bachmann-Gagescu</surname><given-names>R</given-names></name><name><surname>Schlapbach</surname><given-names>R</given-names></name><name><surname>Rehrauer</surname><given-names>H</given-names></name><name><surname>Steindl</surname><given-names>K</given-names></name><name><surname>Begemann</surname><given-names>A</given-names></name><name><surname>Reis</surname><given-names>A</given-names></name><name><surname>Winkler</surname><given-names>J</given-names></name><name><surname>Winner</surname><given-names>B</given-names></name><name><surname>Müller</surname><given-names>M</given-names></name><name><surname>Rauch</surname><given-names>A</given-names></name></person-group><year iso-8601-date="2023">2023</year><article-title>Pathogenic SCN2A variants cause early-stage dysfunction in patient-derived neurons</article-title><source>Human Molecular Genetics</source><volume>32</volume><fpage>2192</fpage><lpage>2204</lpage><pub-id pub-id-type="doi">10.1093/hmg/ddad048</pub-id><pub-id pub-id-type="pmid">37010102</pub-id></element-citation></ref><ref id="bib9"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ascoli</surname><given-names>GA</given-names></name><name><surname>Maraver</surname><given-names>P</given-names></name><name><surname>Nanda</surname><given-names>S</given-names></name><name><surname>Polavaram</surname><given-names>S</given-names></name><name><surname>Armañanzas</surname><given-names>R</given-names></name></person-group><year iso-8601-date="2017">2017</year><article-title>Win-win data sharing in neuroscience</article-title><source>Nature Methods</source><volume>14</volume><fpage>112</fpage><lpage>116</lpage><pub-id pub-id-type="doi">10.1038/nmeth.4152</pub-id><pub-id pub-id-type="pmid">28139675</pub-id></element-citation></ref><ref id="bib10"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Baccino-Calace</surname><given-names>M</given-names></name><name><surname>Schmidt</surname><given-names>K</given-names></name><name><surname>Müller</surname><given-names>M</given-names></name></person-group><year iso-8601-date="2022">2022</year><article-title>The e3 ligase thin controls homeostatic plasticity through neurotransmitter release repression</article-title><source>eLife</source><volume>11</volume><elocation-id>e71437</elocation-id><pub-id pub-id-type="doi">10.7554/eLife.71437</pub-id></element-citation></ref><ref id="bib11"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Bailly</surname><given-names>A</given-names></name><name><surname>Blanc</surname><given-names>C</given-names></name><name><surname>Francis</surname><given-names>É</given-names></name><name><surname>Guillotin</surname><given-names>T</given-names></name><name><surname>Jamal</surname><given-names>F</given-names></name><name><surname>Wakim</surname><given-names>B</given-names></name><name><surname>Roy</surname><given-names>P</given-names></name></person-group><year iso-8601-date="2022">2022</year><article-title>Effects of dataset size and interactions on the prediction performance of logistic regression and deep learning models</article-title><source>Computer Methods and Programs in Biomedicine</source><volume>213</volume><elocation-id>106504</elocation-id><pub-id pub-id-type="doi">10.1016/j.cmpb.2021.106504</pub-id><pub-id pub-id-type="pmid">34798408</pub-id></element-citation></ref><ref id="bib12"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Banerjee</surname><given-names>S</given-names></name><name><surname>Vernon</surname><given-names>S</given-names></name><name><surname>Jiao</surname><given-names>W</given-names></name><name><surname>Choi</surname><given-names>BJ</given-names></name><name><surname>Ruchti</surname><given-names>E</given-names></name><name><surname>Asadzadeh</surname><given-names>J</given-names></name><name><surname>Burri</surname><given-names>O</given-names></name><name><surname>Stowers</surname><given-names>RS</given-names></name><name><surname>McCabe</surname><given-names>BD</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>Miniature neurotransmission is required to maintain <italic>Drosophila</italic> synaptic structures during ageing</article-title><source>Nature Communications</source><volume>12</volume><elocation-id>4399</elocation-id><pub-id pub-id-type="doi">10.1038/s41467-021-24490-1</pub-id><pub-id pub-id-type="pmid">34285221</pub-id></element-citation></ref><ref id="bib13"><element-citation publication-type="confproc"><person-group person-group-type="author"><name><surname>Batal</surname><given-names>I</given-names></name><name><surname>Hauskrecht</surname><given-names>M</given-names></name></person-group><year iso-8601-date="2009">2009</year><article-title>A supervised time series feature extraction technique using DCT and DW</article-title><conf-name>2009 International Conference on Machine Learning and Applications</conf-name></element-citation></ref><ref id="bib14"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Campagnola</surname><given-names>L</given-names></name><name><surname>Seeman</surname><given-names>SC</given-names></name><name><surname>Chartrand</surname><given-names>T</given-names></name><name><surname>Kim</surname><given-names>L</given-names></name><name><surname>Hoggarth</surname><given-names>A</given-names></name><name><surname>Gamlin</surname><given-names>C</given-names></name><name><surname>Ito</surname><given-names>S</given-names></name><name><surname>Trinh</surname><given-names>J</given-names></name><name><surname>Davoudian</surname><given-names>P</given-names></name><name><surname>Radaelli</surname><given-names>C</given-names></name><name><surname>Kim</surname><given-names>M-H</given-names></name><name><surname>Hage</surname><given-names>T</given-names></name><name><surname>Braun</surname><given-names>T</given-names></name><name><surname>Alfiler</surname><given-names>L</given-names></name><name><surname>Andrade</surname><given-names>J</given-names></name><name><surname>Bohn</surname><given-names>P</given-names></name><name><surname>Dalley</surname><given-names>R</given-names></name><name><surname>Henry</surname><given-names>A</given-names></name><name><surname>Kebede</surname><given-names>S</given-names></name><name><surname>Alice</surname><given-names>M</given-names></name><name><surname>Sandman</surname><given-names>D</given-names></name><name><surname>Williams</surname><given-names>G</given-names></name><name><surname>Larsen</surname><given-names>R</given-names></name><name><surname>Teeter</surname><given-names>C</given-names></name><name><surname>Daigle</surname><given-names>TL</given-names></name><name><surname>Berry</surname><given-names>K</given-names></name><name><surname>Dotson</surname><given-names>N</given-names></name><name><surname>Enstrom</surname><given-names>R</given-names></name><name><surname>Gorham</surname><given-names>M</given-names></name><name><surname>Hupp</surname><given-names>M</given-names></name><name><surname>Dingman Lee</surname><given-names>S</given-names></name><name><surname>Ngo</surname><given-names>K</given-names></name><name><surname>Nicovich</surname><given-names>PR</given-names></name><name><surname>Potekhina</surname><given-names>L</given-names></name><name><surname>Ransford</surname><given-names>S</given-names></name><name><surname>Gary</surname><given-names>A</given-names></name><name><surname>Goldy</surname><given-names>J</given-names></name><name><surname>McMillen</surname><given-names>D</given-names></name><name><surname>Pham</surname><given-names>T</given-names></name><name><surname>Tieu</surname><given-names>M</given-names></name><name><surname>Siverts</surname><given-names>L</given-names></name><name><surname>Walker</surname><given-names>M</given-names></name><name><surname>Farrell</surname><given-names>C</given-names></name><name><surname>Schroedter</surname><given-names>M</given-names></name><name><surname>Slaughterbeck</surname><given-names>C</given-names></name><name><surname>Cobb</surname><given-names>C</given-names></name><name><surname>Ellenbogen</surname><given-names>R</given-names></name><name><surname>Gwinn</surname><given-names>RP</given-names></name><name><surname>Keene</surname><given-names>CD</given-names></name><name><surname>Ko</surname><given-names>AL</given-names></name><name><surname>Ojemann</surname><given-names>JG</given-names></name><name><surname>Silbergeld</surname><given-names>DL</given-names></name><name><surname>Carey</surname><given-names>D</given-names></name><name><surname>Casper</surname><given-names>T</given-names></name><name><surname>Crichton</surname><given-names>K</given-names></name><name><surname>Clark</surname><given-names>M</given-names></name><name><surname>Dee</surname><given-names>N</given-names></name><name><surname>Ellingwood</surname><given-names>L</given-names></name><name><surname>Gloe</surname><given-names>J</given-names></name><name><surname>Kroll</surname><given-names>M</given-names></name><name><surname>Sulc</surname><given-names>J</given-names></name><name><surname>Tung</surname><given-names>H</given-names></name><name><surname>Wadhwani</surname><given-names>K</given-names></name><name><surname>Brouner</surname><given-names>K</given-names></name><name><surname>Egdorf</surname><given-names>T</given-names></name><name><surname>Maxwell</surname><given-names>M</given-names></name><name><surname>McGraw</surname><given-names>M</given-names></name><name><surname>Pom</surname><given-names>CA</given-names></name><name><surname>Ruiz</surname><given-names>A</given-names></name><name><surname>Bomben</surname><given-names>J</given-names></name><name><surname>Feng</surname><given-names>D</given-names></name><name><surname>Hejazinia</surname><given-names>N</given-names></name><name><surname>Shi</surname><given-names>S</given-names></name><name><surname>Szafer</surname><given-names>A</given-names></name><name><surname>Wakeman</surname><given-names>W</given-names></name><name><surname>Phillips</surname><given-names>J</given-names></name><name><surname>Bernard</surname><given-names>A</given-names></name><name><surname>Esposito</surname><given-names>L</given-names></name><name><surname>D’Orazi</surname><given-names>FD</given-names></name><name><surname>Sunkin</surname><given-names>S</given-names></name><name><surname>Smith</surname><given-names>K</given-names></name><name><surname>Tasic</surname><given-names>B</given-names></name><name><surname>Arkhipov</surname><given-names>A</given-names></name><name><surname>Sorensen</surname><given-names>S</given-names></name><name><surname>Lein</surname><given-names>E</given-names></name><name><surname>Koch</surname><given-names>C</given-names></name><name><surname>Murphy</surname><given-names>G</given-names></name><name><surname>Zeng</surname><given-names>H</given-names></name><name><surname>Jarsky</surname><given-names>T</given-names></name></person-group><year iso-8601-date="2022">2022</year><article-title>Local connectivity and synaptic dynamics in mouse and human neocortex</article-title><source>Science</source><volume>375</volume><elocation-id>eabj5861</elocation-id><pub-id pub-id-type="doi">10.1126/science.abj5861</pub-id><pub-id pub-id-type="pmid">35271334</pub-id></element-citation></ref><ref id="bib15"><element-citation publication-type="confproc"><person-group person-group-type="author"><name><surname>Caruana</surname><given-names>R</given-names></name></person-group><year iso-8601-date="1994">1994</year><article-title>Learning many related tasks at the same time with backpropagation</article-title><conf-name>Proceedings of the 8th International Conference on Neural Information Processing Systems</conf-name><fpage>657</fpage><lpage>664</lpage><pub-id pub-id-type="doi">10.5555/2998687.2998769</pub-id></element-citation></ref><ref id="bib16"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Clements</surname><given-names>JD</given-names></name><name><surname>Bekkers</surname><given-names>JM</given-names></name></person-group><year iso-8601-date="1997">1997</year><article-title>Detection of spontaneous synaptic events with an optimally scaled template</article-title><source>Biophysical Journal</source><volume>73</volume><fpage>220</fpage><lpage>229</lpage><pub-id pub-id-type="doi">10.1016/S0006-3495(97)78062-7</pub-id><pub-id pub-id-type="pmid">9199786</pub-id></element-citation></ref><ref id="bib17"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Delvendahl</surname><given-names>I</given-names></name><name><surname>Kita</surname><given-names>K</given-names></name><name><surname>Müller</surname><given-names>M</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>Rapid and sustained homeostatic control of presynaptic exocytosis at a central synapse</article-title><source>PNAS</source><volume>116</volume><fpage>23783</fpage><lpage>23789</lpage><pub-id pub-id-type="doi">10.1073/pnas.1909675116</pub-id><pub-id pub-id-type="pmid">31685637</pub-id></element-citation></ref><ref id="bib18"><element-citation publication-type="software"><person-group person-group-type="author"><name><surname>Delvendahl</surname><given-names>I</given-names></name></person-group><year iso-8601-date="2025">2025</year><data-title>MiniML</data-title><version designator="swh:1:rev:c43fc5c23d54cc46d3956f227587be95e7e69f3f">swh:1:rev:c43fc5c23d54cc46d3956f227587be95e7e69f3f</version><source>Software Heritage</source><ext-link ext-link-type="uri" xlink:href="https://archive.softwareheritage.org/swh:1:dir:095a1b7f403731a8203942d5ef69884fa27922b9;origin=https://github.com/delvendahl/miniML;visit=swh:1:snp:e8cb29641fc49aad5fc5921355d5c42b67509cc4;anchor=swh:1:rev:c43fc5c23d54cc46d3956f227587be95e7e69f3f">https://archive.softwareheritage.org/swh:1:dir:095a1b7f403731a8203942d5ef69884fa27922b9;origin=https://github.com/delvendahl/miniML;visit=swh:1:snp:e8cb29641fc49aad5fc5921355d5c42b67509cc4;anchor=swh:1:rev:c43fc5c23d54cc46d3956f227587be95e7e69f3f</ext-link></element-citation></ref><ref id="bib19"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Denis</surname><given-names>J</given-names></name><name><surname>Dard</surname><given-names>RF</given-names></name><name><surname>Quiroli</surname><given-names>E</given-names></name><name><surname>Cossart</surname><given-names>R</given-names></name><name><surname>Picardo</surname><given-names>MA</given-names></name></person-group><year iso-8601-date="2020">2020</year><article-title>DeepCINAC: a deep-learning-based python toolbox for inferring calcium imaging neuronal activity based on movie visualization</article-title><source>eNeuro</source><volume>7</volume><elocation-id>ENEURO.0038-20.2020</elocation-id><pub-id pub-id-type="doi">10.1523/ENEURO.0038-20.2020</pub-id><pub-id pub-id-type="pmid">32699072</pub-id></element-citation></ref><ref id="bib20"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>DiAntonio</surname><given-names>A</given-names></name><name><surname>Petersen</surname><given-names>SA</given-names></name><name><surname>Heckmann</surname><given-names>M</given-names></name><name><surname>Goodman</surname><given-names>CS</given-names></name></person-group><year iso-8601-date="1999">1999</year><article-title>Glutamate receptor expression regulates quantal size and quantal content at the <italic>Drosophila</italic> neuromuscular junction</article-title><source>The Journal of Neuroscience</source><volume>19</volume><fpage>3023</fpage><lpage>3032</lpage><pub-id pub-id-type="doi">10.1523/JNEUROSCI.19-08-03023.1999</pub-id><pub-id pub-id-type="pmid">10191319</pub-id></element-citation></ref><ref id="bib21"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Donahue</surname><given-names>J</given-names></name><name><surname>Hendricks</surname><given-names>LA</given-names></name><name><surname>Rohrbach</surname><given-names>M</given-names></name><name><surname>Venugopalan</surname><given-names>S</given-names></name><name><surname>Guadarrama</surname><given-names>S</given-names></name><name><surname>Saenko</surname><given-names>K</given-names></name><name><surname>Darrell</surname><given-names>T</given-names></name></person-group><year iso-8601-date="2017">2017</year><article-title>Long-term recurrent convolutional networks for visual recognition and description</article-title><source>IEEE Transactions on Pattern Analysis and Machine Intelligence</source><volume>39</volume><fpage>677</fpage><lpage>691</lpage><pub-id pub-id-type="doi">10.1109/TPAMI.2016.2599174</pub-id><pub-id pub-id-type="pmid">27608449</pub-id></element-citation></ref><ref id="bib22"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Evans</surname><given-names>SW</given-names></name><name><surname>Shi</surname><given-names>D-Q</given-names></name><name><surname>Chavarha</surname><given-names>M</given-names></name><name><surname>Plitt</surname><given-names>MH</given-names></name><name><surname>Taxidis</surname><given-names>J</given-names></name><name><surname>Madruga</surname><given-names>B</given-names></name><name><surname>Fan</surname><given-names>JL</given-names></name><name><surname>Hwang</surname><given-names>F-J</given-names></name><name><surname>van Keulen</surname><given-names>SC</given-names></name><name><surname>Suomivuori</surname><given-names>C-M</given-names></name><name><surname>Pang</surname><given-names>MM</given-names></name><name><surname>Su</surname><given-names>S</given-names></name><name><surname>Lee</surname><given-names>S</given-names></name><name><surname>Hao</surname><given-names>YA</given-names></name><name><surname>Zhang</surname><given-names>G</given-names></name><name><surname>Jiang</surname><given-names>D</given-names></name><name><surname>Pradhan</surname><given-names>L</given-names></name><name><surname>Roth</surname><given-names>RH</given-names></name><name><surname>Liu</surname><given-names>Y</given-names></name><name><surname>Dorian</surname><given-names>CC</given-names></name><name><surname>Reese</surname><given-names>AL</given-names></name><name><surname>Negrean</surname><given-names>A</given-names></name><name><surname>Losonczy</surname><given-names>A</given-names></name><name><surname>Makinson</surname><given-names>CD</given-names></name><name><surname>Wang</surname><given-names>S</given-names></name><name><surname>Clandinin</surname><given-names>TR</given-names></name><name><surname>Dror</surname><given-names>RO</given-names></name><name><surname>Ding</surname><given-names>JB</given-names></name><name><surname>Ji</surname><given-names>N</given-names></name><name><surname>Golshani</surname><given-names>P</given-names></name><name><surname>Giocomo</surname><given-names>LM</given-names></name><name><surname>Bi</surname><given-names>G-Q</given-names></name><name><surname>Lin</surname><given-names>MZ</given-names></name></person-group><year iso-8601-date="2023">2023</year><article-title>A positively tuned voltage indicator for extended electrical recordings in the brain</article-title><source>Nature Methods</source><volume>20</volume><fpage>1104</fpage><lpage>1113</lpage><pub-id pub-id-type="doi">10.1038/s41592-023-01913-z</pub-id><pub-id pub-id-type="pmid">37429962</pub-id></element-citation></ref><ref id="bib23"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ferguson</surname><given-names>AR</given-names></name><name><surname>Nielson</surname><given-names>JL</given-names></name><name><surname>Cragin</surname><given-names>MH</given-names></name><name><surname>Bandrowski</surname><given-names>AE</given-names></name><name><surname>Martone</surname><given-names>ME</given-names></name></person-group><year iso-8601-date="2014">2014</year><article-title>Big data from small data: data-sharing in the “long tail” of neuroscience</article-title><source>Nature Neuroscience</source><volume>17</volume><fpage>1442</fpage><lpage>1447</lpage><pub-id pub-id-type="doi">10.1038/nn.3838</pub-id><pub-id pub-id-type="pmid">25349910</pub-id></element-citation></ref><ref id="bib24"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Hao</surname><given-names>YA</given-names></name><name><surname>Lee</surname><given-names>S</given-names></name><name><surname>Roth</surname><given-names>RH</given-names></name><name><surname>Natale</surname><given-names>S</given-names></name><name><surname>Gomez</surname><given-names>L</given-names></name><name><surname>Taxidis</surname><given-names>J</given-names></name><name><surname>O’Neill</surname><given-names>PS</given-names></name><name><surname>Villette</surname><given-names>V</given-names></name><name><surname>Bradley</surname><given-names>J</given-names></name><name><surname>Wang</surname><given-names>Z</given-names></name><name><surname>Jiang</surname><given-names>D</given-names></name><name><surname>Zhang</surname><given-names>G</given-names></name><name><surname>Sheng</surname><given-names>M</given-names></name><name><surname>Lu</surname><given-names>D</given-names></name><name><surname>Boyden</surname><given-names>E</given-names></name><name><surname>Delvendahl</surname><given-names>I</given-names></name><name><surname>Golshani</surname><given-names>P</given-names></name><name><surname>Wernig</surname><given-names>M</given-names></name><name><surname>Feldman</surname><given-names>DE</given-names></name><name><surname>Ji</surname><given-names>N</given-names></name><name><surname>Ding</surname><given-names>J</given-names></name><name><surname>Südhof</surname><given-names>TC</given-names></name><name><surname>Clandinin</surname><given-names>TR</given-names></name><name><surname>Lin</surname><given-names>MZ</given-names></name></person-group><year iso-8601-date="2024">2024</year><article-title>A fast and responsive voltage indicator with enhanced sensitivity for unitary synaptic events</article-title><source>Neuron</source><volume>112</volume><fpage>3680</fpage><lpage>3696</lpage><pub-id pub-id-type="doi">10.1016/j.neuron.2024.08.019</pub-id><pub-id pub-id-type="pmid">39305894</pub-id></element-citation></ref><ref id="bib25"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ho</surname><given-names>J</given-names></name><name><surname>Tumkaya</surname><given-names>T</given-names></name><name><surname>Aryal</surname><given-names>S</given-names></name><name><surname>Choi</surname><given-names>H</given-names></name><name><surname>Claridge-Chang</surname><given-names>A</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>Moving beyond P values: data analysis with estimation graphics</article-title><source>Nature Methods</source><volume>16</volume><fpage>565</fpage><lpage>566</lpage><pub-id pub-id-type="doi">10.1038/s41592-019-0470-3</pub-id><pub-id pub-id-type="pmid">31217592</pub-id></element-citation></ref><ref id="bib26"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Holler</surname><given-names>S</given-names></name><name><surname>Köstinger</surname><given-names>G</given-names></name><name><surname>Martin</surname><given-names>KAC</given-names></name><name><surname>Schuhknecht</surname><given-names>GFP</given-names></name><name><surname>Stratford</surname><given-names>KJ</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>Structure and function of a neocortical synapse</article-title><source>Nature</source><volume>591</volume><fpage>111</fpage><lpage>116</lpage><pub-id pub-id-type="doi">10.1038/s41586-020-03134-2</pub-id><pub-id pub-id-type="pmid">33442056</pub-id></element-citation></ref><ref id="bib27"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Huganir</surname><given-names>RL</given-names></name><name><surname>Nicoll</surname><given-names>RA</given-names></name></person-group><year iso-8601-date="2013">2013</year><article-title>AMPARs and synaptic plasticity: the last 25 years</article-title><source>Neuron</source><volume>80</volume><fpage>704</fpage><lpage>717</lpage><pub-id pub-id-type="doi">10.1016/j.neuron.2013.10.025</pub-id><pub-id pub-id-type="pmid">24183021</pub-id></element-citation></ref><ref id="bib28"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Imbrosci</surname><given-names>B</given-names></name><name><surname>Schmitz</surname><given-names>D</given-names></name><name><surname>Orlando</surname><given-names>M</given-names></name></person-group><year iso-8601-date="2022">2022</year><article-title>Automated detection and localization of synaptic vesicles in electron microscopy images</article-title><source>eNeuro</source><volume>9</volume><elocation-id>ENEURO.0400-20.2021</elocation-id><pub-id pub-id-type="doi">10.1523/ENEURO.0400-20.2021</pub-id><pub-id pub-id-type="pmid">34983830</pub-id></element-citation></ref><ref id="bib29"><element-citation publication-type="preprint"><person-group person-group-type="author"><name><surname>Ioffe</surname><given-names>S</given-names></name><name><surname>Szegedy</surname><given-names>C</given-names></name></person-group><year iso-8601-date="2015">2015</year><article-title>Batch normalization: accelerating deep network training by reducing internal covariate shift</article-title><source>arXiv</source><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.48550/ARXIV.1502.03167">https://doi.org/10.48550/ARXIV.1502.03167</ext-link></element-citation></ref><ref id="bib30"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Iqbal</surname><given-names>A</given-names></name><name><surname>Khan</surname><given-names>R</given-names></name><name><surname>Karayannis</surname><given-names>T</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>Developing a brain atlas through deep learning</article-title><source>Nature Machine Intelligence</source><volume>1</volume><fpage>277</fpage><lpage>287</lpage><pub-id pub-id-type="doi">10.1038/s42256-019-0058-8</pub-id></element-citation></ref><ref id="bib31"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ishii</surname><given-names>T</given-names></name><name><surname>Stolz</surname><given-names>JR</given-names></name><name><surname>Swanson</surname><given-names>GT</given-names></name></person-group><year iso-8601-date="2020">2020</year><article-title>Auxiliary proteins are the predominant determinants of differential efficacy of clinical candidates acting as ampa receptor positive allosteric modulators</article-title><source>Molecular Pharmacology</source><volume>97</volume><fpage>336</fpage><lpage>350</lpage><pub-id pub-id-type="doi">10.1124/mol.119.118554</pub-id><pub-id pub-id-type="pmid">32111699</pub-id></element-citation></ref><ref id="bib32"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Islam</surname><given-names>M</given-names></name><name><surname>Islam</surname><given-names>M</given-names></name><name><surname>Asraf</surname><given-names>A</given-names></name></person-group><year iso-8601-date="2020">2020</year><article-title>A combined deep CNN-LSTM network for the detection of novel coronavirus (COVID-19) using X-ray images</article-title><source>Informatics in Medicine Unlocked</source><volume>20</volume><elocation-id>100412</elocation-id><pub-id pub-id-type="doi">10.1016/j.imu.2020.100412</pub-id><pub-id pub-id-type="pmid">32835084</pub-id></element-citation></ref><ref id="bib33"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ismail Fawaz</surname><given-names>H</given-names></name><name><surname>Forestier</surname><given-names>G</given-names></name><name><surname>Weber</surname><given-names>J</given-names></name><name><surname>Idoumghar</surname><given-names>L</given-names></name><name><surname>Muller</surname><given-names>PA</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>Deep learning for time series classification: a review</article-title><source>Data Mining and Knowledge Discovery</source><volume>33</volume><fpage>917</fpage><lpage>963</lpage><pub-id pub-id-type="doi">10.1007/s10618-019-00619-1</pub-id></element-citation></ref><ref id="bib34"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Jonas</surname><given-names>P</given-names></name><name><surname>Major</surname><given-names>G</given-names></name><name><surname>Sakmann</surname><given-names>B</given-names></name></person-group><year iso-8601-date="1993">1993</year><article-title>Quantal components of unitary EPSCs at the mossy fibre synapse on CA3 pyramidal cells of rat hippocampus</article-title><source>The Journal of Physiology</source><volume>472</volume><fpage>615</fpage><lpage>663</lpage><pub-id pub-id-type="doi">10.1113/jphysiol.1993.sp019965</pub-id><pub-id pub-id-type="pmid">7908327</pub-id></element-citation></ref><ref id="bib35"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kaeser</surname><given-names>PS</given-names></name><name><surname>Regehr</surname><given-names>WG</given-names></name></person-group><year iso-8601-date="2014">2014</year><article-title>Molecular mechanisms for synchronous, asynchronous, and spontaneous neurotransmitter release</article-title><source>Annual Review of Physiology</source><volume>76</volume><fpage>333</fpage><lpage>363</lpage><pub-id pub-id-type="doi">10.1146/annurev-physiol-021113-170338</pub-id><pub-id pub-id-type="pmid">24274737</pub-id></element-citation></ref><ref id="bib36"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kavalali</surname><given-names>ET</given-names></name></person-group><year iso-8601-date="2015">2015</year><article-title>The mechanisms and functions of spontaneous neurotransmitter release</article-title><source>Nature Reviews. Neuroscience</source><volume>16</volume><fpage>5</fpage><lpage>16</lpage><pub-id pub-id-type="doi">10.1038/nrn3875</pub-id><pub-id pub-id-type="pmid">25524119</pub-id></element-citation></ref><ref id="bib37"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kim</surname><given-names>YG</given-names></name><name><surname>Shin</surname><given-names>JJ</given-names></name><name><surname>Kim</surname><given-names>SJ</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>Minhee Analysis Package: an integrated software package for detection and management of spontaneous synaptic events</article-title><source>Molecular Brain</source><volume>14</volume><elocation-id>138</elocation-id><pub-id pub-id-type="doi">10.1186/s13041-021-00847-x</pub-id><pub-id pub-id-type="pmid">34496933</pub-id></element-citation></ref><ref id="bib38"><element-citation publication-type="preprint"><person-group person-group-type="author"><name><surname>Kingma</surname><given-names>DP</given-names></name><name><surname>Ba</surname><given-names>J</given-names></name></person-group><year iso-8601-date="2014">2014</year><article-title>Adam: a method for stochastic optimization</article-title><source>arXiv</source><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.48550/ARXIV.1412.6980">https://doi.org/10.48550/ARXIV.1412.6980</ext-link></element-citation></ref><ref id="bib39"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kita</surname><given-names>K</given-names></name><name><surname>Albergaria</surname><given-names>C</given-names></name><name><surname>Machado</surname><given-names>AS</given-names></name><name><surname>Carey</surname><given-names>MR</given-names></name><name><surname>Müller</surname><given-names>M</given-names></name><name><surname>Delvendahl</surname><given-names>I</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>GluA4 facilitates cerebellar expansion coding and enables associative memory formation</article-title><source>eLife</source><volume>10</volume><elocation-id>e65152</elocation-id><pub-id pub-id-type="doi">10.7554/eLife.65152</pub-id><pub-id pub-id-type="pmid">34219651</pub-id></element-citation></ref><ref id="bib40"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kudoh</surname><given-names>SN</given-names></name><name><surname>Taguchi</surname><given-names>T</given-names></name></person-group><year iso-8601-date="2002">2002</year><article-title>A simple exploratory algorithm for the accurate and fast detection of spontaneous synaptic events</article-title><source>Biosensors &amp; Bioelectronics</source><volume>17</volume><fpage>773</fpage><lpage>782</lpage><pub-id pub-id-type="doi">10.1016/s0956-5663(02)00053-2</pub-id><pub-id pub-id-type="pmid">12191925</pub-id></element-citation></ref><ref id="bib41"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>LeCun</surname><given-names>Y</given-names></name><name><surname>Bengio</surname><given-names>Y</given-names></name><name><surname>Hinton</surname><given-names>G</given-names></name></person-group><year iso-8601-date="2015">2015</year><article-title>Deep learning</article-title><source>Nature</source><volume>521</volume><fpage>436</fpage><lpage>444</lpage><pub-id pub-id-type="doi">10.1038/nature14539</pub-id><pub-id pub-id-type="pmid">26017442</pub-id></element-citation></ref><ref id="bib42"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Lepeta</surname><given-names>K</given-names></name><name><surname>Lourenco</surname><given-names>MV</given-names></name><name><surname>Schweitzer</surname><given-names>BC</given-names></name><name><surname>Martino Adami</surname><given-names>PV</given-names></name><name><surname>Banerjee</surname><given-names>P</given-names></name><name><surname>Catuara-Solarz</surname><given-names>S</given-names></name><name><surname>de La Fuente Revenga</surname><given-names>M</given-names></name><name><surname>Guillem</surname><given-names>AM</given-names></name><name><surname>Haidar</surname><given-names>M</given-names></name><name><surname>Ijomone</surname><given-names>OM</given-names></name><name><surname>Nadorp</surname><given-names>B</given-names></name><name><surname>Qi</surname><given-names>L</given-names></name><name><surname>Perera</surname><given-names>ND</given-names></name><name><surname>Refsgaard</surname><given-names>LK</given-names></name><name><surname>Reid</surname><given-names>KM</given-names></name><name><surname>Sabbar</surname><given-names>M</given-names></name><name><surname>Sahoo</surname><given-names>A</given-names></name><name><surname>Schaefer</surname><given-names>N</given-names></name><name><surname>Sheean</surname><given-names>RK</given-names></name><name><surname>Suska</surname><given-names>A</given-names></name><name><surname>Verma</surname><given-names>R</given-names></name><name><surname>Vicidomini</surname><given-names>C</given-names></name><name><surname>Wright</surname><given-names>D</given-names></name><name><surname>Zhang</surname><given-names>X-D</given-names></name><name><surname>Seidenbecher</surname><given-names>C</given-names></name></person-group><year iso-8601-date="2016">2016</year><article-title>Synaptopathies: synaptic dysfunction in neurological disorders - A review from students to students</article-title><source>Journal of Neurochemistry</source><volume>138</volume><fpage>785</fpage><lpage>805</lpage><pub-id pub-id-type="doi">10.1111/jnc.13713</pub-id><pub-id pub-id-type="pmid">27333343</pub-id></element-citation></ref><ref id="bib43"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Lesperance</surname><given-names>LS</given-names></name><name><surname>Yang</surname><given-names>Y-M</given-names></name><name><surname>Wang</surname><given-names>L-Y</given-names></name></person-group><year iso-8601-date="2020">2020</year><article-title>Delayed expression of activity-dependent gating switch in synaptic AMPARs at a central synapse</article-title><source>Molecular Brain</source><volume>13</volume><elocation-id>6</elocation-id><pub-id pub-id-type="doi">10.1186/s13041-019-0536-2</pub-id><pub-id pub-id-type="pmid">31941524</pub-id></element-citation></ref><ref id="bib44"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Li</surname><given-names>B</given-names></name><name><surname>Chavarha</surname><given-names>M</given-names></name><name><surname>Kobayashi</surname><given-names>Y</given-names></name><name><surname>Yoshinaga</surname><given-names>S</given-names></name><name><surname>Nakajima</surname><given-names>K</given-names></name><name><surname>Lin</surname><given-names>MZ</given-names></name><name><surname>Inoue</surname><given-names>T</given-names></name></person-group><year iso-8601-date="2020">2020</year><article-title>Two-photon voltage imaging of spontaneous activity from multiple neurons reveals network activity in brain tissue</article-title><source>iScience</source><volume>23</volume><elocation-id>101363</elocation-id><pub-id pub-id-type="doi">10.1016/j.isci.2020.101363</pub-id><pub-id pub-id-type="pmid">32717641</pub-id></element-citation></ref><ref id="bib45"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Lowen</surname><given-names>SB</given-names></name><name><surname>Cash</surname><given-names>SS</given-names></name><name><surname>Poo</surname><given-names>M</given-names></name><name><surname>Teich</surname><given-names>MC</given-names></name></person-group><year iso-8601-date="1997">1997</year><article-title>Quantal neurotransmitter secretion rate exhibits fractal behavior</article-title><source>The Journal of Neuroscience</source><volume>17</volume><fpage>5666</fpage><lpage>5677</lpage><pub-id pub-id-type="doi">10.1523/JNEUROSCI.17-15-05666.1997</pub-id><pub-id pub-id-type="pmid">9221766</pub-id></element-citation></ref><ref id="bib46"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Malinow</surname><given-names>R</given-names></name><name><surname>Malenka</surname><given-names>RC</given-names></name></person-group><year iso-8601-date="2002">2002</year><article-title>AMPA receptor trafficking and synaptic plasticity</article-title><source>Annual Review of Neuroscience</source><volume>25</volume><fpage>103</fpage><lpage>126</lpage><pub-id pub-id-type="doi">10.1146/annurev.neuro.25.112701.142758</pub-id><pub-id pub-id-type="pmid">12052905</pub-id></element-citation></ref><ref id="bib47"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>McKinney</surname><given-names>RA</given-names></name><name><surname>Capogna</surname><given-names>M</given-names></name><name><surname>Dürr</surname><given-names>R</given-names></name><name><surname>Gähwiler</surname><given-names>BH</given-names></name><name><surname>Thompson</surname><given-names>SM</given-names></name></person-group><year iso-8601-date="1999">1999</year><article-title>Miniature synaptic events maintain dendritic spines via AMPA receptor activation</article-title><source>Nature Neuroscience</source><volume>2</volume><fpage>44</fpage><lpage>49</lpage><pub-id pub-id-type="doi">10.1038/4548</pub-id><pub-id pub-id-type="pmid">10195179</pub-id></element-citation></ref><ref id="bib48"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Merel</surname><given-names>J</given-names></name><name><surname>Shababo</surname><given-names>B</given-names></name><name><surname>Naka</surname><given-names>A</given-names></name><name><surname>Adesnik</surname><given-names>H</given-names></name><name><surname>Paninski</surname><given-names>L</given-names></name></person-group><year iso-8601-date="2016">2016</year><article-title>Bayesian methods for event analysis of intracellular currents</article-title><source>Journal of Neuroscience Methods</source><volume>269</volume><fpage>21</fpage><lpage>32</lpage><pub-id pub-id-type="doi">10.1016/j.jneumeth.2016.05.015</pub-id><pub-id pub-id-type="pmid">27208694</pub-id></element-citation></ref><ref id="bib49"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Miller</surname><given-names>EC</given-names></name><name><surname>Teravskis</surname><given-names>PJ</given-names></name><name><surname>Dummer</surname><given-names>BW</given-names></name><name><surname>Zhao</surname><given-names>X</given-names></name><name><surname>Huganir</surname><given-names>RL</given-names></name><name><surname>Liao</surname><given-names>D</given-names></name></person-group><year iso-8601-date="2014">2014</year><article-title>Tau phosphorylation and tau mislocalization mediate soluble Aβ oligomer-induced AMPA glutamate receptor signaling deficits</article-title><source>The European Journal of Neuroscience</source><volume>39</volume><fpage>1214</fpage><lpage>1224</lpage><pub-id pub-id-type="doi">10.1111/ejn.12507</pub-id><pub-id pub-id-type="pmid">24713000</pub-id></element-citation></ref><ref id="bib50"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Mori</surname><given-names>M</given-names></name><name><surname>Rosko</surname><given-names>A</given-names></name><name><surname>Farnsworth</surname><given-names>J</given-names></name><name><surname>Carrasco</surname><given-names>G</given-names></name><name><surname>Broomandkhoshbacht</surname><given-names>P</given-names></name><name><surname>Pareja-Navarro</surname><given-names>K</given-names></name><name><surname>Pejmun Haghighi</surname><given-names>A</given-names></name></person-group><year iso-8601-date="2024">2024</year><article-title>Simplyfire: an open-source, customizable software application for the analysis of synaptic events</article-title><source>eNeuro</source><volume>11</volume><elocation-id>ENEURO.0326-23.2023</elocation-id><pub-id pub-id-type="doi">10.1523/ENEURO.0326-23.2023</pub-id><pub-id pub-id-type="pmid">38167616</pub-id></element-citation></ref><ref id="bib51"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>O’Brien</surname><given-names>RJ</given-names></name><name><surname>Kamboj</surname><given-names>S</given-names></name><name><surname>Ehlers</surname><given-names>MD</given-names></name><name><surname>Rosen</surname><given-names>KR</given-names></name><name><surname>Fischbach</surname><given-names>GD</given-names></name><name><surname>Huganir</surname><given-names>RL</given-names></name></person-group><year iso-8601-date="1998">1998</year><article-title>Activity-dependent modulation of synaptic AMPA receptor accumulation</article-title><source>Neuron</source><volume>21</volume><fpage>1067</fpage><lpage>1078</lpage><pub-id pub-id-type="doi">10.1016/s0896-6273(00)80624-8</pub-id><pub-id pub-id-type="pmid">9856462</pub-id></element-citation></ref><ref id="bib52"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Passricha</surname><given-names>V</given-names></name><name><surname>Aggarwal</surname><given-names>RK</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>A hybrid of deep CNN and bidirectional LSTM for automatic speech recognition</article-title><source>Journal of Intelligent Systems</source><volume>29</volume><fpage>1261</fpage><lpage>1274</lpage><pub-id pub-id-type="doi">10.1515/jisys-2018-0372</pub-id></element-citation></ref><ref id="bib53"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Pernía-Andrade</surname><given-names>AJ</given-names></name><name><surname>Goswami</surname><given-names>SP</given-names></name><name><surname>Stickler</surname><given-names>Y</given-names></name><name><surname>Fröbe</surname><given-names>U</given-names></name><name><surname>Schlögl</surname><given-names>A</given-names></name><name><surname>Jonas</surname><given-names>P</given-names></name></person-group><year iso-8601-date="2012">2012</year><article-title>A deconvolution-based method with high sensitivity and temporal resolution for detection of spontaneous synaptic currents in vitro and in vivo</article-title><source>Biophysical Journal</source><volume>103</volume><fpage>1429</fpage><lpage>1439</lpage><pub-id pub-id-type="doi">10.1016/j.bpj.2012.08.039</pub-id><pub-id pub-id-type="pmid">23062335</pub-id></element-citation></ref><ref id="bib54"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Petersen</surname><given-names>SA</given-names></name><name><surname>Fetter</surname><given-names>RD</given-names></name><name><surname>Noordermeer</surname><given-names>JN</given-names></name><name><surname>Goodman</surname><given-names>CS</given-names></name><name><surname>DiAntonio</surname><given-names>A</given-names></name></person-group><year iso-8601-date="1997">1997</year><article-title>Genetic analysis of glutamate receptors in <italic>Drosophila</italic> reveals a retrograde signal regulating presynaptic transmitter release</article-title><source>Neuron</source><volume>19</volume><fpage>1237</fpage><lpage>1248</lpage><pub-id pub-id-type="doi">10.1016/s0896-6273(00)80415-8</pub-id><pub-id pub-id-type="pmid">9427247</pub-id></element-citation></ref><ref id="bib55"><element-citation publication-type="confproc"><person-group person-group-type="author"><name><surname>Pratt</surname><given-names>LY</given-names></name><name><surname>Mostow</surname><given-names>J</given-names></name><name><surname>Kamm</surname><given-names>CA</given-names></name></person-group><year iso-8601-date="1991">1991</year><article-title>Direct transfer of learned information among neural networks</article-title><conf-name>In AAAI Conference on Artificial Intelligence</conf-name></element-citation></ref><ref id="bib56"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ralowicz</surname><given-names>AJ</given-names></name><name><surname>Hokeness</surname><given-names>S</given-names></name><name><surname>Hoppa</surname><given-names>MB</given-names></name></person-group><year iso-8601-date="2024">2024</year><article-title>Frequency of spontaneous neurotransmission at individual boutons corresponds to the size of the readily releasable pool of vesicles</article-title><source>The Journal of Neuroscience</source><volume>44</volume><elocation-id>e1253232024</elocation-id><pub-id pub-id-type="doi">10.1523/JNEUROSCI.1253-23.2024</pub-id><pub-id pub-id-type="pmid">38383495</pub-id></element-citation></ref><ref id="bib57"><element-citation publication-type="preprint"><person-group person-group-type="author"><name><surname>Reddi</surname><given-names>SJ</given-names></name><name><surname>Kale</surname><given-names>S</given-names></name><name><surname>Kumar</surname><given-names>S</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>On the convergence of adam and beyond</article-title><source>arXiv</source><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.48550/ARXIV.1904.09237">https://doi.org/10.48550/ARXIV.1904.09237</ext-link></element-citation></ref><ref id="bib58"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Richards</surname><given-names>B</given-names></name><name><surname>Tsao</surname><given-names>D</given-names></name><name><surname>Zador</surname><given-names>A</given-names></name></person-group><year iso-8601-date="2022">2022</year><article-title>The application of artificial intelligence to biology and neuroscience</article-title><source>Cell</source><volume>185</volume><fpage>2640</fpage><lpage>2643</lpage><pub-id pub-id-type="doi">10.1016/j.cell.2022.06.047</pub-id><pub-id pub-id-type="pmid">35868269</pub-id></element-citation></ref><ref id="bib59"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Rupprecht</surname><given-names>P</given-names></name><name><surname>Friedrich</surname><given-names>RW</given-names></name></person-group><year iso-8601-date="2018">2018</year><article-title>Precise synaptic balance in the zebrafish homolog of olfactory cortex</article-title><source>Neuron</source><volume>100</volume><fpage>669</fpage><lpage>683</lpage><pub-id pub-id-type="doi">10.1016/j.neuron.2018.09.013</pub-id><pub-id pub-id-type="pmid">30318416</pub-id></element-citation></ref><ref id="bib60"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Rupprecht</surname><given-names>P</given-names></name><name><surname>Carta</surname><given-names>S</given-names></name><name><surname>Hoffmann</surname><given-names>A</given-names></name><name><surname>Echizen</surname><given-names>M</given-names></name><name><surname>Blot</surname><given-names>A</given-names></name><name><surname>Kwan</surname><given-names>AC</given-names></name><name><surname>Dan</surname><given-names>Y</given-names></name><name><surname>Hofer</surname><given-names>SB</given-names></name><name><surname>Kitamura</surname><given-names>K</given-names></name><name><surname>Helmchen</surname><given-names>F</given-names></name><name><surname>Friedrich</surname><given-names>RW</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>A database and deep learning toolbox for noise-optimized, generalized spike inference from calcium imaging</article-title><source>Nature Neuroscience</source><volume>24</volume><fpage>1324</fpage><lpage>1337</lpage><pub-id pub-id-type="doi">10.1038/s41593-021-00895-5</pub-id><pub-id pub-id-type="pmid">34341584</pub-id></element-citation></ref><ref id="bib61"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Shi</surname><given-names>Y</given-names></name><name><surname>Nenadic</surname><given-names>Z</given-names></name><name><surname>Xu</surname><given-names>X</given-names></name></person-group><year iso-8601-date="2010">2010</year><article-title>Novel use of matched filtering for synaptic event detection and extraction</article-title><source>PLOS ONE</source><volume>5</volume><elocation-id>e15517</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pone.0015517</pub-id><pub-id pub-id-type="pmid">21124805</pub-id></element-citation></ref><ref id="bib62"><element-citation publication-type="preprint"><person-group person-group-type="author"><name><surname>Simonyan</surname><given-names>K</given-names></name><name><surname>Vedaldi</surname><given-names>A</given-names></name><name><surname>Zisserman</surname><given-names>A</given-names></name></person-group><year iso-8601-date="2013">2013</year><article-title>Deep inside convolutional networks: visualising image classification models and saliency maps</article-title><source>arXiv</source><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.48550/ARXIV.1312.6034">https://doi.org/10.48550/ARXIV.1312.6034</ext-link></element-citation></ref><ref id="bib63"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Sità</surname><given-names>L</given-names></name><name><surname>Brondi</surname><given-names>M</given-names></name><name><surname>Lagomarsino de Leon Roig</surname><given-names>P</given-names></name><name><surname>Curreli</surname><given-names>S</given-names></name><name><surname>Panniello</surname><given-names>M</given-names></name><name><surname>Vecchia</surname><given-names>D</given-names></name><name><surname>Fellin</surname><given-names>T</given-names></name></person-group><year iso-8601-date="2022">2022</year><article-title>A deep-learning approach for online cell identification and trace extraction in functional two-photon calcium imaging</article-title><source>Nature Communications</source><volume>13</volume><elocation-id>1529</elocation-id><pub-id pub-id-type="doi">10.1038/s41467-022-29180-0</pub-id><pub-id pub-id-type="pmid">35318335</pub-id></element-citation></ref><ref id="bib64"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Sjulson</surname><given-names>L</given-names></name><name><surname>Miesenböck</surname><given-names>G</given-names></name></person-group><year iso-8601-date="2007">2007</year><article-title>Optical recording of action potentials and other discrete physiological events: a perspective from signal detection theory</article-title><source>Physiology</source><volume>22</volume><fpage>47</fpage><lpage>55</lpage><pub-id pub-id-type="doi">10.1152/physiol.00036.2006</pub-id><pub-id pub-id-type="pmid">17289930</pub-id></element-citation></ref><ref id="bib65"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Srivastava</surname><given-names>N</given-names></name><name><surname>Hinton</surname><given-names>G</given-names></name><name><surname>Krizhevsky</surname><given-names>A</given-names></name><name><surname>Sutskever</surname><given-names>I</given-names></name><name><surname>Salakhutdinov</surname><given-names>R</given-names></name></person-group><year iso-8601-date="2014">2014</year><article-title>Dropout: a simple way to prevent neural networks from overfitting</article-title><source>The Journal of Machine Learning Research</source><volume>15</volume><fpage>1929</fpage><lpage>1958</lpage></element-citation></ref><ref id="bib66"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Tasdelen</surname><given-names>A</given-names></name><name><surname>Sen</surname><given-names>B</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>A hybrid CNN-LSTM model for pre-miRNA classification</article-title><source>Scientific Reports</source><volume>11</volume><elocation-id>14125</elocation-id><pub-id pub-id-type="doi">10.1038/s41598-021-93656-0</pub-id><pub-id pub-id-type="pmid">34239004</pub-id></element-citation></ref><ref id="bib67"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Theis</surname><given-names>L</given-names></name><name><surname>Berens</surname><given-names>P</given-names></name><name><surname>Froudarakis</surname><given-names>E</given-names></name><name><surname>Reimer</surname><given-names>J</given-names></name><name><surname>Román Rosón</surname><given-names>M</given-names></name><name><surname>Baden</surname><given-names>T</given-names></name><name><surname>Euler</surname><given-names>T</given-names></name><name><surname>Tolias</surname><given-names>AS</given-names></name><name><surname>Bethge</surname><given-names>M</given-names></name></person-group><year iso-8601-date="2016">2016</year><article-title>Benchmarking spike rate inference in population calcium imaging</article-title><source>Neuron</source><volume>90</volume><fpage>471</fpage><lpage>482</lpage><pub-id pub-id-type="doi">10.1016/j.neuron.2016.04.014</pub-id><pub-id pub-id-type="pmid">27151639</pub-id></element-citation></ref><ref id="bib68"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Theodoris</surname><given-names>CV</given-names></name><name><surname>Xiao</surname><given-names>L</given-names></name><name><surname>Chopra</surname><given-names>A</given-names></name><name><surname>Chaffin</surname><given-names>MD</given-names></name><name><surname>Al Sayed</surname><given-names>ZR</given-names></name><name><surname>Hill</surname><given-names>MC</given-names></name><name><surname>Mantineo</surname><given-names>H</given-names></name><name><surname>Brydon</surname><given-names>EM</given-names></name><name><surname>Zeng</surname><given-names>Z</given-names></name><name><surname>Liu</surname><given-names>XS</given-names></name><name><surname>Ellinor</surname><given-names>PT</given-names></name></person-group><year iso-8601-date="2023">2023</year><article-title>Transfer learning enables predictions in network biology</article-title><source>Nature</source><volume>618</volume><fpage>616</fpage><lpage>624</lpage><pub-id pub-id-type="doi">10.1038/s41586-023-06139-9</pub-id><pub-id pub-id-type="pmid">37258680</pub-id></element-citation></ref><ref id="bib69"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Tran</surname><given-names>V</given-names></name><name><surname>Stricker</surname><given-names>C</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>Spontaneous and action potential-evoked Ca<sup>2+</sup> release from endoplasmic reticulum in neocortical synaptic boutons</article-title><source>Cell Calcium</source><volume>97</volume><elocation-id>102433</elocation-id><pub-id pub-id-type="doi">10.1016/j.ceca.2021.102433</pub-id><pub-id pub-id-type="pmid">34174726</pub-id></element-citation></ref><ref id="bib70"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Turrigiano</surname><given-names>GG</given-names></name><name><surname>Leslie</surname><given-names>KR</given-names></name><name><surname>Desai</surname><given-names>NS</given-names></name><name><surname>Rutherford</surname><given-names>LC</given-names></name><name><surname>Nelson</surname><given-names>SB</given-names></name></person-group><year iso-8601-date="1998">1998</year><article-title>Activity-dependent scaling of quantal amplitude in neocortical neurons</article-title><source>Nature</source><volume>391</volume><fpage>892</fpage><lpage>896</lpage><pub-id pub-id-type="doi">10.1038/36103</pub-id><pub-id pub-id-type="pmid">9495341</pub-id></element-citation></ref><ref id="bib71"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>van der Ploeg</surname><given-names>T</given-names></name><name><surname>Austin</surname><given-names>PC</given-names></name><name><surname>Steyerberg</surname><given-names>EW</given-names></name></person-group><year iso-8601-date="2014">2014</year><article-title>Modern modelling techniques are data hungry: a simulation study for predicting dichotomous endpoints</article-title><source>BMC Medical Research Methodology</source><volume>14</volume><elocation-id>137</elocation-id><pub-id pub-id-type="doi">10.1186/1471-2288-14-137</pub-id><pub-id pub-id-type="pmid">25532820</pub-id></element-citation></ref><ref id="bib72"><element-citation publication-type="preprint"><person-group person-group-type="author"><name><surname>Wang</surname><given-names>Z</given-names></name><name><surname>Yan</surname><given-names>W</given-names></name><name><surname>Oates</surname><given-names>T</given-names></name></person-group><year iso-8601-date="2016">2016</year><article-title>Time series classification from scratch with deep neural networks: a strong baseline</article-title><source>arXiv</source><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.48550/ARXIV.1611.06455">https://doi.org/10.48550/ARXIV.1611.06455</ext-link></element-citation></ref><ref id="bib73"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Wang</surname><given-names>NS</given-names></name><name><surname>Marino</surname><given-names>M</given-names></name><name><surname>Malinow</surname><given-names>R</given-names></name></person-group><year iso-8601-date="2024">2024</year><article-title>Detecting unitary synaptic events with machine learning</article-title><source>PNAS</source><volume>121</volume><elocation-id>e2315804121</elocation-id><pub-id pub-id-type="doi">10.1073/pnas.2315804121</pub-id><pub-id pub-id-type="pmid">38294937</pub-id></element-citation></ref><ref id="bib74"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Wilt</surname><given-names>BA</given-names></name><name><surname>Fitzgerald</surname><given-names>JE</given-names></name><name><surname>Schnitzer</surname><given-names>MJ</given-names></name></person-group><year iso-8601-date="2013">2013</year><article-title>Photon shot noise limits on optical detection of neuronal spikes and estimation of spike timing</article-title><source>Biophysical Journal</source><volume>104</volume><fpage>51</fpage><lpage>62</lpage><pub-id pub-id-type="doi">10.1016/j.bpj.2012.07.058</pub-id><pub-id pub-id-type="pmid">23332058</pub-id></element-citation></ref><ref id="bib75"><element-citation publication-type="confproc"><person-group person-group-type="author"><name><surname>Ye</surname><given-names>L</given-names></name><name><surname>Keogh</surname><given-names>E</given-names></name></person-group><year iso-8601-date="2009">2009</year><article-title>Time series shapelets</article-title><conf-name>Proceedings of the 15th ACM SIGKDD international conference on Knowledge discovery and data mining</conf-name><pub-id pub-id-type="doi">10.1145/1557019.1557122</pub-id></element-citation></ref><ref id="bib76"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Yip</surname><given-names>MC</given-names></name><name><surname>Gonzalez</surname><given-names>MM</given-names></name><name><surname>Valenta</surname><given-names>CR</given-names></name><name><surname>Rowan</surname><given-names>MJM</given-names></name><name><surname>Forest</surname><given-names>CR</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>Deep learning-based real-time detection of neurons in brain slices for in vitro physiology</article-title><source>Scientific Reports</source><volume>11</volume><elocation-id>6065</elocation-id><pub-id pub-id-type="doi">10.1038/s41598-021-85695-4</pub-id><pub-id pub-id-type="pmid">33727679</pub-id></element-citation></ref><ref id="bib77"><element-citation publication-type="confproc"><person-group person-group-type="author"><name><surname>Yosinski</surname><given-names>J</given-names></name><name><surname>Clune</surname><given-names>J</given-names></name><name><surname>Bengio</surname><given-names>Y</given-names></name><name><surname>Lipson</surname><given-names>H</given-names></name></person-group><year iso-8601-date="2014">2014</year><article-title>How Transferable Are Features in Deep Neural Networks?</article-title><conf-name>Proceedings of the 28th International Conference on Neural Information Processing Systems</conf-name></element-citation></ref><ref id="bib78"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Zhang</surname><given-names>X</given-names></name><name><surname>Schlögl</surname><given-names>A</given-names></name><name><surname>Vandael</surname><given-names>D</given-names></name><name><surname>Jonas</surname><given-names>P</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>MOD: A novel machine-learning optimal-filtering method for accurate and efficient detection of subthreshold synaptic events in vivo</article-title><source>Journal of Neuroscience Methods</source><volume>357</volume><elocation-id>109125</elocation-id><pub-id pub-id-type="doi">10.1016/j.jneumeth.2021.109125</pub-id><pub-id pub-id-type="pmid">33711356</pub-id></element-citation></ref><ref id="bib79"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Zhang</surname><given-names>Y</given-names></name><name><surname>Rózsa</surname><given-names>M</given-names></name><name><surname>Liang</surname><given-names>Y</given-names></name><name><surname>Bushey</surname><given-names>D</given-names></name><name><surname>Wei</surname><given-names>Z</given-names></name><name><surname>Zheng</surname><given-names>J</given-names></name><name><surname>Reep</surname><given-names>D</given-names></name><name><surname>Broussard</surname><given-names>GJ</given-names></name><name><surname>Tsang</surname><given-names>A</given-names></name><name><surname>Tsegaye</surname><given-names>G</given-names></name><name><surname>Narayan</surname><given-names>S</given-names></name><name><surname>Obara</surname><given-names>CJ</given-names></name><name><surname>Lim</surname><given-names>JX</given-names></name><name><surname>Patel</surname><given-names>R</given-names></name><name><surname>Zhang</surname><given-names>R</given-names></name><name><surname>Ahrens</surname><given-names>MB</given-names></name><name><surname>Turner</surname><given-names>GC</given-names></name><name><surname>Wang</surname><given-names>SSH</given-names></name><name><surname>Korff</surname><given-names>WL</given-names></name><name><surname>Schreiter</surname><given-names>ER</given-names></name><name><surname>Svoboda</surname><given-names>K</given-names></name><name><surname>Hasseman</surname><given-names>JP</given-names></name><name><surname>Kolb</surname><given-names>I</given-names></name><name><surname>Looger</surname><given-names>LL</given-names></name></person-group><year iso-8601-date="2023">2023</year><article-title>Fast and sensitive GCaMP calcium indicators for imaging neural populations</article-title><source>Nature</source><volume>615</volume><fpage>884</fpage><lpage>891</lpage><pub-id pub-id-type="doi">10.1038/s41586-023-05828-9</pub-id><pub-id pub-id-type="pmid">36922596</pub-id></element-citation></ref><ref id="bib80"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Zoghbi</surname><given-names>HY</given-names></name><name><surname>Bear</surname><given-names>MF</given-names></name></person-group><year iso-8601-date="2012">2012</year><article-title>Synaptic dysfunction in neurodevelopmental disorders associated with autism and intellectual disabilities</article-title><source>Cold Spring Harbor Perspectives in Biology</source><volume>4</volume><elocation-id>a009886</elocation-id><pub-id pub-id-type="doi">10.1101/cshperspect.a009886</pub-id><pub-id pub-id-type="pmid">22258914</pub-id></element-citation></ref></ref-list></back><sub-article article-type="editor-report" id="sa0"><front-stub><article-id pub-id-type="doi">10.7554/eLife.98485.3.sa0</article-id><title-group><article-title>eLife Assessment</article-title></title-group><contrib-group><contrib contrib-type="author"><name><surname>Dickman</surname><given-names>Dion K</given-names></name><role specific-use="editor">Reviewing Editor</role><aff><institution>University of Southern California</institution><country>United States</country></aff></contrib></contrib-group><kwd-group kwd-group-type="evidence-strength"><kwd>Compelling</kwd></kwd-group><kwd-group kwd-group-type="claim-importance"><kwd>Valuable</kwd></kwd-group></front-stub><body><p>This paper presents miniML, an AI-based framework for the detection of synaptic events. Benchmark results presented in the paper are <bold>compelling</bold>, demonstrating the superiority of miniML over current state-of-the-art alternatives. The performance of miniML is demonstrated across various experimental paradigms, showing that miniML has the potential to become a <bold>valuable</bold> tool for the analysis of synaptic signals.</p></body></sub-article><sub-article article-type="referee-report" id="sa1"><front-stub><article-id pub-id-type="doi">10.7554/eLife.98485.3.sa1</article-id><title-group><article-title>Reviewer #1 (Public review):</article-title></title-group><contrib-group><contrib contrib-type="author"><anonymous/><role specific-use="referee">Reviewer</role></contrib></contrib-group></front-stub><body><p>O'Neill et al. have developed a software analysis application, miniML, that enables the quantification of electrophysiological events. They utilize a supervised deep learned-based method to optimize the software. miniML is able to quantify and standardize the analyses of miniature events, using both voltage and current clamp electrophysiology, as well as optically driven events using iGluSnFR3, in a variety of preparations, including in the cerebellum, calyx of held, golgi cell, human iPSC cultures, zebrafish, and <italic>Drosophila</italic>. The software appears to be flexible, in that users are able to hone and adapt the software to new preparations and events. Importantly, miniML is an open source software free for researchers to use and enables users to adapt new features using Python.</p><p>Overall this new software has the potential to become widely used in the field and an asset to researchers. Importantly, a new graphical user interface has been generated that enables more user control and a more user-friendly experience. Further, the authors demonstrate how miniML performs relative to other platforms that have been developed, and highlight areas where miniML works optimally. With these revisions, miniML should now be of considerable benefit and utility to a variety of researchers.</p></body></sub-article><sub-article article-type="referee-report" id="sa2"><front-stub><article-id pub-id-type="doi">10.7554/eLife.98485.3.sa2</article-id><title-group><article-title>Reviewer #2 (Public review):</article-title></title-group><contrib-group><contrib contrib-type="author"><anonymous/><role specific-use="referee">Reviewer</role></contrib></contrib-group></front-stub><body><p>Summary:</p><p>This paper presents miniML as a supervised method for detection of spontaneous synaptic events. Recordings of such events are typically of low SNR, where state-of-the-art methods are prone to high false favourable rates. Unlike current methods, training miniML requires neither prior knowledge of the kinetics of events nor the tuning of parameters/thresholds.</p><p>The proposed method comprises four convolutional networks, followed by a bi-directional LSTM and a final fully connected layer, which outputs a decision event/no event per time window. A sliding window is used when applying miniML to a temporal signal, followed by an additional estimation of events' time stamps. miniML outperforms current methods for simulated events superimposed on real data (with no events) and presents compelling results for real data across experimental paradigms and species.</p><p>Strengths:</p><p>The authors present a pipeline for benchmarking based on simulated events superimposed on real data (with no events). Compared to five other state-of-the-art methods, miniML leads to the highest detection rates and is most robust to specific choices of threshold values for fast or slow kinetics. A major strength of miniML is the ability to use it for different datasets. For this purpose, the CNN part of the model is held fixed and the subsequent networks are trained to adapt to the new data. This Transfer Learning (TL) strategy reduces computation time significantly and more importantly, it allows for using a substantially smaller data set (compared to training a full model) which is crucial as training is supervised (i.e. uses labeled examples).</p><p>Weaknesses:</p><p>The authors do not indicate how the specific configuration of miniML was set, i.e. number of CNNs, units, LSTM, etc. Please provide further information regarding these design choices, whether they were based on similar models or if chosen based on performance.</p><p>The data for the benchmark system was augmented with equal amounts of segments with/without events. Data augmentation was undoubtedly crucial for successful training.</p><p>(1) Does a balanced dataset reflect the natural occurrence of events in real data? Could the authors provide more information regarding this matter?</p><p>(2) Please provide a more detailed description of this process as it would serve users aiming to use this method for other sub-fields.</p><p>The benchmarking pipeline is indeed valuable and the results are compelling. However, the authors do not provide comparative results for miniML for real data (figures 4-8). TL does not apply to the other methods. In my opinion, presenting the performance of other methods, trained using the smaller dataset would be convincing of the modularity and applicability of the proposed approach.</p><p>Impact:</p><p>Accurate detection of synaptic events is crucial for the study of neural function. miniML has a great potential to become a valuable tool for this purpose as it yields highly accurate detection rates, it is robust, and is relatively easily adaptable to different experimental setups.</p><p>Comments on revisions:</p><p>The revised manuscript presents a compelling framework. The performance of mini ML is thouroughly explored and compared to several benchmarks. The training process along with other technical issues are now described in a satisfactory level of detail.</p><p>I think the authors did a great job. They answered all claims and concerns raised by me and the other reviewers.</p></body></sub-article><sub-article article-type="author-comment" id="sa3"><front-stub><article-id pub-id-type="doi">10.7554/eLife.98485.3.sa3</article-id><title-group><article-title>Author response</article-title></title-group><contrib-group><contrib contrib-type="author"><name><surname>O'Neill</surname><given-names>Philipp S</given-names></name><role specific-use="author">Author</role><aff><institution>University of Zurich</institution><addr-line><named-content content-type="city">Zurich</named-content></addr-line><country>Switzerland</country></aff></contrib><contrib contrib-type="author"><name><surname>Baccino-Calace</surname><given-names>Martín</given-names></name><role specific-use="author">Author</role><aff><institution>University of Zurich</institution><addr-line><named-content content-type="city">Zurich</named-content></addr-line><country>Switzerland</country></aff></contrib><contrib contrib-type="author"><name><surname>Rupprecht</surname><given-names>Peter</given-names></name><role specific-use="author">Author</role><aff><institution>University of Zurich</institution><addr-line><named-content content-type="city">Zurich</named-content></addr-line><country>Switzerland</country></aff></contrib><contrib contrib-type="author"><name><surname>Lee</surname><given-names>Sungmoo</given-names></name><role specific-use="author">Author</role><aff><institution>Stanford University</institution><addr-line><named-content content-type="city">Stanford</named-content></addr-line><country>United States</country></aff></contrib><contrib contrib-type="author"><name><surname>Hao</surname><given-names>Yukun A</given-names></name><role specific-use="author">Author</role><aff><institution>Stanford University</institution><addr-line><named-content content-type="city">Stanford</named-content></addr-line><country>United States</country></aff></contrib><contrib contrib-type="author"><name><surname>Lin</surname><given-names>Michael Z</given-names></name><role specific-use="author">Author</role><aff><institution>Stanford University</institution><addr-line><named-content content-type="city">Stanford</named-content></addr-line><country>United States</country></aff></contrib><contrib contrib-type="author"><name><surname>Friedrich</surname><given-names>Rainer W</given-names></name><role specific-use="author">Author</role><aff><institution>Friedrich Miescher Institute for Biomedical Research</institution><addr-line><named-content content-type="city">Basel</named-content></addr-line><country>Switzerland</country></aff></contrib><contrib contrib-type="author"><name><surname>Mueller</surname><given-names>Martin</given-names></name><role specific-use="author">Author</role><aff><institution>University of Zurich</institution><addr-line><named-content content-type="city">Zurich</named-content></addr-line><country>Switzerland</country></aff></contrib><contrib contrib-type="author"><name><surname>Delvendahl</surname><given-names>Igor</given-names></name><role specific-use="author">Author</role><aff><institution>University of Freiburg</institution><addr-line><named-content content-type="city">Freiburg</named-content></addr-line><country>Germany</country></aff></contrib></contrib-group></front-stub><body><p>The following is the authors’ response to the original reviews.</p><disp-quote content-type="editor-comment"><p><bold>Public Reviews:</bold></p><p><bold>Reviewer 1 (Public Review):</bold></p><p>O’Neill et al. have developed a software analysis application, miniML, that enables the quantification of electrophysiological events. They utilize a supervised deep learned-based method to optimize the software. miniML is able to quantify and standardize the analyses of miniature events, using both voltage and current clamp electrophysiology, as well as optically driven events using iGluSnFR3, in a variety of preparations, including in the cerebellum, calyx of held, Golgi cell, human iPSC cultures, zebrafish, and <italic>Drosophila</italic>. The software appears to be flexible, in that users are able to hone and adapt the software to new preparations and events. Importantly, miniML is an open-source software free for researchers to use and enables users to adapt new features using Python.</p><p>Overall this new software has the potential to become widely used in the field and an asset to researchers. However, the authors fail to discuss or even cite a similar analysis tool recently developed (SimplyFire), and determine how miniML performs relative to this platform. There are a handful of additional suggestions to make miniML more user-friendly, and of broad utility to a variety of researchers, as well as some suggestions to further validate and strengthen areas of the manuscript:</p><p>(1) miniML relative to existing analysis methods: There is a major omission in this study, in that a similar open source, Python-based software package for event detection of synaptic events appears to be completely ignored. Earlier this year, another group published SimplyFire in eNeuro (Mori et al., 2024; doi: 10.1523/eneuro.0326-23.2023). Obviously, this previous study needs to be discussed and ideally compared to miniML to determine if SimplyFire is superior or similar in utility, and to underscore differences in approach and accuracy.</p></disp-quote><p>We thank the reviewer for bringing this interesting publication to our attention. We have included SimplyFire in our benchmarking for comprehensive comparison with miniML. The approach taken by SimplyFire differs from miniML in a number of ways. Our results show that miniML provides higher recall and precision than SimplyFire (revised Figure 3). We appreciate that SimplyFire provides a user-interface similar to the commonly used MiniAnalysis software. In addition, the peak-finding-based approach of SimplyFire makes it relatively robust to event shape, which facilitates analysis of diverse data. However, we noted a strong threshold-dependence and long run time of SimplyFire (revised Figure 3 and Figure 3—figure supplement 1). In addition, SimplyFire is not robust against various types of noise typically encountered in electrophysiological recordings. Our extended benchmark analysis thus indicates that AI-based event detection is superior to existing algorithmic approaches, including SimplyFire.</p><disp-quote content-type="editor-comment"><p>(2) The manuscript should comment on whether miniML works equally well to quantify current clamp events (voltage; e.g. EPSP/mEPSPs) compared to voltage clamp (currents, EPSC/mEPSCs), which the manuscript highlights. Are rise and decay time constants calculated for each event similarly?</p></disp-quote><p>miniML works equally well for current- and voltage events (Figure 5, Figure 9). In general, events of opposite polarity can be analyzed by simply inverting the data. Transfer learning models may further improve the detection.</p><p>For each detected event, independent of data/recording type, rise times are calculated as 10–90% times (baseline–peak), and decay times are calculated as time to 50% of the peak. In addition, event decay time constants are calculated from a fit to the event average. With miniML being open-source, researchers can adapt the calculations of event statistics to their needs, if desired. In the revised manuscript, we have expanded the Methods section that describes the quantification of event statistics (Methods, Quantification).</p><disp-quote content-type="editor-comment"><p>(3) The interface and capabilities of miniML appear quite similar to Mini Analysis, the free software that many in the field currently use. While the ability and flexibility for users to adapt and adjust miniML for their own uses/needs using Python programming is a clear potential advantage, can the authors comment, or better yet, demonstrate, whether there is any advantage for researchers to use miniML over Mini Analysis or SimplyFire if they just need the standard analyses?</p></disp-quote><p>Following the reviewer’s suggestion, we developed a graphical user interface (GUI) for miniML to enhance its usability (Figure 2—figure supplement 2), which is provided on the GitHub repository. Our comprehensive benchmark analysis demonstrated that miniML outperforms existing tools such as MiniAnalysis and SimplyFire. The main advantages are (i) increased reliability of results, which eliminates the need for visual inspection; (ii) fast runtime and easy automation; (iii) superior detection performance as demonstrated by higher recall in both synthetic and real data; (iv) open-source Python-based design. We believe that these advantages make miniML a valuable tool for researchers recording various types of synaptic events, offering a more efficient and reliable solution compared to existing methods.</p><disp-quote content-type="editor-comment"><p>(4) Additional utilities for miniML: The authors show miniML can quantify miniature electrophysiological events both current and voltage clamp, as well as optical glutamate transients using iGluSnFR. As the authors mention in the discussion, the same approach could, in principle, be used to quantify evoked (EPSC/EPSP) events using electrophysiology, Ca2+ events (using GCaMP), and AP waveforms using voltage indicators like ASAP4. While I don’t think it is reasonable to ask the authors to generate any new experimental data, it would be great to see how miniML performs when analysing data from these approaches, particularly to quantify evoked synaptic events and/or Ca2+ (ideally postsynaptic Ca2+ signals from miniature events, as the <italic>Drosophila</italic> NMJ have developed nice approaches).</p></disp-quote><p>In the revised manuscript, we have extended the application examples of miniML. We applied miniML to detect mEPSPs recorded with the novel voltage-sensitive indicator ASAP5 (Figure 9 and Figure 9—figure supplement 1). We performed simultaneous recordings of membrane voltage through electrophysiology and ASAP5 voltage imaging in rat cultured neurons at physiological temperature. Data were analyzed using miniML, with electrophysiology data being used as ground-truth for assessing detection performance in imaging data. Our results demonstrate that miniML robustly detects mEPSPs in current-clamp, and can localize corresponding transients in imaging data. Furthermore, we observed that miniML performs better than template matching and deconvolution on ASAP5 imaging data (Figure 9 and Figure 9—figure supplement 2).</p><disp-quote content-type="editor-comment"><p><bold>Reviewer 2 (Public Review):</bold></p><p>This paper presents miniML as a supervised method for the detection of spontaneous synaptic events. Recordings of such events are typically of low SNR, where state-of-the-art methods are prone to high false positive rates. Unlike current methods, training miniML requires neither prior knowledge of the kinetics of events nor the tuning of parameters/thresholds.</p><p>The proposed method comprises four convolutional networks, followed by a bi-directional LSTM and a final fully connected layer which outputs a decision event/no event per time window. A sliding window is used when applying miniML to a temporal signal, followed by an additional estimation of events’ time stamps. miniML outperforms current methods for simulated events superimposed on real data (with no events) and presents compelling results for real data across experimental paradigms and species. Strengths:</p><p>The authors present a pipeline for benchmarking based on simulated events superimposed on real data (with no events). Compared to five other state-of-the-art methods, miniML leads to the highest detection rates and is most robust to specific choices of threshold values for fast or slow kinetics. A major strength of miniML is the ability to use it for different datasets. For this purpose, the CNN part of the model is held fixed and the subsequent networks are trained to adapt to the new data. This Transfer Learning (TL) strategy reduces computation time significantly and more importantly, it allows for using a substantially smaller data set (compared to training a full model) which is crucial as training is supervised (i.e. uses labeled examples).</p><p>Weaknesses:</p><p>The authors do not indicate how the specific configuration of miniML was set, i.e. number of CNNs, units, LSTM, etc. Please provide further information regarding these design choices, whether they were based on similar models or if chosen based on performance.</p><p>The data for the benchmark system was augmented with equal amounts of segments with/without events. Data augmentation was undoubtedly crucial for successful training.</p><p>(1) Does a balanced dataset reflect the natural occurrence of events in real data? Could the authors provide more information regarding this matter?</p></disp-quote><p>In a given recording, the event frequency determines the ratio of event-containing vs. nonevent-containing data segments. Whereas many synapses have a skew towards non-events, high event frequencies as observed, e.g., in pyramidal cells or Purkinje neurons, can shift the ratio towards event-containing data.</p><p>For model training, we extracted data segments from mEPSC recordings in cerebellar granule cells, which have a low mEPSC frequency (about 0.2 Hz, Delvendahl et al. 2019). Unbalanced training data may complicate model training (Drummond and Holte 2003; Prati et al. 2009; Tyagi and Mittal 2020). We therefore decided to balance the training dataset for miniML by down-sampling the majority class (i.e., non-event segments), so that the final datasets for model training contained roughly equal amounts of events and non-events.</p><disp-quote content-type="editor-comment"><p>(2) Please provide a more detailed description of this process as it would serve users aiming to use this method for other sub-fields.</p></disp-quote><p>We thank the reviewer for raising this point. In the revised manuscript, we present a systematic analysis of the impact of imbalanced training data on model training (Figure 1—figure supplement 2). In addition, we have revised the description of model training and data augmentation in the Methods section (Methods, Training data and annotation).</p><disp-quote content-type="editor-comment"><p>The benchmarking pipeline is indeed valuable and the results are compelling. However, the authors do not provide comparative results for miniML for real data (Figures 4-8). TL does not apply to the other methods. In my opinion, presenting the performance of other methods, trained using the smaller dataset would be convincing of the modularity and applicability of the proposed approach.</p></disp-quote><p>Quantitative comparison of synaptic detection methods on real-world data is challenging because the lack of ground-truth data prevents robust, quantitative analyses. Nevertheless, we compared miniML to common template-based and finite-threshold based methods on four different types of synapses. We noted that miniML generally detects more events, whereas other methods are susceptible to false-positives (Figure 4—figure supplement 1). In addition, we analyzed the performance of miniML on voltage imaging data (Figure 9). Simultaneous recordings of electrophysiological and imaging data allowed a quantitative comparison of detection methods in this dataset. Our results demonstrate that miniML provides higher recall for optical minis recorded using ASAP5 (Figure 9 and Figure 9—figure supplement 2; F1 score, Cohen’s d 1.35 vs. template matching and 5.1 vs. deconvolution).</p><disp-quote content-type="editor-comment"><p>Impact:</p><p>Accurate detection of synaptic events is crucial for the study of neural function. miniML has a great potential to become a valuable tool for this purpose as it yields highly accurate detection rates, it is robust, and is relatively easily adaptable to different experimental setups.</p><p>Additional comments:</p><p>Line 73: the authors describe miniML as &quot;parameter-free&quot;. Indeed, miniML does not require the selection of pulse shape, rise/fall time, or tuning of a threshold value. Still, I would not call it &quot;parameter-free&quot; as there are many parameters to tune, starting with the number of CNNs, and number of units through the parameters of the NNs. A more accurate description would be that as an AI-based method, the parameters of miniML are learned via training rather than tuned by the user.</p></disp-quote><p>We agree that a deep learning model is not parameter-free, and this term may be misleading. We have therefore changed this sentence in the introduction as follows: &quot;The method is fast, robust to threshold choice, and generalizable across diverse data types [...]&quot;</p><disp-quote content-type="editor-comment"><p>Line 302: the authors describe miniML as &quot;threshold-independent&quot;. The output trace of the model has an extremely high SNR so a threshold of 0.5 typically works. Since a threshold is needed to determine the time stamps of events, I think a better description would be &quot;robust to threshold choice&quot;.</p></disp-quote><p>To detect event localizations, a peak search is performed on the model output, which uses a minimum peak height parameter (or threshold). Extreme values for this parameter do indeed have a small impact on detection performance (Figure 3J). We have changed the description in the introduction and discussion according to the reviewer’s suggestion.</p><disp-quote content-type="editor-comment"><p><bold>Reviewer 3 (Public Review):</bold></p><p>miniML as a novel supervised deep learning-based method for detecting and analyzing spontaneous synaptic events. The authors demonstrate the advantages of using their methods in comparison with previous approaches. The possibility to train the architecture on different tasks using transfer learning approaches is also an added value of the work. There are some technical aspects that would be worth clarifying in the manuscript:</p><p>(1) LSTM Layer Justification: Please provide a detailed explanation for the inclusion of the LSTM layer in the miniML architecture. What specific benefits does the LSTM layer offer in the context of synaptic event detection?</p></disp-quote><p>Our model design choice was inspired by similar approaches in the literature (Donahue et al. 2017; Islam et al. 2020; Passricha and Aggarwal 2019; Tasdelen and Sen 2021; Wang et al. 2020). Convolutional and recurrent neural networks are often combined for time-series classification problems as they allow learning spatial and temporal features, respectively. Combining the strengths of both network architectures can thus help improve the classification performance. Indeed, a CNN-LSTM architecture proved to be superior in both training accuracy and detection performance (Figure 1—figure supplement 2). Further, this architecture requires fewer free parameters than comparable model designs using fully connected layers instead. The revised manuscript shows a comparison of different model architectures (Figure 1—figure supplement 2), and we added the following description to the text (Methods, <italic>Deep learning model architecture</italic>):</p><p>&quot;The combination of convolutional and recurrent neural network layers helps to improve the classification performance for time-series data. In particular, LSTM layers allow learning temporal features.&quot;</p><disp-quote content-type="editor-comment"><p>(2) Temporal Resolution: Can you elaborate on the reasons behind the lower temporal resolution of the output? Understanding whether this is due to specific design choices in the model, data preprocessing, or post-processing will clarify the nature of this limitation and its impact on the analysis.</p></disp-quote><p>When running inference on a continuous recording, we choose to use a sliding window approach with stride. Therefore, the model output has a lower temporal resolution than the raw data, which is determined by the stride length (i.e., how many samples to advance the sliding window). While using a stride is not required, it significantly reduces inference time (cf. Figure 2—figure supplement 1). We recommend a stride of 20 samples, which does not impact the detection of events. Any subsequent quantification of events (amplitude, area, risetimes, etc.) is performed on raw data. Based on the reviewer’s comment, we have adapted the code to resample the prediction trace to the sampling rate of the original data. This maintains temporal precision and avoids confusion.</p><p>The Methods now include the following statement:</p><p>&quot;To maintain temporal precision, the prediction trace is resampled to the sampling frequency of the raw data.&quot;</p><disp-quote content-type="editor-comment"><p>(3) Architecture optimization: how was the architecture CNN+LSTM optimized in terms of a number of CNN layers and size?</p></disp-quote><p>We performed a Bayesian optimization over a defined range of hyperparameters in combination with empirical hyperparameter tuning. We now describe this in the Methods section as follows:</p><p>&quot;To optimise the model architecture, we performed a Bayesian optimisation of hyperparameters. Hyperparameter ranges were chosen for the free parameters of all layers. Optimisation was then performed with a maximum number of trials of 50. Models were evaluated using the validation dataset. Because higher number of free parameters tended to increase inference times, we then empirically tuned the chosen hyperparameter combination to achieve a trade-off between number of free parameters and accuracy.&quot;</p><disp-quote content-type="editor-comment"><p><bold>Recommendations For The Authors</bold></p><p><bold>Reviewing Editor (Recommendations For The Authors):</bold></p><p>Overall suggestions to the authors:</p><p>(1) Directly compare miniML with SimplyFire (which was not cited or discussed in the original manuscript), with both idealized and actual data. Discuss the pros/cons of each software.</p></disp-quote><p>We have conducted an extensive comparison between miniML and SimplyFire using both simulated and actual experimental data. This analysis is now presented in the revised Figure 3, Figure 3—figure supplement 1, and Figure 4—figure supplement 1. In addition, we have included relevant citations for SimplyFire in our manuscript. These additions provide a more comprehensive and balanced view of the available tools in the field, positioning our work within the broader context of existing solutions.</p><disp-quote content-type="editor-comment"><p>(2) Generate a better user interface akin to MiniAnalysis or SimplyFire.</p></disp-quote><p>We thank the editor and reviewers for the suggestion to improve the user interface. We have created a user-friendly graphical user interface (GUI) for miniML that is available on our GitHub repository. This GUI is now showcased in Figure 2—figure supplement 2 of the manuscript. The new interface allows users to load and analyze data through an intuitive point-and-click system, visualize results in real-time, and adjust parameters easily without coding knowledge. We have incorporated user feedback to refine the interface and improve user experience. These improvements significantly enhance the accessibility of miniML, making it more user-friendly for researchers with varying levels of programming expertise.</p><disp-quote content-type="editor-comment"><p><bold>Reviewer 1 (Recommendations For The Authors):</bold></p><p>Related to point (1) of the Public Review, we have taken the liberty to compare electrophysiological data using miniAnalysis, SimiplyFire, and miniML. In our comparison, we note the following in our experience:</p><p>(1.1) In contrast to both SimplyFire and miniAnalysis, miniML does not currently have a user-friendly interface where the user can directly control or change the parameters of interest, nor does miniML have a user control center, so the user cannot simply type or select the mini manually. Rather, if any parameter needs to be changed, the user needs to read, understand, and change the original source code to generate the preferred change. This level of &quot;activation energy&quot; and required user coding expertise in computer science, which many researchers do not have, renders miniML much less accessible when directly compared to SimplyFire and miniAnalysis. Hence, unless miniML’s interface can be made more user-friendly, this is a major disadvantage, especially when compared to SimplyFire, which has many of the same features as miniML but with a much easier interface and user controls.</p></disp-quote><p>As suggested by the reviewer, we have created a graphical user interface (GUI) for miniML. The GUI allows easy data loading, filtering, analysis, event inspection, and saving of results without the need for writing Python code. Figure 2—figure supplement 2 illustrates the typical workflow for event analysis with miniML using the GUI and a screenshot of the user interface. Code to use miniML via the GUI is now included in the project’s GitHub repository. The GUI provides a simple and intuitive way to analyze synaptic events, whereas running miniML as Python script allows for more customization and a high degree of automatization.</p><disp-quote content-type="editor-comment"><p>(1.2) We compared electrophysiological miniature events between miniML, SimplyFire, and miniAnalysis. All three achieved similar mean amplitudes in &quot;wild type&quot; conditions, and conditions in which mini events were enhanced and diminished, so the overall means and utilities are similar, with miniML and SimplyFire being preferred given the flexibility and much faster analysis. We did note a few differences, however. SimplyFire tends to capture a high number of mini-events over miniML, especially in conditions of diminished mini amplitude (e.g., miniML found 76 events, while SimplyFire 587). The mean amplitudes, however, were similar. It seems that in data with low SNR, SimplyFire captures many more events as real minis that are probably noise, while miniML is more selective, which might be an advantage in miniML. That being said, we found SimplyFire to be superior in many respects, not least of which the user interface and experience.</p></disp-quote><p>We appreciate the reviewer’s thorough comparison of miniML, SimplyFire, and MiniAnalysis. While we acknowledge SimplyFire’s user-friendly interface, our study highlights several advantages of AI-based event analysis over conventional algorithmic approaches. Our updated benchmark analysis revealed better detection performance of miniML compared with SimplyFire (revised Figure 3), which had similar performance to deconvolution. As already noted by the reviewer, high false positive rates are a major issue of the SimplyFire approach. Although a minimum amplitude cutoff can partially resolve this problem, detection performance is highly sensitive to threshold setting (revised Figure 3). Another apparent disadvantage of SimplyFire is its relatively slow runtime (Figure 3—figure supplement 1). Finally, we have enhanced miniML’s accessibility by providing a graphical user interface that is easy to use and provides additional functionality.</p><disp-quote content-type="editor-comment"><p>Some technical comments:</p><p>(1) Improvements to the dependence version of miniML: There is a need to clarify the dependence version of the python and tensor flow used in this study and in the GitHub. We used Python version 3.8.19 to load the miniML model. However, if Python versions &gt; = 3.9, as described on the GitHub provided, it is difficult to have a matched h5py version installed. It is also inaccurate to say using Python &gt; = 3.9, because tensor flow version for this framework needs to be around 2.13. However, if using Python &gt; = 3.10, it will only allow 2.16 version tensor flow to be the download choice. Therefore, as a Python framework, the dependency version needs to be specified on GitHub to allow researchers to access the model using the entire work.</p></disp-quote><p>Thank you for highlighting this issue. We have now included specific version numbers in the requirements to avoid version conflicts and to ensure proper functioning of the code.</p><disp-quote content-type="editor-comment"><p>(2) Due to the intrinsic characteristics of the trained model, every model is only suitable for analyzing data with similar attributes. It is hard for researchers without a strong computer science background to train a new model themselves for their specific data. Therefore, it would be preferred if there were more available transfer learning models on GitHub accessible for researchers to adapt to their data.</p></disp-quote><p>We would like to thank the reviewer for this feedback. Trained models (such as the default model) can often be used on different data (see, e.g., Figure 4, where data from four distinct synaptic preparations were analyzed with the base model, and Figure 5—figure supplement 1). However, changes in event waveform and/or noise characteristics may necessitate transfer learning to obtain optimal results with miniML. We have revised the description and tutorial for model training on the project’s GitHub repository to provide more guidance in this process. In addition, we now provide a tutorial on how to use existing models on out-of-sample data with distinct kinetics, using resampling. We hope these updates to the miniML GitHub repository will facilitate the use of the method.</p><p>Following the suggestion by the reviewer, we have provided the transfer learning models used for the manuscript on the project’s GitHub repository to increase the number of available machine learning models for event detection. In addition, users of miniML are encouraged to supply their custom models. We hope that this will facilitate model exchange between laboratories in the future.</p><disp-quote content-type="editor-comment"><p><bold>Reviewer 3:</bold></p><p>I congratulate all authors for the convincing demonstration of their methodology, I do not have additional recommendations.</p></disp-quote><p>We would like to thank the reviewer for the positive assessment of our manuscript.</p><p>References</p><p>Delvendahl, I., Kita, K., &amp; Müller, M. (2019). Rapid and sustained homeostatic control of presynaptic exocytosis at a central synapse. <italic>Proceedings of the National Academy of Sciences</italic>, <italic>116</italic>(47), 23783–23789. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1073/pnas.1909675116">https://doi.org/10.1073/pnas.1909675116</ext-link></p><p>Donahue, J., Hendricks, L. A., Rohrbach, M., Venugopalan, S., Guadarrama, S., Saenko, K., &amp; Darrell, T. (2017). Long-term recurrent convolutional networks for visual recognition and description. <italic>IEEE Transactions on Pattern Analysis and Machine Intelligence</italic>, <italic>39</italic>(4), 677–691. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/tpami.2016.2599174">https://doi.org/10.1109/tpami.2016.2599174</ext-link></p><p>Drummond, C., &amp; Holte, R. C. (2003). C4.5, class imbalance, and cost sensitivity: Why under-sampling beats over-sampling. https://api.semanticscholar.org/CorpusID:204083391</p><p>Islam, M. Z., Islam, M. M., &amp; Asraf, A. (2020). A combined deep CNN-LSTM network for the detection of novel coronavirus (COVID-19) using x-ray images. <italic>Informatics in Medicine Unlocked</italic>, <italic>20</italic>, 100412. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.imu.2020.100412">https://doi.org/10.1016/j.imu.2020.100412</ext-link></p><p>Passricha, V., &amp; Aggarwal, R. K. (2019). A hybrid of deep CNN and bidirectional LSTM for automatic speech recognition. <italic>Journal of Intelligent Systems</italic>, <italic>29</italic>(1), 1261–1274. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1515/jisys-2018-0372">https://doi.org/10.1515/jisys-2018-0372</ext-link></p><p>Prati, R. C., Batista, G. E. A. P. A., &amp; Monard, M. C. (2009). Data mining with imbalanced class distributions: Concepts and methods. Indian International Conference on Artificial Intelligence. <ext-link ext-link-type="uri" xlink:href="https://api.semanticscholar.org/CorpusID:16651273">https://api.semanticscholar.org/CorpusID:16651273</ext-link></p><p>Tasdelen, A., &amp; Sen, B. (2021). A hybrid CNN-LSTM model for pre-miRNA classification. <italic>Scientific Reports</italic>, <italic>11</italic>(1). <ext-link ext-link-type="uri" xlink:href="https://doi.org/10">https://doi.org/10</ext-link>.1038/s41598-021-93656-0</p><p>Tyagi, S., &amp; Mittal, S. (2020). Sampling approaches for imbalanced data classification problem in machine learning. In P. K. Singh, A. K. Kar, Y. Singh, M. H. Kolekar, &amp; S. Tanwar (Eds.), <italic>Proceedings of icric 2019</italic> (pp. 209–221). Springer International Publishing.</p><p>Wang, H., Zhao, J., Li, J., Tian, L., Tu, P., Cao, T., An, Y., Wang, K., &amp; Li, S. (2020). Wearable sensor-based human activity recognition using hybrid deep learning techniques. <italic>Security and Communication Networks</italic>, <italic>2020</italic>, 1–12. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1155/2020/">https://doi.org/10.1155/2020/</ext-link>2132138</p></body></sub-article></article>