Papers
Topics
Authors
Recent
Search
2000 character limit reached

ENIIGMA Fitting Tool: Infrared Ice Spectroscopy

Updated 5 July 2026
  • ENIIGMA is a spectral-decomposition tool that models infrared ice spectra as combinations of laboratory analogs using genetic algorithms.
  • It automates continuum fitting, silicate extraction, and statistical analysis to derive confidence intervals and quantify component degeneracy.
  • The tool enables precise molecular identification in complex protostellar environments, enhancing the interpretation of JWST-era observations.

Searching arXiv for ENIIGMA fitting tool and closely related infrared ice spectroscopy work. ENIIGMA, short for dEcompositioN of Infrared Ice features using Genetic Modelling Algorithms, is a publicly available and open-source Python toolbox for spectroscopy analysis of infrared spectra that decomposes protostellar ice absorption spectra into physically meaningful combinations of laboratory ice spectra. It was introduced to automate continuum determination, silicate extraction, spectral decomposition, and statistical analysis, with explicit calculation of confidence intervals and quantification of degeneracy in the inferred ice composition (Rocha et al., 2021). The tool is designed for broad-band infrared data, and in the Elias 29 application it was used over the range 2.520μm2.5\text{--}20\,\mu\mathrm{m}, where overlapping bands, matrix effects, thermal history, and energetic processing make manual or narrow-window fitting intrinsically ambiguous.

1. Scientific role and scope

ENIIGMA was developed for the interpretation of interstellar and circumstellar ice absorption bands in dense clouds and protostellar envelopes, where spectra contain broad, overlapping, and environment-dependent features from species such as H2_2O, CO, CO2_2, CH3_3OH, NH3_3, CH4_4, and NH4+_4^+ (Rocha et al., 2021). The stated motivation is that a variety of laboratory ice spectra simulating different chemical environments, ice morphology, and thermal and energetic processing are required for an accurate interpretation of protostellar spectra, and that an automated statistically based computational approach becomes necessary to determine which combination of laboratory data best fits the observations.

The method differs from phenomenological multi-Gaussian fitting in narrow windows because it fits a linear combination of laboratory spectra across a broad wavelength interval. The tool therefore searches over a large database of laboratory analogs rather than restricting the analysis to pre-assigned carriers in a small spectral region. This suggests that ENIIGMA is best understood not as a line-by-line classifier, but as a spectral-decomposition framework in which molecular identification is coupled to laboratory analog selection and to the inferred physical environment.

Its astrophysical emphasis is explicitly protostellar infrared ice spectroscopy. The paper describes applications to ISO-SWS, Spitzer-IRS, and spectra of the same general type, and states that the toolbox is well timed with the launch of the James Webb Space Telescope (Rocha et al., 2021).

2. Observational inputs and laboratory basis

ENIIGMA accepts three classes of input spectra in ASCII format with three columns: wavelength in μm\mu\mathrm{m}, flux or optical depth, and error (Rocha et al., 2021). The accepted forms are flux density spectra, optical-depth spectra including silicate features, and optical-depth spectra with silicates already removed. This separation reflects the internal structure of the code, since continuum fitting and optical-depth conversion may be performed internally, while silicate removal may either be performed by the tool or supplied externally.

The internal laboratory database contains approximately 100 spectra collected from the NASA Ames ice database, the Leiden Ice Database, and the UNIVAP NKABS database (Rocha et al., 2021). The database includes pure ices, mixtures, heated samples, UV-processed ices, ion-irradiated ices, and residues at elevated temperature. The examples listed in the source material include pure H2_2O, CO, CO2_2, CH2_20OH, CH2_21, NH2_22, CH2_23CHO, HCOOH, CH2_24CH2_25OH, and CH2_26OCH2_27, as well as mixed compositions such as H2_28O:CO:NH2_29:CH2_20OH and H2_21O:NH2_22:CO2_23:CH2_24.

Laboratory spectra measured in transmittance or absorbance are converted consistently. If 2_25 is transmittance and 2_26 is absorbance, then

2_27

and the laboratory optical depth is

2_28

Baselines of the laboratory spectra were checked or corrected to avoid misassignment. The database is manually grouped by type—pure, pure+heated, mixtures+heated, irradiated, and residues—and is described as easily extensible by the user (Rocha et al., 2021).

A common misconception is that the tool directly identifies molecules independently of the database. The paper states the opposite in practical terms: if an astrophysical component is absent from the database, ENIIGMA approximates it with the closest available analog. This means that identifications are always conditioned on the coverage and quality of the laboratory library.

3. Pre-processing: continuum, optical depth, and silicate extraction

For flux spectra 2_29, ENIIGMA offers two continuum models (Rocha et al., 2021). The first is a low-order polynomial,

3_30

used in the paper for wavelength regions such as 3_31. The second is a multi-blackbody continuum,

3_32

used for 3_33 and for SED-like continua. Continuum windows free of strong ice features are chosen by the user.

Once the continuum 3_34 is determined, the observed optical depth is computed as

3_35

This step is operationally central because the subsequent decomposition is performed in optical-depth space.

The 3_36 region is complicated by the 9.7 and 3_37 silicate bands, which overlap with ice features such as NH3_38 at 3_39, CH3_30OH at 3_31, ethanol near 3_32, and the H3_33O libration band near 3_34 (Rocha et al., 2021). ENIIGMA therefore implements a synthetic silicate method. The empirical GCS 3 silicate profile is scaled to the observed 9.7 and 3_35 peaks and decomposed into six Gaussians with fixed centers

3_36

Each Gaussian is written as

3_37

and the synthetic silicate optical depth is

3_38

The ice-only optical depth is then

3_39

The paper states that this synthetic method handles the 9.7 and 4_40 silicate bands simultaneously, which improves the separation of H4_41O libration and CO4_42 bending features in the 4_43 range (Rocha et al., 2021).

4. Genetic-modelling spectral decomposition

After pre-processing, ENIIGMA represents the ice-only optical depth spectrum as a linear combination of laboratory spectra,

4_44

where the coefficients 4_45 are the free parameters (Rocha et al., 2021). In the genetic-algorithm formulation, each candidate solution is a chromosome whose genes are the coefficients of the selected laboratory components.

The quality of a candidate solution is measured by the squared residual

4_46

This objective is directly proportional to a 4_47 when a constant observational standard deviation is assumed.

The implementation uses the Pyevolve Python library for the genetic algorithm (Rocha et al., 2021). The cycle includes initialization, parent selection, crossover, mutation, evaluation, and termination. The paper describes roulette-wheel and tournament selection, several crossover operators, and Gaussian mutation,

4_48

where 4_49 is drawn from a Gaussian distribution. The reported mutation rate is typically 4+_4^+0, and the population-to-generation ratios used in the work are typically 4+_4^+1 or 4+_4^+2. Tournament selection with high crossover rate is reported to have performed best for complex fits.

A distinctive feature of ENIIGMA is that it searches not only the coefficients 4+_4^+3 but also the component set. The user first supplies an initial guess containing four laboratory spectra. A genetic fit is performed for that set, producing a residual 4+_4^+4. Additional laboratory spectra are then added one at a time, each augmented set is refit, and components for which the new residual 4+_4^+5 satisfies 4+_4^+6 are kept as promising. The genetic algorithm is then rerun using groups of 7–8 or more components drawn from this filtered set to search for the global minimum (Rocha et al., 2021). This design is why the paper states that the initial guess is not binding.

The tool is therefore not restricted to fitting a single predefined mixture. It performs a database-guided search over broad combinations of pure, mixed, heated, irradiated, and residue spectra, constrained by the observed spectrum and the laboratory archive.

5. Statistical analysis, confidence regions, and degeneracy

ENIIGMA supplements the heuristic search with a post-processing statistical analysis intended to derive confidence intervals and quantify degeneracy (Rocha et al., 2021). The starting point is

4+_4^+7

and confidence regions are defined through

4+_4^+8

where 4+_4^+9 is the number of free parameters and μm\mu\mathrm{m}0 is the significance level.

The tool samples parameter space around the optimum by treating each coefficient μm\mu\mathrm{m}1 as a random variable drawn from a normal distribution,

μm\mu\mathrm{m}2

with mean μm\mu\mathrm{m}3 equal to the optimal coefficient. The paper gives specific μm\mu\mathrm{m}4 thresholds, including μm\mu\mathrm{m}5, μm\mu\mathrm{m}6, and μm\mu\mathrm{m}7 for 1–3μm\mu\mathrm{m}8 with two components, and μm\mu\mathrm{m}9, 2_20, and 2_21 for 1–32_22 with eight components (Rocha et al., 2021). The resulting 2D correlation maps expose anti-correlations and component trade-offs.

Column densities are computed from the optical-depth profile and the band strength 2_23 using

2_24

Lower and upper bounds are obtained by repeating the integration with the lower and upper limits of 2_25 derived from the confidence analysis.

Degeneracy is further characterized through recurrence plots. ENIIGMA collects all acceptable solutions within a chosen 2_26 threshold, counts how often each laboratory component appears, and defines the recurrence

2_27

where 2_28 is the frequency of component 2_29 and 2_20 is the total number of acceptable solutions (Rocha et al., 2021). A recurrence of 2_21 indicates that a component appears in all acceptable solutions, whereas lower recurrence means that it can be replaced by other components without significantly degrading the fit.

The tool also constructs histograms of 2_22 over all acceptable solutions, using the Freedman–Diaconis estimator for bin widths. This is important because different decompositions can have similar 2_23 but different inferred compositions. A plausible implication is that ENIIGMA’s output should be interpreted as an ensemble of statistically acceptable decompositions rather than as a single unique molecular inventory.

6. Validation, Elias 29, and methodological boundaries

The paper reports three categories of validation: known pure and mixed laboratory spectra, fractionation tests with added Gaussian noise, and a synthetic ice spectrum containing eight pure ice components plus silicate absorption and Gaussian noise (Rocha et al., 2021). In the tests with known samples, the tool correctly retrieved the exact spectra and coefficients in both “fully sighted” and “fully blind” cases when the correct sample was present in the database. When the correct sample was removed, ENIIGMA selected the most similar available analog, such as the same species at a different temperature. Fractionation tests showed that strong degeneracy appears when one component is minor, for example in the 2_24 case of H2_25O(15 K) + H2_26O(40 K), where a pure 15 K solution remained statistically allowed.

The principal astrophysical demonstration is the Class I protostar Elias 29, for which ENIIGMA was applied to ISO-SWS/LWS and Spitzer-IRS data over 2_27, with the decomposition focused on 2_28 (Rocha et al., 2021). The continuum was modeled with a single blackbody of 2_29 K over 2_200 and a third-order polynomial over 2_201. After synthetic silicate subtraction, an initial guess of pure H2_202O, CO, CO2_203, and NH2_204 led to an optimal seven-component solution.

The seven-component decomposition included a heavy-ion-processed H2_205O:NH2_206:CO2_207:CH2_208 mixture at 35 K, a UV-processed H2_209O:NH2_210:CH2_211OH:CO:CO2_212 mixture, pure and mixed CO2_213, pure CO, pure and mixed H2_214O, NH2_215-bearing components including residues, and an H2_216O:CH2_217CH2_218OH mixture (Rocha et al., 2021). The paper states that the overall fit from 2_219 to 2_220 is excellent, while also noting residual systematic effects such as the underfit red wing of the 2_221 band.

For Elias 29, the recurrence analysis within 2_222 showed that three components had 2_223: the processed H2_224O:NH2_225:CO2_226:CH2_227 mixture, the UV-processed H2_228O:NH2_229:CH2_230OH:CO:CO2_231 mixture, and CO2_232 (Rocha et al., 2021). CO and pure H2_233O had high recurrence, while the only laboratory component containing ethanol, the H2_234O:CH2_235CH2_236OH mixture, had recurrence of approximately 2_237. The paper therefore describes the ethanol inference as a tentative detection rather than a definitive identification.

The global-minimum column densities reported for Elias 29 include H2_238O 2_239, CO2_240 2_241, CO 2_242, NH2_243 2_244, CH2_245 2_246, H2_247CO 2_248, CH2_249OH 2_250, NH2_251 2_252, and CH2_253CH2_254OH 2_255 (Rocha et al., 2021).

The paper also states clear limitations. Continuum subtraction and silicate removal can imprint artifacts in the 2_256 region; the laboratory database is finite and biased; grain shape and size effects are not currently treated through Mie or CDE corrections; and intermolecular environment effects are represented only through the discrete mixtures present in the database (Rocha et al., 2021). These limitations are methodological rather than incidental. They imply that ENIIGMA is strongest when used as a statistically explicit decomposition tool tied to a well-curated laboratory archive, and weaker when laboratory coverage is incomplete or when dust radiative-transfer effects dominate the spectral morphology.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to ENIIGMA Fitting Tool.