Machine-learning-assisted plasmonic photonic crystal fiber refractive index sensor for the identification of fluorinated polymers: code and data

Published: 16 October 2026| Version 1 | DOI: 10.17632/4hjxtmdy9b.1
Contributor:
Md Tabil Ahammed

Description

Code and data for the paper "Machine-learning-assisted plasmonic photonic crystal fiber refractive index sensor for the identification of fluorinated polymers". The sensor is a D-shaped photonic crystal fiber with a gold film on the polished flat. Its modes were solved with the open-source finite element solver femwell. The record contains: - geometry and material models of the sensor - confinement loss spectra for all analyte refractive indices and design variants - mesh and boundary convergence checks - fabrication tolerance runs - the machine learning data set, the surrogate models and their test splits - the Monte Carlo fabrication study - the polymer identification results - the scripts that make every figure and table in the paper README.md explains the folder layout and how to rerun everything. DATA_DICTIONARY.md describes each data file. Licences: the data and figures are under CC BY 4.0. The code inside the code/ folder is under GPL-3.0 because it uses femwell (GPL-3.0); see the LICENSE file in the archive.

Files

Steps to reproduce

1. Unzip release.zip. Install Python 3.12, then: python -m venv .venv, activate it, and run: pip install -r requirements.txt 2. Run: python restore_layout.py (creates ./workspace with the original folder layout). 3. Figures from the saved data (about 2 min, no FEM solves): set PCF_PAPER_ROOT to the full path of workspace, go to workspace/new_paper/figures_src and run: python make_all.py, then python fig_00_cross_section.py. Output goes to output/*.pdf and *.png. 4. Tables from the saved FEM spectra (seconds): in workspace/new_design_DE run python scripts/20_final_dbl_tables.py --top 1.385 and python scripts/23_kaggle_tol_tables.py. 5. Machine learning, Monte Carlo and classification from the saved FEM dataset (about 3-4 h CPU): in workspace/new_pipeline run run_ml.py, importance.py, optimizer_compare.py, montecarlo.py and classify.py with the arguments listed in README.md (section Reproduce, Level 3). 6. The FEM computations themselves (days of CPU) can be repeated with scripts/15_ladder.py and the batch plans in scripts/batches, as listed in README.md (Level 4). README.md gives every command, and DATA_DICTIONARY.md describes each data file.

Categories

Optics, Machine Learning, Surface Plasmon Resonance, Photonics, Finite Element Method, Optical Fiber Sensing

Licence