Accelerating Bayesian Estimation of Solar Cell Equivalent Circuit Parameters Using JAX-Based Sampling

Equivalent circuit models that reproduce the current–voltage characteristics of solar cells are useful not only to gain physical insight into the power loss mechanisms that take place in solar cells but also for designing systems that use renewable solar energy as a power source. As mentioned in a p...

Full description

Bibliographic Details
Main Author: Kazuya Tada
Format: Article
Language:English
Published: MDPI AG 2023-08-01
Series:Electronics
Subjects:
Online Access:https://www.mdpi.com/2079-9292/12/17/3631
_version_ 1797582678040510464
author Kazuya Tada
author_facet Kazuya Tada
author_sort Kazuya Tada
collection DOAJ
description Equivalent circuit models that reproduce the current–voltage characteristics of solar cells are useful not only to gain physical insight into the power loss mechanisms that take place in solar cells but also for designing systems that use renewable solar energy as a power source. As mentioned in a previous paper, Bayesian estimation of equivalent circuit parameters avoids the drawbacks of nonlinear least-squares methods, such as the possibility of evaluating estimation errors. However, it requires a long computation time because the estimated values are obtained by sampling using a Markov chain Monte Carlo method. In this paper, a trial to accelerate the calculation by upgrading the Bayesian statistical package PyMC is presented. PyMC ver. 4, the next version of PyMC3 used in the previous paper, started to support the latest sampling libraries using a machine learning framework JAX, in addition to PyMC-specific methods. The acceleration effect of JAX is remarkable, achieving a calculation time of less than 1/20 times that of the case without JAX. Recommended calculation conditions were disclosed based on the results of a number of trials, and a demonstration with testable Python code on Google Colaboratory using the recommended conditions is published on GitHub.
first_indexed 2024-03-10T23:24:50Z
format Article
id doaj.art-925f5b1257584f21b1e1702380107b58
institution Directory Open Access Journal
issn 2079-9292
language English
last_indexed 2024-03-10T23:24:50Z
publishDate 2023-08-01
publisher MDPI AG
record_format Article
series Electronics
spelling doaj.art-925f5b1257584f21b1e1702380107b582023-11-19T08:01:52ZengMDPI AGElectronics2079-92922023-08-011217363110.3390/electronics12173631Accelerating Bayesian Estimation of Solar Cell Equivalent Circuit Parameters Using JAX-Based SamplingKazuya Tada0Department of Electrical Materials and Engineering, University of Hyogo, 2167 Shosha, Himeji 671-2280, Hyogo, JapanEquivalent circuit models that reproduce the current–voltage characteristics of solar cells are useful not only to gain physical insight into the power loss mechanisms that take place in solar cells but also for designing systems that use renewable solar energy as a power source. As mentioned in a previous paper, Bayesian estimation of equivalent circuit parameters avoids the drawbacks of nonlinear least-squares methods, such as the possibility of evaluating estimation errors. However, it requires a long computation time because the estimated values are obtained by sampling using a Markov chain Monte Carlo method. In this paper, a trial to accelerate the calculation by upgrading the Bayesian statistical package PyMC is presented. PyMC ver. 4, the next version of PyMC3 used in the previous paper, started to support the latest sampling libraries using a machine learning framework JAX, in addition to PyMC-specific methods. The acceleration effect of JAX is remarkable, achieving a calculation time of less than 1/20 times that of the case without JAX. Recommended calculation conditions were disclosed based on the results of a number of trials, and a demonstration with testable Python code on Google Colaboratory using the recommended conditions is published on GitHub.https://www.mdpi.com/2079-9292/12/17/3631solar cellequivalent circuit modelparameter extractionBayesian estimationRoberts g-function
spellingShingle Kazuya Tada
Accelerating Bayesian Estimation of Solar Cell Equivalent Circuit Parameters Using JAX-Based Sampling
Electronics
solar cell
equivalent circuit model
parameter extraction
Bayesian estimation
Roberts g-function
title Accelerating Bayesian Estimation of Solar Cell Equivalent Circuit Parameters Using JAX-Based Sampling
title_full Accelerating Bayesian Estimation of Solar Cell Equivalent Circuit Parameters Using JAX-Based Sampling
title_fullStr Accelerating Bayesian Estimation of Solar Cell Equivalent Circuit Parameters Using JAX-Based Sampling
title_full_unstemmed Accelerating Bayesian Estimation of Solar Cell Equivalent Circuit Parameters Using JAX-Based Sampling
title_short Accelerating Bayesian Estimation of Solar Cell Equivalent Circuit Parameters Using JAX-Based Sampling
title_sort accelerating bayesian estimation of solar cell equivalent circuit parameters using jax based sampling
topic solar cell
equivalent circuit model
parameter extraction
Bayesian estimation
Roberts g-function
url https://www.mdpi.com/2079-9292/12/17/3631
work_keys_str_mv AT kazuyatada acceleratingbayesianestimationofsolarcellequivalentcircuitparametersusingjaxbasedsampling