Advanced Deep Learning Spectroscopy of Scalogram Infused CNN Classifiers for Robust Identification of Post‐Hypoxic Epileptiform EEG Spikes

There is a lack of reliable prognostic biomarkers for hypoxic‐ischemic (HI) brain injury in preterm infants. Herein, spectrally detailed wavelet scalograms (WSs), derived from the 1024 Hz sampled electroencephalograms (EEG) of preterm fetal sheep after HI (n = 7), are infused into a high‐performance deep convolutional neural network (CNN) pattern classifier to identify high‐frequency spike transient biomarkers. The deep WS‐CNN pattern classifier identifies EEG spikes with remarkable accuracy of 99.81 = 0.15% (area under curve, AUC = 1.000), cross‐validated across 5010 EEG waveforms, during the first 6 h post‐HI (42 h total), an important clinical period for diagnosis of HI brain injury. Further, a feature‐fusion strategy is introduced to extract the spectrally dominant features of the raw EEG epochs to form robust 3D input matrix sets to be infused into the deep 2D‐CNNs for pattern classification. The results show that the proposed WS‐CNN approach is less sensitive to the potential morphological variations of spikes across all subjects compared to other deep CNNs and spectral‐fuzzy classifiers, allowing the user to flexibly choose an approach depending on their computational requirements. Collectively, the data provide a reliable framework that could help support well‐timed diagnosis of at‐risk neonates in clinical practice.


DOI: 10.1002/aisy.202000198
There is a lack of reliable prognostic biomarkers for hypoxic-ischemic (HI) brain injury in preterm infants. Herein, spectrally detailed wavelet scalograms (WSs), derived from the 1024 Hz sampled electroencephalograms (EEG) of preterm fetal sheep after HI (n ¼ 7), are infused into a high-performance deep convolutional neural network (CNN) pattern classifier to identify high-frequency spike transient biomarkers. The deep WS-CNN pattern classifier identifies EEG spikes with remarkable accuracy of 99.81 ¼ 0.15% (area under curve, AUC ¼ 1.000), cross-validated across 5010 EEG waveforms, during the first 6 h post-HI (42 h total), an important clinical period for diagnosis of HI brain injury. Further, a feature-fusion strategy is introduced to extract the spectrally dominant features of the raw EEG epochs to form robust 3D input matrix sets to be infused into the deep 2D-CNNs for pattern classification. The results show that the proposed WS-CNN approach is less sensitive to the potential morphological variations of spikes across all subjects compared to other deep CNNs and spectral-fuzzy classifiers, allowing the user to flexibly choose an approach depending on their computational requirements. Collectively, the data provide a reliable framework that could help support well-timed diagnosis of at-risk neonates in clinical practice.
Electroencephalogram (EEG) recordings can provide useful diagnostic and prognostic biomarkers of evolving HI injury. [7,8] We have previously shown, in preterm fetal sheep EEG recordings, that epileptiform transients such as sharp waves and high-frequency microscale spike transients in the gamma frequency band (80-120 Hz), superimposed on a suppressed EEG background, are key EEG waveforms and are predictive of neural outcome during the first 6 h of recovery from an HI insult (see Figure 1). [6,[8][9][10][11] Similar EEG transients are also seen clinically and are associated with adverse neurological outcomes. [12] Current studies on the application of automated convolutional neural network (CNN)-based strategies in clinical neonatal EEG studies have primarily focused on developing consistently interpretable determinations of seizures and other EEG features, but not microseizures or post-HI EEG biomarkers. [13][14][15][16][17] Our team has previously shown various successful fusion strategies for automatic detection of post-HI microscale EEG transients. [8,10] Further, we have undertaken preliminary examination of the wavelet-scalogram (WS) CNN structure to robustly identify post-HI sharp waves from an EEG background and artifact during the latent phase after the HI insult with 95.34% accuracy. [17] In the current study, we evaluated, for the first time, how application of spectrally rich WSs to our post-HI experimental EEG data could be used as inputs to a pattern classifier in the form of a 17-layer deep 2D-CNN for the accurate identification of microscale gamma spike transients in the latent phase. Our study showed that the WSs, generated through continuous wavelet transform (CWT) of the gamma spike transients over a broad scale-range of 1-19, using a reverse biorthogonal basis wavelet (rbio2.8), provide spectrally rich feature maps for the 17-layer deep WS-CNN pattern classifier to accurately (99.81 AE 0.15%) classify gamma spike transients from EEG background noise and other artifacts. Further, we introduced a spectral-based feature extraction strategy to create robust input matrices to be infused into a deep CNN classifier and compared the results against the WS-CNN and conventional 1D-CNN approaches. The set of deep CNN-based approaches in this study provided a reliable platform for data exploration of real-world clinical datasets without the requirement of manual intervention.

Cross-Dataset Results of the WS-CNN Classifier
The overall accuracy was 99.81 AE 0.15% (range 99.6-100%), confirming the reliability of the developed WS-CNN pattern classifier for the identification and classification of post-HI microscale gamma spike transients in the fetal electrocorticogram (ECoG) recordings collected at 1024 Hz ( Table 1 and Figure 2). Results of the sevenfold cross-validation, using the entire 6 h of data across all sheep (42 h total), showed that the performance of the WS-CNN classifier slightly deceased to 99.03 AE 1.66%, 98.54 AE 1.43%, and 97.70 AE 1.99% for the network architectures with 17, 13, 9, and 5 layers of depth, respectively (Table S1-S3 of Appendix A, Supporting Information). Average values of 1.000, 0.997, 0.995, and 0.976 were calculated for the overall performance of the WS-CNN pattern classifier using 17, 13, 9, and 5 layers of depth, respectively. The results show predictable reductions in total accuracy along with increasing variability (as seen in the increasing standard deviation) as the number of layers decreased ( Figure 2H). The receiver-operator (ROC) curves and the corresponding AUC values in Figure 2A-G show how the performance of the WS-CNN classifier from sevenfold cross-validation analysis changed across the fetal data as the number of layers decreased.

Cross-Dataset Results of the WF-CNN Classifier
The sevenfold cross-validated performance validation of the 11-layer WF-CNN pattern classifier resulted in an overall accuracy of 99.44 AE 0.44% (range: 98.7-100%) when tested on the total   11,9,7, and 5 layer of depth, respectively. Results of the confusion matrix as well as ROC curves and the corresponding AUC values of the WF-CNN classifier are shown in Figure S1 and Table S4-S7, Supporting Information).

Cross-Dataset Results of the 1D-CNN Classifier
The sevenfold cross-validated performance validation of the 11-layer 1D-CNN pattern classifier resulted in an overall accuracy of 99. 27 Figure S2 and Table S8-S11 of Appendix C, Supporting Information.

Cross-Dataset results of the Spectral-Fuzzy Classifiers
As expected, the WT-Type-I-Fuzzy and FFT-Type-I-FLC approaches resulted in high overall performance of 99.04 AE 0.53% and 98.42 AE 0.71% respectively for the identification of individual microscale spike transients when evaluated at the best threshold value, cross-validated across the sampled data (Table S12 and S13 of Appendix D, Supporting Information).

Discussion
Our article presents, for the first time, a series of highperformance deep convolutional pattern classifiers infused with spectrally rich feature map input matrices of EEG segments (i.e., WSs) to automatically identify microscale gamma spike transients during the first 6 h (the latent phase) of recovery after an HI insult in preterm fetal sheep. Performance comparisons of our classifiers ( The article also showed the novel use of a spectral-based strategy to extract the spectrally dominant features of the raw ECoG epochs to form robust input matrix sets to be infused into the deep 2D-CNN (WF-CNN) for the classification of spike transients. Our data show that the 11-layer WF-CNN pattern classifier can competitively identify the spike transients compared to the WS-CNN approach, with 99.44 AE 0.44% accuracy (AUC: 0.998). This suggests that the minimal spectral features in the input matrices can provide sufficiently rich features for the 2D-CNN to build computationally simpler feature maps for acute classification that run faster with less required memory. However, this would be at the expense of a negligible loss of accuracy drop, compared to the WS-CNN approach. This was then followed The cross-validation results of the 17-layer WS-CNN approach recognized this strategy to be the least sensitive to the potential morphological variations of spike transients across all subjects, resulting in only AE0.15% standard variation in the overall performance of all >99.6% across all subjects. Greater standard deviations of AE0.44% and AE0.51% with lower overall performance were observed for some subjects when the deepest WF-CNN and 1D-CNN approaches were used (also see Table 2). We postulate that there are two reasons for the increase in the overall standard deviation when the deepest 1D-CNN and WF-CNN were used compared to the WS-CNN. First, the different feature extraction strategies used in each of these techniques can provide different levels of information at different resolutions. For example, the WS method provides more information compared to the WF and 1D raw data. Second, the embedded morphological uncertainties of the spike transients can add ambiguity in the extracted features at different levels when each of the proposed feature extraction techniques is used, causing the biggest standard deviation for the 1D data when raw data were directly fed to the CNN. Results from Bayesian estimation analysis further justify how the deepest WS-CNN would statistically outperform the other classifiers, either in other classes or with shallower structures within the same class (see Figure S4 and S5 of Appendix G, Supporting Information).
Results from Table 2 further suggest that shallower CNN architectures are much more sensitive to the morphological variations of spike transients, highlighting the robust capabilities of deeper CNN architectures to handle uncertainty within the data. The 1D-CNN scheme, directly fed with the raw EEG time-series, was proposed to utilize/assess the standalone feature extraction/ generation property of the CNNs on its own, compared to the WS-CNN and WF-CNN techniques, where robust spectral feature-extraction approaches were combined to reinforce the performance of the 2D-CNNs. Results indicate that the combination of deeper neural networks with successful feature extraction strategies can be a powerful tool in handling the embedded uncertainties within the data, which could ultimately lead to much better accuracies that could be relied on in real practice. In this work, classifiers were trained on spikes aligned at the center of the analyzing windows. We suggest that this is a beneficial property of the proposed classifiers as it provides more realistic signal processing of the data in an online environment.
In real-time practice, a sliding window of specified size can be run over streaming data and the algorithm highlights regions with higher similarity probabilities to spike transients. This property will be limited by the selected length for the sliding window; where a window with either too wide or too narrow a length would highly influence the classifiers' outputs. Therefore, we would recommend choosing a window size that closely represents the target waveform in any application. Moreover, as an influencing factor, background noise contamination may impact the overall performance and needs to be controlled as required by the individual needs of an application. In this work, only 50 Hz noise was removed from the original EEG time-series to allow generalization of the technique to a more challenging environment; such as spectrally complex clinical data.
We suggest that careful architecture design, through avoiding significant image-size reductions between the layers of deeper networks, has helped to avoid overfitting. Readers are encouraged to investigate this from the results shown in Figure 2H and Figure S1H, Supporting Information, when deeper structures used for performance evaluation demonstrate no performance drop for the deeper architectures compared to the shallower networks, confirming that the chosen strategy to avoid large size reductions was valid when designing the nets.
In addition, our study further compared the results of the deep CNN approaches with other spectral-based techniques, such as the WT-Type-I-Fuzzy and FFT-Type-I-FLC classifiers. However, unlike the comprehensive confusion matrix measures for the CNN-based classifiers, the nature of the fuzzy-based approaches only allowed the evaluation of sensitivity and selectivity in the absence of other performance measures (i.e., precision) for the WT-Type-I-Fuzzy and FFT-Type-I-FLC classifiers, which resulted in overall accuracies of 99.04 AE 0.53% and 98.42 AE 0.71%, respectively. However, while the overall accuracies of these techniques are numerically close to the accuracies of the deep CNN classifiers, their reliability is arguably less, especially when applied to the highly complex clinical data environment. In fact, the spectrally complex nature of EEG in a challenging clinical environment that has an abundance of high-frequency spectrums and background artifacts could lead to lower precision results in the spectral-based techniques. This in turn would cause a significant drop in the overall performance of the later fuzzy-based techniques. Thus, collectively our data show that WS-CNN, WF-CNN, and 1D-CNN pattern classifiers robustly outperform the fuzzy-based approaches, despite their small differences in the numerical overall performance results.
Overall, we expect the proposed high-performance EEG pattern classifiers in this work to have the potential to also accurately detect similar morphology waveforms in clinical data. HI insults leading to brain injury are treatable, but the current standard therapy, therapeutic hypothermia, is only effective when started within a specific window of time in the evolution of brain injury. Our EEG pattern classifiers will allow us to determine the phase of injury and thus whether infants will benefit from treatment.

Definition of HI Microscale Spike Transients
We have previously described the appearance of microscale gamma spike transients after an HI insult. [8,10,11] Briefly, they are EEG epileptiform waveforms characterized as events with a pointed peak, with amplitude of >20 μV and duration of <12.5 ms (equivalent to the frequency range of >80 Hz) (see Figure 1). To evaluate the performance of the classifier and for consistency between all methods individual microscale gamma spikes (i.e., excluding spike complexes) with an amplitude of at least 14 μV were assessed for automatic classification against manual quantifications. Gamma spike transients were identified manually by an expert (HA). A total of 5010 manually annotated ECoG patterns (scalogram images), within a total of 42 h of data, including 2085 microscale post-HI spike transients and 2925 nonspike events, were used for training, validation, and testing of the deep CNN-based pattern classifiers.

CNNs for Evaluation of the Post-HI EEG
Recent artificial neural network (ANN) architectures with deeper learning structures include a much higher number of nodes and neurons that can better mimic the intricate connectivity of the human brain. CNN architectures are generally categorized under deep learning with significant classification abilities. To date, CNN-based analysis has not been utilized for the identification of post-HI perinatal EEG microscale transients. However, recent studies have investigated the use of CNNs for automatic analysis of brain data, including prediction of epileptic seizures, [18] epilepsy classification, [19] EEG artifact identification, [20] and detection of high-frequency EEG oscillations. [21] However, there has been limited work to date using CNNs for the identification and classification of seizure-like patterns in EEG, [22][23][24][25] grading the severity of HIE, [26] and in particular neonatal EEG seizure detection through multichannel EEG recordings. [14,15] The literature suggests that 1D time-series can also be directly fed into various formats of CNN architectures for seizure identification [23] and epilepsy detection. [27] Feature extraction through wavelet transform of data (time-frequency images) has been shown to enhance the performance of the conventional CNN approaches.
To date, to the best of our knowledge, our previous study is the only published data on the use of CNN for automatic identification of HI biomarkers where the proposed WS-CNN pattern classifier achieved an overall performance of 95.34% for the classification of HI sharp wave in a limited dataset of fetal sheep HI EEG recordings (trained and tested on 2 and 1 h recordings from two different sheep). [17] By contrast, the current study investigated the validity of a series of deep CNN-based pattern classifiers, with different depth configurations, for the identification of gamma spike transients post-HI insult.

Scalogram Image Preparation
We have previously shown that the rbio2.8 mother wavelet can serve as an optimal wavelet basis for the time-localization of gamma spike transients when used as the transfer function in a CWT. [8] We have also shown that the spectral features of the rbio2.8 mother wavelet are well aligned with the spectral features of the HI gamma spike transients. [10] In this work, the normalized/zero-meaned raw 1024 Hz sampled ECoG was used for scalogram feature extraction. The CWTs of the zero-meaned ECoGs, using the rbio2.8 mother wavelet at scales 1-19, are initially used to generate scalogram images of an arbitrary ECoG section. Gamma spike transients observed within the raw fetal ECoG, 30-210 min postinsult, are shown in Figure 3A-D. The 2D WSs of the spikes in Figure 3A-D were constructed using rbio2.8 CWT at scales 1-19 and are shown in Figure 3E-H, respectively. Examples of the nonspike events from the same ECoG sections, as well as their corresponding scalograms, are shown in Figure 3I-L and M-P, respectively.
These figures show how the spectrally rich rbio2.8 CWT of ECoG sections at scales 1-19 can provide distinct feature maps in the form of high-resolution scalogram images for deep training of the WS-CNN pattern classifier to distinguish between gamma spikes and background ECoG and artifact. CWT scalogram images from the labeled data were stored for the training of the WT-CNN pattern classifier. To generalize the approach and assess its capabilities for use on clinical data; which undergo less processing, both clean and noisy data were used to train, test, and validate the WS-CNN pattern classifier.

The Proposed Deep WS-CNN Classifier: Model Setup and Architecture
Analysis of high-frequency events in the ECoG data requires extra levels of algorithm proficiency due to the complex nature of the signal. The approach taken in this study was designed to tackle the issue by combining the opposite "decomposition" and "combination" functionalities of wavelets and the CNN architecture, respectively. Our study, in particular, validates the performance of our previously developed 17-layer deep WS-CNN pattern classifier architecture [17] for the automatic identification of gamma spike transients in the ECoG datasets from seven fetal sheep post-HI.
The 2D WSs from the reverse biorthogonal wavelet (rbio2.8 over the scale range 1-19) provide spectrally detailed decomposition representations of ECoG patterns for the CNN classifier to combine/convolve the high-resolution elements for final decision-making between a high-frequency gamma spike transient and background activities and/or artifact. A detailed summary of the proposed CNN architecture is shown in Table 3. Figure 4 shows the graphical flow chart of the proposed WS-CNN architecture. Scalogram input images of size 303 Â 404 Â 3 were fed into the WS-CNN classifier, which were then processed through a 17-layer deep structure, including seven convolutional layers (with rectified linear activation units (ReLUs) and batch normalization), seven max pool, three fully connected layers (with output sizes of 1536, 24, and 2), and finally a softmax and a classification layer, consecutively. The sizes of the kernel filters at each layer were chosen arbitrarily to derive an adequate amount of features from the data. The stride values were also set to 1 and 2 for the convolution and max-pooling layers, respectively, to adjust the mathematical computations. The number of filters at each convolutional block was set to 16, 32, 48, 72, 96, 128, and 256, respectively ( Figure 5A). Stepping through the CNN layers yields higher decompositions, while using a larger number of filters at the deeper layers allows performance of an opposite functionality by "combining/convolving" the elements back for a more accurate classification.
Initially, an input image was convolved in a convolutional layer with the kernel filters/matrixes to generate "feature maps" in its output.
Stride parameters of a convolutional layer are used to control the amount of jump/overlap that is considered across the input image for the next convolutional filtering step. A convolutional layer is usually followed by an ReLU layer to eliminate nonlinearity. This was performed by using an activation function that maps the outputs of the previous layer into a thresholded representation. An ReLU layer was followed by a max-pool layer to reduce the dimension of the matrixes from the convolutional/ReLU layers. The size reduction significantly contributed to the simplification of the computational burden and helped to avoid overfitting. The maximum values from each ReLU block (feature maps) were selected in a max-pool operation. The output nodes from the last max-pool layer are directly linked to all of the input neurons of a fully connected block that multiplies its inputs by a weight matrix and adds them up with a bias vector. Features from the previous layers throughout the entire image were combined in a fully connected block to detect embedded patterns and helped with final classification. A softmax function was then used to evaluate the probability distribution of the output classes from the last fully connected layer. Finally, a classification layer calculated the cross-entropy loss of the softmax outputs and allocated each value to one of the categories (classes) (see Figure 5A). [28] The effects of reducing the number of layers in the proposed deep classifying architecture were investigated using a lower number of 13, 9, and 5 layers from the original 17-layer structure. To do so, the seven blocks of convolutional, ReLU, and max-pool layers in the original architecture (14 convolutional layers) were redesigned, with careful tuning of the inner convolutional layers to avoid massive image-size reductions, to form 5, 3, and 2 blocks in the new architectures (corresponding to 10, 6, and 4 convolutional layers, respectively). The new architectures were designed only with removing of the convolutional blocks and not with reducing/changing of the size/number of filters in the convolutional blocks. However, the output of the final convolutional block was always designed to match the original size of 2 Â 3 in all cases. www.advancedsciencenews.com www.advintellsyst.com

Training and Testing of the WS-CNN Classifier
The stochastic gradient descent with momentum (SGDM) strategy was used to minimize the loss function E(θ) through updating of the weights and bias parameters, where θ represents the parameters vector Initial values of 0.01 and 0.09 were assigned to the learning rate, α, and momentum, γ, respectively. In the SGDM updating algorithm α is designed to control the learning speed and γ is used to control the convergence through reducing the oscillations of the parameters during upgrading steps on the steepest descent optimization path. Further tuning of the learning rate and momentum was not investigated due to the congenial performance results of the classifier. The classifier was trained over a total of 180 epochs with a training-validation distribution share of 80% to 20%, respectively. All the training sets were passed through the net during each epoch.
The batch size parameter was set to 128. The batch size indicates the number of training examples at each training iteration, where a higher chosen batch size value requires more memory space. The dataset from the remaining sheep, which was not used in the training process, was allocated for testing of the net. The substitution of the root mean square propagation (RMSProp) and Adam updating algorithms with the SGDM optimizer was observed to cause more convergence fluctuations and a much slower training process, for each, respectively. Thus, the aforementioned updating algorithms were not investigated further for result production. Figure 6 shows a schematic of data distribution for training, validation, and testing of the net. A total of 5010 manually annotated ECoG scalogram images, within a total of 42 h of data, including 2085 microscale HI gamma spike transients and 2925 nonspike events, were used for training, validation, and testing of the deep WS-CNN classifier. The net was trained over a total of 180 epochs, taking almost 31 h to train using the aforementioned core configuration.

Spectral Feature Fusion
The superior compatibility of the reverse biorthogonal wavelet rbio2.8 basis function for gamma spike detection in comparison to other wavelet basis functions would allow us to extract minimal features from a spike transient to be used in a 2D-CNN. [10] Here, for the first time, we also show an approach that, instead of the full-range spectral features (scalograms) as in the WS-CNN approach, only extracts the spectrally dominant features of the raw ECoG epochs, using wavelet and Fourier spectrums (WF), to form robust input matrix sets. In this method, the CWT coefficients of each zero-meaned ECoG segment (72 Â 1) using rbio2.8 at scale 7 ( Figure S3E-H of Appendix F, Supporting Information) as well as the inverse Fourier transform time-series of the data (IFFT: spectral components within 80-120 Hz preserved- Figure S3I-L, Supporting Information) along with the original raw ECoG segment ( Figure S3A-D, Supporting Information), were combined to form robust 3D input-matrix sets of size 72 Â 3 Â 1 ( Figure S3M,N, Supporting Information) to be fed directly into the deep 2D-CNN classifier (WF-CNN). Such a strategy creates consistent profiles that facilitate the internal feature extraction within the CNN algorithm to generate even more robust feature maps for classification between spikes and nonspikes.

The Proposed Deep WF-CNN Classifier: Model Setup and Architecture
Compared to the WS-CNN, here we introduce an 11-layer 2D WF-CNN classifier that could be considered to be computationally more efficient due to the much simpler input matrix of features, instead of the computationally intensive scalograms used  www.advancedsciencenews.com www.advintellsyst.com in the WS-CNN. In fact, the WS block in Figure 4, or more specifically, the scalograms in Figure 5A, are replaced with an input matrix of size 72 Â 3 Â 1 containing the CWT, IFFT, and raw ECoG data (see Figure S3M, Supporting Information). The structure of the 2D-CNN used in the WF-CNN is shown in Table S14 of Appendix E, Supporting Information. Compared to the 17layer designed structure for the WS-CNN, a maximum feasible depth of 11 layers was designed, according to the limitations related to the size of the inputs for the WF-CNN as well as the inevitable design considerations that should have been taken into account for optimal tuning of the inner convolutional layers to avoid massive size reductions within the inner layers. Similar to the WS-CNN, an SGDM updating strategy was used for sevenfold cross-validation of the WF-CNN. Our recent assessments using limited data indicated that this approach is capable of identifying both sharps and spikes in the recordings of fetal sheep models. [29,30] Here we validated the technique using a much larger dataset, while we also assessed how the size of the network influences the overall performance. Using the procedure described for the WS-CNN pattern classifier, the article investigates the effects of reducing the original 11-layer, 2D-CNN structure down to 9, 7, and 5 layers by using 4, 3, 2, and 1 block(s) of convolutional, ReLU, and max-pool layers in each architecture, respectively.

1D-CNN Classifier
Here we also investigate the performance of a 1D-CNN classifier applied directly to the ECoG time-series as the input. ECoG segments of length 72 Â 1 (for both spike and nonspike events) were fed into an 11-layer deep 1D-CNN structure for classification. In the proposed 1D-CNN structure, the WS generating block in Figure 4 is bypassed from the previously detailed WS-CNN pattern classifier. The designed architecture of the proposed 1D-CNN pattern classifier is detailed in Table S15 of Appendix E, Supporting Information, while the CNN block in this approach is shown in Figure 5B. The maximum depth of 11 layers was designed, inevitably, based on the limited length of the input ECoG segment and considering a stride value of 2 for all max-pooling layers. Our recent assessments indicated that the 1D-CNN classifier is well capable of identifying highamplitude stereotypic epileptiform seizures in a limited dataset of fetal sheep; [31] therefore, here we evaluated the technique for high-frequency gamma spikes. Using a similar procedure to that described for the WS-CNN pattern classifier, the article investigates the effects of reducing the original 11-layer 1D-CNN structure down to 9, 7, and 5 layers using 8, 6, 4, and 2 convolutional layers in each architecture, respectively.

Wavelet Type-I Fuzzy Classifier
In 2018, we introduced a successful WT-Type-I-Fuzzy approach for the identification of HI microscale gamma spike transients in the latent phase of HI ECoG. [8] In this work, the performance of the WT-Type-I-Fuzzy classifier was also assessed for the quantification of individual microscale spike transients over the entire 6 h post-HI ECoG. In brief, data were initially continuous wavelet transformed using the Rbio 2.8 mother wavelet at scale 7 and www.advancedsciencenews.com www.advintellsyst.com then passed to the fuzzy classifier for final reasoning (see ref. [8] for detailed information). In this approach, the WT-Type-I-Fuzzy classifier was separately cross-validated on data from each individual sheep.

Spectral Fourier-Fuzzy Classifier
We recently introduced a spectral-based fuzzy approach (FFT-Type-I-FLC classifier) for the identification of HI microscale gamma spike transients in the latent phase recordings of post-HI ECoG activity. [10] In this work, the performance of the FFT-Type-I-FLC was also assessed for the quantification of individual microscale spike transients over the entire 6 h of post-HI ECoG recordings. In brief, data were initially Fourier/inverse Fourier transformed preserving the spectral components in the 80-120 Hz frequency band and then passed to the type-I fuzzy classifier for final reasoning (see ref. [10] for detailed information). In this approach, the FFT-Type-I-FLC classifier was separately cross-validated on data from each individual sheep.

Computing Infrastructure
The deep WS-CNN and WF-CNN classifiers were trained using New Zealand eScience Infrastructure (NeSI) high-performance computing facilities that offer the Cray CS400 cluster. The classifiers were trained using 12 CPUs (six hyperthreaded cores) on an Intel Xeon Broadwell node (E5-2695v4, 2.1 GHz) with 18 GB of memory (1.5 GB RAM memory per CPU). The algorithms were executed using Matlab programming software.

K-Fold Cross-Validation for the Deep CNN-Based Classifiers
The performance of the WS-CNN, WF-CNN, and 1D-CNN classifiers was evaluated using a subject-based k-fold cross-validation strategy (sevenfold) to assure the validation, consistency, and reliability of the proposed pattern classifiers across all subjects. This strategy helps to assess the degree of reliability of the classifiers in dealing with potential morphological variations of the transients across all datasets. Typically, k-fold cross-validation is used within a single dataset where the entire dataset is subpartitioned.
Here, as in our previous works, [8,10] we performed cross-validation across a seven-sheep dataset where the data from each six sheep was subpartitioned for training and validation, while data from a remaining sheep was used for testing of the classifier (sevenfold cross-validation). This procedure was repeated seven times by swapping the test data set each time.

K-Fold Cross-Validation for the Spectral-Fuzzy Classifiers
A subject-based k-fold cross-validation strategy was also used for the performance evaluation of the WT-Type-I-Fuzzy and FFT-Type-I-FLC approaches. However, the two later classifiers were individually tested over the entire 6 h data set for each sheep. This was permutated across all seven fetal sheep by replacing the test set with the data from a new unseen sheep. At each folding step, the average of selectivity and sensitivity measures was used to evaluate the overall performance of the classifiers.

Conclusion
Reliable, high-performance biomarkers are essential if we are to improve the outcomes for newborns after perinatal HI insults. In part, improved outcomes will require better determination of the phase of brain injury so that we know whether babies may benefit from treatment, and potentially in the future, the type of intervention that is most likely to be beneficial. The current standard therapy of TH has a very narrow window of opportunity for efficacy: the first 6 h of post-HI recovery. Cot-side EEG recordings offer a quick, easily applied method for extracting continuous biomarker data, although, problematically, data are often collected at very low frequency. Our study has shown, using a preclinical animal HI model with 1024 Hz sampling, that the deep WS-CNN and WF-CNN structures reliably outperform the conventional 1D-CNN and spectral-fuzzy classifiers, and that the greater the number of convolutional layers within the architecture, the better is the performance. In conclusion, our study provides a reliable framework that could help with a well-timed diagnosis of at-risk neonates in clinical practice.

Experimental Section
All procedures were approved by the Animal Ethics Committee of the University of Auckland (R1942) and conducted in accordance with the Code of Ethical Conduct for animals in research established by the Ministry of Primary Industries, Government of New Zealand. The experiments are reported in accordance with the ARRIVE guidelines for reporting animal research.
Surgical and Experimental Procedures: This study was conducted in preterm fetal sheep after surgical recovery (i.e., they were studied in utero without the confounding effects of anesthesia). Fetuses rather than  Figure 6. Allocations of the ECoG datasets for training, validation, and testing of the proposed WS-CNN, the WF-CNN and 1D-CNN pattern classifiers (see Table 1).

Data division -Cross validation strategy
www.advancedsciencenews.com www.advintellsyst.com neonates were used because at this time there is no neonatal preterm model with a gyrencephalic brain similar to that of humans, and utilizing a whole-body HI insult similar to that seen at birth. [32,33] Seven singleton Romney/Suffolk fetuses at 98-99 days of gestation (full term %147 days gestation) were used in this study. The methods are as previously described. [11,[33][34][35][36] Briefly, ewes were then anesthetized by an intravenous injection of propofol (5 mg kg À1 ; AstraZeneca Limited, Auckland, New Zealand) and intubated, and general anesthesia was maintained using 2-3% isoflurane in O 2 (Bomac Animal Health, NSW, Australia). Ewes were given an intramuscular injection of the antibiotic oxytetracycline (20 mg kg À1 ; Phoenix Pharm, Auckland, New Zealand) for prophylaxis. Maternal fluid balance was maintained via a constant saline infusion (%250 ml h À1 ). Animals were constantly monitored by trained anesthetic technicians throughout surgery.
Fetuses were surgically instrumented with catheters and electrodes as previously described. [35] Specific to this study. polyvinyl catheters (SteriHealth, Dandenong South, VIC, Australia) were placed in a brachial and femoral arteries for blood sampling and blood pressure. Electrodes (AS633-3SSF wire; Cooner Wire, Chatsworth, CA) were subcutaneously placed over the right shoulder and at the level of the left fifth intercostal space to measure the fetal electrocardiogram (ECG) for EEG recordings and HI insult. Two pairs of left/right electrodes (AS633-5SSF; Cooner Wire) were placed bilaterally onto the parasagittal cortical dura (5 and 10 mm anterior to bregma and 5 mm lateral) via burr holes for recording of the ECoG, which were then sealed. ECoG recordings reduce signal artifacts and therefore the signal can be technically referred to as an "ECoG." A reference electrode was also sewn over the occiput. An inflatable silicone occluder (OC16HD, 16 mm, In Vivo Metric, Healdsburg, CA, USA) was loosely placed around the umbilical cord to allow postsurgical occlusion of the umbilical cord to induce fetal HI. When fetal procedures were complete, the fetus was returned to the amniotic sac and the uterus and maternal surgical sites were closed. The maternal laparotomy skin incision was infiltrated with a local analgesic, 10 ml of 0.5% bupivacaine plus adrenaline (AstraZeneca, Auckland, NZ), for analgesia. A maternal saphenous vein was cannulated for postoperative care.
Ewes and their fetuses recovered from their surgery for 4-5 days before experiments began. Ewes were housed together in separate metabolic cages with access to concentrated pelleted food and water ad libitum. Rooms were temperature-controlled (16 AE 1 C, humidity 50 AE 10%) with a 12:12 h light:dark cycle. Antibiotics were given intravenously to the ewe each day for 4 days: 600 mg benzylpenicillin sodium (Novartis, Auckland, New Zealand) and 80 mg gentamicin (Pfizer, Auckland, New Zealand). Fetal vascular catheters were continuously infused with heparinized saline (20 U ml À1 at 0.2 ml h À1 ) to maintain patency. The fetal condition was assessed via recordings of all fetal physiological variables, and daily arterial samples were drawn to monitor pH and blood gases (ABL800 Flex analyzer, Radiometer, Auckland, New Zealand), glucose, and lactate (YSI 2300 Analyzer, YSI Ltd., Yellow Springs, Ohio, USA).
Fetuses were studied at 103-104 days of gestation. At this age, the fetal brain is the equivalent in neuronal maturation to a human brain of around 28-30 weeks of gestation. [33] They underwent complete inflation of the umbilical cord occluder to induce a severe HI insult for 25 min or until blood pressure fell below 8 mmHg or there was asystole (25 min (n ¼ 4), 19 min (n ¼ 1), 15 min (n ¼ 2)). All occlusions started at 09.00 h. A successful occlusion was defined by measurements of fetal blood pressure, heart rate, and blood samples for pH and blood gas analysis. At the completion of the experiment at 7 days post-HI, fetuses and their ewes were killed by an overdose of pentobarbital sodium intravenously to the ewe (9 g of Pentobarb 300; Chemstock International, Christchurch, New Zealand).
Measurements: Fetal mean arterial blood pressure, heart rate, and ECoG were continuously recorded by a computer using a custom data acquisition software (LabVIEW for Windows; National Instruments, Austin, TX). Specifically for this study, the fetal ECoG was initially amplified with a gain of Â10 000, then passed through a fifth-order low-pass Butterworth antialiasing filter and a first-order high-pass filter with cut-off frequencies set at 512 and 1.6 Hz, respectively. Data were then digitized at a sampling rate of 4096 Hz and filtered by a low-pass filter with a digital IIR Type 2 Chebyshev filter with a cut-off frequency of 512 Hz and resampled to 1024 Hz for analysis of the raw EEG waveforms. Data were finally decoded into Matlab for microscale transient analysis. The first 6 h post-HI ECoG for all animals (total: 42 h) was used for analysis. Depending on the amount of 50 Hz noise contamination of the signal, the data were initially passed through a 100th-order digital bandpass finite impulse response (FIR) filter with a normalized stop-band frequency (ω) between 0.05 and 0.13 (25.60 Hz<f < 66.56 Hz), if needed. The data were not further denoised but normalized and zero-meaned only so that the classifiers could be trained on a more challenging environment that could mimic spectrally complex clinical data.

Supporting Information
Supporting Information is available from the Wiley Online Library or from the author.