Abstract
A chemical discrimination system based on photonic reservoir computing is demonstrated experimentally for the first time. The system is inspired by the way humans perceive and process visual sensory information. The electro-optical reservoir computing system is a photonic analogue of the human nervous system with the read-out layer acting as the ‘brain’, and the sensor that of the human eye. A task-specific optimisation of the system is implemented, and the performance of the system for the discrimination between three chemicals is presented. The results are compared to the previously published numerical simulation (Anufriev et al. in Opt Mater Express 12:1767–1783, 2022, 10.1364/OME.449036). This publication provides a feasibility assessment and a demonstration of a practical realisation of photonic reservoir computing for a new neuromorphic sensing system - the next generation sensor with a built-in ‘intelligence’ which can be trained to ‘understand’ and to make a real time sensing decision based on the training data.
Similar content being viewed by others
Introduction
The human nervous system possesses remarkable computational abilities1,2. It is an incredibly powerful biological computer capable of performing pattern recognition, regression and forecasting on massively parallel information in real time3,4. Inspired by this, artificial neural networks (ANNs) aim to replicate the neural functions of humans as a computational framework. Such systems are called ‘neuromorphic’, as they are inspired by the computing architecture of the human nervous system and brain. ANNs and neuromorphic systems have shown effectiveness for tasks, like pattern recognition and inference, and found applications in bioinformatics, medical image processing, stock market forecasting, and telecom signal recognition5,6,7,8,9,10,11,12,13,14,15.
Numerous architectures, implementations, and applications of ANNs have been demonstrated – both in software and as hardware systems16,17,18. Among those, photonic implementations have been demonstrated to be suitable for high-speed processing due to the larger bandwidths offered by optical signals and components18,19. Photonic reservoir computing (PhRC) is one such implementation. This offers an alternative approach to the architecture and functionality of photonic neural networks20,21,22, which are based on the conventional feed-forward neural networks. In reservoir computing, which was first demonstrated as a software implementation, training is exclusively carried out at the read-out layer, allowing the kernel to remain semi-random and untrained18,20,21,22. The reservoir kernel (see Fig. 1(b)) performs complex temporal dynamics and nonlinear transformations which processes input data, remapping it to a new higher-dimensional representation space23,24,25. This higher-dimension representations allows for a final linear discrimination to be performed by the read-out layer. PhRC systems have been demonstrated in an optical-fibre setup, including electro-optical feedback24,25, all-optical feedback26,27 and all-optical stimulated Brillouin scattering systems28, in a chip-scale integrated photonic devices, including as network of complex interconnected waveguides29, stochastic photonic field30,31, and lasers17,32. Using these PhRC platforms, applications for telecommunications, quantum computing, and chaotic time series generation and prediction have already been reported20,21.
In the present work, we considered the practical implementation of electro-optical reservoir computing (EORC), with an optical fibre delay-line and Mach-Zehnder modulator, which provide the memory and nonlinear effects respectively24,25,33. The work presented here focuses on the first experimental demonstration of PhRC as neuromorphic chemical sensing system - the next generation of sensing with built-in intelligence. Such a system can be trained to make real time sensing decisions based on training data - inspired by the fact that the human computing capacity is predominantly used for processing of sensory information34. The sensory part of the neuromorphic sensing system was implemented in the infrared, mimicking the properties of human eyes, namely the discrete and broadband response of the cone cells in the retina. The application of this neuromorphic sensory system was demonstrated to the discrimination of different chemicals.
This paper is structured as follows: Sect. "Methods" describes the neuromorphic sensory system. This starts by outlining the experimental operation of the pyroelectric sensing apparatus, describing the experimental implementation of the EORC, and the pre- and post-processing of data that was carried out. Section Results and discussion presents and discusses the results obtained and their comparison to the earlier work33. Section "Results and discussion", further, reports the dynamics of the EORC kernel, before presenting the results on stability and performance for the chemical discrimination tasks. The impact of the optimisation parameters on system performance is also briefly discussed. The conclusions are provided in Sect. Conclusions.
Methods
In this Section, the experimental implementation of the neuromorphic sensing system is described. Figure 1(a) describes the schematic of operation of the sensing system. The neuromorphic sensing system comprises four distinct layers (see Fig. 1(c)) – the sensing layer, the EORC kernel, the read-out layer and the control layer. Section "The pyroelectric sensor" and "Pre-processing: information representation and time-multiplexing" describe the sensing layer which consists of a pyroelectric sensor, and data pre-processing and generation. Figure 1(b) shows the reservoir computing kernel and the algorithm used for chemical classification. Section "Electro-optical reservoir computing (EORC) system" describes the physical implementation and components of the EORC shown in Fig. 1(c). This Section also describes the control layer – which was used to optimise the EORC through particle swarm optimisation. The state of the signal at every stage of the EORC is not described in detail here, and readers are referred to the simulation counterpart of the paper33, but the data post-processing which happens at the read-out layer, is described in Sect. "Post-processing: time-demultiplexing, training and testing at the read-out layer".
(a) Flow diagram for the process of chemical discrimination by the neuromorphic sensing system described in this Section. (b) Delayed feedback reservoir computing kernel architecture and the classification algorithm. The experimental parameters \(\:\tau\:\) and \(\:\theta\:\) are the feedback-delay time and duration for each mask value respectively (See Sect. Pre-processing: information representation and time-multiplexing). (c) The experimental setup developed in the current work implementing the delayed feedback reservoir computing and a summary of components involved in the experimental setup. Variable DC sources were used to tune the attenuation of the variable optical attenuator and the gain of the RF-amplifier driven by particle swarm optimisation.
The pyroelectric sensor
A pyroelectric sensor equipped with a tuneable broadband Fabry-Perot filter35 was used for recording the transmissive spectral response of chemical samples, see Fig. 2(a). This sensor produced discrete and broadband spectral responses. The central wavelength of the Fabry-Perot filter, \(\:{\lambda\:}_{c}\), was tuneable over a wavelength range of \(\:3000\:\text{n}\text{m}\:\le\:\:{\lambda\:}_{c}\le\:4500\:\text{n}\text{m}\) with a full-width half-maximum (FWHM) of 47.65 nm as depicted in Fig. 2(b). The sensor used a broadband thermal blackbody source. The spectral response of the sensor was obtained by sweeping the central wavelengths, \(\:{\lambda\:}_{c}\), of the Fabry-Perot filter across the spectral region of interest, from which a low-resolution transmittance spectrum for each sample was obtained. The normalised transmittance, \(\:T\), describes a normalised detected power, \(\:{P}_{m}\), obtained from the sensor with respect to the reference background with no-sample present. This can be expressed mathematically as,
where, \(\:{S}_{\text{i}\text{n}}\left(\lambda\:\right)\) is the spectral power density of the source, \(\:D\left(\lambda\:,{\lambda\:}_{c}\right)\) is the spectral response of the Fabry-Perot filter tuned at centre wavelength, \(\:{\lambda\:}_{c}\), and \(\:A\left(\lambda\:\right)\) denotes the spectroscopic absorption of the sample-under-test. It is important to point out, as can be deduced from Eq. (1), that the transmittance of the pyroelectric sensor, \(\:T\), was not equal to the spectroscopic transmittance, i.e., \(\:T\left({\lambda\:}_{c}\right)\ne\:1-A\left(\lambda\:\right)\).
Motivated by human visual perception, which is capable of discriminating over 100,000 shades of colours from only three colour sensitive retinal neuron ends (trichromat arrangement36,37), in this present work only three central wavelengths, \(\:m\), of the Fabry-Perot filter, i.e. \(\:{\lambda\:}_{c,m}\) where \(\:m=\text{1,2},3\), were considered for each chemical sample. A set of three selected central wavelengths, \(\:{\lambda\:}_{c,m}\), was chosen for each group of the samples-under-test, aiming at maximising the difference between \(\:T\left({\lambda\:}_{c,m}\right)\) within the group. The transmittance obtained from the sensor, as well as the three central wavelengths,\(\:\:{\lambda\:}_{c,m}\), selected for the chemical discrimination of each group, are depicted in Fig. 3(a) for the group of aliphatic alcohols and Fig. 3(b) for the group of essential oils. The central wavelengths, \(\:{\lambda\:}_{c}\), selected are marked with dashed lines. For the group of aliphatic alcohols (Fig. 3(a)) the selected central wavelengths were 3140 nm, 3280 nm and 3460 nm. For the group of essential oils (Fig. 3(b)) the selected central wavelengths were 3130 nm, 3430 nm and 3700 nm. The spectra depicted in Fig. 3 were collected at different times over a period of a week, confirming robustness and reproducibility of the pyroelectric sensing apparatus data, and the standard deviation of the transmittance spectral data, \(\:T\left({\lambda\:}_{c,m}\right)\), is shown as error-bars. This transmittance dataset was digitally pre-processed and normalised, to be used as input signal to the EORC kernel.
The transmittance dataset obtained using the pyroelectric sensor for (a) the group of aliphatic alcohols and (b) the group of essential oils. The error-bars represent the standard deviation of the obtained responses, \(\:T\left({\lambda\:}_{c,m}\right)\). The wavelengths that were selected for the discrimination algorithm are depicted by black dashed lines.
Pre-processing: information representation and time-multiplexing
In order for the discrete transmittance data from the sensor to be used, it was represented in a format suitable for the EORC kernel through data pre-processing. The first step in pre-processing the raw spectral transmittance data was a sample-and-hold of this dataset, only considering the transmittance at three distinct central wavelengths (see Fig. 3) \(\:\mathcal{T}=[T\left({\lambda\:}_{c,1}\right),\:T\left({\lambda\:}_{c,2}\right),T({\lambda\:}_{c,3}\left)\right]\), producing an analogue RF signal, \(\:j\left(t\right)\). Figure 4(a) illustrates the sample-and-hold procedure in which each transmittance data value, \(\:T\left({\lambda\:}_{c,m}\right)\), was held for a duration \(\:\tau\:\), the feedback round-trip delay of the EORC. Thus, resulting from the three central wavelengths considered in this work, \(\:j\left(t\right)\) was a generated radio frequency (RF) information signal with period of \(\:3\tau\:\). To exemplify this, the information signal, \(\:j\left(t\right)\), for a single spectrum of ethanol is given in Fig. 4(a).
The subsequent step in data pre-processing was time-multiplexing. Time-multiplexing is a common approach used in EORC to increase signal diversity, allowing for an increased number of virtual neural nodes from a single physical node24,25. Time-multiplexing was achieved through the imposition of a periodic mask, \(\:m\left(t\right)\), to the serialised information signal \(\:j\left(t\right)\)33. Figure 4(b) shows an example of mask signal, \(\:m\left(t\right)\); The mask signal was a flat top function with a periodicity of \(\:\tau\:\), constructed from a series of random numbers. These random numbers were generated by a random number generator with a normal distribution, a mean of 1 and a scaling factor of 0.3, i.e., \(\:m\left(t\right)\in\:\)\(\:[0.85;1.15]\) with \(\:\tau\:=\:{N}_{x}\theta\:\), where \(\:{N}_{x}\) is the number of mask values and \(\:\theta\:\) is the duration for each mask value. The scaling factor applied to the random number generator was experimental consideration which allowed all individual mask values to be resolved within the capability range of the arbitrary waveform generator and oscilloscope.
The input signal, \(\:u\left(t\right)\), to the EORC, derived from the pre-processed raw spectral acquisition, was then achieved through the modulation of the serialised information signal, \(\:j\left(t\right)\), by the mask signal, \(\:m\left(t\right)\). An arbitrary waveform generator (AWG), labelled (8) in Fig. 1(c), was used to produce and feed the input signal, \(\:u\left(t\right)\), to the EORC kernel. Figure 4(c) shows an example input signal, \(\:u\left(t\right)\), for a single transmittance measurement of ethanol with \(\:{N}_{x} = 5.\)
(a) An example of a serialised information signal, \(\:j\left(t\right)\), obtained for a single instance of transmittance measurement of ethanol \(\:\mathcal{T}=[T\left({\lambda\:}_{c,1}\right),\:T\left({\lambda\:}_{c,2}\right),T({\lambda\:}_{c,3}\left)\right]\). The signal is periodic with \(\:3\tau\:\), where \(\:\tau\:\) is the round-trip time for the EORC. (b) A depiction of a mask signal, \(\:m\left(t\right)\), with 30% modulation depth and a bias of 1. The mask signal is periodic with \(\:\tau\:\) and each mask lasts for \(\:\theta\:=\:\tau\:/{N}_{x}\), where \(\:{N}_{x}\) is the number of random value masks (5 in this example). (c) An example of the EORC input signal, \(\:u\left(t\right)\), created from the modulation of the serialised information signal, \(\:j\left(t\right)\), by the mask signal, \(\:m\left(t\right)\). The depicted example is for a single instance of an ethanol transmittance measurement with 5 mask values, shown in different colours. (d) A visualisation of demultiplexing for an input signal, \(\:u\left(t\right)\), with \(\:{N}_{x}=5\). Application of demultiplexing to the reservoir activation states, \(\:x\left(t\right)\), instead, yields the neuron activation states (\(\:\mathbf{X}\)).
Electro-optical reservoir computing (EORC) system
The EORC implementation used a continuous-wave laser operated at 1560 nm, with a maximum power output of 100 mW, labelled (1) in Fig. 1(c). The laser provided a carrier-signal which propagated through a 2 km single-mode, SMF-28, fibre feedback delay-line system. The laser signal was modulated by a combination of an analogue input signal, \(\:u\left(t\right)\), and the feedback signal propagating through the system. This was referred to the synchronous regime of operation in previous work25. These signals were combined using an RF-combiner labelled (9) in Fig. 1(c), and fed through a variable RF-amplifier, labelled (14) in Fig. 1(c), before being used as an RF-modulation input to the Mach-Zehnder modulator (MZM). In this way, the EORC kernel had two physical optimisation parameters, i.e. the laser power \(\:P\) and the signal amplification \(\:\gamma\:\). Suitable kernel parameters were obtained through a particle swarm optimiser, implemented within MATLAB38. The laser power was controlled through a DC signal, supplied to an electronic variable optical attenuator, labelled (2) in Fig. 1(c). To compensate for component temperature drifts and obtain a consistently precise and accurate carrier signal power, a simple proportional-integral-derivative (PID) controller was implemented. Similarly, the signal amplification was also controlled through the supply of a DC signal to a RF-amplifier, labelled (14) in Fig. 1(c). For detailed information on particle swarm optimisation, readers are referred to the particle swarm optimisation toolbox38.
Although an additional optimisation parameter could also be found from the MZM operation, in the present work, the MZM was operated at quadrature, as previous works suggested that optimal performance of the EORC signal discrimination task was obtained in this regime of operation25,33. The negative quadrature point was selected, as it was observed that our MZM device exhibited robust operation for DC-bias voltages closest to 0 V. Negative quadrature was obtained at a DC-bias of -2 V, while positive quadrature was observed at a DC-bias of + 4 V. The round-trip time for the EORC circuit, \(\:\tau\:\), was measured as \(\:10.98\:{\upmu}\text{s}\) by recording the pulse delay at the read-out layer. Readers are referred to the systematic analysis of the EORC system in previous publications24,25,33.
Post-processing: time-demultiplexing, training and testing at the read-out layer
The signal from the EORC kernel, i.e., the reservoir activation states, was monitored using at an InGaAs photodetector, labelled (6) in Fig. 1(c), obtained at the read-out layer feeding into an oscilloscope, labelled (5) in Fig. 1(c), at a 1% power optical tap, labelled (12) in Fig. 1(c). An oscilloscope was used in our setup to record an averaged steady state of the system and send this to a computer for data post-processing, see Fig. 1(c).
The first step in data post-processing was demultiplexing. Its purpose was to deconvolute the EORC activation states at the read-out layer, and thus, obtain the individual neuron activation states based on the virtual RC nodes approach. This procedure is most simply shown when considering a system with no feedback and a small input signal, \(\:u\left(t\right)\); however, the procedure is the same for a system with feedback and any \(\:u\left(t\right)\) (see Fig. 4(d)). For a system with no feedback and a small input signal, \(\:u\left(t\right)\), the reservoir activation states, \(\:x\left(t\right)\), observed at the read-out were the same as \(\:u\left(t\right)\) (see Fig. 4(c)). Since \(\:u\left(t\right)\) was created from a periodic perturbation of the serialised information signal, \(\:j\left(t\right)\), by the mask, \(\:{N}_{x}\) neuron activation states, \(\:\mathbf{X}\), were obtained, where \(\:{N}_{x}\) is the number of masks. The resulting activation states \(\:\mathbf{X}\) were then used in the subsequent training and testing steps. In the case of a system with a small input signal and no feedback, these activation states all resembled \(\:j\left(t\right).\) In systems with feedback, the neuron activation states, \(\:\mathbf{X}\), do not resemble the serialised information signal. An example of the demultiplexing process can be seen in Fig. 4(d) for a system with a small input signal and no feedback.
The final step in the data post-processing depended on the regime of operation of the neuromorphic sensing system, i.e. training or testing. During training, the read-out of the EORC system ‘learned’ about the task by evaluating the output weight, \(\:{\mathbf{W}}_{\text{o}\text{u}\text{t}}\), such that the difference between the known \(\:{\mathbf{Y}}_{\text{t}\text{r}\text{a}\text{i}\text{n}\text{i}\text{n}\text{g}\:}\:\)and the matrix of neuron activation states, \(\:\mathbf{X}\), was minimised. This error minimisation-based learning was achieved by Tikhonov regularisation with cross-validation as39:
where the desired output, \(\:\mathbf{Y}\), is a numerical representation of the sample-under-test using one-hot-encoding, \(\:{\mathbf{Y}}_{\text{t}\text{r}\text{a}\text{i}\text{n}\text{i}\text{n}\text{g}\:}\)refers to the desired outputs used during the training and \(\:{\left(\cdot\:\right)}^{\text{T}}\) denotes the transpose operator. One-hot-encoding used to represent target chemicals is further detailed in Sect. "Chemical discrimination by the neuromorphic sensing system".
The neuromorphic sensing system was operated in the testing regime after being trained. In the testing regime, the read-out layer produced prediction signals, \(\:{\mathbf{Y}}_{\text{p}\text{r}\text{e}\text{d}\text{i}\text{c}\text{t}\text{i}\text{o}\text{n}}\), from the \(\:{\mathbf{W}}_{\text{o}\text{u}\text{t}}\) obtained while training, and a set of neuron activation states, \(\:\mathbf{X}\), for the sample-under-test. Mathematically, this can be expressed as in Eq. (3). It should be noted that the transmittance datasets were split for each chemical such that the system was trained and tested on different transmittance data.
The overall system performance, i.e., the error rate of the prediction, was evaluated by comparing the predicted signal outputs, \(\:{\mathbf{Y}}_{\text{p}\text{r}\text{e}\text{d}\text{i}\text{c}\text{t}\text{i}\text{o}\text{n}}\), to the target outputs, \(\:{\mathbf{Y}}_{\text{t}\text{a}\text{r}\text{g}\text{e}\text{t}\:}\). In this work, the normalised mean squared error (\(\:NMSE\)) defined as the following was used throughout as a metric to evaluate performance,
where \(\:\text{v}\text{a}\text{r}(\cdot\:)\), \(\left\langle \cdot \right\rangle\) and \(\left\| \cdot \right\|\) denote the variance, the assemble averaging, and the Euclidean norm operators, respectively.
Results and discussion
This Section starts with the characterisation of the EORC with no sensory input present. Section "Chemical discrimination by the neuromorphic sensing system" demonstrates the application of the neuromorphic sensing system to the discrimination of chemicals, describes the performance optimisation of the EORC, and the system stability.
EORC operation states and bifurcation
The EORC used in the present work was based on a delay feedback system24,25,33. Such a system features parameter dependent behaviour and was characterised by the bifurcation diagram.
System bifurcation was achieved in our setup by varying input laser power (\(\:P\)) and the gain of the RF-amplifier (\(\:\gamma\:\)), labelled (1) and (14) in Fig. 1(c) respectively. First, consider Fig. 5(b), which depicts the bifurcation of the monitored optical signal at the read-out photodetector (labelled (6) in Fig. 1(c)). To illustrate this bifurcation phenomenon, the states of the optical signal, i.e., the \(\:\text{m}\text{a}\text{x}\left[x\left(t\right)\right]-\text{m}\text{i}\text{n}\left[x\left(t\right)\right]\), have been plotted. For a fixed input laser power of \(\:{P}_{0} = 55\:\text{m}\text{W}\), and low amplification, the states of the optical signal remained constant (single-valued), i.e., \(\:\text{m}\text{a}\text{x}\left[x\left(t\right)\right]\approx\:\text{m}\text{i}\text{n}\left[x\left(t\right)\right]\), as the gain of the RF-amplifier, \(\:\gamma\:\), increased. This is because, although the gain \(\:\gamma\:\) increased, the optical power provided by the laser module remained constant. In the single-valued region, the small fluctuation observed was caused by random noise, which was observed to be around 0.2 V. However, after a specific RF-amplifier gain of \(\:\gamma\:=23.4\:\text{d}\text{B}\), the states of the optical signal distinctly split denoting the bifurcation. Figure 5(c) shows the bifurcation of the optical signal as a function of the input laser power (\(\:P\)) for a fixed RF-amplifier gain \(\:\gamma = 25\:\text{d}\text{B}\). Figure 5(c) demonstrates a similar bifurcation behaviour, but with an overall positive gradient due to the increase of overall input laser power. To further illustrate the bifurcation phenomenon, examples of the temporal signals of the system are shown in Fig. 5(d)–(f) for the specific input laser powers (\(\:P\)) marked in Fig. 5(c).
To gain an overall picture of the bifurcation phenomenon, the surface plot in Fig. 5(a) shows the state of the optical signal as a function of both the input laser power (\(\:P\)) and the RF-amplifier gain (\(\:\gamma\:\)). Figure 5(a) shows two distinct regions: the region where the system response was single-valued (dark blue) and the region where the system response was oscillating (not-blue). This bifurcation behaviour, single-valued for both low input laser power (\(\:P\)) and the RF-amplifier gain (\(\:\gamma\:\)); and oscillating for high input laser power (\(\:P\)) and the RF-amplifier gain (\(\:\gamma\:\)), is consistent with previously published simulation work33. The transition between the two states, the bifurcation line, is indicated by the light blue boundary between dark blue and green colours in Fig. 5(a). Furthermore, the specific parameters used for Fig. 5(b),(c), namely \(\:{P}_{0} = 55\:\text{m}\text{W}\) and \(\:\gamma = 25\:\text{d}\text{B}\), are marked in Fig. 5(a) by dashed white lines. The method used in characterising the different regions of operation was a two-parameter sweep across laser power \(\:\left(P\right)\) and RF-amplifier gain \(\:\left(\gamma\:\right)\). This only allowed the location of the first order bifurcation points (the first instance of the system response becoming multi-valued). It is possible that higher order bifurcations exist, but they were not considered in this paper.
Operational states of EORC kernel. (a) The range of reservoir activation states, \(\:x\left(t\right)\), observed at the read-out photodetector as function of EORC parameters: laser power \(\:P\) and RF-amplifier gain \(\:\gamma\:\). The single-valued system response is shown in dark blue and the region where the system response was oscillating is shown with other colours. The colour bar depicts the difference in Volts between the maximum value of x(t) and the minimum value of x(t) (i.e. the states of the signal) observed on the oscilloscope. The dashed lines mark the specific input laser power \(\:{P}_{0}=55\:\text{m}\text{W}\) and RF-amplifier gain \(\:\gamma\:=25\:\text{d}\text{B}\), for the bifurcation diagram (b) and (c), respectively. The star marks the optimum operation region obtained using particle swarm optimisation for the discrimination of a group of aliphatic alcohols. The hexagon marks the optimum operation region obtained using particle swarm optimisation for the discrimination of a group of essential oils (see Sect. "Chemical discrimination by the neuromorphic sensing system"). (d–f) depict the temporal signals \(\:x\left(t\right)\) for the specific operation parameters at amplifier gain \(\:\gamma\:=25\:\text{d}\text{B}\), \(\:P=20\:\text{m}\text{W},50\:\text{m}\text{W},\) and \(\:90\:\text{m}\text{W}\) as marked in (c).
Chemical discrimination by the neuromorphic sensing system
A group of three aliphatic alcohols, i.e. ethanol, methanol, and isopropanol, was first used for chemical discrimination to demonstrate the accuracy of the trained system, allowing for direct comparison with previously published simulation work33. Furthermore, to show its universal application of handling other chemical samples, the sensing system was then trained to classify a group of essential oils - eucalyptus, lavender, and rapeseed oils. A dataset of 90 spectral responses was used during the discrimination of the group of aliphatic alcohols (30 spectra for each type of alcohol), and 60 spectra during the discrimination of the group of essential oils (20 spectra for each type of oil). In both cases, 80% of the spectra available were used for training and 20% for testing.
As described in Sect. "Post-processing: time-demultiplexing, training and testing at the read-out layer", one-hot encoding was used to represent the chemical sample-under-test, here, it is defined as in Table 1.
Particle swarm optimisation is a very common optimisation used in engineering40,41. The details of the particle swarm optimisation approach can be found in the documentation for the particle optimisation toolbox38. Heuristic optimisation using the particle swarm method was employed to find the optimum EORC operational parameters for accurate sample classification. This approach yielded a minimised the NMSE between the target (\(\:{\mathbf{Y}}_{\text{t}\text{a}\text{r}\text{g}\text{e}\text{t}}\)) and the predicted (\(\:{\mathbf{Y}}_{\text{p}\text{r}\text{e}\text{d}\text{i}\text{c}\text{t}\text{i}\text{o}\text{n}}\)) signals. The particle swarm optimisation for this minimisation was set to use 200 particles at each iteration. At each iteration, the set of EORC operation parameters, \(\:P\) and \(\:\gamma\:\), which yielded the lowest value of NMSE was recorded. For the aliphatic alcohol discrimination, the optimisation concluded after 50 iterations (Fig. 6(a)) and after 20 iterations for the discrimination of essential oils (Fig. 6(b)). The EORC operation parameters, \(\:P\) and \(\:\gamma\:\), that corresponded to the lowest recorded NMSE are marked in Fig. 5(a) by a star for discrimination within a group of aliphatic alcohols and a hexagon for the discrimination within a group of essential oils. The NMSE for classification of chemicals in each group at optimal parameters is shown in Fig. 5(a), \(\:{N}_{x} = 50\) mask values were used for this task. It is noted that the optimum operation point for aliphatic alcohol discrimination was not in line with the previously carried out simulation33, where it was shown to be near the bifurcation points. We believe that this is due to our use here of the particle swarming method, which is based on stochastic optimisation, converging to a local minimum, in contrast to the exhaustive search conducted in the simulation work33. This suggests that further system performance improvements could be possible.
Figure 7(a) and (b) show a bar chart of the predicted outputs, \(\:{\mathbf{Y}}_{\text{p}\text{r}\text{e}\text{d}\text{i}\text{c}\text{t}\text{i}\text{o}\text{n}}\), for the chemical discrimination tasks for a group of aliphatic alcohols and a group of essential oil respectively. Distinct discriminations among testing samples have been achieved with less than ± 10% error standard deviation as is shown by the error bars in Fig. 7. Using ± 10% as a thresholding condition, a 100% classification accuracy was achieved within the group of alcohols and a classification accuracy of 94% was achieved within the group of essential oils. The confusion matrices for these classifications are shown in Fig. 8(a) and (b) for the group of aliphatic alcohols and the groups of essential oils respectively. No testing samples were misclassified by the optimised neuromorphic sensing system, and only a single sample was unclassified due to a \(\:{\mathbf{Y}}_{\text{p}\text{r}\text{e}\text{d}\text{i}\text{c}\text{t}\text{i}\text{o}\text{n}}\) value outside the thresholding limits.
Here, we also report the observation that the neuromorphic sensing system developed here was influenced by ambient changes of the environment, including noise (electrical noise, thermal noise, acoustic and mechanical vibrations) and thermal component drifts (of the laser and MZM). To exemplify this, Fig. 9 presents a histogram of the NMSE values for 100 independent instances of classification for the group of aliphatic alcohols, carried out using a fixed set of optimised EORC parameters, \(\:P\) and \(\:\gamma\:\) (see Fig. 5(a)), at randomly selected times over the duration of a week, with the same training and testing datasets used throughout. The NMSE mean for an optimised neuromorphic sensing system applied to classification of the group of aliphatic alcohols was 0.0148 and had an error standard deviation \(\:\sigma\:=\:8.73\times\:{10}^{-4}\). We believe that the classification robustness of the neuromorphic sensing system could be significantly improved by using low-noise photodetectors and RF-amplifiers, performing signal averaging to enhance the signal-to-noise ratio of the signal at the readout layer, \(\:x\left(t\right)\), and by employing a more stable (less jittering) control system unit for the VOA and RF-amplifier.
Furthermore, we also investigated the impact of the number of masks, \(\:{N}_{x}\), used to multiplex the input signal, \(\:u\left(t\right)\), on the system performance, NMSE. Figure 10 shows the NMSE for the discrimination of the group of aliphatic alcohols for various numbers of masks, \(\:{N}_{x}\), and the error bars depict the standard deviation from the mean values. It confirms that a higher number of masks, \(\:{N}_{x}\), improved the accuracy of the neuromorphic sensing system as suggested by previous publications24,25,33. The available number of masks was limited by equipment employed in the experiment and a steady increase in the performance of the neuromorphic sensing system is observed until \(\:{N}_{x}=50\). Better performance may be possible, however the standard deviation of the NMSE increases after \(\:{N}_{x}=50\), likely due to the ability of the AWG to resolve individual masks becoming increasingly compromised. The rate of increase of system performance as a function of \(\:{N}_{x}\) until \(\:{N}_{x}=50\) was observed to be in agreement with the numerical analysis of the same system in previously published simulation work33.
Conclusions
This paper has demonstrated for the first time an experimental implementation of a neuromorphic sensing system. This system consists of four distinct parts, namely the control layer, the sensing and pre-processing layer, the EORC kernel, and the post-processing and read-out layer. A methodology has been demonstrated for the automatic optimisation of the sensing system for the chemical classification task. The performance of the system has been evaluated for a group of three aliphatic alcohols and a group of three essential oils. It has been shown that using a thresholding limit of just ± 10%, with a training set of as low as 48 essential oils, yields a classification success of 94%; a perfect classification was also achieved for aliphatic alcohols with a training set of 72 samples. The bifurcation of the system was studied and validated by the numerical simulated results. Finally, the stability of the system was studied, and a range of operational parameters suggested for optimal stability.
Data availability
The data gathered in the experimental work of this study, supporting the findings of this work are available from the corresponding author upon reasonable request.
References
Wilson, C. Your brain is like 100 billion mini-computers all working together. New Sci. 18, (2018).
Beaulieu-Laroche, L. et al. Enhanced dendritic compartmentalization in human cortical neurons. Cell 175 (3), 643–651. https://doi.org/10.1016/j.cell.2018.08.045 (2018).
Hopfield, J. J. Brain, neural networks, and computation. Rev. Mod. Phys. 71. https://doi.org/10.1103/RevModPhys.71.S431 (1999).
Van de Ven, G. M., Siegelmann, H. T. & Tolias, A. S. Brain-inspired replay for continual learning with artificial neural networks. Nat. Commun. 11, 4069. https://doi.org/10.1038/s41467-020-17866-2 (2020).
Uhrig, R. E. Introduction to artificial neural networks. In Proc. of IECON ‘95–21st Annual Conference on IEEE Industrial Electronics, Orlando, FL, USA 1, 33–37 https://doi.org/10.1109/IECON.1995.483329 (1995).
Wong, B. K., Bodnovich, T. A. & Selvi, Y. Neural network applications in business: a review and analysis of the literature (1988–1995). Decis. Support Syst. 19 (4), 301–320. https://doi.org/10.1016/S0167-9236(96)00070-X (1997).
Ajith, A. Artificial neural networks. Handb. Measuring Syst. Des. https://doi.org/10.1002/0471497398.mm421 (2005).
Fehske, A., Gaeddert, J. & Reed, J. H. A new approach to signal classification using spectral correlation and neural networks. In First IEEE International Symposium on New Frontiers in Dynamic Spectrum Access Networks https://doi.org/10.1109/DYSPAN.2005.1542629 (2005).
Patel, J. L. & Ramesh, K. G. Applications of artificial neural networks in medical science. Curr. Clin. Pharmacol. 2 (3), 217–226. https://doi.org/10.2174/157488407781668811 (2007).
Prucnal, P. R., Shastri, B. J. & Teich, M. C. Neuromorphic photonics. CRC Press https://doi.org/10.1201/9781315370590 (2017).
Shastri, B. et al. (ed, J.) Principles of neuromorphic photonics. arXiv. https://doi.org/10.48550/arXiv.1801.00016 (2017).
Abiodun, O. I. et al. State-of-the-art in artificial neural network applications: a survey. Heliyon 4 (11). https://doi.org/10.1016/j.heliyon.2018.e00938 (2018).
Elmsili, B. & Outtaj, B. Artificial neural networks applications in economics and management research: An exploratory literature review. In 2018 4th International Conference on Optimization and Applications (ICOA), 1–6 (IEEE, 2018). https://doi.org/10.1109/ICOA.2018.8370600
Abiodun, O. I. et al. Comprehensive review of artificial neural network applications to pattern recognition. IEEE Access 7, 158820–158846. https://doi.org/10.1109/ACCESS.2019.2945545 (2019).
Huang, C. et al. Prospects and applications of photonic neural networks. Adv. Phys. X 7 (1). https://doi.org/10.1080/23746149.2021.1981155 (2022).
de Lima, T. F., Shastri, B. J., Tait, A. N., Nahmias, M. A. & Prucnal, P. R. Progress in neuromorphic photonics. Nanophotonics 6 (3), 577–599. https://doi.org/10.1515/nanoph-2016-0139 (2017).
Peng, H. T., Nahmias, M. A., de Lima, T. F., Tait, A. N. & Shastri, B. J. Neuromorphic photonic integrated circuits. IEEE J. Sel. Top. Quantum Electron. 24 (6), 1–15. https://doi.org/10.1109/JSTQE.2018.2840448 (2018).
Shastri, B. J. et al. Photonics for artificial intelligence and neuromorphic computing. Nat. Photonics 15, 102–114. https://doi.org/10.1038/s41566-020-00754-y (2021).
Xu, X. et al. 11 TOPS photonic convolutional accelerator for optical neural networks. Nature 589, 44–51. https://doi.org/10.1038/s41586-020-03063-0 (2021).
Schrauwen, B., Verstraeten, D. & Campenhout, J. V. An overview of reservoir computing: theory, applications and implementations. In Proc. of the 15th european symposium on artificial neural networks, 471–482 (2007).
Tanaka, G. et al. Recent advances in physical reservoir computing: a review. Neural Netw. 115, 100–123. https://doi.org/10.1016/j.neunet.2019.03.005 (2019).
Christensen, D. V. et al. 2022 roadmap on neuromorphic computing and engineering. Neuromorphic Comput. Eng. https://doi.org/10.1088/2634-4386/ac4a83 (2022).
Lukoševičius, M. & Jaeger, H. Reservoir computing approaches to recurrent neural network training. Comput. Sci. Rev. 3 (3), 127–149. https://doi.org/10.1016/j.cosrev.2009.03.005 (2009).
Appeltant, L. et al. Information processing using a single dynamical node as complex system. Nat. Commun. 2. https://doi.org/10.1038/ncomms1476 (2011).
Paquot, Y. et al. Optoelectronic Reserv. Comput. Sci. Rep. 2, 287. https://doi.org/10.1038/srep00287 (2012).
Vandoorne, K. et al. Toward optical signal processing using photonic reservoir computing. Opt. Express 16 (15), 11182–11192. https://doi.org/10.1364/OE.16.011182 (2008).
Duport, F., Schneider, B., Smerieri, A., Haelterman, M. & Massar, S. All-optical reservoir computing. Opt. Express 20, 22783–22795. https://doi.org/10.1364/OE.20.022783 (2012).
Phang, S. Photonic reservoir computing enabled by stimulated Brillouin scattering. Opt. Express 31, 22061–22074. https://doi.org/10.1364/OE.489057 (2023).
Vandoorne, K. et al. Experimental demonstration of reservoir computing on a silicon photonics chip. Nat. Commun. 5, 3541. https://doi.org/10.1038/ncomms4541 (2014).
Laporte, F., Katumba, A., Dambre, J. & Bienstman, P. Numerical demonstration of neuromorphic computing with photonic crystal cavities. Opt. Express 26 (7), 7955. https://doi.org/10.1364/OE.26.007955 (2018).
Phang, S., Bienstman, P., Seddon, A. B., Mellor, C. J. & Benson, T. M. A chaotic microresonator structure for an optical implementation of an artificial neural network. in Integrated Optics: Devices, Materials, and Technologies XXIV, (eds García-Blanco, S. M. & Cheben, P.) https://doi.org/10.1117/12.2548716 (SPIE, 2020).
Shastri, B. et al. Spike processing with a graphene excitable laser. Sci. Rep. 6, 19126. https://doi.org/10.1038/srep19126 (2016).
Anufriev, G., Furniss, D., Farries, M. & Phang, S. Non-spectroscopic sensing enabled by an electro-optical reservoir computer. Opt. Mater. Express 12, 1767–1783. https://doi.org/10.1364/OME.449036 (2022).
Wu, T., Dufford, A. J., Mackie, M. A., Egan, L. J. & Fan, J. The capacity of cognitive control estimated from a perceptual decision-making task. Sci. Rep. 6 (1), 34025. https://doi.org/10.1038/srep34025 (2016).
Infrarec & FPI Detectors. https://www.infratec.co.uk/downloads/en/sensor-division/flyer/infratec-fpi-b-en-mail.pdf (2024).
Major, K. J., Ewing, K. J., Poutous, M. K. & Sanghera, J. S. and Aggarwal I. D. Filter-based chemical sensors for hazardous materials. In Detection and Sensing of Mines, Explosive Objects, and Obscured Targets XIX (S. S. Bishop and J. C. Isaacs, eds) (SPIE, 2014).
Major, K. J. et al. Biomimetic optical-filter detection system for discrimination of infrared chemical signatures. Anal. Chem. 88 (23), 11491–11497. https://doi.org/10.1021/acs.analchem.6b02674 (2016).
Birge, B. PSOt—a particle swarm optimization toolbox for use with MatLab. In Swarm Intelligence Symposium, 2003 SIS ‘03 Proceedings of the 2003 (IEEE, 2003). https://doi.org/10.1109/SIS.2003.1202265
Lukoševičius, M., Jaeger, H. & Schrauwen, B. Reservoir Computing Trends. Künstl Intell. 26, 365–371. https://doi.org/10.1007/s13218-012-0204-5 (2012).
Freitas, D., Lopes, L. G. & Morgado-Dias, F. Particle swarm optimisation: a historical review up to the current developments. Entropy 22 (362). https://doi.org/10.3390/e22030362 (2020).
Shami, T. M. et al. Particle swarm optimization: a comprehensive survey. IEEE Access 10, 10031–10061. https://doi.org/10.1109/ACCESS.2022.3142859 (2022).
Acknowledgements
This work was partially supported by the Engineering and Physical Sciences Research Council (EP/V048937/1).
Author information
Authors and Affiliations
Contributions
G.A.: Investigation (lead), conceptualisation (supporting), methodology (supporting), data curation (lead), formal analysis (lead), visualisation (lead), writing original draft (lead), writing - review and editing (equal). S.P.: Conceptualisation (lead), investigation (supporting), funding acquisition (lead), supervision (lead), resources (lead), project administration (lead), validation (lead), visualisation (supporting), writing - review and editing (equal). M.F.: Resources (equal), methodology (supporting), supervision (supporting), writing - review and editing (equal). D.F.: Resources (equal), methodology (supporting), supervision (supporting), writing - review and editing (equal). A.S.: Resources (equal), methodology (supporting), supervision (supporting), writing - review and editing (equal). All authors reviewed the manuscript.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Anufriev, G., Furniss, D., Farries, M.C. et al. An experimental demonstration of neuromorphic sensing of chemical species using electro-optical reservoir computing. Sci Rep 14, 27915 (2024). https://doi.org/10.1038/s41598-024-79395-y
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1038/s41598-024-79395-y












