Method and system for training an infant cry analysis neural network
The infant cry analysis neural network, trained with self-supervised learning and fine-tuned using cry audio datasets, effectively classifies infant cries and identifies associated conditions, addressing the limitations of existing methods by improving accuracy and reducing data requirements.
Patent Information
- Application Number
- PCT/CA2024/050564
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-10-06
- Filing Date
- 2024-04-26
- Publication Date
- 2024-10-31
AI Technical Summary
Existing methods for analyzing infant cries using machine learning are not well adapted for accurate analysis, requiring a large volume of relevant data and struggling to effectively classify cry characteristics associated with conditions like birth asphyxia.
A method and system for training an infant cry analysis neural network using self-supervised learning (SSL) with a pre-training audio dataset and fine-tuning with a cry audio dataset, incorporating convolutional layers, dense layers, and batch normalization, to optimize parameters for accurate classification of cry samples.
The system achieves improved accuracy in classifying infant cries, predicting neurological injuries, and identifying cry triggers, reducing the need for extensive labeled data and enhancing the reliability of infant cry analysis.
Smart Images

Figure CA2024050564_31102024_PF_FP_ABST
Abstract
Description
METHOD AND SYSTEM FOR TRAINING AN INFANT CRY ANALYSISNEURAL NETWORKCROSS-REFERENCE TO RELATED APPLICATION
[0000] This application claims the benefit of and priority to United States Provisional Patent Applications No. 63 / 498,564, filed April 27, 2023, entitled “System and Method for Automated Infant Cry Analysis”, and 63 / 588,439, filed October 6, 2023, entitled “Systems and Methods for Biomarker Extraction and Infant Cry Analysis”, the disclosures of which are hereby incorporated by reference in their entirety.TECHNICAL FIELD
[0001] The technical field generally relates to acoustic analysis, and more particularly relates to systems and methods for analyzing and interpreting infant cries.BACKGROUND
[0002] Crying is the primary means for young children, such as babies, to communicate. Cry characteristics are a useful way to understand the basic needs of a child and can even be analyzed for early and non-invasive detection of various diseases. For example, some cry characteristics can be correlated to some diseases such as birth asphyxia. This multi-causal condition frequently leads to severe health problems, including neurological injury and even death.
[0003] Existing methods for vocal analysis involve the analysis of acoustic data using signal processing, statistical modelling and machine learning techniques. However, these methods, when applied generically, may not be well adapted to accurately analyze infant cries. For instance, a challenge to analyzing cries using only machine learning is that a large volume of relevant data is needed to properly train a model to provide accurate results. As such, there is a need to provideimproved processes and systems to process and analyze infant cries in an accurate and reliable way.SUMMARY
[0004] In accordance with an aspect, a method for training an infant cry analysis artificial neural network is provided. The method includes: pre-training the artificial neural network using a first self-supervised learning (SSL) to discriminate audio samples, the first SSL being carried out using a pre-training audio dataset including a plurality of generic audio clips, wherein the artificial neural network includes: an encoder including at least one convolutional layer, and at least one head including a plurality of dense layers, the at least one head including a projection head; and fine-tuning the artificial neural network to classify cry samples by optimizing at least a subset of parameters of the neural network using a cry audio dataset including a plurality of cry audio clips and a plurality of labels, each cry audio clip being labelled with at least one label.
[0005] In some embodiments, the pre-training includes: generating, from the pretraining audio dataset, a contrastive training dataset including, for each generic audio clip from at least a subset of the generic audio dataset, at least two correlated audio clips, wherein each correlated audio clip corresponds to a distorted version of each of the other correlated audio clips; inputting each correlated audio clip of the contrastive training dataset into the encoder to generate an embedding corresponding to the correlated audio clip; inputting the embedding into the projection head to generate a contrastive prediction; computing a contrastive loss based on the contrastive prediction; and based on the contrastive loss computed for at least a subset of the contrastive training dataset, optimizing the parameters of the neural network.
[0006] In some embodiments, the fine-tuning includes: inputting each cry audio clip from a fine-tuning dataset including at least a subset of the cry audio dataset into the encoder to generate a vector corresponding to the cry audio clip; inputting the vector into the at least one head to generate a class prediction; and optimizingat least the subset of the parameters of the neural network based at least on a loss associated with a class prediction for at least a subset of the fine-tuning data set.
[0007] In some embodiments, the fine-tuning includes replacing the projection head of the artificial neural network with a classification head, the classification head being configured to take as input an output of the encoder and to provide as output a class prediction.
[0008] In some embodiments, the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head.
[0009] In some embodiments, the encoder includes at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the at least one batch normalization layer.
[0010] In some embodiments, the fine-tuning includes adding a classification head to the artificial neural network, the classification head being configured to take as input an output of the encoder and to provide as output a class prediction.
[0011] In some embodiments, the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head.
[0012] In some embodiments, the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the projection head.
[0013] In some embodiments, the encoder includes at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the at least one batch normalization layer.
[0014] In some embodiments, the encoder includes at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of theclassification head, of the projection head and of the at least one batch normalization layer.
[0015] In some embodiments, the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the projection head.
[0016] In some embodiments, the encoder includes at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the projection head and of the at least one batch normalization layer.
[0017] In some embodiments, fine-tuning the artificial neural network includes optimizing all the parameters of the neural network.
[0018] In some embodiments, the fine-tuning includes discarding a subset of the dense layers of the projection head.
[0019] In some embodiments, discarding the subset of the dense layers of the projection head includes retaining only a first layer of the projection head.
[0020] In some embodiments, the method further includes adapting the artificial neural network to cry data using a second SSL, the second SSL being carried out using an adaptation audio dataset including a plurality of adaptation audio clips.
[0021] In some embodiments, adapting includes: generating, from the adaptation audio dataset, an adaptation dataset including, for each adaptation audio clip from at least a subset of the adaptation audio dataset, at least two correlated adaptation audio clips, wherein each correlated adaptation audio clip corresponds to a distorted version of each of the other correlated adaptation audio clips; inputting each correlated adaptation audio clip of the adaptation dataset into the encoder to generate an embedding corresponding to the correlated adaptation audio clip; inputting the embedding into the projection head to generate the contrastive prediction; computing the contrastive loss based on the contrastive prediction; andbased on the contrastive loss computed for at least a subset of the adaptation training dataset, optimizing the parameters of the neural network.
[0022] In some embodiments, the encoder includes fourteen layers, the fourteen layers including six convolutional layers.
[0023] In some embodiments, the method further includes obtaining the cry audio dataset by recording a plurality of infant cries after birth and / or before discharge.
[0024] In some embodiments, obtaining the cry audio dataset includes segmenting cry activity into cry units.
[0025] In some embodiments, the infant cry analysis artificial neural network is configured to predict a neurological injury associated with the cry samples, and wherein the label includes an indication of whether an infant associated with a cry audio clip from the cry audio dataset suffers from neurological injury.
[0026] In some embodiments, the label includes a Sarnat score of the infant associated with the cry audio clip.
[0027] In some embodiments, the label includes a neurological injury indication corresponding to “normal” or “injured”.
[0028] In some embodiments, the infant cry analysis artificial neural network is configured to predict a cry trigger associated with the cry samples, and wherein the label includes an indication of a crying trigger associated with a cry audio clip from the cry audio dataset.
[0029] In some embodiments, the crying trigger includes at least one of: discomfort, hunger, pain, and stress.
[0030] In some embodiments, the crying trigger includes at least one of: belly pain, teething acute pain, cold / hot, diaper, needs burping, position, tired, scared, lonely, and angry.
[0031] In some embodiments, the fine-tuning includes sampling the cry audio dataset to balance distributions of the labels.
[0032] In some embodiments, sampling the cry audio dataset includes upsampling at least one minority class.
[0033] In some embodiments, sampling the cry audio dataset includes downsampling at least one majority class.
[0034] In some embodiments, the fine-tuning is performed for a first configurable number of epochs, wherein a validation score is computed after each of the epochs, and wherein the artificial neural network associated with a highest validation score is retained for use in production.
[0035] In some embodiments, optimizing at least the subset of the parameters of the neural network includes using an Adam optimizer.
[0036] In some embodiments, optimizing at least the subset of the parameters of the neural network includes determining a learning rate of the encoder and a learning rate of the at least one head.
[0037] In some embodiments, the learning rate of the encoder and / or the learning rate of the at least one head are optimized using grid search.
[0038] In some embodiments, a validation loss is computed after each epoch, and wherein the learning rate of the encoder and / or the learning rate of the at least one head are reduced if a validation loss remains stable or decreases over a second configurable number of epochs.
[0039] In some embodiments, the learning rate of the encoder and / or the learning rate of the at least one head are increased from zero to a configurable number over a third configurable number of epochs.
[0040] In some embodiments, the increase is linear.
[0041] According to another aspect, a method for analyzing an infant cry is provided. The method includes: obtaining the infant cry from a user; inputting the infant cry into the artificial neural network described above to generate a class prediction; and conveying to the user an indication of the class prediction.
[0042] In some embodiments, the method further includes: segmenting an audio signal corresponding to the infant cry into a temporal sequence including a plurality of cry units; generating a plurality of perturbations, each perturbation corresponding to a subset of the plurality of cry units; generating a proxy training set, including, for each perturbation, an indication of the corresponding subset of the plurality of cry units and a proxy label corresponding to an output on the artificial neural network for the perturbation; fitting a proxy model based to the proxy training set, wherein the proxy model is a linear model; and conveying to the user an indication of parameters of the proxy model, wherein the parameters of the proxy model provide an indication of an importance of a corresponding cry unit.
[0043] In some embodiments, the method further includes: converting the cry units into spectrograms; dividing the frequency axis of each spectrogram into at least two and at most four bands; and creating additional perturbations for each spectrogram by masking at least one band, wherein the proxy training set further includes, for each additional perturbation, an indication of the corresponding subset of the plurality of cry units and a proxy label corresponding to an output on the artificial neural network for the additional perturbation, and wherein the parameters of the proxy model further provide an indication of an importance of a corresponding part of a frequency spectrum.
[0044] According to a further aspect, a system for training an infant cry analysis artificial neural network is provided. The system includes: the artificial neural network, including: an encoder including at least one convolutional layer, and at least one head including a plurality of dense layers, the at least one head including a projection head; a pre-training module including a self-supervised learning module configured to pre-train the artificial neural network using a first self-supervised learning (SSL) to discriminate audio samples, the first SSL being carried out using a pre-training audio dataset including a plurality of generic audio clips; and a fine-tuning module including a supervised learning submodule configured to fine-tune the artificial neural network to classify cry samples by optimizing at least a subset of parameters of the neural network using a cry audio dataset including a plurality of cry audio clips and a plurality of labels, each cry audio clip being labelled with at least one label.
[0045] In some embodiments, the pre-training module includes a training set preparation submodule configured to generate, from the pre-training audio dataset, a contrastive training dataset including, for each generic audio clip from at least a subset of the pre-training audio dataset, at least two correlated audio clips, wherein each correlated audio clip corresponds to a distorted version of each of the other correlated audio clips; and the self-supervised learning module is configured to: input each correlated audio clip of the contrastive training dataset into the encoder to generate an embedding corresponding to the correlated audio clip, input the embedding into the projection head to generate a contrastive prediction, compute a contrastive loss based on the contrastive prediction, and based on the contrastive loss computed for at least a subset of the contrastive training dataset, optimizing the parameters of the neural network.
[0046] In some embodiments, the supervised learning module is configured to: input each cry audio clip from a fine-tuning dataset including at least a subset of the cry audio dataset into the encoder to generate a vector corresponding to the cry audio clip; input the vector into the at least one head to generate a class prediction; and optimize at least the subset of the parameters of the neural network based at least on a loss associated with a class prediction for at least a subset of the fine-tuning data set.
[0047] In some embodiments, the the supervised learning module is configured to replace the projection head of the artificial neural network with a classificationhead, the classification head being configured to take as input an output of the encoder and to provide as output a class prediction.
[0048] In some embodiments, the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head.
[0049] In some embodiments, the encoder includes at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the at least one batch normalization layer.
[0050] In some embodiments, the supervised learning module is configured to add a classification head to the artificial neural network, the classification head being configured to take as input an output of the encoder and to provide as output a class prediction.
[0051] In some embodiments, the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head.
[0052] In some embodiments, the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the projection head.
[0053] In some embodiments, the encoder includes at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the at least one batch normalization layer.
[0054] In some embodiments, the encoder includes at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head, of the projection head and of the at least one batch normalization layer.
[0055] In some embodiments, the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the projection head.
[0056] In some embodiments, the encoder includes at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the projection head and of the at least one batch normalization layer.
[0057] In some embodiments, the supervised learning module is configured to optimize all the parameters of the neural network.
[0058] In some embodiments, the supervised learning module is configured to discard a subset of the dense layers of the projection head.
[0059] In some embodiments, discarding the subset of the dense layers of the projection head includes retaining only a first layer of the projection head.
[0060] In some embodiments, the system further includes an adaptation module including an adaptation self-supervised learning submodule configured to adapt the artificial neural network to cry data using a second SSL, the second SSL being carried out using an adaptation audio dataset including a plurality of adaptation audio clips.
[0061] In some embodiments, the adaptation module includes an adaptation training set preparation submodule configured to generate, from the adaptation audio dataset, an adaptation dataset including, for each adaptation audio clip from at least a subset of the adaptation audio dataset, at least two correlated adaptation audio clips, wherein each correlated adaptation audio clip corresponds to a distorted version of each of the other correlated adaptation audio clips; and the adaptation self-supervised training submodule is configured to: input each correlated adaptation audio clip of the adaptation dataset into the encoder to generate an embedding corresponding to the correlated adaptation audio clip; input the embedding into the projection head to generate the contrastive prediction; compute the contrastive loss based on the contrastive prediction; and based onthe contrastive loss computed for at least a subset of the adaptation training dataset, optimize the parameters of the neural network.
[0062] In some embodiments, the encoder includes fourteen layers, the fourteen layers including six convolutional layers.
[0063] In some embodiments, the system further includes a dataset acquisition module configured to obtain the cry audio dataset by recording a plurality of infant cries after birth and / or before discharge.
[0064] In some embodiments, obtaining the cry audio dataset includes segmenting cry activity into cry units.
[0065] In some embodiments, the infant cry analysis artificial neural network is configured to predict a neurological injury associated with the cry samples, and wherein the label includes an indication of whether an infant associated with a cry audio clip from the cry audio dataset suffers from neurological injury.
[0066] In some embodiments, the label includes a Sarnat score of the infant associated with the cry audio clip.
[0067] In some embodiments, the label includes a neurological injury indication corresponding to “normal” or “injured”.
[0068] In some embodiments, the infant cry analysis artificial neural network is configured to predict a cry trigger associated with the cry samples, and wherein the label includes an indication of a crying trigger associated with a cry audio clip from the cry audio dataset.
[0069] In some embodiments, the crying trigger includes at least one of: discomfort, hunger, pain, and stress.
[0070] In some embodiments, the crying trigger includes at least one of: belly pain, teething acute pain, cold / hot, diaper, needs burping, position, tired, scared, lonely, and angry.
[0071] In some embodiments, the supervised learning submodule is configured to sample the cry audio dataset to balance distributions of the labels.
[0072] In some embodiments, sampling the cry audio dataset includes upsampling at least one minority class.
[0073] In some embodiments, sampling the cry audio dataset includes downsampling at least one majority class.
[0074] In some embodiments, the supervised learning submodule is configured to perform a first configurable number of epochs of fine-tuning and to compute a validation score after each of the epochs, and wherein the artificial neural network associated with a highest validation score is retained for use in production.
[0075] In some embodiments, the supervised learning submodule is configured to optimize at least the subset of the parameters of the neural network at least in part by using an Adam optimizer.
[0076] In some embodiments, the supervised learning submodule is configured to optimize at least the subset of the parameters of the neural network at least in part by determining a learning rate of the encoder and a learning rate of the at least one head.
[0077] In some embodiments, the learning rate of the encoder and / or the learning rate of the at least one head are optimized using grid search.
[0078] In some embodiments, the supervised learning submodule is configured to compute a validation loss after each epoch and to reduce the learning rate of the encoder and / or the learning rate of the at least one head if a validation loss remains stable or decreases over a second configurable number of epochs.
[0079] In some embodiments, the supervised learning submodule is configured to increase the learning rate of the encoder and / or the learning rate of the at least one head from zero to a configurable number over a third configurable number of epochs.
[0080] In some embodiments, the increase is linear.
[0081] According to yet another embodiment, a system for analyzing an infant cry is provided. The system includes: a recording device to record the infant cry; the artificial neural network described above, configured to accept the infant cry as input to generate a class prediction; and an output device configured to convey to a user an indication of the class prediction.
[0082] In some embodiments, the system further includes an interpretation module configured to: segment an audio signal corresponding to the infant cry into a temporal sequence including a plurality of cry units; generate a plurality of perturbations, each perturbation corresponding to a subset of the plurality of cry units; generate a proxy training set, including, for each perturbation, an indication of the corresponding subset of the plurality of cry units and a proxy label corresponding to an output on the artificial neural network for the perturbation; fit a proxy model based to the proxy training set, wherein the proxy model is a linear model; and convey to the user an indication of parameters of the proxy model, wherein the parameters of the proxy model provide an indication of an importance of a corresponding cry unit.
[0083] In some embodiments, the interpretation module is further configured to: convert the cry units into spectrograms; divide the frequency axis of each spectrogram into at least two and at most four bands; and create additional perturbations for each spectrogram by masking at least one band, wherein the proxy training set further includes, for each additional perturbation, an indication of the corresponding subset of the plurality of cry units and a proxy label corresponding to an output on the artificial neural network for the additional perturbation, and wherein the parameters of the proxy model further provide an indication of an importance of a corresponding part of a frequency spectrum.
[0084] According to yet a further aspect, a non-transitory computer-readable medium is provided. The non-transitory computer-readable medium haveinstructions stored thereon which, when executed by one or more processors, cause the one or more processors to perform one of the methods described above.BRIEF DESCRIPTION OF THE DRAWINGS
[0085] For a better understanding of the embodiments described herein and to show more clearly how they may be carried into effect, reference will now be made, by way of example only, to the accompanying drawings which show at least one exemplary embodiment.
[0086] Figure 1 is a schematic of a system for training an infant cry analysis artificial neural network, in accordance with an embodiment.
[0087] Figure 2 is a schematic of an infant cry analysis artificial neural network at different stages throughout a training process, in accordance with an embodiment.
[0088] Figure 3 is a flowchart of a method for training an infant cry analysis artificial neural network, in accordance with an embodiment.
[0089] Figure 4 is a schematic of a system for analyzing an infant cry using an artificial neural network, in accordance with an embodiment.
[0090] Figure 5A shows an example mel spectrogram of an infant cry.
[0091] Figure 5B shows an example perturbation of the spectrogram of Figure 5A.
[0092] Figure 5C shows an example interpretation of the spectrogram of Figure 5A.
[0093] Figure 6 shows a summary of key statistics of the collected cry data, in accordance with an experiment.
[0094] Figure 7 summarizes the performance of baselines on neurological injury and triggers, in accordance with the experiment.
[0095] Figure 8 illustrates the performance of neuro injury classification under various types of pre-training and fine-tuning strategies, in accordance with the experiment.
[0096] Figure 9 illustrates the performance of the cry trigger classification, in accordance with the experiment.
[0097] Figure 10 illustrates the results for neuro injury classification using two models using various proportions of the available fine-tuning data, in accordance with the experiment.
[0098] Figure 11 illustrates the performance of a classifier with respect to various degrees of seventy of encephalopathy, in accordance with the experiment.
[0099] Figure 12A illustrates the performance of classifiers trained using different embodiments described herein, in accordance with the experiment.
[0100] Figure 12B illustrates the performance of a classifier evaluated on different test sets, in accordance with the experiment.DETAILED DESCRIPTION
[0101] In the following description, various embodiments are described with reference to the figures. In each figure, the same numerical references refer to similar elements. It should also be noted that for the sake of simplicity and clarity, to avoid overburdening the figures with several reference numbers, not all figures contain references to all the components and features. Some components and features can be referenced in only one figure but can easily be inferred in other figures. Aspects or advantages described in conjunction with a particular embodiment are not necessarily limited to that embodiment and can be practised in any other embodiments even if not so illustrated.
[0102] The terms “a”, “an” and “one” are defined herein to mean “at least one”, that is, these terms do not exclude a plural number of items, unless stated otherwise.
[0103] Terms such as “substantially”, “generally” and “about”, which modify a value, condition or characteristic of a feature of an exemplary embodiment, should be understood to mean that the value, condition or characteristic is defined within tolerances that are acceptable for the proper operation of this exemplary embodiment for its intended application.
[0104] Expressions such as “match”, “matching” and “matched”, including variants and derivatives thereof, are intended to refer herein to a condition in which two or more elements are either the same or within some predetermined tolerance of each other. That is, these terms are meant to encompass not only “exactly” or “identically” matching the two elements but also “substantially”, “approximately” or “subjectively” matching the two or more elements, as well as providing a higher or best match among a plurality of matching possibilities.
[0105] In the present description, the expression “based on” is intended to mean “based at least partly on”, that is, this expression can mean “based solely on” or “based partially on”, and so should not be interpreted in a limited manner. More particularly, the expression “based on” could also be understood as meaning “depending on”, “representative of”, “indicative of”, “associated with” or similar expressions.
[0106] One or more systems described herein may be implemented in computer program(s) executed on processing device(s), each comprising at least one processor, a data storage system (including volatile and / or non-volatile memory and / or storage elements), and optionally at least one input and / or output device. “Processing devices” encompass computers, servers and / or specialized electronic devices which receive, process and / or transmit data. As an example, “processing devices” can include processing means, such as microcontrollers, microprocessors, and / or CPUs, or be implemented on FPGAs. For example, and without limitation, a processing device may be a programmable logic unit, a mainframe computer, a server, a personal computer, a cloud-based program orsystem, a laptop, a personal data assistant, a cellular telephone, a smartphone, a wearable device, a tablet, a video game console or a portable video game device.
[0107] Each program is preferably implemented in a high-level programming and / or scripting language, for instance an imperative e.g., procedural or object- oriented, or a declarative e.g., functional or logic, language, to communicate with a computer system. However, a program can be implemented in assembly or machine language if desired. In any case, the language may be a compiled or an interpreted language. Each such computer program is preferably stored on a storage media or a device readable by a general or special purpose programmable computer for configuring and operating the computer when the storage media or device is read by the computer to perform the procedures described herein. In some embodiments, the system may be embedded within an operating system running on the programmable computer.
[0108] Furthermore, the system, processes and methods of the described embodiments are capable of being distributed in a computer program product comprising a computer readable medium that bears computer-usable instructions for one or more processors. The computer-usable instructions may also be in various forms including compiled and non-compiled code.
[0109] The processor(s) are used in combination with storage medium, also referred to as “memory” or “storage means”. Storage medium can store instructions, algorithms, rules and / or trading data to be processed. Storage medium encompasses volatile or non-volatile / persistent memory, such as registers, cache, RAM, flash memory, ROM, diskettes, compact disks, tapes, chips, as examples only. The type of memory is, of course, chosen according to the desired use, whether it should retain instructions, or temporarily store, retain or update data. Steps of the proposed method are implemented as software instructions and algorithms, stored in computer memory and executed by processors.
[0110] In the foregoing description, various computing modules will be described. As can be appreciated, such modules can be implemented as part of one or more of the above-described hardware and / or software components. In some embodiments, the modules can be provided as part of one or more non-transitory computer-readable media containing instructions, which executed, cause a computing hardware component to implement the functionality of the modules.
[0111] Various aspects and implementations of the present techniques are described below with references to the figures.
[0112] With reference to Figure 1 , an example embodiment of a system 100 for training an infant cry analysis artificial neural network is shown. The system includes an artificial neural network 140, a pre-training module 110, an adaptation module 120, and a fine-tuning module 130. Broadly described, the neural network 140 can be pre-trained by the pre-training module 110, adapted by the adaptation module 120, and fined-tubed by the fine-tuning moduel 130.
[0113] The neural network 140 includes at least an encoder 142, which the system 100 can be configured for training to accept a data product based on a waveform as input and to generate a first vector corresponding to a representation of the waveform, e.g., an embedding of the waveform into a vector of real numbers with a first predetermined dimensionality, as output. The encoder can include at least one convolutional layer, such that the neural network 140 can be qualified as a convolutional neural network (CNN). In some embodiments, the encoder includes more than one convolutional layer, e.g., six. Each convolutional layer can include a kernel of a suitable shape and size, e.g., 3 x 3. Convolutional layers can be grouped in blocks of a suitable size, e.g., 2 layers per block. A suitable nonlinear function, e.g., the Rectified Linear Unit (ReLU), can be used on the output of each convolutional layer. Pooling layers with a filter of a suitable size and aggregation function, e.g., 2 x 2 average pooling filters, can be applied between convolutional layers and / or blocks to perform downsampling. Batch normalizationlayers can be applied between convolutional layers and / or blocks. In some embodiments, the encoder 142 is a VGGNet or a VGG-like CNN such as a CNN14.
[0114] The neural network 140 further includes at least one head. In some embodiments, the neural network 140 is initially provided with a projection head 144, which the system 100 can be configured for training to accept the first vector output by the encoder 142 as input and to generate a second vector also corresponding to a representation of a waveform, e.g., an embedding of the waveform into a vector of real numbers with a second predetermined dimensionality, with the second dimensionality being smaller than the first dimensionality, as output. In some embodiments, the neural network 140 is provided with, either initially or at a point of the training process, with a classification head 146, which the system 100 can be configured for training to accept the first vector output by the encoder 142 or the second vector output by the projection head 144 as input and to generate a third vector corresponding to a set of probabilities that the waveform corresponds to the cry of an infant that exhibits one of a number of possible conditions. In some embodiments, one or more of the heads include dense layers. In some embodiments, the projection head 144 is a three-layer multi-layer perceptron with 2048 hidden units and a bottleneck layer with 512 hidden units. In some embodiments, the classification head 146 includes a single layer, e.g., a single dense layer. In some embodiments, the output of the classification head 146 is further passed as input to a softmax layer (not shown) such that the final output of the neural network 140 corresponds to a set of probabilities with a sum of one.
[0115] It will be appreciated that self-supervised learning can be used to first train the neural network 140 as a foundation model for audio processing that can allow discriminating audio samples. The foundational model can subsequently be adapted to various tasks, including for instance infant cry analysis. The foundation model can be pre-trained, for instance using self-supervised learning with unlabelled audio samples, then fine-tuned to classify cry samples by optimizing at least a subset of parameters of the neural network, for instance using supervisedlearning with labelled cry samples, e.g., clinically annotated cry samples. In some embodiments, the foundation model can be adapted, for instance using selfsupervised learning with unlabelled cry samples.
[0116] The pre-training can use self-supervised learning to extract a rich representation from large databases of diverse audio recordings including adult speech, music, animal and urban sounds, then adapt and transfer the representation as the foundation for training infant cry analysis models. Foundation models in large language models (LLMs) are successful in multiple text processing tasks, demonstrating the power and flexibility of models that are pre-trained in a self-supervised manner. In a similar way, the foundation model used to create the classifier 140 can be a large audio model (LAM), enabling the foundation model to acquire a strong representation that can be used for many downstream tasks including cry analysis. The base model (encoder) can for instance be a 76 millionparameter convolutional neural network, that has demonstrated strong performance across a wide range of audio processing tasks including emotion detection, sound event detection, and music classification.
[0117] The system 100 includes a pre-training module 110, configured to pre-train at least the encoder 142. In the example embodiment, the pre-training module 110 additionally trains the projection head 144. The pre-training module 110 can be configured to perform a first self-supervised learning of the neural network 140. In this case the pre-training module 110 can include a training set preparation submodule 112 and a self-supervised learning submodule 114, also called the pretraining training set preparation submodule and the pre-training self-supervised learning submodule.
[0118] The self-supervised learning submodule 114 is configured to build high- quality audio representations leveraging a pre-training audio dataset that includes large amounts of open-source audio data. This can be achieved in a selfsupervised manner without data labels, for instance employing the similarity-based contrastive learning method called SimCLR. Any suitably large, generic audiodataset can be used. As an example, the well-known VGGSound database, which contains 550 hours of over 300 audio classes, can be used for pre-training.
[0119] The self-supervised learning can rely on the training set preparation submodule 112 generating a contrastive training dataset including correlated audio clips. In some embodiments, the training set preparation submodule 112 is configured to generate correlated spectrograms of two or more short audio clips corrupted with random time-frequency masks were extracted from the same audio recording, so that the model can be trained to recognize that audio clips correspond to the same audio recording. In some embodiments, input spectrograms can be corrupted using known augmentation methods such as SpecAugment, which randomly masks parts of the spectrograms, thus increasing the diversity of correlated samples and model robustness. Self-supervised pretraining can also be done in a similar manner to supervised pre-training, but using SimCLR method.
[0120] In some embodiments, the pre-training module 110 is configured to implement SimCLR, a contrastive self-supervised learning algorithm originally proposed for computer vision, that have been demonstrated to also offer good results in audio and / or music classification tasks. It can maximize the similarity between two views of the same audio recording. In some embodiments, each view is created by randomly extracting a 4-second audio segment and applying SpecAugment to the spectrogram. In some embodiments, initial off-the-shelf pretrained models can be obtained. Self-supervised pre-training can be done for instance over a predetermined number of epochs, e.g., 200 epochs, with stochastic gradient descent, with batches of a predetermined number and length of audio segments, e.g., 32 4-second random audio segments of VGGSound.
[0121] The self-supervised learning submodule 114 can train the neural network 140 using the contrastive training dataset to perform contrastive predictions, i.e., to predict which audio clips of the contrastive training dataset are correlated. Although the contrastive predictions performed as output of the projection head144 are of limited interest for cry analysis, the representation learnt at least by the encoder 142 can be relevant for this task when combined with a fine-tuned classifier.
[0122] In some embodiments, the system 100 includes an adaptation module 120, configured to perform adaptation, also called domain adaptation, of at least the encoder 142. As an example, the adaptation module 120 can be configuered to specialize the audio representation model from the domain of all sounds pretrained by the pre-training module 110 to a specific domain, such as the domain of cry sounds. In the example embodiment, the adaptation module 120 additionally adapts the projection head 144. The adaptation module 120 can be configured similarly to the pre-training module 110, to perform a second self-supervised learning of the neural network 140. In this case the adaptation module 120 can too include a training set preparation submodule 122 and a self-supervised learning submodule 124, also called the adaptation training set preparation submodule and the adaptation self-supervised learning submodule.
[0123] The adaptation training set preparation submodule 122 can work similarly as the pre-training training set preparation submodule 112, using an adaptation audio data set including for instance unlabelled cry samples from the same dataset as used for the fine-tuning, for instance samples with incomplete data collection, such as missing Sarnat annotations and discharge recordings. Other sources of cry audio can be leveraged, including for instance freely available labelled datasets such as Freesound and / or VGGSound, from which only the clips labelled as cry can be used. In some embodiments, a certain number of audio clips from the pretraining audio dataset can be used even if they no not correspond to cry audio. Adding these clips to batches can be seen as so-called “rehearsal” or “replay”. Advantageously, they allow to reduce so-called “catastrophic forgetting”, i.e. , drop of performance on an initial task when learning a new task. Experiments on the disclosed methods have shown that rehearsal consistently leads to better generalization, which is important for supervised transfer learning.
[0124] The adaptation self-supervised learning submodule 124 can also work similarly as the pre-training self-supervised learning submodule 114. As an example, the SimCLR framework can again be employed to update the learned weights of the LAM, in a self-supervised manner. The adaptation step can help performance as it tailors the foundation model’s parameters to the uniqueness of infant cry recordings. In some embodiments, the domain adaptation is performed using the technique originally described in Gorin, A. et al., op. cit. As an example, starting with the neural network 140 that was pre-trained with SimCLR on VGGSound dataset by the pre-training module 110, a self-supervised learning submodule 214 of the adaptation module can be configured to train the network 140 over, e.g., 100 epochs using batches of, e.g., 200 samples where a proportion of the batches is sampled from the unlabelled cry dataset and another half is randomly sampled from VGGSound.
[0125] The system 100 includes a fine-tuning module 130, including a supervised learning configured to fine-tune the neural network 140, for instance using the carefully annotated cry samples from a labelled cry dataset, which can be divided into training, validation and test portions. In this stage the model can be trained to classify cry sounds based on the patient’s state, for instance as healthy or as indicative of a neurological injury. In some embodiments, to transfer the pre-trained network to the task of injury prediction, a randomly initialized classification head 146 is added, labelled data is used to fully or partially fine-tune the resulting network by minimizing a loss function such as a cross-entropy loss function such as: log(l - pz).
[0126] In some embodiments, the supervised learning submodule 132 is configured to remove a subset of the layers of the projection head 144 before performing fine-tuning. As an example, only the input layer of the projection head 144 can be retained. The supervised learning submodule 132 is configured to insert a classification head 146 configured to accept the output of the projection head 144 as input. In some embodiments, the supervised learning submodule 132is configured to replace the projection head 144 with a classification head 146 configured to accept the output of the encoder 142 as input.
[0127] In some embodiments, the supervised learning submodule 132 is configured to perform linear probing, i.e., using the encoder 142 as a feature extractor only, advantageously only requiring the classification head 146 to be trained. Used with the example embodiment of the projection head 144 provided above, linear probing only requires supervised training of 4,096 parameters, and is therefore not time-consuming yet very stable. In some embodiments, linear probing can additionally include training the projection head 144 and the classification head 146. In some embodiments, linear probing with an update of batch normalization layers of the encoder is used. In some embodiments, the supervised learning submodule 132 is configured to perform end-to-end optimization, i.e., to optimize all the parameters of the neural network 140. In some embodiments, the supervised learning submodule 132 is configured to perform fine-tuning over a predetermined suitable number of epochs, e.g., 50 epochs using, e.g., the Adam optimizer with learning rate reduced, e.g., by half if validation area under the curve (AUC) is not improved over, e.g., three epochs. The best model parameters can be selected from the training loop based on validation AUC that is evaluated at every training epoch. In some embodiments, for end-to-end fine-tuning, a separately tuned learning rate is used for the encoder parameters along with linear warmup (gradual increase of learning rate) over the first, e.g., 10 training epochs. In some embodiments, a 10-fold cross-validation approach is used to select the model’s hyperparameters. In some embodiments, for end-to- end fine-tuning, the best cross-validation AUC can be searched for in suitable combinations of learning rates, e.g., 10_4, 5 x 10_4 and 5 x 10_4 for the head(s), and 10_5, 5 x 10_5, 10_4, 5 x 10_4 and 10_3 for the encoder. For non-end-to-end approaches, the training can be quite stable, therefore the grid search can only include a limited range of learning rates, e.g., 5 x 10_5, 10_4, 5 x 10_4 and 10_3. For non-domain-adapted models, end-to-end fine-tuning can perform best with larger learning rates than what is required for randomly initialized models. For domain-adapted models, a much simpler linear probing with batch normalizationupdate can perform better. The model can then be evaluated using the left aside, test portion of the labelled cry dataset.
[0128] With reference to Figure 2, an example infant cry analysis artificial neural network is shown at different stages throughout a training process. Broadly described, a pre-trained neural network model 214, also named foundation model, is fitted on a pre-training dataset 212 by the pre-training module 110, an adapted neural network model 224 can be fitted on an adaptation dataset 222 based on model 214 by the adaptation module 120, and the infant cry analysis artificial neural network model 234 is fitted on a labelled cry audio dataset 232 based on the adapted model 224.
[0129] The pre-training dataset 212 is a large, diverse and / or generic dataset including audio clips, e.g., generic audio clips. As an example, the VGGSound dataset, including approximately 550 hours of audio, can be used. A neural network model 214, the neural network including a CNN encoder 216 and a 3- dense layer projection head 218 can be fitted on the pre-training dataset 212 using SimCLR.
[0130] The adaptation dataset 222 is a dataset of cry data, including adaptation audio clips that include crying sounds. Portions of generic audio datasets known to include crying sounds can be included in adaptation dataset 222. As an example, VGGSound includes approximately 1 .6 hours of crying audio, which can be used as part of dataset 222. As another example, the Freesound free database of audio samples includes approximately 1 .4 hours of crying audio, which can also be used as part of dataset 222. An unlabelled version 232' of the fine-tuning cry audio dataset 232 can also be used as part of dataset 222. The model 224, initially receiving the same parameters as pre-trained model 214, can be fitted with the adaptation dataset 222 to produce an encoder 226 that demonstrates a higher performance in representing crying sounds, and a projection head 228 that demonstrates higher performance in discriminating crying sounds. It can be appreciated that, although adaptation improves the performance of the infant cryanalysis artificial neural network, the neural network can be used without being adapted. In some embodiments, the adaptation module 120 fits the model 224 on both the adaptation dataset 222 and the pre-training dataset 212 in suitable proportions, e.g., using 50% of each in each batch, to reduce catastrophic forgetting.
[0131] The cry audio dataset 232 is a labelled dataset of infant cry samples, in which each cry sample is labelled with at least a relevant indication regarding the infant that produced the cry. In some embodiments, the label includes an indication of whether the infant that produced the cry suffered from neurological injury such as hypoxic ischemic encephalopathy (HIE). As an example, the label can include a binary indication corresponding to “normal” or “injured”. In some embodiments, the cry audio dataset 232 is sampled to to balance distributions of the labels, which can for instance include downsampling the majority class and / or downsampling the minority class. As another example, the label can include a multinomial indication corresponding to “healthy”, “mild HIE”, “moderate HIE” and / or “severe HIE”. As a further example, the label can include an indication of a Sarnat score of the infant. In some embodiments, a dataset acquisition module (not shown) is provided to acquire the cry audio dataset 232. The dataset acquisition module can include a recording device used to record infants, for instance in a hospital setting. As an example, infants can be recorder at birth and / or at discharge time, and be the object of a neurological exam between these time points, the result of the neurological exam being used to create the label. In some embodiments, the label includes an indication of a cry trigger, i.e., an assessment of the reason that made the infant cry. As an example, the cry triggers can include “pain”, “hunger”, “discomfort” and / or “stress”. In some embodiments, the cry triggers can be further refined into subcategories of so-called main cry triggers. As an example, main trigger “pain” can include subcategories “belly pain” and / or “teething acute pain”, “discomfort” can include subcategories “cold / hot”, “diaper”, “needs burping” and / or “position”, and / or “stress” can include subcategories “tired”, “scared”, “lonely” and / or “angry”.
[0132] The model 234 initially receives the parameters of the adapted model 224, if available. In embodiments with no adaptation, the model 234 initially receives the parameters of the pre-trained model 214. The fine-tuning module 130 can be configured to remove the received projection head 218 / 228 or to remove a number of layers. In the example embodiment, the first layer 238 is retained, and the two remaining layers are removed. The fine-tuning module 130 can be configured to insert a classification head 146. In the example embodiment, a single-layer classification head is inserted. A part or all of the model 234 can then be fitted on the cry audio dataset. As examples, only the classification head 146 can be fitted, only the heads 146, 238 can be fitted, only one or both of the heads 146, 238 and batch normalization weights of the encoder 236 can be fitted, or the whole model 234 can be fitted on dataset 232. In some embodiments more than one classification head 146 can be fitted on dataset 232. As an example, one classiciation head can be fitted to main cry triggers and another classification head can be fitted to subcategories of cry triggers, such that a complete indication of a cry trigger is predicted by the infant cry analysis neural network 234 based on two sets of probabilities.
[0133] The foundation model 214 can be adapted and / or fine-tuned for any task that requires processing audio data. Moreover, as more, improved and / or more current labelled data 232 becomes available, an existing foundation model can be re-adapted and / or re-fine-tuned to improve performance without requiring repeating the pre-training. The adaptation and the fine-tuning is significantly less computationally intensive that the pre-training. As an example, fine-tuning performed only over 50 epochs, over a mere 20% of 10.3 hours of data is sufficient to outperform the baselines. Therefore, it can be appreciated that pre-training a foundation model that can be reused for different tasks and / or with different datasets offers a considerable advantage in terms of saved time and computational resources. Additionally, as shown in Figure 10 and further explained below, top model 234 performance can be achieved without having to use all the available labelled data 232, further diminishing the time and computationalresources needed to train an audio analysis artificial neural network such as an infant cry analysis artificial neural network 234.
[0134] With reference to Figure 3, there is illustrated an embodiment of a method 300 for training an infant cry analysis (ICA) neural network for automated analysis of infant cries. Broadly described, the method 300 is divided into three stages to configure the ICA neural network. The first two phases consist of pre-training the ICA neural network 310, 320 using an audio event dataset, also called pre-training audio dataset 212, and a cry-specific dataset, also called adaptation audio dataset 222. The third phase consists of training the ICA neural network 330 in a supervised manner with a labelled cry dataset, also called cry audio dataset 232, so that the neural network 234 can provide an indication of the health status of the infant. The term health status herein refers to the physical, neurological, or mental status of the infant.
[0135] In some embodiments the ICA neural network 234 is configured to classify and detect the presence and / or absence of neurological injury or disease. For example, the ICA neural network 234 can be configured to classify brain injuries, such as injuries resulting from birth asphyxia. In some embodiments, the ICA neural network 234 can be configured to identify cry triggers such as hunger, pain and / or discomfort in the child. Cry classification includes classifying audio data, whereby the ICA neural network may be a convolutional neural network (CNN) configured to classify audio data. The ICA neural network can be a Pre-trained Audio Neural Network (PANN), such as a CNN network initially pre-trained on generic audio data. In the illustrated embodiment, the encoder of the ICA neural network 234 is a CNN14 neural network as presented in Qiuqiang Kong et al., op. cit. It is appreciated, however, that other neural networks are possible.
[0136] A first step of the method 300 can include providing an audio event dataset 212. The audio event dataset can include audio data derived at least in part from audio recordings or audio samples from various general events unrelated to cries of infants. For instance, in some embodiments, the provided audio event datasetcan comprise at least a part of the large-scale audio-visual dataset named VGGSound. The VGGSound dataset is an automatically curated collection of hundreds of hours of YouTube recordings. In some embodiments, providing the audio event dataset can include extracting a portion of the VGGSound dataset. In some embodiments, the audio event dataset 212 can be the entire VGGSound dataset. It should be noted that the audio event dataset 212 is not limited to the VGGSound dataset and that other audio datasets can be provided, such as the AudioSet dataset, for example.
[0137] Once the audio event dataset 212 is provided, a next step 312 of the method 300 includes distorting clips of the dataset 212 to create correlated samples of a contrastive training dataset 314 (or correlated audio clips). A subsequent step 316 includes executing a first pre-training of the ICA neural network 214 using the contrastive dataset 314. In the present embodiment, the pre-training can involve training the ICA neural network 214 in a self-supervised way. Self-supervised training, or self-supervised learning (SSL), involves the neural network being trained on unlabelled data. In other terms, pre-training with SSL can correspond to a non-linear mapping of an audio sequence (or derivatives, such as a spectrogram) to a hidden representation, also known as embedding. The embeddings can be used as input to a classifier trained on a specific task with a supervised objective, i.e., using labelled data and conventional cross-entropy loss.
[0138] Pre-training with SSL can be performed based on various methods and frameworks. In the present embodiment, the ICA neural network 214 is pre-trained with an SSL contrastive loss method. More specifically, the ICA neural network 214 can be pre-trained with the simple framework for contrastive learning of visual representations (SimCLR) methodology. As it can be appreciated, the SimCLR method maximizes the similarity between modified (distorted) views of the same object. For audio, such distortion can be done, for example, by mixing random audio samples, spectrogram masking, and / or reverberation, pitch shifting, among others. As shown in Figure 2, the SimCLR, pre-training relies on an additionalprojection head 218, i.e., a three-layer multi-layer perception with 2,048 hidden layers and a bottleneck layer with 512 hidden units. It should be noted that other embodiments can be considered where the number of layers, hidden layers, and the bottleneck layer can vary depending on the configuration. During the pretraining, the ICA neural network 214 can be updated with stochastic gradient descent using small batches of audio recordings from the contrastive dataset 314. For instance, the neural network can be updated using mini-batches of 32 four- second chunks randomly selected from VGGSound clips.
[0139] As will be discussed below, performance of two identical CNN14 models pre-trained on VGGSound in a supervised and a self-supervised manner can be compared. As with the SSL pre-training, the supervised pre-training can involve updating the model with stochastic gradient descent using mini-batches of 32 four- second chunks randomly cut from VGGSound clips. When extracting embeddings of validation and test data, the model processes arbitrary-length audio sequences using global temporal pooling.
[0140] To study various aspects of pre-trained models, different evaluation techniques can be applied. A first technique can consist of using linear probing, where the frozen encoder extracts features for a linear classifier. A second technique, in addition to learning the linear classifier of the first technique, is to update statistics of batch normalization parameters of the neural network while keeping other parameters frozen. A motivation for such techniques is to compensate for the difference between pre-training and target data characteristics. This also allows to determine what portion of improvement obtained by SSL fine- tuning with cry data may be attributed to a simple update of normalization parameters occurring naturally during SimCLR. A third technique to improve classification results can be to perform end-to-end fine-tuning, where the neural network parameters are optimized jointly with the classifier on target tasks.
[0141] In the experimental data presented below, the supervised training is done for fifty (50) epochs in all three settings, and the model with the best validationscore is selected. Weighted random sampling is used to balance the distribution of classes during training. An Adam optimizer is used, with a learning rate reduced twice if the validation loss is not improved for three epochs. For end-to-end supervised fine-tuning, a much smaller and separately tuned learning rate can be used. Also, the encoder learning rate is linearly increased from zero to the target one over the first ten (10) epochs. In all the experiments presented below, the learning rates of the classifier and encoder are optimized using a grid search. For the model with the best validation score, the above-described process is repeated ten (10) times and the mean area under the receiver operating characteristic curve (AUC) is reported along with standard error. In some embodiments, for multi-class classification (triggers), the macro averaged AUC can be computed using a one- versus-rest approach.
[0142] Moreover, for the SSL pre-trained model, transfer is carried out from layer 1 of the projection head, as it was found that keeping one layer of the projection head of the SSL pre-trained model can lead to slightly better results.
[0143] To improve the quality of the SSL-trained ICA neural network 214, the neural network 214 can be adapted using cry-specific data. In some embodiments, a step of providing a cry-specific dataset 222 can be performed. The term “cryspecific” herein refers to datasets including data relating to cries as opposed to general domain audio sounds. In some embodiments, the cry-specific dataset 222 can include recording corresponding to infant cries. In some embodiments, the cryspecific dataset 222 can include cry data associated with cry recordings that can be segmented at arbitrary length (i.e. , from a few seconds to several minutes). Cry data associated with the cry recordings can for instance include acoustic biomarkers of cry sounds. “Acoustic biomarkers”, also referred to as acoustic features, herein refers to one or more measurable indicators or measurements of a biological condition related to a sound, e.g., a cry sound. Examples of acoustic biomarkers can include, but are not limited to, the cry unit (CU) or voiced expiration, the fundamental frequency (pitch of voice), the number of pause between each CU, among others.
[0144] In some embodiments, the cry-specific dataset can comprise a subset of a larger general dataset. For example, the cry-specific dataset can correspond to a subset of VGGSound that includes only recordings of infant cries. In some embodiments, the cry-specific data can correspond to a purpose-build dataset. For example, a purpose-built dataset can correspond to cry data that was previously collected and / or measured clinically. Such data can be collected during studies on patients (babies) residing in various hospitals. In some embodiments, cry recordings can be taken when infants are born and when they are discharged from the hospital.
[0145] An exemplary method for obtaining cry data to build a cry-specific dataset can involve obtaining cry recordings of infants. In some embodiments, the cry recordings are obtained using a phone application for a given period of time. For instance, the cries can be recorded for a period ranging from 30 seconds to 3 minutes. In some embodiments, a medical examination can also be performed during the recording to supplement and / or annotate the cry recordings with additional medical data or diagnoses. For example, a neurological examination can be conducted, which can include a four-scale measurement of the level of neuroinjury of an infant via a Sarnat examination. Acquiring the cry audio dataset 232 can involve segmenting the cries into CUs and pauses between each CU. It should be noted that segmenting the cries can be performed manually. However, automatic methods can also be considered.
[0146] The cry data can further be labelled or classified based on the type of cry recording. In some embodiments, the recording is categorized into groups. For instance, the recordings can be divided into a normal group and an injured group. The normal group can consist of cry recordings where no neuro-injury is detected. In contrast, the injured group can consist of cry recordings where mild, moderate and / or severe injuries are detected. In some embodiments, the cry data can be annotated with a trigger. The term “trigger” herein refers to the primary reason as to why the infant is crying. In the present embodiment, the cry data is annotated based on three main triggers namely, discomfort, hunger and pain. It can beappreciated that other types of triggers can also be considered and are not limited to the one previously mentioned.
[0147] Referring back to Figure 3, subsequent steps of the method 300 can involve distorting audio clips 322 of the adaptation audio dataset 222 as was done for the pre-training audio dataset 212 in step 312 to create an adaptation dataset 324, and executing a second pre-training 326 on the ICA neural network 224. To do so, the second pre-training is performed by using at least the adaptation dataset 324. Carrying out a second pre-training allows the neural network 224 trained via SSL on a general dataset to adapt from the domain of general audio sounds to the domain of cry sounds, by using unlabelled cry data and thus further improving the quality of the SSL representations. In some embodiments, the second pre-training can be carried out using a subset of the training data used as part of the first pretraining. For example, where VGGSound was used for the first pre-training, a subset of VGGSound comprising only recordings of infant cries can be used during the second pre-training. In some embodiments, a plurality of cry-specific datasets can be used. For instance, a purpose-built data set can be used in addition to the VGGSound subset. Moreover, additional external sources can be used, such as recording from the FreeSound website. In some embodiments, data can be used from a labelled cry-specific database configured to store cry data, such as unlabelled cry data (i.e., unlabelled cry sounds) and / or labelled trained data.
[0148] The second pre-training can be performed with similar parameters as previously described during the first pre-training step 316 and will not be described again in detail other than to highlight specific elements and / or difference between them. For instance, in the present embodiment, the second pre-training is performed by reusing the neural network 214 (i.e., the encoder and the decoder) trained on the VGGSound dataset, running a hundred (100) more epochs of SimCLR using the same learning rate and the same schedule as the first pretraining, but this time using the adaptation dataset 324. It can be appreciated, however, that other embodiments can be considered, where the training parameters differ from the first pre-training to the second pre-training. For instance,in the second pre-training, a batch size of two hundred (200) can be used for faster training. It can be considered that larger batches performed better for SimCLR.
[0149] To further improve the quality of the neural network 224, the neural network 234 can be further trained on a small amount of labelled data. Accordingly, a subsequent step 330 can include providing a labelled cry dataset 232. In some embodiments, the labelled cry dataset 232 can correspond to similar data that was used and / or collected as part of the cry-specific dataset 222. For example, the labelled cry dataset 232 can correspond to a purpose-built dataset consisting only of historical cry data labelled or classified with the categorization (injured or noninjured) and / or with the triggers previously described.
[0150] Once the labelled cry dataset 232 is provided, a subsequent step 336 can include further training the network 210 via supervised learning using the labelled cry dataset 232. As it can be appreciated, training the neural network 234 using supervised learning after having performed two SSL pre-training steps can allow fine-tuning the neural network and thus obtain more accurate outputs. In some embodiments, prior the fine-tuning 330 adapted model 224 by applying supervised learning 336, some projection layers of the projection heads are discarded 332 to obtain a “stripped model” 334, which is then fine-tuned in step 336. In some embodiments, in addition to discarding projection layers, step 332 includes adding one or more classification layers.
[0151] Once the ICA neural network 234 is fully trained, the model can be applied to carry out infant cry analysis. Depending on how the network is trained, the network can infer different cry-related information from an input corresponding to a recorded or live infant cry. In some embodiments, the ICA neural network 234 can output an indication related to the different categories or triggers mentioned above. For example, cry data can be inputted into the neural network 234 and the neural network 234 can output an indication that the cry data corresponds to a healthy (normal) or possibly injured infant. In some embodiments, the neural network can predict a health condition of the infant, such as if the infant is sufferingfrom birth asphyxia or hypoxic ischemic encephalopathy. In a similar manner, in case of a trigger detection, the ICA neural network 234 can output an indication that the infant is either hungry, hurt, and / or in pain.
[0152] With reference to Figure 4, a system 400 for analyzing an infant cry using an artificial neural network is shown. Broadly described, the system includes a recording device 410 for recording an infant cry, a neural network 140 trained to analyze infant cries and an output device 420, e.g., a monitor of a computer or the screen of a tablet or smartphone.
[0153] The recording device 410 can correspond to any device that is capable of recording and / or storing infant cries for subsequent analysis. For example, the recording device can comprise a microphone that is part of or in communication with a computer, tablet or smartphone, for instance the computer, tablet or smartphone associated with the output device 420. The recording device is used to record an infant cry. In some embodiments, the recording device 410 can be external to the system 400, and can be replaced for instance by a networking device used by a user to obtain the infant cry from a distant source.
[0154] The system 400 includes an artificial neural network 140, for instance a neural network including a convolutional encoder, an optional projection head and one or more classification heads. The neural network 140 is trained to analyze an infant cry, for instance by outputting a set of probabilities regarding, for example, a condition of the infant that produced the cry and / or a trigger for the cry. In some embodiments, the neural network is pre-trained, optionally adapted, and fine-tuned using one of the embodiments described above.
[0155] The system can include an output device 420 configured to convey an indication of a class prediction of the artificial neural network 140. For instance, an application running on a computer, tablet or smartphone can cause the output device 420 to display the class predicted by the neural network 140 to have the strongest probability. Additionally or alternatively, the application can cause theoutput device 420 to display the detailed probability predictions of the neural network 140.
[0156] In some embodiments, the system 400 includes an interpretation module (not shown) configured to cause the output device 420 to convey an explanation for the prediction of the neural network 140. Advantageously, being able to explain predictions can help ensure that the neural network model is robust and not, for instance, picking up noise or other artifacts, and gain perceptual insights about how the cry correlates with asphyxia. Moreover, better explanability of the model predictions makes it easier to explain the predictions to parents and medical professionals and increases trust. In some embodiments, the interpretation module implements the Local Interpretable Model-agnostic Explanations (LIME) framework and / or SoundLIME, which is an audio-specific adaptation of LIME that highlights the time, frequency, or time-frequency regions that contribute most to a decision.
[0157] With reference to Figures 4, 5A, 5B and 5C, in some embodiments, the interpretation module implements a method adapted from SoundLIME. In a first step, the audio signal 510 of the infant cry is segmented into a temporal sequence comprising a plurality of CUs. A number of perturbations are then generated, each perturbation corresponding to the audio signal of a subset of the CUs. As can be appreciated, if P is the set of possible perturbations and U is the set of CUs, P = 2U. Figure 5B shows an example of a perturbation 520. A subset, e.g., a randomly generated / selected subset, or all of the possible perturbations can be used. The perturbations are collected into a training set, also called a proxy training set, for training an explanatory proxy model. Each perturbation is input into the neural network 140 to obtain a corresponding prediction, which is used to label the perturbation. A proxy model, for instance a linear model, such as a logistic regression model, is then fitted to the proxy training set. Once fitted, the parameters / weights of the proxy model provides an indication of the importance of each CU in the prediction of neural network 140, which can be conveyed by theoutput device 420. As an example, the audio signal 510 can be shown along with a timeline 530 indicating the proxy model weights associated with each CU.
[0158] In some embodiments, the interpretation module is configured to further provide a spectral explanation. The above method is supplemented by converting each CU into spectrograms, dividing the frequency axis of each spectrogram into a suitable number of bands, e.g., between two and four, and creating additional perturbations for each spectrogram by masking at least one band. Thereby, the parameters / weights of the proxy model can be used to convey an indication of the importance of each part of a frequency spectrum in the prediction of neural network 140.Results
[0159] Experimentation was carried out to validate the efficacy of the SSL-based training pipeline described above. Referring to Figures 6 to 12B, a study was conducted with the objective to experiment with Pre-trained Audio Neural Networks using both supervised and self-supervised pre-training to learn representations for two downstream tasks. The first task was to classify brain injury (resulting from birth asphyxia), and the second was to predict cry triggers (pain, hunger, discomfort). In addition, the impact of domain adaptation using unlabelled cries and the SimCLR method was evaluated. To do so, the study was performed using a clinical database of newborn cries collected in collaboration with hospitals across three countries.
[0160] More specifically, the study was based on a subset of a larger newborn cry clinical database collected from five hospitals in Nigeria, Brazil, and Canada since 2020. Recordings were categorized into the two groups normal (no neuro injury) and injured (mild, moderate, or severe injury), and were used for classification purposes. The obtained cry data was further divided into three subsets, such as train, validation, and test, making sure the recordings of a given patient go to one of the subsets.
[0161] Referring to Figure 6, there is shown a summary of key statistics of the collected cry data. As shown, the number of recordings, the number of patients and the recording hours are compiled for each subset and divided based on the appropriate categorization.
[0162] In addition, the recordings were annotated with the different triggers which, as previously explained, represented the primary reason for crying determined by the medical or research staff. In this study, a subset of the three main triggers was used, resulting in 267 recordings of discomfort, 200 hunger, and 682 pain.
[0163] In the study, the used dataset contained a total of 146 patients with neurological injury and a total of 14.2 hours of recordings of annotated cry signals. The cry recordings used in the dataset were segmented in arbitrary length (a second to a few minutes). For SSL experiments, an additional 8 hours of unlabelled cries was used along with 1 .6 hours available in VGGSound and about 1 .4 hours collected from Freesound website using the search query “baby cry”.
[0164] While the primary focus of the study was on SSL pre-training and fine- tuning, two supervised approaches that do not use pre-training were considered as baselines. The first system was a statistical model using ComParE 2016 acoustic features extracted with OpenSmile toolkit. The feature set contained 6373 recording-level derivatives (mean, standard deviation, etc.) of various acoustic descriptors (MFCC, pitch, jitter, etc.), which are known to be commonly used in computational paralinguistic and infant cry classification. The model and hyperparameters were selected using the grid search and 10-fold cross-validation, maximizing the average AUC score. For this study, random forest, logistic regression, and support vector machine were considered in model selection. The second baseline is the CNN14 previously described using random initialization, with no pre-training and end-to-end supervised fine-tuning. The performance of baselines on neurological injury and triggers 440 is summarized Figure 7, for five experiments with different random seeds. As it can be noted, the CNN14 without pre-training did not outperform the statistical baseline. However, this result isbelieved to be unsurprising given that the training datasets are quite small for such a model.
[0165] The main results of neurological injury and cry trigger experiments are summarized in Figures 8 and 9. The first row in both Figures refers to supervised training with random initialization and is provided to give an idea about the model performance without pre-training.
[0166] In Figure 8, the performance of neuro injury classification under various types of pre-training and fine-tuning strategies 450 is illustrated. The first column indicates the type of pre-training. It should be noted that for the first row, no pretraining was applied. For the second row, supervised pre-training on the VGGSound dataset was applied. The rest of the rows used SSL-based pre-training on the VGGSound. The second column indicates the datasets used in SSL cry adaptation. It can be noted that in rows four to six, the datasets used in SSL cry adaptation were cumulative. The fourth row used neuro injury train. It should be noted that the train set, and neuro injury train set, used during the pre-training represented in the fourth row of Figures 8 and 9, correspond to unlabelled cry recordings collected from the five hospitals during the study. In the fifth row, 11 h of cries was added to the neuro injury training, and in the sixth row a replay buffer from the VGGSound dataset was added to the previous datasets from rows four and five. Columns three to five show the percentage of AUC (with the mean and the standard error) obtained with different supervised fine-tuning strategies (after the SSL fine-tuning as shown in Figure 1 ).
[0167] In Figure 9, the performance of the cry trigger classification is illustrated. The same structure and the same caption are illustrated in the same manner as Figure 8.
[0168] The last three columns in Figure 8 and Figure 9 summarize the performances obtained after fine-tuning the network with supervised training. From left to right, the results in the Figures correspond to (1 ) an evaluation with linear probing, where a linear layer was fine-tuned on top of the frozen encoder weights(Linear); (2) an evaluation with linear probing, with batch normalization (BN) layers updated during fine-tuning (Linear+BN); and (3) an end-to-end fine-tuning where the linear layer and whole encoder were updated (end-to-end).
[0169] The second and third rows in both Figures show a comparison between supervised and self-supervised initial pre-training with VGGSound. In these experiments, the cry database was used only for supervised fine-tuning (In other words, no-additional SSL cry adaptation stage was applied). During the experiments it was observed that, while simple linear probing performs better for supervised pre-training, the self-supervised pre-training achieved better results when updating BN statistics. Also, it was noted that with the end-to-end fine-tuning strategy SSL pre-training performed significantly better on neuro injury tasks.
[0170] Furthermore, in rows four to six of Figures 8 and 9, the results are shown when additional SSL cry adaptation stage is employed. First, a fine-tuning was performed with SimCLR using only a neuro injury training dataset, (as shown in row 4 of Figure 8). For neuro injury, it was noted that it significantly improved AUC for linear evaluation (71.3 to 78.8), but the improvement vanished when BN was updated (78.5 and 78.0). It was hypothesized that SimCLR in this experiment performed better mostly due to a significant domain mismatch between VGGSound that a simple BN update could compensate for. For the cry triggers, it was observed that SSL cry adaptation in general improved the performance obtained after supervised fine-tuning.
[0171] In the fifth row of Figures 8 and 9, the amount of unlabelled data was doubled for the SimCLR, SSL, cry adaptation stage. This was achieved by adding an 8-hour portion of previously unused cry data along with some unlabelled cry sounds from VGGSound and Freesound. In total, these SSL cry adaptation datasets amounted to approximately 11 hours of recording (hence it is called 11 h cry in Figures 8 and 9). This was noted to significantly improve the performance of linear evaluation with and without BN update for neuro injury. This, however, was not the case for end-to-end fine-tuning, where the initial VGGSound pre-trainingresults were in better transfer for neuro injury (row 3 of Figure 8). It could be considered that the model loses its generalization properties that are useful for fine-tuning due to catastrophic forgetting when the model was further adapted with SSL. To mitigate the forgetting effect, an SSL cry adaptation was performed using replay technique from continual learning literature, which is shown on the last row of both Figures. This was performed by replaying 50% of the VGGSound dataset when applying the SSL cry adaptation stage. It was noted that SSL cry adaptation with replay performed significantly better in all evaluations for neuro injury. Better results were also obtained on trigger classification using linear+BN evaluation with this approach.
[0172] Furthermore, the study focused on understanding if a small amount of labelled data could still yield a decent performance. The reason being that, as previously described, obtaining labelled, high-quality medical data is a timeintensive task and requires a significant amount of resources.
[0173] To understand the behaviour in the case where only a small amount of labelled data was available and to understand how SSL cry adaptation helps and which supervised fine-tuning method would give the best performance, an experiment with linear+BN and end-to-end fine-tuning using randomized subsets of labelled fine-tuning data was further performed.
[0174] Figure 10 illustrates the results for neuro injury classification using two models using various proportions of the available fine-tuning data: the models pretrained with SSL on VGGSound without SSL cry adaptation stage (solid lines of Figure 10 and row 3 of Figure 8) and the models that obtain the best performance with SSL cry adaptation (dashed lines of Figure 10 and last row of Figure 8). Models fine-tuned with linear probing and batch normalization fine-tuning are shown with circles, and models fine-tuned end-to-end are shown with squares. As it can be seen, the SSL cry-adapted model (solid lines) consistently outperformed the not-adapted ones (dashed lines) with a larger margin as the size of the supervised training data subset is reduced. Another point to note is that for the not-adapted models, as the amount of labelled fine-tuning data decreases, the end-to- end fine-tuning strategy decreased more rapidly in performance.
[0175] It can also be noted that SSL cry adaptation with replay performs significantly better in all evaluations for neuro injury, achieving up to 85% AUC (shown in Figure 8) and 75.6% AUC on cry trigger classification (shown in Figure 9). This showcases that SSL cry-adaptation may have potential to obtain satisfactory model performance by only incorporating a small amount of labelled data in the supervised fine-tuning stage.
[0176] With reference to Figure 11 , for reliable LAM evaluation, the model was trained 10 times with different random seeds and tested on a held-out set. The figure reports average sensitivity at 80% specificity and AUC with standard error. Sensitivity is shown with single diagonal stripes, and AUC is shown with double diagonal stripes. Figure 11 shows that the mild disease is harder to detect (88.3% AUC) compared to moderate and severe cases (95.0% AUC).
[0177] With reference to Figure 12A, to tune the hyperparameters of the model (learning rate and fine-tuning strategy), a 10-fold cross-validation approach was used. T raining and validation sets were split by 10 folds and for each fold the model was trained with the remaining 9. The receiver operating characteristic (ROC) curve shows average and standard error intervals of the best-performing hyperparameter sets. Randomly initialized model (without pre-training, dash dotted line) performs poorly with only 75.3% AUC. Supervised (dashed line) and selfsupervised (solid bold line) pre-training on generic audio data (without cry domain adaptation) improves the cross-validation performance significantly, with respectively 87.1 % and 88.9% AUCs. The best cross-validation results are obtained with the model that is further adapted to unlabelled cry sounds (this solid line), with an AUC of 90.9%.
[0178] With reference to Figure 12B, the test set performance differs depending on the hospital. With 97.7% AUC for Lagos State University Teaching Hospital (LASUTH, dashed line), the model obtains only 78.7% on Santa Casa deMisericord ia de Sao Paulo (SCDM, solid thin line). This may be attributed to the fact that the model was trained on 50 times more recordings from Enugu State University Teaching Hospital (ESUTH, solid bold line) and LASUTH compared to SCDM.
[0179] Numerous modifications could be made to the embodiments described above without departing from the scope of the present disclosure. The embodiments described above are intended to be exemplary only. A person skilled in the art would appreciate the features of the individual embodiments, and the possible combinations and variations of the components. A person skilled in the art would further appreciate that any of the embodiments could be provided in any combination with the other embodiments disclosed herein. The present examples and embodiments, therefore, are to be considered in all respects as illustrative and not restrictive. Accordingly, while specific embodiments have been illustrated and described, numerous modifications come to mind without significantly departing from the present disclosure.
Claims
CLAIMS1 . A method for training an infant cry analysis artificial neural network, the method comprising: pre-training the artificial neural network using a first self-supervised learning (SSL) to discriminate audio samples, the first SSL being carried out using a pre-training audio dataset comprising a plurality of generic audio clips, wherein the artificial neural network comprises: an encoder comprising at least one convolutional layer, and at least one head comprising a plurality of dense layers, the at least one head comprising a projection head; and fine-tuning the artificial neural network to classify cry samples by optimizing at least a subset of parameters of the neural network using a cry audio dataset comprising a plurality of cry audio clips and a plurality of labels, each cry audio clip being labelled with at least one label.
2. The method of claim 1 , wherein the pre-training comprises: generating, from the pre-training audio dataset, a contrastive training dataset comprising, for each generic audio clip from at least a subset of the generic audio dataset, at least two correlated audio clips, wherein each correlated audio clip corresponds to a distorted version of each of the other correlated audio clips; inputting each correlated audio clip of the contrastive training dataset into the encoder to generate an embedding corresponding to the correlated audio clip; inputting the embedding into the projection head to generate a contrastive prediction;computing a contrastive loss based on the contrastive prediction; and based on the contrastive loss computed for at least a subset of the contrastive training dataset, optimizing the parameters of the neural network.
3. The method of claim 1 or 2, wherein the fine-tuning comprises: inputting each cry audio clip from a fine-tuning dataset comprising at least a subset of the cry audio dataset into the encoder to generate a vector corresponding to the cry audio clip; inputting the vector into the at least one head to generate a class prediction; and optimizing at least the subset of the parameters of the neural network based at least on a loss associated with a class prediction for at least a subset of the fine-tuning data set.
4. The method of any one of claims 1 to 3, wherein the fine-tuning comprises replacing the projection head of the artificial neural network with a classification head, the classification head being configured to take as input an output of the encoder and to provide as output a class prediction.
5. The method of claim 4, wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head.
6. The method of claim 4 or 5, wherein the encoder comprises at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the at least one batch normalization layer.
7. The method of any one of claims 1 to 3, wherein the fine-tuning comprises adding a classification head to the artificial neural network, the classificationhead being configured to take as input an output of the encoder and to provide as output a class prediction.
8. The method of claim 7, wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head.
9. The method of claim 7 or 8, wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the projection head.
10. The method of claim 7 or 8, wherein the encoder comprises at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the at least one batch normalization layer.11 . The method of claim 7 or 8, wherein the encoder comprises at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head, of the projection head and of the at least one batch normalization layer.
12. The method of any one of claims 1 to 3, wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the projection head.
13. The method of any one of claims 1 to 3, wherein the encoder comprises at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the projection head and of the at least one batch normalization layer.
14. The method of any one of claims 1 to 4 and 7, wherein fine-tuning the artificial neural network comprises optimizing all the parameters of the neural network.
15. The method of any one of claims 1 to 3 and 7 to 14, wherein the fine-tuning comprises discarding a subset of the dense layers of the projection head.
16. The method of claim 15, wherein discarding the subset of the dense layers of the projection head comprises retaining only a first layer of the projection head.
17. The method of any one of claims 1 to 16, further comprising adapting the artificial neural network to cry data using a second SSL, the second SSL being carried out using an adaptation audio dataset comprising a plurality of adaptation audio clips.
18. The method of claim 17, wherein adapting comprises: generating, from the adaptation audio dataset, an adaptation dataset comprising, for each adaptation audio clip from at least a subset of the adaptation audio dataset, at least two correlated adaptation audio clips, wherein each correlated adaptation audio clip corresponds to a distorted version of each of the other correlated adaptation audio clips; inputting each correlated adaptation audio clip of the adaptation dataset into the encoder to generate an embedding corresponding to the correlated adaptation audio clip; inputting the embedding into the projection head to generate the contrastive prediction; computing the contrastive loss based on the contrastive prediction; and based on the contrastive loss computed for at least a subset of the adaptation training dataset, optimizing the parameters of the neural network.
19. The method of any one of claims 1 to 18, wherein the encoder comprises fourteen layers, the fourteen layers comprising six convolutional layers.
20. The method of any one of claims 1 to 19, further comprising obtaining the cry audio dataset by recording a plurality of infant cries after birth and / or before discharge.
21. The method of claim 20, wherein obtaining the cry audio dataset comprises segmenting cry activity into cry units.
22. The method of any one of claims 1 to 21 , wherein the infant cry analysis artificial neural network is configured to predict a neurological injury associated with the cry samples, and wherein the label comprises an indication of whether an infant associated with a cry audio clip from the cry audio dataset suffers from neurological injury.
23. The method of claim 22, wherein the label comprises a Sarnat score of the infant associated with the cry audio clip.
24. The method of claim 23, wherein the label comprises a neurological injury indication corresponding to “normal” or “injured”.
25. The method of any one of claims 1 to 24, wherein the infant cry analysis artificial neural network is configured to predict a cry trigger associated with the cry samples, and wherein the label comprises an indication of a crying trigger associated with a cry audio clip from the cry audio dataset.
26. The method of claim 25, wherein the crying trigger comprises at least one of: discomfort, hunger, pain, and stress.
27. The method of claim 25 or 26, wherein the crying trigger comprises at least one of: belly pain, teething acute pain, cold / hot, diaper, needs burping, position, tired, scared, lonely, and angry.
28. The method of any one of claims 1 to 27, wherein the fine-tuning comprises sampling the cry audio dataset to balance distributions of the labels.
29. The method of claim 28, wherein sampling the cry audio dataset comprises upsampling at least one minority class.
30. The method of claim 28 or 29, wherein sampling the cry audio dataset comprises downsampling at least one majority class.31 . The method of any one of claims 1 to 30, wherein the fine-tuning is performed for a first configurable number of epochs, wherein a validation score is computed after each of the epochs, and wherein the artificial neural network associated with a highest validation score is retained for use in production.
32. The method of any one of claims 1 to 31 , wherein optimizing at least the subset of the parameters of the neural network comprises using an Adam optimizer.
33. The method of any one of claims 1 to 31 , wherein optimizing at least the subset of the parameters of the neural network comprises determining a learning rate of the encoder and a learning rate of the at least one head.
34. The method of claim 33, wherein the learning rate of the encoder and / or the learning rate of the at least one head are optimized using grid search.
35. The method of claim 33 or 34, wherein a validation loss is computed after each epoch, and wherein the learning rate of the encoder and / or the learning rate of the at least one head are reduced if a validation loss remains stable or decreases over a second configurable number of epochs.
36. The method of any one of claims 33 to 35, wherein the learning rate of the encoder and / or the learning rate of the at least one head are increased from zero to a configurable number over a third configurable number of epochs.
37. The method of claim 36, wherein the increase is linear.
38. A method for analyzing an infant cry, the method comprising: obtaining the infant cry from a user;inputting the infant cry into the artificial neural network of any one of claims 1 to 37 to generate a class prediction; and conveying to the user an indication of the class prediction.
39. The method of claim 38, further comprising: segmenting an audio signal corresponding to the infant cry into a temporal sequence comprising a plurality of cry units; generating a plurality of perturbations, each perturbation corresponding to a subset of the plurality of cry units; generating a proxy training set, comprising, for each perturbation, an indication of the corresponding subset of the plurality of cry units and a proxy label corresponding to an output on the artificial neural network for the perturbation; fitting a proxy model based to the proxy training set, wherein the proxy model is a linear model; and conveying to the user an indication of parameters of the proxy model, wherein the parameters of the proxy model provide an indication of an importance of a corresponding cry unit.
40. The method of claim 39, further comprising: converting the cry units into spectrograms; dividing the frequency axis of each spectrogram into at least two and at most four bands; and creating additional perturbations for each spectrogram by masking at least one band,wherein the proxy training set further comprises, for each additional perturbation, an indication of the corresponding subset of the plurality of cry units and a proxy label corresponding to an output on the artificial neural network for the additional perturbation, and wherein the parameters of the proxy model further provide an indication of an importance of a corresponding part of a frequency spectrum.41 .A system for training an infant cry analysis artificial neural network, the system comprising: the artificial neural network, comprising: an encoder comprising at least one convolutional layer, and at least one head comprising a plurality of dense layers, the at least one head comprising a projection head; a pre-training module comprising a self-supervised learning module configured to pre-train the artificial neural network using a first selfsupervised learning (SSL) to discriminate audio samples, the first SSL being carried out using a pre-training audio dataset comprising a plurality of generic audio clips; and a fine-tuning module comprising a supervised learning submodule configured to fine-tune the artificial neural network to classify cry samples by optimizing at least a subset of parameters of the neural network using a cry audio dataset comprising a plurality of cry audio clips and a plurality of labels, each cry audio clip being labelled with at least one label.
42. The system of claim 41 , wherein: the pre-training module comprises a training set preparation submodule configured to generate, from the pre-training audio dataset, a contrastive training dataset comprising, for each generic audio clip from at least a subset of the pre-training audio dataset, at least two correlated audio clips,wherein each correlated audio clip corresponds to a distorted version of each of the other correlated audio clips; and the self-supervised learning module is configured to: input each correlated audio clip of the contrastive training dataset into the encoder to generate an embedding corresponding to the correlated audio clip, input the embedding into the projection head to generate a contrastive prediction, compute a contrastive loss based on the contrastive prediction, and based on the contrastive loss computed for at least a subset of the contrastive training dataset, optimizing the parameters of the neural network.
43. The system of claim 41 or 42, wherein the supervised learning module is configured to: input each cry audio clip from a fine-tuning dataset comprising at least a subset of the cry audio dataset into the encoder to generate a vector corresponding to the cry audio clip; input the vector into the at least one head to generate a class prediction; and optimize at least the subset of the parameters of the neural network based at least on a loss associated with a class prediction for at least a subset of the fine-tuning data set.
44. The system of any one of claims 41 to 43, wherein the the supervised learning module is configured to replace the projection head of the artificial neural network with a classification head, the classification head being configured totake as input an output of the encoder and to provide as output a class prediction.
45. The system of claim 44, wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head.
46. The system of claim 44 or 45, wherein the encoder comprises at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the at least one batch normalization layer.
47. The system of any one of claims 41 to 43, wherein the supervised learning module is configured to add a classification head to the artificial neural network, the classification head being configured to take as input an output of the encoder and to provide as output a class prediction.
48. The system of claim 47, wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head.
49. The system of claim 47 or 48, wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the projection head.
50. The system of claim 47 or 48, wherein the encoder comprises at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the classification head and of the at least one batch normalization layer.51 . The system of claim 47 or 48, wherein the encoder comprises at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of theclassification head, of the projection head and of the at least one batch normalization layer.
52. The system of any one of claims 41 to 43, wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the projection head.
53. The system of any one of claims 41 to 43, wherein the encoder comprises at least one batch normalization layer, and wherein the subset of the parameters of the neural network optimized during fine-tuning corresponds to parameters of the projection head and of the at least one batch normalization layer.
54. The system of any one of claims 41 to 44 and 47, wherein the supervised learning module is configured to optimize all the parameters of the neural network.
55. The system of any one of claims 41 to 43 and 47 to 54, wherein the supervised learning module is configured to discard a subset of the dense layers of the projection head.
56. The system of claim 55, wherein discarding the subset of the dense layers of the projection head comprises retaining only a first layer of the projection head.
57. The system of any one of claims 41 to 56, further comprising an adaptation module comprising an adaptation self-supervised learning submodule configured to adapt the artificial neural network to cry data using a second SSL, the second SSL being carried out using an adaptation audio dataset comprising a plurality of adaptation audio clips.
58. The system of claim 57, wherein: the adaptation module comprises an adaptation training set preparation submodule configured to generate, from the adaptation audio dataset, an adaptation dataset comprising, for each adaptation audio clip from at least a subset of the adaptation audio dataset, at least two correlated adaptationaudio clips, wherein each correlated adaptation audio clip corresponds to a distorted version of each of the other correlated adaptation audio clips; and the adaptation self-supervised training submodule is configured to: input each correlated adaptation audio clip of the adaptation dataset into the encoder to generate an embedding corresponding to the correlated adaptation audio clip; input the embedding into the projection head to generate the contrastive prediction; compute the contrastive loss based on the contrastive prediction; and based on the contrastive loss computed for at least a subset of the adaptation training dataset, optimize the parameters of the neural network.
59. The system of any one of claims 41 to 58, wherein the encoder comprises fourteen layers, the fourteen layers comprising six convolutional layers.
60. The system of any one of claims 41 to 59, further comprising a dataset acquisition module configured to obtain the cry audio dataset by recording a plurality of infant cries after birth and / or before discharge.
61. The system of claim 60, wherein obtaining the cry audio dataset comprises segmenting cry activity into cry units.
62. The system of any one of claims 41 to 61 , wherein the infant cry analysis artificial neural network is configured to predict a neurological injury associated with the cry samples, and wherein the label comprises an indication of whether an infant associated with a cry audio clip from the cry audio dataset suffers from neurological injury.
63. The system of claim 62, wherein the label comprises a Sarnat score of the infant associated with the cry audio clip.
64. The system of claim 63, wherein the label comprises a neurological injury indication corresponding to “normal” or “injured”.
65. The system of any one of claims 41 to 64, wherein the infant cry analysis artificial neural network is configured to predict a cry trigger associated with the cry samples, and wherein the label comprises an indication of a crying trigger associated with a cry audio clip from the cry audio dataset.
66. The system of claim 65, wherein the crying trigger comprises at least one of: discomfort, hunger, pain, and stress.
67. The system of claim 65 or 66, wherein the crying trigger comprises at least one of: belly pain, teething acute pain, cold / hot, diaper, needs burping, position, tired, scared, lonely, and angry.
68. The system of any one of claims 41 to 67, wherein the supervised learning submodule is configured to sample the cry audio dataset to balance distributions of the labels.
69. The system of claim 68, wherein sampling the cry audio dataset comprises upsampling at least one minority class.
70. The system of claim 68 or 69, wherein sampling the cry audio dataset comprises downsampling at least one majority class.
71. The system of any one of claims 41 to 70, wherein the supervised learning submodule is configured to perform a first configurable number of epochs of fine-tuning and to compute a validation score after each of the epochs, and wherein the artificial neural network associated with a highest validation score is retained for use in production.
72. The system of any one of claims 41 to 71 , wherein the supervised learning submodule is configured to optimize at least the subset of the parameters of the neural network at least in part by using an Adam optimizer.
73. The system of any one of claims 41 to 71 , wherein the supervised learning submodule is configured to optimize at least the subset of the parameters of the neural network at least in part by determining a learning rate of the encoder and a learning rate of the at least one head.
74. The system of claim 73, wherein the learning rate of the encoder and / or the learning rate of the at least one head are optimized using grid search.
75. The system of claim 73 or 74, wherein the supervised learning submodule is configured to compute a validation loss after each epoch and to reduce the learning rate of the encoder and / or the learning rate of the at least one head if a validation loss remains stable or decreases over a second configurable number of epochs.
76. The system of any one of claims 73 to 75, wherein the supervised learning submodule is configured to increase the learning rate of the encoder and / or the learning rate of the at least one head from zero to a configurable number over a third configurable number of epochs.
77. The system of claim 76, wherein the increase is linear.
78. A system for analyzing an infant cry, the system comprising: a recording device to record the infant cry; the artificial neural network of any one of claims 1 to 37, configured to accept the infant cry as input to generate a class prediction; and an output device configured to convey to a user an indication of the class prediction.
79. The system of claim 78, further comprising an interpretation module configured to: segment an audio signal corresponding to the infant cry into a temporal sequence comprising a plurality of cry units; generate a plurality of perturbations, each perturbation corresponding to a subset of the plurality of cry units; generate a proxy training set, comprising, for each perturbation, an indication of the corresponding subset of the plurality of cry units and a proxy label corresponding to an output on the artificial neural network for the perturbation; fit a proxy model based to the proxy training set, wherein the proxy model is a linear model; and convey to the user an indication of parameters of the proxy model, wherein the parameters of the proxy model provide an indication of an importance of a corresponding cry unit.
80. The system of claim 79, wherein the interpretation module is further configured to: convert the cry units into spectrograms; divide the frequency axis of each spectrogram into at least two and at most four bands; and create additional perturbations for each spectrogram by masking at least one band, wherein the proxy training set further comprises, for each additional perturbation, an indication of the corresponding subset of the plurality of cry units and a proxy label corresponding to an output on the artificial neuralnetwork for the additional perturbation, and wherein the parameters of the proxy model further provide an indication of an importance of a corresponding part of a frequency spectrum.81 . A non-transitory computer-readable medium having instructions stored thereon which, when executed by one or more processors, cause the one or more processors to perform the method of any one of claims 1 to 40.
Citation Information
Patent Citations
Unified speech representation learning
US20220366898A1
