Always-on neuromorphic audio processing modules and methods
Analog spiking neural networks optimize audio signal processing for low power consumption and noise robustness, addressing the power challenges in always-on audio processing, enabling efficient and real-time audio feature classification in smart devices.
Patent Information
- Application Number
- PCT/EP2024/054644
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-24
- Filing Date
- 2024-02-23
- Publication Date
- 2024-08-29
AI Technical Summary
Conventional always-on audio processing in smart devices faces challenges in power consumption, leading to information loss and latency, as they are typically battery-operated with limited energy budgets, and existing digital implementations of spiking neural networks do not fully leverage the low-power benefits of analog implementations.
An analog implementation of spiking neural networks for audio signal processing, which includes preprocessing, feature extraction, encoding, processing, and decoding, optimized for low power consumption, latency, and noise robustness, using methods like Mel frequency cepstral coefficients, wavelet transforms, and Poisson rate encoding, to achieve efficient audio feature classification.
This approach significantly reduces power consumption, enabling always-on functionality in battery-powered devices while maintaining low latency and robustness to noise, making it feasible for real-time audio processing applications like speech recognition and scene classification.
Smart Images

Figure EP2024054644_29082024_PF_FP_ABST
Abstract
Description
Always-on neuromorphic audio processing modules and methodsTECHNICAL FIELD
[0001] The presented disclosure is in the field of low-power signal processing for audio applications using spiking neural networks, implementable via embedded systems where spiking neural network accelerators are a constituent block.BACKGROUND
[0002] The ubiquity of smart devices that incorporate microphones as sensors has led to a constant push to maximize the information gained through this modality. ‘Always-on’ audio processing capabilities in smart devices allow applications such as keyword-recognition, eventrecognition, and scene-recognition without explicit triggers from a user.
[0003] The trade-off to keeping a signal processing pipeline always-on is the powerconsumption incurred and is typically the limiting factor in such applications. This is because the devices that these pipelines are targeted for are typically battery-operated, and the energy budget available for keeping a sensor pipeline always-on is rarely significant. Conventionally, implementations use a duty-cycling approach to mimic always-on behavior accepting the tradeoff in information loss and latency.
[0004] Spiking neural networks are a biologically inspired signal processing paradigm that uses spikes analogous to pulses in the nervous systems of living organisms to do computation. SNNs allow a simplified form of computation that make them suitable for low-power implementations.
[0005] While a digital implementation of an SNN would already allow low-power benefits, this may be further improved by using an analog implementation. The simplicity of the constituent elements and tuneable tolerance to noise of a spiking neural network, make them well suited for analog implementations. By design, the spiking nature of SNNs makes them robust to noise. Only if a neuron crosses the threshold, information is being passed on. A white noise floor on the other hand is unlikely to result in any spikes from a neuron. Communication in an SNN is quantized to 1 bit, i.e. the spike. This allows robustness to noise in communication channels within a processing system. This would allow the signal processing pipeline to achieve multiple orders of magnitude reduction in power consumption making always-on functionality readily feasible within available power and energy budgets.
[0006] However, a naive implementation of such a pipeline is not guaranteed to automatically provide low-power benefits offered by the spiking neural network paradigm.SUMMARY OF INVENTION
[0007] The present invention is concerned with an implementation of a pipeline which provides low-power benefits, by making full use of the spiking neural network paradigm. Careful consideration of the processing done in each block is required to ensure that design requirements are met. Depending on the specific application that is to be realized by the pipeline, optimization for latency, power, and / or robustness to noise may require different operational points. In order to solve the aforementioned problems, the subject-matter of the present claims is proposed. Below certain aspects of the invention will be described.
[0008] In a first aspect of the present invention, a method for processing an audio signal and audio feature classification using a spiking neural network is disclosed. The method may comprise one or more of the following steps: obtaining the audio signal; preprocessing the audio signal to obtain a preprocessed audio signal; performing feature extraction on the preprocessed audio signal, to obtain one or more extracted features of the audio signal; encoding the one or more extracted features into one or more spike trains; processing the extracted features using the spiking neural network, wherein an input layer of the spiking neural network receives the one or more spike trains, and an output layer of the spiking neural network generates one or more output spike trains; decoding the output spike trains from the spiking neural network to obtain a classification of the extracted features; and outputting the classification of the extracted features.
[0009] In an embodiment of the first aspect, the audio signal is an analog signal, and the preprocessing of the audio signal comprises an analog-to-digital conversion of the analog audio signal to a digital audio signal.
[0010] In an embodiment of the first aspect, the preprocessing of the audio signal comprises a normalization step, preferably the normalization is performed such that the audio signal is centered around a particular amplitude value and / or the amplitude of the audio signal is normalized to unity.
[0011] In an embodiment of the first aspect, the step of performing feature extraction on the preprocessed audio signal comprises extracting features of human speech or other audio data from the audio signal in a temporal fashion.
[0012] In an embodiment of the first aspect, the step of performing feature extraction on the preprocessed audio signal comprises performing a Mel frequency cepstral coefficients (MFCCs) method, a wavelet transform method, a scattering transform method, an autocorrelation method, a zero crossing rate (ZCR) method, a dynamic time warping (DTW) method, a short-time Fourier transform (STFT) method, a constant-Q transform method, an empirical mode decomposition (EMD) method, a phase unwrapping method, an instantaneous frequency method, a phase vocoder method, a phase correlation method, or any combination thereof, preferably the Mel frequency cepstral coefficients (MFCCs) method or the wavelet transform method is used.
[0013] In an embodiment of the first aspect, the step of performing feature extraction on the preprocessed audio signal comprises condensing the time dimension of the extracted features to a particular time length by using a running average and / or a Hann window.
[0014] In an embodiment of the first aspect, the step of performing feature extraction on the preprocessed audio signal comprises centering and / or normalizing the extracted features.
[0015] In an embodiment of the first aspect, the features are normalized per feature with respect to the respective feature’s distribution within a reference dataset, preferably a training- or validation data set such that each feature extracted from the audio signal is normalized independently with respect to its distribution within the reference dataset, preferably by determining for each feature a normalization factor using the reference dataset and / or transforming each feature’s values so that they have a similar distribution as the distribution of the reference feature in the reference dataset, more preferably wherein z-score normalization, min-max scaling, or robust scaling is used as normalization methods.
[0016] In an embodiment of the first aspect, the step of performing encoding of the one or more extracted features into one or more spike trains comprises performing rate encoding, Poisson rate encoding, time encoding, time-to-first-spike encoding, temporal contrast encoding, phase encoding, population encoding, rank order encoding, burst encoding, or combinations thereof, preferably Poisson rate encoding is used, more preferably all spikes are sampled from a single Poisson distribution which adheres to the throughput limitation which the is the maximal frequency fMAXof a spike input of the input layer of the spiking neural network, such that the inter-spike interval (ISI) of two consecutive spikes is larger or equal to 1 / M / IX-
[0017] In an embodiment of the first aspect, the spiking neural network has as many input nodes as there are types of extracted features that need to be classified and / or the spiking neural network is a two-layer feedforward spiking neural network with no recurrent connections.
[0018] In an embodiment of the first aspect, the step of decoding the output layer of the spiking neural network is performed using max-rate decoding, decoding using the highest membrane potential and / or decoding using the time-to-first-spike.
[0019] In a second aspect of the present invention, a system for audio processing and audio feature classification of an audio signal is disclosed. The system may comprise any of the following: a preprocessing module configured to perform preprocessing on the audio signal, to obtain a preprocessed audio signal; a feature extractor module configured to perform feature extraction on the preprocessed audio signal, to obtain one or more extracted features of the audio signal; a feature encoder module configured to perform encoding of the one or more extracted features into one or more input spike trains; a spiking neural network, comprising neurons implemented in hardware, wherein the spiking neural network comprises an input layer which receives the one or more input spike trains and an output layer which outputs one or more output spike trains; and a decoder module, configured to decode the one or more output spike trains outputted by the output layer of the spiking neural network to obtain a classification of the extracted features.
[0020] In an embodiment of the second aspect, the audio signal is an analog signal, and the preprocessing module comprises an analog-to-digital converter which is configured to convert the analog audio signal to a digital audio signal.
[0021] In an embodiment of the second aspect, the preprocessing module is configured to perform a normalization of the audio signal, preferably normalization is performed such that the audio signal is centered around a particular amplitude value and / or the amplitude of the audio signal is normalized to unity.
[0022] In an embodiment of the second aspect, the feature extractor module is configured to extract features of human speech or other audio data from the audio signal in a temporal fashion.
[0023] In an embodiment of the second aspect, the feature extractor module is configured to perform a Mel frequency cepstral coefficients (MFCCs) method, a wavelet transform method, a scattering transform method, an autocorrelation method, a zero crossing rate (ZCR) method, a dynamic time warping (DTW) method, a short-time Fourier transform (STFT) method, a constant-Q transform method, an empirical mode decomposition (EMD) method, a phaseunwrapping method, an instantaneous frequency method, a phase vocoder method, a phase correlation method, or any combination thereof, preferably the Mel frequency cepstral coefficients (MFCCs) method or the wavelet transform method is used.
[0024] In an embodiment of the second aspect, the feature extractor module is configured to condense the time dimension of the extracted features to a particular time length by using a running average and / or a Hann window.
[0025] In an embodiment of the second aspect, the feature extractor module is configured to center and / or normalize the extracted features.
[0026] In an embodiment of the second aspect, the features are normalized per feature with respect to the respective feature’s distribution within a reference dataset, preferably a training- or validation data set such that each feature extracted from the audio signal is normalized independently with respect to its distribution within the reference dataset, preferably by determining for each feature a normalization factor using the reference dataset and / or transforming each feature's values so that they have a similar distribution as the distribution of the reference feature in the reference dataset, more preferably wherein z-score normalization, min-max scaling, or robust scaling is used as normalization methods.
[0027] In an embodiment of the second aspect, the feature encoder module is configured to perform rate encoding, Poisson rate encoding, time encoding, time-to-first-spike encoding, temporal contrast encoding, phase encoding, population encoding, rank order encoding, burst encoding, or combinations thereof, preferably Poisson rate encoding is used, more preferably all spikes are sampled from a single Poisson distribution which adheres to the throughput limitation which the is the maximal frequency fMAXof a spike input of the input layer of the spiking neural network, such that the inter-spike interval (ISI) of two consecutive spikes is larger or equal to 1 / f MAX-
[0028] In an embodiment of the second aspect, the spiking neural network has as many input nodes as there are types of extracted features that need to be classified and / or the spiking neural network is a two-layer feedforward spiking neural network with no recurrent connections.
[0029] In an embodiment of the second aspect, the decoder module is configured to use maxrate decoding, decoding using the highest membrane potential and / or decoding using the time- to-first-spike.BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Embodiments will now be described, by way of example only, with reference to the accompanying drawings in which corresponding reference symbols indicate corresponding parts, and in which:
[0031] FIG. 1 schematically shows a typical top-level signal path for a sensor pipeline;
[0032] FIG. 2 schematically shows a sensor pipeline used in keyword recognition and scene classification, according to the present invention;
[0033] FIG. 3 schematically shows a detailed sensor pipeline, with the required processing method steps, according to the present invention.DESCRIPTION OF EMBODIMENTS
[0034] Hereinafter, certain embodiments will be described in further detail. It should be appreciated, however, that these embodiments should not be construed as limiting the scope of protection for the present disclosure.
[0035] Typical embodiments of the presented methods in the domain of audio signal processing are presented. First, the invention is described in terms of keyword recognition and acoustic scene classification.
[0036] Keyword recognition refers to the identification of a spoken word sensed through a microphone. Examples may include spoken digits or specific commands or trigger words.
[0037] Acoustic scene classification refers to the identification of the nature of the environment in which the sound input to the microphone is produced, typically from environments with a characteristic audio signature. Examples may include street traffic, train / bus stations and carriages, cafes, et cetera.
[0038] Keyword recognition and acoustic scene classification are typical examples of acoustic feature extraction and classification that may serve as end-to-end applications on their own, or act as sub-processes within a larger signal chain where the identification of the keyword / scene is used to tune parameters of the processing pipeline. For example, a noise cancellation system where recognition of a scene activates a specific set of filters. Or a keyword that triggers a microphone to localize the speaker that said the keyword and focus (do sourceseparation) on their voice.
[0039] An example of a sensor pipeline according to the invention is shown in FIG. 1 and can start from an analog / digital microphone 1 (there can be multiple, as shown) interfaced with a pre-processing module 3 which would allow a tuneable amount of signal conditioning orpreprocessing on the audio signal. There may be a ‘triggering’ module 2 that sits immediately after the microphone. The triggering module may be composed of voice-activity detectors (VAD) and / or other thresholding logic. The pre-processing module 3 may comprise an analog signal conditioning module 3A and / or a digital pre-processing module 3B, for example depending on whether an analog or digital sensor (e.g., microphone) is used.
[0040] The pre-processed signal can be interfaced with a ‘spiking’ module 4 that is composed of two or more sub-modules. The spike encoding sub-module 4B could convert the real valued input signals to the spiking domain while the second submodule 4C would implement a neural network for the defined task, such as classification. For example, the submodule 4C could be a spiking neural network, which performs feature extraction and classification. The output of the spiking module would be interfaced to a final decoder module which would convert spiking output to real values or other formats (e.g. binary interrupts) for downstream processing. The spiking module may contain submodules 4A for conventional digital signal processing (DSP) prior to conversion from the real domain to the spiking domain, performing MFCC and / or a convolutional neural network (CNN). A single submodule may be designed to do spike encoding and feature extraction simultaneously.
[0041] SNNs operate on an event-driven paradigm, meaning they only perform computations when input spikes are received. This contrasts with traditional neural networks, which typically perform computations continuously, even in the absence of new input. In audio processing applications, where input signals often contain periods of silence or low activity, the event- driven nature of SNNs allows for significant energy savings by minimizing unnecessary computations during idle periods.
[0042] Because SNNs only consume power when processing input spikes, they can achieve much lower power consumption compared to traditional neural networks, especially in applications with intermittent or sporadic input. This reduced power consumption is particularly advantageous in battery-powered devices or energy-constrained environments, where minimizing energy usage is critical for extending battery life or reducing operational costs.
[0043] Spiking neural networks naturally represent information using sparse spike trains, where only a small fraction of neurons are active at any given time. In audio processing tasks, where input signals often exhibit sparsity (e.g., during periods of silence or low activity), the sparse representation of SNNs allows for efficient utilization of computational resources, as only active neurons need to be processed.
[0044] The event-driven nature of SNNs enables real-time processing of audio signals, where computations are performed as input spikes are received. This real-time capability is beneficial for applications such as speech recognition, audio classification, and sound localization, where low-latency processing is required for timely response and interaction with the environment.
[0045] A Spiking Neural Network (SNN) implemented in hardware consists of interconnected neurons, synapses, and presynaptic elements designed to mimic the behavior of biological neural networks. Here's a breakdown of each component:
[0046] Neurons are the basic computational units of a spiking neural network. In hardware implementations, neurons are typically represented as electronic circuits or components that emulate the behavior of biological neurons. Each neuron receives input signals from other neurons or external sources through synapses, integrates these inputs over time, and generates output spikes (action potentials) based on its internal state and activation function.
[0047] Synapses are the connections between neurons, through which signals (spikes) are transmitted from presynaptic neurons to postsynaptic neurons. In hardware implementations, synapses are often implemented using analog or digital circuits that modulate the strength of connections between neurons. Synapses may incorporate features such as synaptic weights (to adjust the strength of connections), synaptic delays (to introduce temporal dynamics), and plasticity mechanisms (to enable learning and adaptation).
[0048] Presynaptic elements are components associated with the presynaptic neuron that influence the transmission of signals across synapses. In hardware implementations, presynaptic elements may include circuitry for generating and shaping presynaptic signals, controlling the timing and amplitude of synaptic transmission, and implementing spike-timing- dependent plasticity (STDP) rules for synaptic learning.
[0049] An integrate-and-fire neuron integrates input spikes over time and generates an output spike when the membrane potential exceeds a certain threshold. A simple integrate-and-fire neuron circuit can be implemented using an operational amplifier (op-amp) configured as an integrator. Input spikes are converted to current pulses, which are integrated over time by a capacitor. When the voltage across the capacitor reaches a threshold, a comparator triggers the generation of an output spike.
[0050] The leaky integrate-and-fire neuron model extends the integrate-and-fire model by incorporating a leakage mechanism that gradually reduces the membrane potential over time. A leaky integrate-and-fire neuron circuit can be implemented by adding a resistor in parallelwith the capacitor in the integrate-and-fire circuit. The resistor allows leakage of charge, causing the membrane potential to decay over time in the absence of input spikes.
[0051] Biological neurons exhibit a refractory period after firing a spike, during which they are temporarily insensitive to incoming signals. A spiking neuron circuit with a refractory period can be implemented using additional circuitry to introduce a refractory period after each spike. This can be achieved using a reset mechanism that temporarily disables spike generation immediately after an output spike.
[0052] In some neuron models, such as adaptive threshold neurons, the spike threshold dynamically adjusts based on the recent history of input spikes. An adaptive threshold neuron circuit can be implemented using feedback mechanisms to adjust the threshold voltage based on the recent activity of the neuron. This can involve integrating input spike counts over time and modulating the threshold voltage accordingly.
[0053] To implement synapses, one common approach is to use analog circuits to store synaptic weights. Each synapse in the network is associated with an analog storage element, such as a capacitor or a transistor-based analog memory cell. The analog storage element stores the synaptic weight, which represents the strength of the connection between two neurons. The weight can be adjusted by controlling the charge stored in the analog element. Alternatively, synaptic weights can be stored digitally using digital memory elements, such as registers or memory arrays. Each synapse is associated with a digital register or memory cell that stores the synaptic weight as a digital value. Digital weight storage allows for more precise control over synaptic weights and facilitates digital signal processing techniques for weight updates and modifications.
[0054] In order to apply synaptic weights to incoming spikes, multiplication circuitry is used to scale the amplitude of input spikes by the corresponding synaptic weights. Analog multiplier circuits or digital multiplier circuits can be employed to perform the multiplication operation between the input spike amplitude and the synaptic weight.
[0055] After applying synaptic weights to incoming spikes, the scaled signals are summed together to produce the total input current or voltage to the postsynaptic neuron. Summation circuitry, such as an operational amplifier configured as a summing amplifier, can be used to add up the contributions from all incoming synapses to compute the total input to the neuron.
[0056] FIG. 2 schematically shows a sensor pipeline 100 used in keyword recognition and scene classification, according to the present invention.
[0057] The sensor pipeline 100 comprises a microphone 101, which provides an audio waveform of an environment. This audio waveform can be amplified by an amplifier 102 if necessary. Next, the (amplified) audio waveform is converted into a digital signal by the analog-to-digital convertor (ADC) 103. Alternatively, the microphone is a digital microphone which outputs a digital signal.
[0058] The key information of acoustic waveforms can be found in the temporal evolution of the frequency spectrum. One can choose between multiple well-established methods, implemented in a spectro-temporal feature extractor 104 to obtain this information from the converted digital signal. The herein described invention is not restricted to the presented methods that the spectro-temporal feature extractor 104 performs. These methods comprise mel-frequency cepstral coefficients and wavelet transforms, but other methods are also described further below.
[0059] After the initial audio feature extraction one can pick from several methods to translate the spectro-temporal features into the spiking domain using a spike encoder 105. Depending on the characteristics of the encoding used by the spike encoder 105, one picks an adequate spiking neural network topology for the spiking neural network 106. Preferably, the spiking neural network topology is at least two layers deep to ensure sufficient resources for the computational complexity of the application. See Goodfellow, Ian, Yoshua Bengio, and Aaron Courville. Deep learning. MIT press, 2016.
[0060] As an example, a single or multi-layer feedforward SNN show good progress for e.g. keyword spotting applications with only 2-3 hidden layers (speech2spikes). Other popular choices are recurrent networks with a few hidden layers (1-3). The amount of neurons per layer can be in the order of hundreds. For recurrent networks this number is typically lower.
[0061] An example could a feedforward SNN with 2-3x hidden layers, with 64 MFCCs being encoded 128 spike channels, the spike trains of which go into 2-3x layers of 128 hidden neurons each and are being classified by a 10 neuron classifier output layer. Really deep SNNs are not yet widely used as the training becomes increasingly difficult of these networks, however it is possible to use them with extensive training.
[0062] In particular for low activity encoding schemes such as time to first spike (TTFS), or for tasks that require retention of features over long timescales, one may use an additional recurrent structure. A recurrent structure can for example be a loop or any layer that is connected to itself or to a previous layer.
[0063] In the decoding stage, performed by a spike decoder 107, one may look for the neuron that has the highest spike rate. There are multiple decoding schemes that may be employed by the spike decoder 107, and the pipeline is not restricted to the proposed one which is cumulatively counting the number of spikes per interval over the whole sampling period (also called max-rate decoding). Other methods can be used instead or in addition, which may involve the spike decoder 107 analysing the evolution of the membrane potential, the time difference between two consecutive output spikes and / or the time difference between a reference point and an output spike.
[0064] The highest spike rate method involves identifying the neuron with the highest spike rate, i.e., the neuron that fires the most frequently within a given time period. By focusing on the neuron with the highest spike rate, one can prioritize decoding its activity as it likely represents the most active or relevant neuron in the population being studied. This can simplify decoding efforts by focusing computational resources on the most informative signals. While the highest spike rate itself doesn't directly provide information for classifying different types of neuronal activity, it serves as a valuable starting point for further analysis. Once the neuron with the highest spike rate is identified, additional decoding and classification methods, such as those involving membrane potential dynamics or spike timing, can be applied to characterize the nature of its activity.
[0065] Analyzing the evolution of the membrane potential involves monitoring the changes in voltage across the neuron's membrane over time. By observing how the membrane potential fluctuates, one can infer the underlying neuronal activity. For spike decoding, changes in membrane potential can indicate the likelihood of a neuron firing. Different patterns of membrane potential dynamics may correspond to different types of neuronal activity. Different types of neuronal activity may exhibit characteristic patterns in membrane potential evolution. By training a classifier on labeled data, one can identify and classify different types of neuronal events based on their membrane potential dynamics. For example, certain patterns might indicate the firing of action potentials, while others might suggest synaptic input or network oscillations.
[0066] Time difference between two consecutive output spikes focuses on the timing of spike emissions from the neuron. By measuring the interval between consecutive spikes, one can infer the firing rate and regularity of the neuron. For spike decoding, analyzing inter-spike intervals can help identify firing patterns and distinguish between different types of neuronal activity. The distribution of inter-spike intervals can provide information about the underlyingneuronal processes. For example, regular firing with consistent intervals might indicate a rhythmic pattern, while irregular intervals could suggest stochastic firing or response to varying inputs.
[0067] Time difference between a reference point and an output spike involves measuring the time elapsed between a specific reference event and when a neuron emits a spike. The reference event could be the onset of a stimulus, the beginning of a trial, or any other defined event. For spike decoding, analyzing the timing of spike emissions relative to reference events can provide insights into the temporal dynamics of neuronal responses. By comparing spike times to reference events, one can classify neuronal responses based on their temporal relationship to external stimuli or other neural activity. For example, neurons might exhibit different response profiles depending on whether they fire before, during, or after a stimulus presentation.
[0068] FIG. 3 schematically shows a detailed sensor pipeline, with the required processing method steps, according to the present invention.
[0069] In general, this embodiment for example discloses a method for processing an audio signal and audio feature classification using a spiking neural network. After obtaining the audio signal, preprocessing of the audio signal is performed to obtain a preprocessed audio signal. Next, feature extraction is performed on the preprocessed audio signal, to obtain one or more extracted features of the audio signal. The one or more extracted features are encoded into one or more spike trains. Next, the extracted features are processed using the spiking neural network, wherein an input layer of the spiking neural network receives the one or more spike trains, and an output layer of the spiking neural network generates one or more output spike trains. Finally, the output spike trains from the spiking neural network are decoded to obtain a classification of the extracted features and the classification of the extracted features can be outputted.
[0070] Such a method can be implemented in a system for audio processing and audio feature classification of an audio signal. For example, such a system may comprise a preprocessing module configured to perform preprocessing on the audio signal, to obtain a preprocessed audio signal. Furthermore, the system may comprise a feature extractor module configured to perform feature extraction on the preprocessed audio signal, to obtain one or more extracted features of the audio signal. Also, the system may comprise a feature encoder module configured to perform encoding of the one or more extracted features into one or more input spike trains. Importantly, the system comprises a spiking neural network, comprising neurons implemented in hardware, wherein the spiking neural network comprises an input layer whichreceives the one or more input spike trains and an output layer which outputs one or more output spike trains. Finally, the system may comprise a decoder module, configured to decode the one or more output spike trains outputted by the output layer of the spiking neural network to obtain a classification of the extracted features. The system can be arranged to perform the method steps of this invention. Some of these constituents of the system may be the same module.
[0071] In the first processing stage 201 of the proposed pipeline the (live) output of a microphone is being recorded in chunks of length TSampie. The result is a recorded audio keyword / scene waveform, the audio waveform comprising keywords and / or the scene.
[0072] In the second processing stage 202, an analog-to-digital conversion module digitizes the recordings at the sampling rate fSR.
[0073] In the third processing stage 203, normalization is performed. For example, the signal may be centered and normalized the signal to unity.
[0074] The first, second and third processing stage 201-203 can be seen as audio preprocessing 210, which may be performed by one or multiple modules or devices. For example by the preprocessing module. For example, the one or more microphones 101, the amplifier 102 and / or the analog-to-digital convertor 103 of FIG. 2.
[0075] Next, the pre-processed audio is passed onto a spectro-temporal feature extraction 211, which may comprise fourth, fifth and sixth processing stage 204-206. These steps may be performed by the feature extraction module.
[0076] In the fourth processing stage 204, key features of human speech or other audio data (REF) can be extracted in a temporal fashion, for example by the spectro-temporal feature extractor 104 of FIG. 2. For example, Mel frequency cepstral coefficients (MFCCs) and the wavelet transform are well established methods to extract key features of human speech or other audio data (REF).
[0077] The mel-frequency cepstrum (MFC) is a representation of the short-term power spectrum of a sound, based on a linear cosine transform of a log power spectrum on a nonlinear mel scale of frequency. Mel-frequency cepstral coefficients (MFCCs) are coefficients that collectively make up an MFC. They are derived from a type of cepstral representation of the audio clip (a nonlinear "spectrum-of-a-spectrum"). The difference between the cepstrum and the mel-frequency cepstrum is that in the MFC, the frequency bands are equally spaced on the mel scale, which approximates the human auditory system's response more closely than the linearly-spaced frequency bands used in the normal spectrum.
[0078] MFCCs are commonly derived as follows (although slight deviations are known). (1) Take the Fourier transform of (a windowed excerpt of) a signal. (2) Map the powers of the spectrum obtained above onto the mel scale, using triangular overlapping windows or alternatively, cosine overlapping windows. (3) Take the logs of the powers at each of the mel frequencies. (4) Take the discrete cosine transform of the list of mel log powers, as if it were a signal. (5) The MFCCs are the amplitudes of the resulting spectrum.
[0079] One of the primary advantages of the wavelet transform is its ability to provide both time and frequency localization. Unlike the Fourier transform, which provides frequency information but does not capture temporal variations, the wavelet transform can analyze signals at different resolutions in both time and frequency domains. This makes it suitable for capturing rapid changes in speech signals, such as formant transitions and transient sounds.
[0080] Wavelet coefficients obtained from the transform can serve as features for characterizing speech signals. These coefficients represent the signal's energy at different timefrequency scales, capturing both global and local characteristics of the signal. By selecting appropriate wavelet basis functions and decomposition levels, relevant features related to speech characteristics such as pitch, formants, and prosody can be extracted.
[0081] The wavelet transform can also be used for noise reduction and denoising in speech signals. By decomposing the signal into different frequency bands at varying resolutions, noise components can be isolated and removed or attenuated, while preserving important speech features. This is particularly useful in enhancing speech quality in noisy environments or during transmission over noisy channels.
[0082] The first step (1) is to select an appropriate wavelet function. Different wavelets have different properties, such as frequency localization, time localization, and smoothness. Common wavelets include Daubechies, Haar, Morlet, and Mexican Hat. The choice of wavelet depends on the specific characteristics of the signal being analyzed and the desired properties of the transform.
[0083] Once a wavelet function is chosen, the next step (2) is to decompose the signal into its wavelet coefficients. This involves convolving the signal with the scaled and translated versions of the chosen wavelet function. The convolution is performed at multiple scales and positions to capture information at different frequencies and time points.
[0084] After convolving the signal with the wavelet function, the resulting coefficients are typically downsampled to reduce redundancy and computational complexity. This step (3)involves selecting a subset of coefficients at each scale to retain the most relevant information while discarding redundant details.
[0085] Steps 2 and 3 are repeated iteratively to achieve multi-resolution analysis. Each iteration of the decomposition process captures information at different levels of detail, with higher levels corresponding to lower frequencies and coarser time scales, and lower levels corresponding to higher frequencies and finer time scales.
[0086] After the signal has been decomposed into wavelet coefficients, it can be reconstructed by applying the inverse wavelet transform. This process involves upsampling and filtering the wavelet coefficients to reconstruct the original signal. The reconstructed signal may be an approximation of the original signal depending on the number of decomposition levels used.
[0087] Once the wavelet transform is performed, the resulting wavelet coefficients can be used for various purposes such as feature extraction, denoising, compression, and visualization. Depending on the application, different features may be extracted from the wavelet coefficients to characterize the signal's time-frequency properties.
[0088] It's important to note that there are different implementations and variations of the wavelet transform, including discrete wavelet transform (DWT), continuous wavelet transform (CWT), and wavelet packet transform (WPT), each with its own specific algorithms and properties.
[0089] The scattering transform is an extension of the wavelet transform that enhances its properties for signal analysis. The scattering transform builds upon the wavelet transform by incorporating additional layers of processing to improve its stability, invariance, and discriminative power.
[0090] A scattering transform adds further layers of wavelet convolutions and modulus operations to the traditional wavelet decomposition process. These additional layers serve several purposes.
[0091] First of all, the scattering transform improves the stability of the wavelet transform by computing the modulus of the wavelet coefficients at each layer. This helps to suppress noise and small-scale variations in the signal, making the representation more robust and stable to deformations and perturbations. Like the wavelet transform, the scattering transform retains the translation-invariant property, meaning it is robust to shifts or translations in the input signal. This property is crucial for analyzing signals with temporal variations, such as audio signals like speech or music. The scattering transform provides a hierarchical representation of the input signal, capturing information at multiple scales and resolutions. Each layer of thescattering transform extracts increasingly abstract and complex features from the input signal, similar to the layers of a deep neural network. The features extracted by the scattering transform are designed to be interpretable and meaningful. They capture essential characteristics of the input signal, such as its frequency content, amplitude modulation, and phase information, which can be useful for various signal processing tasks.
[0092] In order to perform a scattering transform, the following steps can be performed. First, the input signal is pre-processed (1) as necessary. This may involve normalization, filtering, or other preprocessing steps depending on the specific characteristics of the signal and the requirements of the analysis.
[0093] The input signal is convolved with wavelet functions at different scales and translations. This step (2) involves decomposing the signal into its wavelet coefficients, capturing information at multiple scales and positions. The wavelet coefficients obtained from the previous step are typically subjected to a modulus operation. This operation (3) calculates the magnitude or absolute value of the complex -valued wavelet coefficients, resulting in a representation that is invariant to phase shifts.
[0094] The modulus coefficients are often down sampled (4) to reduce redundancy and computational complexity. This involves selecting a subset of coefficients at each scale to retain the most relevant information while discarding redundant details.
[0095] Steps 2 through 4 are repeated iteratively to achieve multi-resolution analysis. Each iteration captures information at different levels of detail, with higher levels corresponding to lower frequencies and coarser time scales, and lower levels corresponding to higher frequencies and finer time scales.
[0096] At each level of the scattering transform, statistics such as mean, variance, or higher- order moments may be computed across the coefficients. These statistics provide information about the distribution of energy or amplitude at each scale and position.
[0097] The final step involves extracting features from the scattering coefficients and aggregate statistics. These features may be used for various signal processing tasks, such as classification, clustering, denoising, or compression. The choice of features depends on the specific requirements and objectives of the analysis.
[0098] In Table 1 relevant exemplary settings and number of extracted features (npeatures) of these two methods are listed. The configuration may differ depending on the microphone, dataset distributions, efficiency requirements, et cetera.Table 1
[0099] Here fSRis the sampling rate at which the analog-to-digital conversion module digitizes the recordings, nFeaturesis the number of extracted features obtained by the application of each method, nFTTis the length of the FTT window applied by the MFCC method, hop length is the number of samples between successive frames applied by the MFCC method, J is the maximum log scale of the scattering transform (in other words, the maximum scale is given by 2J) applied by the wavelet method, Q is the number of wavelets applied by the wavelet method and Omaxis the maximum order of scattering coefficients to compute applied by the wavelet method.
[0100] The scale of the scattering transform refers to the level or resolution at which features are analyzed in the input signal. The scale is determined by the parameters of the wavelet transform, including the choice of wavelet function and the number of decomposition levels. Each level of decomposition captures information at a different scale or resolution, with higher levels corresponding to lower frequencies and coarser time scales, and lower levels corresponding to higher frequencies and finer time scales. For example, in the wavelet decomposition of an audio signal, the lowest level may capture low-frequency components such as the overall pitch or rhythm of the signal, while higher levels may capture higher- frequency components such as harmonics or transient sounds.
[0101] For both MFCC and wavelet transform methods, the sampling rate fSRcan be for example 8000, 8192 or 22500. For MFCC, the number of Mel -frequency cepstral coefficients can be for example 40. For the wavelet transform method, by default Q can be the number of wavelets per octave.
[0102] Apart from the MFCC and wavelet transform methods described above, other feature extraction methods can be applied alternatively or in addition. These methods can be dividedinto methods that are performed e.g., in the time domain, the time-frequency domain and the phase domain.
[0103] In the time domain, autocorrelation, zero crossing rate (ZCR) and / or dynamic time warping (DTW) can for example be employed.
[0104] Autocorrelation measures the similarity of a signal with a delayed version of itself over varying time lags. It can be used to identify periodicity or the fundamental frequency of a signal, which is especially useful in pitch detection.
[0105] Zero Crossing Rate (ZCR) measures the rate at which the signal changes its sign (from positive to negative and vice versa). ZCR is often used to distinguish voiced from unvoiced speech and can also be indicative of the pitch and timbre of sounds.
[0106] Dynamic Time Warping (DTW) is a method for measuring similarity between two temporal sequences, which may vary in speed. For audio, it can be used to compare different performances of the same piece of music or to align and compare speech patterns. DTW is particularly useful in applications requiring temporal alignment, such as automatic music transcription and speaker verification.
[0107] In the time-frequency domain, short-time Fourier transform (STFT), constant-Q transform and / or empirical mode decomposition (EMD) can for example be employed.
[0108] STFT is a fundamental tool in audio signal processing, allowing for the analysis of frequency components of a signal over time. By dividing the signal into short frames and applying the Fourier transform to each frame, the STFT produces a time-frequency representation of the signal.
[0109] Unlike STFT, which has a constant resolution across frequencies, the CQT provides a geometrically spaced frequency resolution. This means that CQT offers finer frequency resolution at lower frequencies and coarser resolution at higher frequencies, like the human auditory system's resolution. The CQT is particularly useful for music analysis as it aligns well with the musical scales.
[0110] EMD decomposes a signal into a set of intrinsic mode functions (IMFs) based on the local time scales of the signal. This method is highly adaptive and can be used to extract features related to the different oscillatory modes present in complex audio signals, and they tend to work better than basic Fourier methods where there are transient features.
[0111] In the phase domain, phase unwrapping, instantaneous frequency, phase vocoder and / or phase correlation can for example be employed.
[0112] Phase unwrapping addresses the issue of phase discontinuities in the frequency domain representation of a signal. Detecting discontinuities can be informative for identifying events within an audio signal, such as certain patterns in music or speech segments in streams.
[0113] Instantaneous Frequency provides from the phase of the analytic signal (obtained via the Hilbert transform), a fine-grained view of how the frequency content of a signal changes over time.
[0114] The phase vocoder is a technique for time-stretching and pitch-shifting audio signals without altering their harmonic content. It works by analysing the phase difference between successive frames of the signal to accurately track frequency components over time, allowing for accurate analysis of sound “texture” and timbre.
[0115] Phase correlation can be used for measuring the similarity and time offset between two signals, and relies on the phase difference between their spectra. This method is particularly effective for detection of echo or reverberation characteristics. It can also be used for localization of audio sources.
[0116] The resulting features not only can have a dimension of nFeaturesbut can also come with a time dimension which can further be condensed into a few steps nTimestepsof length At (for example 30ms < At < TSampie) by using a running average or a Hann window. This is the time framing step 205.
[0117] Next, the features can be put into logarithmic scale before being centered and rescaled in two steps during the feature scaling step 206.
[0118] First, the features can be normalized per feature with respect to the respective feature’ s distribution within a reference dataset, this can for example be a training or validation data set. The reference dataset plays a crucial role in the processing chain and consists of a representative amount of audio recordings which mirror the target microphone’s characteristics, such as the frequency response of the microphone or the audio response of the microphone. Each feature extracted from the audio signal can be normalized independently with respect to its distribution within the reference dataset. This means that for each feature, the values across the reference dataset are used to determine a normalization factor. The normalization process typically involves transforming each feature's values so that they have a similar statistical distribution across the reference dataset. This ensures that features extracted from different audio recordings are on a comparable scale, regardless of variations in recording conditions or microphone characteristics. Various techniques can be used for normalization, such as z-score normalization (subtracting the mean and dividing by the standard deviation),min-max scaling (scaling the values to a specified range), or robust scaling (scaling by subtracting the median and dividing by the interquartile range). The choice of normalization technique depends on the specific requirements of the application and the characteristics of the features and reference dataset. Normalizing features with respect to a reference dataset helps to mitigate the effects of variability in recording conditions or microphone characteristics. It ensures that features are comparable across different audio recordings, making them more suitable for downstream tasks such as classification, regression, or clustering.
[0119] After being normalized with respect to the reference recordings, the range of the features corresponding to a chunk of length TSampieis brought back to [0, 1] using for example min-max scaling.
[0120] Next, the spike-based processing is performed in steps 207-209 of the method. These steps can for example be performed by the feature encoder module, spiking neural network and decoder module.
[0121] In encoding step 207 the numerical features are encoded into spikes. A popular encoding choice is (Poisson) rate coding where the feature values are mapped to Poisson spike trains at corresponding rates f feature within [flow fhigh (for example determined by the hardware restrictions present).
[0122] In rate coding one tries to map a range of values (lets say normalized to [0,1]) to a feature frequency ffeature- The most basic form is to do ffeature(x) = flow + * (fhigh ~ flow)- So, for example for ftow= 20 Hz and fhigh= 100 Hz one will get / / eature(^) = 20 + x * (100 — 20) = 20 + x * 80.
[0123] The more distance one can create between fustance=fhigh ~ flow, the better the resolution will be. On the other hand, one may encounter problems with too low frequencies and therefore decide to not go below 10 Hz for example. On the other hand, one may experience throughput limitation if fhtghis set too high. One should optimize for the highest resolution fdistance while not violating any boundary conditions (throughput) or causing boundary artifacts (too low / high frequencies). As with other parameters, these parameters are subject to the hyper-parameter tuning (e.g. grid-search).
[0124] The encoding can thus be for example hardware-aware Poisson spike encoding. Poisson spike trains are a type of stochastic process commonly used to model the activity of neurons. The timing of neuron spikes can be modelled using a Poisson process. A Poisson process is a mathematical model for a sequence of random events that occur with a constantrate and are independent of each other. In the context of spike trains, the Poisson process is used to describe the probability distribution of the timing of neuronal spikes.
[0125] In a Poisson spike train, the spikes occur at a constant average rate over time. This rate is often denoted by the symbol . The probability of observing a spike in a small time interval is approximately At whenis small. The occurrence of spikes is independent of each other. The timing of one spike does not influence the timing of the next spike. The Poisson process has the memorylessness property, meaning that the time until the next spike is independent of the past. In other words, the probability distribution of the inter-spike intervals is exponential. Mathematically, if A(t) is the number of spikes up to time t, then a Poisson spike train can be characterized by the following probability distribution: P(N(t + t) — A(t) = ri) =where is the average spike rate, At is the time interval, A(t) is the number of spikes up to time t and n is the number of spikes occurring in the interval.
[0126] In order to generate a hardware-friendly spike train, all spikes are sampled from a single Poisson distribution which already adheres to the throughput limitation fMAXof the hardware’s spike input, i.e., the inter-spike interval (ISI) of two consecutive spikes is larger or equal to ^I^M X- The subsampling can be realized using a weighted distribution for the target identity of the next spike which corresponds to the desired rate of each feature. A spike can have a spike time and an address / identity, which corresponds to the node or neuron it is coming from. In that way, the throughput limitation of the serial spike input is not violated while at the same time the Poisson nature of each input spike train is maintained. It naturally follows that the cumulative input rate of all features ftotai=S f feature cannot be larger than fMAX.
[0127] Other methods such as time-to-first-spikes, phase coding, et cetera, can be used instead. Some examples of different encoding methods are given below.
[0128] Rate Encoding (of which Poisson rate coding is an example) encodes the amplitude of the signal as the firing rate of the spikes. In this method, higher amplitudes in the analog signal result in higher spike rates, and lower amplitudes result in lower spike rates. I.e., it directly correlates the intensity of the signal with the frequency of spiking. However, it may not efficiently capture the temporal dynamics of the signal since the timing between spikes is not directly related to the signal's time-varying properties.
[0129] Time Encoding (or Temporal Encoding) uses the timing between spikes to represent information. One common approach within this category is Time-to-First-Spike (TTFS) encoding, where the time until the first spike after a stimulus onset encodes the signal'samplitude. Another is Temporal contrast encoding, where the change in the signal from a predetermined anchor-point is calculated. This method can be highly efficient in terms of spike usage and can capture rapid changes in the signal, but it requires precise timing mechanisms.
[0130] Phase Encoding captures the phase information of a signal in the timing of spikes. This method is particularly useful for encoding oscillatory signals, where the phase carries significant information. By aligning the spikes with specific phases of the signal, phase encoding can efficiently represent both the amplitude and phase of oscillatory inputs.
[0131] Population Encoding involves representing the signal using the activity of a group of neurons, where each neuron has a different sensitivity (or receptive field). The collective spiking activity across this neuron population can encode complex patterns and values from the analog signal. This method can achieve high precision and robustness to noise, as it does not rely on the activity of a single neuron but rather the pattern of activity across many neurons. Variants such as population step-forward and population-rate exist.
[0132] Rank Order Coding encodes information based on the order in which neurons fire, rather than the exact timing or rate of their spikes. The first neuron to fire carries the most significant piece of information, with subsequent neurons providing progressively less critical details. This encoding method emphasizes the importance of the sequence in which information is processed.
[0133] Finally, Burst Encoding utilizes the concept of bursts of spikes to represent information. A burst can encode different signal properties, such as amplitude or frequency, based on the number of spikes in the burst, the duration of the burst, or the inter-spike intervals within the burst.
[0134] Next, in step 208 the classification is performed. The bulk of the classification work is done inside a deep spiking neural network.
[0135] Neurons in SNNs communicate through discrete events called spikes or action potentials. Instead of continuously updating their activation values like in artificial neural networks (ANNs), spiking neurons emit spikes at irregular intervals when their membrane potential exceeds a certain threshold. Information in SNNs is encoded in the timing of spikes. Input signals are typically represented as spike trains, where the timing of spikes encodes information about the input features. Similarly, output responses are decoded from the spike patterns of output neurons. Synaptic connections in SNNs have associated weights that determine the strength of influence between neurons. These weights can be encoded using various schemes, such as analog values representing conductance or digital values representingspike probabilities. Learning in SNNs typically involves adjusting synaptic weights based on the timing of spikes. Spike-timing-dependent plasticity (STDP) is a common learning rule used in SNNs, where synaptic weights are modified based on the relative timing of pre- and postsynaptic spikes.
[0136] Each feature can be mapped to one or more neurons in the input layer of the SNN. There are several strategies for mapping features to neurons. For example, in a one-to-one mapping, each feature is mapped to a single neuron in the input layer. This is a straightforward approach where each neuron corresponds to a specific feature dimension. There are in this case thus as many neurons in the input layer of the SNN as there are features that need to be classified. In another approach, there can be a many-to-one mapping. In this case, multiple features are mapped to a single neuron by combining or pooling information from multiple features. This can reduce the dimensionality of the input space and improve computational efficiency. Another example is a distributed representation. In this example, features are distributed across multiple neurons in the input layer, with each neuron receiving input from multiple features. This allows for a more distributed representation of the input data, which may capture complex relationships between features.
[0137] For the embodiment a two-layer (which may or not be feedforward) SNN with as many input nodes as spectro-temporal features (40 resp. 64 in the case of MFCC and wavelet transform exemplary extraction methods) and equivalent output nodes as target classes (in this example four) can be chosen. The size of the hidden layer (for example comprising 64 nodes) is constant for both pre-processing methods (MFCC and wavelet transform). The exact topology of the network is not limited to the one disclosed herein. The SNN may be a feedforward SNN, such that neurons are organized in layers, and information flows strictly in one direction, from the input layer through intermediate hidden layers to the output layer. There can be no recurrent connections, meaning neurons do not directly influence neurons in previous layers or themselves over time.
[0138] In one of the embodiments, the SNN can be implemented as described in international applications WO 2022 / 219195 and WO 2022 / 090542. These two international applications are incorporated herein by reference.
[0139] In the final step 209, decoding of the SNN output is performed. This may be done using for example max-rate decoding. Similar to the input encoding, the final classification then decodes the output layer by looking at the max-rate of the neurons. However, for otherencoding schemes, like spatio-temporal coding, the highest membrane potential or time-to- first-spike can be used instead.
[0140] The network’s parameters are trained with a designated back propagation mechanism for SNNs (see Neftci, Emre O., Hesham Mostafa, and Friedemann Zenke. "Surrogate gradient learning in spiking neural networks: Bringing the power of gradient-based optimization to spiking neural networks." IEEE Signal Processing Magazine 36.6 (2019): 51-63) which can be combined with an arbitrary loss function and an adequate output decoder. The loss function quantifies the discrepancy between the predicted output of the network and the true target output. For example, a categorical cross-entropy loss function, a mean absolute error (MAE) or mean squared error (MSE) loss function may be used. One may use a different output decoder during training than during classification.
[0141] Categorical cross-entropy loss is commonly used in classification tasks, particularly when dealing with categorical data where each sample belongs to one of multiple classes. It measures the dissimilarity between the predicted probability distribution over classes and the true probability distribution. Mathematically, for a single sample, the categorical cross-entropy loss is calculated as the negative logarithm of the predicted probability assigned to the true class label. The overall loss for the entire dataset is typically computed as the average of the individual losses across all samples.
[0142] Mean Absolute Error is a commonly used loss function for regression tasks, where the goal is to predict continuous values rather than class labels. It measures the average absolute difference between the predicted values and the true target values. Mathematically, for a single sample, the Mean Absolute Error is calculated as the average of the absolute differences between the predicted value and the true target value. The overall loss for the entire dataset is typically computed as the average of the individual losses across all samples.
[0143] Mean Squared Error is another commonly used loss function for regression tasks.It measures the average of the squares of the differences between the predicted values and the true target values. Mathematically, for a single sample, the Mean Squared Error is calculated as the average of the squared differences between the predicted value and the true target value. Like with MAE, the overall loss for the entire dataset is typically computed as the average of the individual losses across all samples.
[0144] Note that features of any of the embodiments disclosed herein may be combined in an appropriate manner.
Claims
CLAIMS1. A method for processing an audio signal and audio feature classification using a spiking neural network, comprising: obtaining the audio signal; preprocessing the audio signal to obtain a preprocessed audio signal; performing feature extraction on the preprocessed audio signal, to obtain one or more extracted features of the audio signal; encoding the one or more extracted features into one or more spike trains; processing the extracted features using the spiking neural network, wherein an input layer of the spiking neural network receives the one or more spike trains, and an output layer of the spiking neural network generates one or more output spike trains; decoding the output spike trains from the spiking neural network to obtain a classification of the extracted features; outputting the classification of the extracted features.
2. The method of claim 1, wherein the audio signal is an analog signal, and the preprocessing of the audio signal comprises an analog-to-digital conversion of the analog audio signal to a digital audio signal.
3. The method of claim 1 or 2, wherein the preprocessing of the audio signal comprises a normalization step, preferably wherein the normalization is performed such that the audio signal is centered around a particular amplitude value and / or wherein the amplitude of the audio signal is normalized to unity.
4. The method of any of the preceding claims, wherein the step of performing feature extraction on the preprocessed audio signal comprises extracting features of human speech or other audio data from the audio signal in a temporal fashion.
5. The method of claim 4, wherein the step of performing feature extraction on the preprocessed audio signal comprises performing a Mel frequency cepstral coefficients (MFCCs) method, a wavelet transform method, a scattering transform method, an autocorrelation method, a zero crossing rate (ZCR) method, a dynamic time warping (DTW) method, a short-time Fourier transform (STFT) method, a constant-Q transform method, anempirical mode decomposition (EMD) method, a phase unwrapping method, an instantaneous frequency method, a phase vocoder method, a phase correlation method, or any combination thereof, preferably wherein the Mel frequency cepstral coefficients (MFCCs) method or the wavelet transform method is used.
6. The method of any of the preceding claims, wherein the step of performing feature extraction on the preprocessed audio signal comprises condensing the time dimension of the extracted features to a particular time length by using a running average and / or a Hann window.
7. The method of any of the preceding claims, wherein the step of performing feature extraction on the preprocessed audio signal comprises centering and / or normalizing the extracted features.
8. The method of claim 7, wherein the features are normalized per feature with respect to the respective feature’s distribution within a reference dataset, preferably a training- or validation data set such that each feature extracted from the audio signal is normalized independently with respect to its distribution within the reference dataset, preferably by determining for each feature a normalization factor using the reference dataset and / or transforming each feature’s values so that they have a similar distribution as the distribution of the reference feature in the reference dataset, more preferably wherein z-score normalization, min-max scaling, or robust scaling is used as normalization methods.
9. The method of any of the preceding claims, wherein the step of performing encoding of the one or more extracted features into one or more spike trains comprises performing rate encoding, Poisson rate encoding, time encoding, time-to-first-spike encoding, temporal contrast encoding, phase encoding, population encoding, rank order encoding, burst encoding, or combinations thereof, preferably Poisson rate encoding is used, more preferably wherein all spikes are sampled from a single Poisson distribution which adheres to the throughput limitation which the is the maximal frequency fMAXof a spike input of the input layer of the spiking neural network, such that the inter-spike interval (ISI) of two consecutive spikes is larger or equal to 1 / f MAX-10. The method of any of the preceding claims, wherein the spiking neural network has as many input nodes as there are types of extracted features that need to be classified and / or wherein the spiking neural network is a two-layer feedforward spiking neural network with no recurrent connections.
11. The method of any of the preceding claims, wherein the step of decoding the output layer of the spiking neural network is performed using max-rate decoding, decoding using the highest membrane potential and / or decoding using the time-to-first-spike.
12. A system for audio processing and audio feature classification of an audio signal, comprising: a preprocessing module configured to perform preprocessing on the audio signal, to obtain a preprocessed audio signal; a feature extractor module configured to perform feature extraction on the preprocessed audio signal, to obtain one or more extracted features of the audio signal; a feature encoder module configured to perform encoding of the one or more extracted features into one or more input spike trains; a spiking neural network, comprising neurons implemented in hardware, wherein the spiking neural network comprises an input layer which receives the one or more input spike trains and an output layer which outputs one or more output spike trains; and a decoder module, configured to decode the one or more output spike trains outputted by the output layer of the spiking neural network to obtain a classification of the extracted features.
13. The system of claim 12, wherein the audio signal is an analog signal, and the preprocessing module comprises an analog-to-digital converter which is configured to convert the analog audio signal to a digital audio signal.
14. The system of claim 12 or 13, wherein the preprocessing module is configured to perform a normalization of the audio signal, preferably wherein normalization is performed such that the audio signal is centered around a particular amplitude value and / or wherein the amplitude of the audio signal is normalized to unity.
15. The system of any one of claims 12-14, wherein the feature extractor module is configured to extract features of human speech or other audio data from the audio signal in a temporal fashion.
16. The system of claim 15, wherein the feature extractor module is configured to perform a Mel frequency cepstral coefficients (MFCCs) method, a wavelet transform method, a scattering transform method, an autocorrelation method, a zero crossing rate (ZCR) method, a dynamic time warping (DTW) method, a short-time Fourier transform (STFT) method, a constant-Q transform method, an empirical mode decomposition (EMD) method, a phase unwrapping method, an instantaneous frequency method, a phase vocoder method, a phase correlation method, or any combination thereof, preferably wherein the Mel frequency cepstral coefficients (MFCCs) method or the wavelet transform method is used.
17. The system of any one of claims 12-16, wherein the feature extractor module is configured to condense the time dimension of the extracted features to a particular time length by using a running average and / or a Hann window.
18. The system of any one of claims 12-17, wherein the feature extractor module is configured to center and / or normalize the extracted features.
19. The system of claim 18, wherein the features are normalized per feature with respect to the respective feature’s distribution within a reference dataset, preferably a training- or validation data set such that each feature extracted from the audio signal is normalized independently with respect to its distribution within the reference dataset, preferably by determining for each feature a normalization factor using the reference dataset and / or transforming each feature's values so that they have a similar distribution as the distribution of the reference feature in the reference dataset, more preferably wherein z-score normalization, min-max scaling, or robust scaling is used as normalization methods.
20. The system of any one of claims 12-19, wherein the feature encoder module is configured to perform rate encoding, Poisson rate encoding, time encoding, time-to-first-spike encoding, temporal contrast encoding, phase encoding, population encoding, rank order encoding, burst encoding, or combinations thereof, preferably Poisson rate encoding is used,more preferably wherein all spikes are sampled from a single Poisson distribution which adheres to the throughput limitation which the is the maximal frequency fMAXof a spike input of the input layer of the spiking neural network, such that the inter-spike interval (ISI) of two consecutive spikes is larger or equal to21. The system of any one of claims 12-20, wherein the spiking neural network has as many input nodes as there are types of extracted features that need to be classified and / or wherein the spiking neural network is a two-layer feedforward spiking neural network with no recurrent connections.
22. The system of any one of claims 12-21, wherein the decoder module is configured to use max-rate decoding, decoding using the highest membrane potential and / or decoding using the time-to-first-spike.
Citation Information
Patent Citations
Distributed multi-component synaptic computational structure
WO2022090542A2
Hierarchical reconfigurable multi-segment spiking neural network
WO2022219195A1
Voice wake-up method and device based on spiking neural network, and electronic equipment
CN113160823A
Cited By
Method, apparatus, and computer program for partial discharge classification using neural network model
KR1020260138943A
Method, apparatus, and computer program for partial discharge classification using neural network model
KR103044761B1
Partial discharge classification method, device, and computer program using artificial neural network model
WO2026192201A1
