Top left: schematic diagram and cell environment for the in situ experiment using an 18650 cell in the SPICA diffractometer, with examples of the data analysis using the data analysis program developed in the present study. A schematic diagram shows the flow chart of the analysis process for the automatic refinement cycle.