• Photonics Research
  • Vol. 13, Issue 2, 382 (2025)
Kaicheng Zhang1, Jonathon Harwell1, Davide Pierangeli2, Claudio Conti3, and Andrea Di Falco1、*
Author Affiliations
  • 1School of Physics and Astronomy, University of St Andrews, St Andrews KY16 9SS, Scotland
  • 2Institute for Complex Systems, National Research Council, Rome 00185, Italy
  • 3Department of Physics, Sapienza Università di Roma, Rome 00185, Italy
  • show less
    DOI: 10.1364/PRJ.542564 Cite this Article Set citation alerts
    Kaicheng Zhang, Jonathon Harwell, Davide Pierangeli, Claudio Conti, Andrea Di Falco, "Optical neural networks based on perovskite solar cells," Photonics Res. 13, 382 (2025) Copy Citation Text show less

    Abstract

    Optical neural networks (ONNs) are a class of emerging computing platforms that leverage the properties of light to perform ultra-fast computations with ultra-low energy consumption. ONNs often use CCD cameras as the output layer. In this work, we propose the use of perovskite solar cells as a promising alternative to imaging cameras in ONN designs. Solar cells are ubiquitous, versatile, highly customizable, and can be fabricated quickly in laboratories. Their large acquisition area and outstanding efficiency enable them to generate output signals with a large dynamic range without the need for amplification. Here we have experimentally demonstrated the feasibility of using perovskite solar cells for capturing ONN output states, as well as the capability of single-layer random ONNs to achieve excellent performance even with a very limited number of pixels. Our results show that the solar-cell-based ONN setup consistently outperforms the same setup with CCD cameras of the same resolution. These findings highlight the potential of solar-cell-based ONNs as an ideal choice for automated and battery-free edge-computing applications.

    1. INTRODUCTION

    Over the past decade, there has been a surging computational demand for deep learning applications, particularly in the training of large foundational models. This has prompted a growing interest in developing new computing paradigms to overcome the limitations of existing digital hardware in executing deep-learning-specific computations with enhanced speed and energy efficiency. These emerging paradigms include photonic computing [15], neuromorphic computing [37], and analog-based systems [8,9].

    Among these approaches, optical neural networks (ONNs) have attracted significant attention due to their potential for becoming a high-speed, highly parallel, energy-efficient, and thus more sustainable computing platform. Using light as an information carrier rather than electrons, mathematical computations can be performed via light interference and scattering with minimal energy consumption. This allows for forward propagation through ONNs at the speed of light, making ONN runtime essentially independent of their sizes. There have been many studies proposing architectures akin to the multilayer perceptron and convolutional neural networks using optical matrix-vector multiplication [10,11], diffraction [12,13], and phase modulation [14]. Based on these fundamental components, more advanced architectures such as all-optical backpropagation [15], optical encoders [16], efficient ONNs with low photon number [17], and optical graph neural networks [18] have also been developed. Apart from these, another popular research direction within the ONN community is reservoir computing [19,20], including the photonic extreme learning machine (PELM) [21] and the time-Floquet extreme learning machine [22]. These approaches use light to process information within a scattering medium, enabling applications such as chaotic system predictions [23] and single-shot light polarimetry [24].

    Currently, typical PELM system designs rely on sophisticated high-speed CCD cameras as photodetectors to capture ONN outputs. In this configuration, the nonlinearity of the architecture, necessary for the neural networks to learn complicated functions, is achieved by driving CCD pixels close to saturation, out of their linear operating regions.

    Here, we propose an alternative approach by replacing the CCD cameras with perovskite solar cells in an open circuit configuration to capture the ONN outputs. This method leverages the fact that the open circuit voltage of a solar cell varies logarithmically with the incident light intensity, and thus offers an embedded highly nonlinear activation function at the point of acquisition. Additionally, the features of perovskite solar cells, including their efficiency, ease of processing, and potential for semitransparency, offer unique opportunities for ONN applications, for example, to measure light at different planes, over an extended volume [2528]. To demonstrate the suitability of perovskite solar cells for ONN applications, we have built a simple ONN setup, as depicted in Fig. 1, using a six-pixel solar-cell unit, and compared it to the same setup but with a CCD camera of the same resolution. Both ONN setups were evaluated on MNIST classification tasks, and our results show that the solar-cell setup has been able to achieve a binary classification accuracy of 91% on the reduced test set, which consistently outperforms its equivalent six-pixel CCD counterpart.

    Schematic sketch of the ONN system, which follows the photonic extreme learning machine architecture [21]. The input image is encoded by an SLM and passes through hidden layers made of a scattering medium. The ONN outputs are captured by six independent solar-cell pixels and are then multiplied with a layer of trained weights to predict classification results.

    Figure 1.Schematic sketch of the ONN system, which follows the photonic extreme learning machine architecture [21]. The input image is encoded by an SLM and passes through hidden layers made of a scattering medium. The ONN outputs are captured by six independent solar-cell pixels and are then multiplied with a layer of trained weights to predict classification results.

    2. SOLAR-CELL FABRICATION AND CHARACTERIZATION

    The perovskite solar cells used in the ONN setup follow an “n-i-p” configuration. Their design consists of an indium tin oxide (ITO) transparent contact, with a tin oxide (SnOx) electron transport layer, a triple cation perovskite (CsMAFA) absorber layer, a hole transport layer (HTL) made from 2,2’,7,7’-Tetrakis[N,N-di(4-methoxyphenyl)amino]-9,9’-spirobifluorene (Spiro-OMeTAD), and a gold top electrode. Figure 2 shows a sketch of the device. The perovskite solar cells were fabricated following the procedure developed by Cheng et al. [29]. The SnOx layer was deposited via spin coating and annealing on a patterned ITO substrate. The sample was then transferred to a nitrogen-filled glovebox, where the perovskite absorber layer was deposited from a precursor solution via spin coating and annealing.

    Diagram illustrating the layered perovskite solar-cell design (left) and a 3D render of a six-pixel fabricated sample (right). Active regions indicate areas where the device composition as illustrated on the left is complete; therefore only light reaching the active regions will be converted into electric signals through photovoltaic effects. The top and bottom rows of gold contacts are shorted directly to the ITO conductor. They thus do not contain an active region and are used as ground electrodes.

    Figure 2.Diagram illustrating the layered perovskite solar-cell design (left) and a 3D render of a six-pixel fabricated sample (right). Active regions indicate areas where the device composition as illustrated on the left is complete; therefore only light reaching the active regions will be converted into electric signals through photovoltaic effects. The top and bottom rows of gold contacts are shorted directly to the ITO conductor. They thus do not contain an active region and are used as ground electrodes.

    The Spiro-OMeTAD layer was deposited via spin coating in the nitrogen glovebox, without annealing. Following spin coating, the spiro-coated cells were left in a dry air desiccator overnight for oxygen doping, and finally 80 nm of gold was deposited as the top electrode via thermal evaporation. Each active region had dimensions 4  mm×3  mm, and the six solar-cell pixels covered a total area of 1  cm×1  cm. After fabrication, the solar cells were encapsulated by gluing a piece of glass over the active area with UV epoxy.

    The fabricated solar-cell samples were characterized by measuring their voltage response against the incident light power. For this experiment, we used a continuous wave laser beam with a wavelength λ=532  nm and known optical power, collimated and expanded to a diameter of 2 cm, thus overfilling the area occupied by the active regions. The photovoltage generated by the cells was then measured using a voltmeter as a function of input light power, which was varied from 1 mW to 100 mW. As shown in Fig. 3, the average voltage response against the incident power closely follows a logarithmic relationship, which is in agreement with the theoretical performance first calculated by Schockley and Queisser [30]. The fit deviates significantly at very low light intensities where background light and leakage current start to play a significant role.

    The graph shows the characterization results of the fabricated perovskite solar-cell samples, fitted with a logarithmic function.

    Figure 3.The graph shows the characterization results of the fabricated perovskite solar-cell samples, fitted with a logarithmic function.

    3. EXPERIMENTS AND RESULTS

    Figure 4 shows the ONN setup, which uses a 512×512 pixels liquid crystal spatial light modulator (SLM) to encode the input image into a collimated laser beam through phase modulation. The desired Fourier components of the encoded beam are then selected using an iris to remove the unwanted background and improve the contrast of encoded images. An optically thick layer of alumina particles with an average size of 1 μm was placed in front of the photodetector, acting as randomized and fixed linear weights. Each solar-cell pixel independently generates a nonlinear voltage signal against the incident light, and a collection of these pixels is used to capture the ONN output states. The physical propagation process shown in Fig. 4 can be formulated as h(i)=(AF)(x(i))=(AMSirise)(x(i)),where x(i) and h(i) are the ith input image and its corresponding output state, e denotes the image encoding process of the SLM, Siris is a sparse selection mask implemented by the iris, M is a randomized and fixed linear mapping carried out by the scattering medium, A is a nonlinear acquisition operator representing the conversion of the captured light power into analogue voltage signal via the solar-cell pixels, and F=MSirise represents the entire computing reservoir formed by the optical components. The operator A may be further decomposed into σlogqSsc. Ssc is a sparse selection mask representing the capillary distribution of the solar-cell pixels, q(pj) is a function taking the element-wise magnitude of the incident light, and σlog is a logarithmic-like element-wise activation function representing the conversion of the incident light power to analogue signals. For simplicity, the above formulation neglects the complex field transfer matrix of the free space between each optical component. The ONN output h(i) can be trained for various downstream tasks. Here we consider the classification setting, where a single layer of linear weights θ* is digitally trained to solve the regression problem minθ||Y^(θ)Y||22+c||θ||22,where Y is the target label, Y^(θ)=θH is the model classification result, H=[h(1),h(2),,h(n)], and c is a regularization parameter. For low-dimensional H, the output weights θ* can be easily computed using [31] θ*=(HTH+cI)1HTY.

    3D render of the ONN optical setup, with a six-pixel solar-cell panel as its detector.

    Figure 4.3D render of the ONN optical setup, with a six-pixel solar-cell panel as its detector.

    We evaluated the above ONN setup for solving MNIST classification tasks, where x(i) is the ith pre-processed MNIST image. In this experiment, the pre-processing only involves resizing the input images from 28×28 pixels to 512×512 pixels, the same resolution as the SLM screen. The SLM displays the pre-processed images one by one in rapid succession, with an interval of approximately 11 ms per image. This interval represents the sum of the interfacing time between the computer with the SLM, and the computer with the solar-cell voltage reader, and the response time of the SLM. After training, this ONN system can reach an average classification accuracy of 91% on the two-class MNIST datasets and 54% for the full 10-class classification. It is worth noting that this performance is competitive with just six output channels, where the number of output channels is less than the number of classes. The performance of the network can be improved by simply increasing the number of solar-cell pixels.

    Our further investigation also demonstrated the competitiveness of our solar-cell-based ONN setup, where we evaluated the same ONN setup but with a CCD camera instead of solar cells. The CCD camera has a linear response against the incident light power until saturation, at which point the pixel readout will be capped at its maximum value. This saturation process can be expressed by a simple element-wise top hat activation function σsat(pj)=min{pj,255}, with 255 being the maximum readout of pixel pj. The physical propagation process can thus be reformulated as h(i)=(AF)(x(i))=(AMSirise)(x(i)),where A=σsatq is a weakly nonlinear acquisition operator. Note that A does not contain a selection mask term, as we assume the tightly packed pixels of a CCD camera are capable of capturing the full image field. Furthermore, to simulate the large pixels as well as the pixel layout of the solar cells, the captured 1024×1024 CCD images were resized by binning and averaging the image pixels to a shape of 3×2. This setup has achieved accuracy of 88% and 49% on two- and ten-class MNIST classification, consistently underperforming compared to its solar-cell equivalent, and sometimes by a sizable margin. The full comparison is shown in Fig. 5.

    Violin plot that compares the classification accuracy between the single-layer random ONN setup with solar cells or a CCD camera. The number of classes indicates the number of different MNIST digits the ONN aims to classify. Each violin illustrates the distribution of the accuracy evaluated over all of the possible combinations of a fixed number of classes. The number and the white line annotate the median accuracy of these combinations. The thicker and thinner lines indicate the interquartile range and the 1.5 times the interquartile range of the accuracy distribution, respectively. Each violin is independently normalized by its area.

    Figure 5.Violin plot that compares the classification accuracy between the single-layer random ONN setup with solar cells or a CCD camera. The number of classes indicates the number of different MNIST digits the ONN aims to classify. Each violin illustrates the distribution of the accuracy evaluated over all of the possible combinations of a fixed number of classes. The number and the white line annotate the median accuracy of these combinations. The thicker and thinner lines indicate the interquartile range and the 1.5 times the interquartile range of the accuracy distribution, respectively. Each violin is independently normalized by its area.

    4. DISCUSSION

    This study shows that utilizing a set of just six distinct solar-cell elements is sufficient for completing classification tasks and that for an equivalent number of pixels solar-cell-based ONNs can perform better than CCD-based ONNs. The complexity of the task tackled by the ONN scales with the density of the pixels used [32]. There exist multiple techniques that enable the patterning of large-area perovskite devices into multicolor sub-pixels with micrometer-scale resolution [3335]. Together with their low cost and scalable fabrication [36], this means there is potential to fabricate highly complex ONNs. High-density detectors are particularly relevant in the context of indoor photovoltaic applications, where perovskite-based technology excels. An alternative framework for scaled-up photovoltaic ONNs utilizes the existing solar infrastructure at solar farms or residential areas with rooftop solar panel installations. In this case, each solar panel can be treated as an independent pixel, and a collection of these distributed pixels can provide information for detecting and analyzing geological and meteorological events.

    A key consideration in the use of solar cells for ONN application is the stability of their photovoltage. Perovskite solar cells are known to undergo photodegradation if exposed to high light powers for extended periods [37], and this could be detrimental to their usefulness in ONNs. It should be noted that the solar cells used in this work were optimized for efficiency rather than stability, and only a very basic encapsulation method was used. Despite these very non-optimal conditions, we still found that the stability was sufficient to train and use the network successfully at the used powers.

    Although the stability of perovskite solar cells is still an area of active research [38,39], recent studies have shown that perovskite solar cells can achieve more than 2000 h of stability under accelerated aging conditions if the right processing and encapsulation methods are used [40], which shows that perovskite-based ONNs could easily be stable enough for most applications. Finally, it should be noted that our results are not expected to be different for conventional silicon-based solar cells [38,41]. These are generally more stable, but they have a weaker voltage response and do not offer the advantages of light weight, semitransparency, and ease of fabrication that perovskite solar cells can offer [42].

    Importantly, unlike CCD cameras that require external power sources to operate, solar cells can self-generate electricity while simultaneously capturing incoming information. The generated electricity can then be harnessed to power the subsequent digital or analog systems to analyze the signals. To our best knowledge, no other photodetectors possess similar dual power-signal-generating capability, making this a truly unique characteristic that can be leveraged for developing self-powered, battery-free, and thus more portable novel edge-computing systems. Furthermore, the captured information by solar cells in the form of analog signal is immediately accessible at the point of acquisition, with a refresh rate up to 100 kHz [43], allowing the data to be processed by the subsequent electronic computing systems without any additional need for amplification.

    Additionally, the type of information collected by the large-sized solar-cell pixels can also be very different from that of smaller CCD pixels. Not only can the low-resolution nature of the solar-cell pixels be desirable for reducing the privacy and safety concerns to individuals and institutions, but their large acquisition area can also bring other advantages, such as providing a larger dynamic range, better signal-to-noise ratio, and better depth-of-field [44,45]. Finally, when deployed at scale, ONNs based on solar cells are excellent candidates for environmental monitoring tasks.

    5. CONCLUSION

    We have successfully demonstrated the possibility of integrating perovskite solar cells for ONN applications through a simple proof-of-concept setup. Their advantages of being inexpensive, easily accessible, and having an intrinsic nonlinear activation make it an ideal choice over CCD cameras for large-scale deployment. The utilization of solar cells as both a photodetector and an energy source nevertheless presents intriguing prospects and opens the door to the development of novel self-powered edge-computing systems.

    Acknowledgment

    Acknowledgment. KZ acknowledges support from the Carnegie Trust for the Universities of Scotland. CC acknowledges PRIN 2022597MBS PHERMIAC. ADF was supported by the European Research Council (ERC) under the European Union Horizon 2020 Research and Innovation Program (Grant Agreement No. 819346).

    References

    [1] D. Zhang, Z. Tan. A review of optical neural networks. Appl. Sci., 12, 5338(2022).

    [2] J. Liu, Q. Wu, X. Sui. Research progress in optical neural networks: theory, applications and developments. PhotoniX, 2, 5(2021).

    [3] Z. Cheng, C. Ros, W. H. Pernice. On-chip photonic synapse. Sci. Adv., 3, e1700160(2017).

    [4] C. Qian, Z. Wang, H. Qian. Dynamic recognition and mirage using neuro-metamaterials. Nat. Commun., 13, 2694(2022).

    [5] D. Owen-Newns, J. Robertson, M. Hejda. GHz rate neuromorphic photonic spiking neural network with a single vertical cavity surface-emitting laser (VCSEL). IEEE J. Sel. Top. Quantum Electron., 29, 1500110(2022).

    [6] C. D. Schuman, S. R. Kulkarni, M. Parsa. Opportunities for neuromorphic computing algorithms and applications. Nat. Comput. Sci., 2, 10-19(2022).

    [7] S. B. Furber, D. R. Lester, L. A. Plana. Overview of the spinnaker system architecture. IEEE Trans. Comput., 62, 2454-2467(2012).

    [8] J. Wu, X. Lin, Y. Guo. Analog optical computing for artificial intelligence. Engineering, 10, 133-145(2022).

    [9] M. Onen, N. Emond, B. Wang. Nanosecond protonic programmable resistors for analog deep learning. Science, 377, 539-543(2022).

    [10] J. Spall, X. Guo, T. D. Barrett. Fully reconfigurable coherent optical vector–matrix multiplication. Opt. Lett., 45, 5752-5755(2020).

    [11] L. Bernstein, A. Sludds, C. Panuski. Single-shot optical neural network. Sci. Adv., 9, eadg7904(2023).

    [12] X. Lin, Y. Rivenson, N. T. Yardimci. All-optical machine learning using diffractive deep neural networks. Science, 361, 1004-1008(2018).

    [13] C. Liu, Q. Ma, Z. J. Luo. A programmable diffractive deep neural network based on a digital-coding metasurface array. Nat. Electron., 5, 113-122(2022).

    [14] J. Chang, V. Sitzmann, X. Dun. Hybrid optical-electronic convolutional neural networks with optimized diffractive optics for image classification. Sci. Rep., 8, 12324(2018).

    [15] X. Guo, T. D. Barrett, Z. M. Wang. Backpropagation through nonlinear units for the all-optical training of neural networks. Photon. Res., 9, B71-B80(2021).

    [16] T. Wang, M. M. Sohoni, L. G. Wright. Image sensing with multilayer, nonlinear optical neural networks. Nat. Photonics, 18, 408-415(2023).

    [17] T. Wang, S.-Y. Ma, L. G. Wright. An optical neural network using less than 1 photon per multiplication. Nat. Commun., 13, 123(2022).

    [18] K. Tang, J. Chen, H. Jiang. Optical computing powers graph neural networks. Appl. Opt., 61, 10471-10477(2022).

    [19] F. Duport, B. Schneider, A. Smerieri. All-optical reservoir computing. Opt. Express, 20, 22783-22795(2012).

    [20] M. Nakajima, K. Tanaka, T. Hashimoto. Scalable reservoir computing on coherent linear photonic processor. Commun. Phys., 4, 20(2021).

    [21] D. Pierangeli, G. Marcucci, C. Conti. Photonic extreme learning machine by free-space optical propagation. Photon. Res., 9, 1446-1454(2021).

    [22] A. Momeni, R. Fleury. Electromagnetic wave-based extreme deep learning with nonlinear time-floquet entanglement. Nat. Commun., 13, 2651(2022).

    [23] M. Rafayelyan, J. Dong, Y. Tan. Large-scale optical reservoir computing for spatiotemporal chaotic systems prediction. Phys. Rev. X, 10, 041037(2020).

    [24] D. Pierangeli, C. Conti. Single-shot polarimetry of vector beams by supervised learning. Nat. Commun., 14, 1831(2023).

    [25] W. Tress, M. Yavari, K. Domanski. Interpretation and evolution of open-circuit voltage, recombination, ideality factor and subgap defect states during reversible light-soaking and irreversible degradation of perovskite solar cells. Energy Environ. Sci., 11, 151-165(2018).

    [26] F. Ma, Y. Zhao, Z. Qu. Developments of highly efficient perovskite solar cells. Acc. Mater. Res., 4, 716-725(2023).

    [27] M. T. Hoang, Y. Yang, N. D. Pham. Ecofriendly solution processing of perovskite solar cells using water. J. Phys. Chem. Lett., 15, 6880-6889(2024).

    [28] R. Garai, B. Sharma, M. A. Afroz. High-efficiency semitransparent perovskite solar cells enabled by controlling the crystallization of ultrathin films. ACS Energy Lett., 9, 2936-2943(2024).

    [29] N. Cheng, Z. Yu, W. Li. Highly efficient perovskite solar cells employing SnO2 electron transporting layer derived from a tin oxalate precursor solution. J. Power Sources, 544, 231871(2022).

    [30] W. Shockley, H. J. Queisser. Detailed balance limit of efficiency of p-n junction solar cells. J. Appl. Phys., 32, 510-519(1961).

    [31] G.-B. Huang, Q.-Y. Zhu, C.-K. Siew. Extreme learning machine: theory and applications. Neurocomputing, 70, 489-519(2006).

    [32] C. M. Valensise, I. Grecco, D. Pierangeli. Large-scale photonic natural language processing. Photon. Res., 10, 2846-2853(2022).

    [33] L. Liang, T. Ma, Z. Chen. Patterning technologies for metal halide perovskites: a review. Adv. Mater. Technol., 8, 2200419(2023).

    [34] Y. H. Lee, J. Y. Park, P. Niu. One-step solution patterning for two dimensional perovskite nanoplate arrays. ACS Nano, 17, 13840-13850(2023).

    [35] J. Harwell, J. Burch, A. Fikouras. Patterning multicolor hybrid perovskite films via top-down lithography. ACS Nano, 13, 3823-3829(2019).

    [36] Y. Rong, Y. Ming, W. Ji. Toward industrial-scale production of perovskite solar cells: screen printing, slot-die coating, and emerging techniques. J. Phys. Chem. Lett., 9, 2707-2713(2018).

    [37] A. Farooq, M. R. Khan, T. Abzieher. Photodegradation of triplecation perovskite solar cells: the role of spectrum and bias conditions. ACS Appl. Energy Mater., 4, 3083-3092(2021).

    [38] R. Sharma, A. Sharma, S. Agarwal. Stability and efficiency issues, solutions and advancements in perovskite solar cells: a review. Sol. Energy, 244, 516-535(2022).

    [39] L. Duan, D. Walter, N. Chang. Stability challenges for the commercialization of perovskite–silicon tandem solar cells. Nat. Rev. Mater., 8, 261-281(2023).

    [40] T. A. Chowdhury, M. A. B. Zafar, M. Sajjad-Ul Islam. Stability of perovskite solar cells: issues and prospects. RSC Adv., 13, 1787-1810(2023).

    [41] C. Ballif, F.-J. Haug, M. Boccard. Status and perspectives of crystalline silicon photovoltaics in research and industry. Nat. Rev. Mater., 7, 597-616(2022).

    [42] P. Holzhey, M. Prettl, S. Collavini. Toward commercialization with lightweight, flexible perovskite solar cells for residential photovoltaics. Joule, 7, 257-271(2023).

    [43] E. Lopez-Fraguas, B. Arredondo, C. Vega-Colado. Visible light communication system using an organic emitter and a perovskite photodetector. Organ. Electron., 73, 292-298(2019).

    [44] T. Chen, P. B. Catrysse, A. El Gamal. How small should pixel size be?. Proc. SPIE, 3965, 451-459(2000).

    [45] P. L. Reu, W. Sweatt, T. Miller. Camera system resolution and its influence on digital image correlation. Exp. Mech., 55, 9-25(2015).

    [46] https://doi.org/10.17630/4da40306-655e-4ad1-982d-87827f97b2cd. https://doi.org/10.17630/4da40306-655e-4ad1-982d-87827f97b2cd

    Kaicheng Zhang, Jonathon Harwell, Davide Pierangeli, Claudio Conti, Andrea Di Falco, "Optical neural networks based on perovskite solar cells," Photonics Res. 13, 382 (2025)
    Download Citation