Continuous Hue-Based Self-Calibration of a Smartphone Spectrometer Applied to Optical Fiber Fabry-Perot Sensor Interrogation

Smartphone-based optical spectrometers allow the development of a new generation of portable and cost-effective optical sensing solutions that can be easily integrated into sensor networks. However, most commonly the spectral calibration relies on the external reference light sources which have known narrow spectral lines. Such calibration must be repeated each time the fiber and diffraction grating holders are removed from the smartphone and reattached. Moreover, the spectrometer wavelength scale can drift during the measurement because of the smartphone temperature fluctuations. The present work reports on a novel spectral self-calibration approach, based on the correspondence between the light wavelength and the hue features of the spectrum measured using a color RGB camera. These features are caused by the nonuniformity of camera RGB filters’ responses and their finite overlap, which is a typical situation for RGB cameras. Thus, the wavelength scale should be externally calibrated only once for each smartphone spectrometer and can further be continuously verified and corrected using the proposed self-calibration approach. An ability of the plug-and play operation and the temperature drift elimination of the smartphone spectrometer was experimentally demonstrated. Conducted experiments involved interrogation of optical fiber Fabry-Perot interferometric sensor and demonstrated a nanometer-level optical path difference resolution.


Introduction
Optical fiber sensors (OFS) are an emerging research topic, gaining a lot of attention from both academia and industry. During the last three decades they have progressed from simple laboratory prototypes to high-end commercial products, forming a several billion dollar market. OFS are an ideal choice for various sensing tasks, including biomedical, oil and gas, avionics, structure health monitoring and others. Their advantages are small size, biocompatibility, chemical neutrality, ability to perform remote measurements and multiplex several sensors, electromagnetic neutrality and absence of electric currents or radiofrequency fields in the sensing element. Another advantage is the ability to either make the sensing element out of a section of a fiber, or to form a sensing element with free-space propagation of light, whilst fiber acts as a light feeding element.
One of the most commonly used interrogation approaches for OFS is spectral interrogation, which includes measurement of a spectral function of an OFS (either reflective or transmissive) and spectra. We have developed a wavelength self-calibration method able to operate continuously and provide a reliable wavelength scale reference of the measured spectra. For that, we have identified two reference points in the hue distribution of the measured spectrum, whose positions in the optical spectrum can be measured and used further to deduce the wavelength scale of the measured spectrum.

Smartphone-Based Optical Fiber Sensor Interrogation System
The concept of the smartphone-based interrogation system, similar to most of the already known smartphone-based spectrometers (SPBS) [19,23,25], is shown in Figure 1a. The photo of the experimental setup is shown in Figure 1b. The smartphone LED was used as a light source. SPBS was assembled using the smartphone camera, a piece of a DVD disk acting as a diffraction grating and a 150 µm width slit consisting of two halves of a razor blade. These components were fixed on a 3D-printed holder, attached to the smartphone with a peg. A detailed description of the developed SPBS can be found in our previous work [24]. The only difference of the current work is the use of a color camera instead of the monochrome one in [24].
The smartphone used in the proposed OFS interrogation setup was Huawei P20 Pro, featuring a 10-megapixel color camera. Most of the experiments were conducted using this model. However, several other widespread smartphone models were also tested and turned out to be suitable for realization of the proposed spectral self-calibration approach as well. Since spatially incoherent light irradiated by the smartphone LED cannot be efficiently coupled to singlemode fibers due to fundamental reasons [33,34], it is only possible to use multimode fibers with the smartphone-based systems. Therefore, graded index multimode fibers with a core diameter of 62.5 µm were used for guiding light to and from the interferometric sensing element, which was connected to the smartphone flash LED and camera via a multimode 50:50 coupler. The 60 degrees tilt of the output fiber through which the diffraction grating and the camera are irradiated was chosen so that only the first-order diffraction beam impinged the smartphone camera sensor.
The sensing element used in the performed experiments was an extrinsic fiber Fabry-Perot interferometer, formed by the end faces of two multimode fibers. The reflectivities of the fiber ends are about 3%, which is due to the Fresnel effect. Thus the interferometer was low-finesse and a two-beam approximation was used for signal processing. The fibers were terminated with FC-PC connectors, which were fixed inside a standard mating sleeve. The air gap L 0 between the fiber end faces, determining the interferometer OPD was set to about 8.8 µm. The OPD value was verified using spectral interferometric measurement with a commercial spectrometer Hamamatsu C10082CAH.

Analysis of Spectra Images Measured with Smartphone Spectrometer
An example of image of the smartphone LED spectrum measured with the smartphone camera is shown in Figure 2a. Exposure parameters were the following: ISO 50 (minimal value), shutter speed 1/17 s, aperture f/1.8, color temperature in camera settings was set to 3000 K. It can be seen even with a naked eye that the yellow and cyan areas of the spectrum (they actually are the transitions between the red, green and blue areas) are quite narrow, while the color hue distribution of blue, green and red areas is nearly uniform. On the other hand, uniformity of the wavelength scale of the assembled SPBS was verified by comparing the shapes of interferometer spectra measured with SPBS and a commercial spectrometer as described below. Therefore, this significant hue nonuniformity of the measured spectrum can be harnessed to provide a reliable spectrum self-calibration according to the two distinctive spectrum features. Raw image of the smartphone LED spectrum measured with the smartphone-based spectrometer, the centers of the transition areas are shown with red and blue dashed curves (a); corresponding hue distribution along the v axis (b); red, green and blue channels' intensities (c). The color wheel in the inset of (b) is shown to demonstrate the transformation between the RGB format and hue, as well as the analogy between the hue and the phase (or angle).
These spectral features can be illustrated more directly by transforming the image shown in Figure 2a from RGB to hue, saturation, value (HSV) format and analyzing the hue channel. A cross-section of spectrum image's hue distribution along the v axis at u = 1400 is shown in Figure 2b; RGB representation of the same cross-section is shown in Figure 2c. By comparing the plots in Figure 2b,c, it can be clearly seen that the transition areas are due to the overlap between the spectral ranges occupied by red, green and blue channels and is determined by the optical filters used in the camera. The hue values are calculated according to the following equation where MAX and MI N denote the maximal and minimal values among the R, G and B. As follows from the Equation (1), the range of the hue values is [0, 1), where 0 corresponds to pure red, 1/3 to pure green and 2/3 to pure blue, while the intermediate values encode the combinations of these colors as shown in the color wheel in the inset in Figure 2b. This color representation allows to draw a direct analogy between the hue value and angle (or phase). As can be seen from the color wheel in the inset in Figure 2b, the colors close to red can have hue values a bit greater than 0 as well as a bit smaller than 1, which can result in discontinuities of hue value distributions, as shown with a blue solid curve in Figure 2b. In order to eliminate these discontinuities, an operation similar to phase unwrapping [35] was applied to hue values-if a difference between adjacent hue values H i , H i+1 greater than 0.5 was detected, then the value of H i+1 was corrected by replacing it with H i+1 − 1 value. This unwrapping procedure was applied to all columns of the measured spectrum image. Unwrapped hue distribution is shown in Figure 2b with a dashed red curve.
It is verified by the plot in Figure 2b that the spectrum consists of three main areas with relatively uniform hue distributions, corresponding to red, green and blue and two transition areas, where hue value changes rapidly. The latter two areas will be used for spectral self-calibration by monitoring their positions by means of least-squares fitting.
However, as can be seen in Figure 2b, the change of hue value in these transition areas is nonlinear, which may result in fitting inaccuracies and calibration errors. Therefore, optimal color temperature setting of the camera must be found in order to simplify the calibration task and increase its accuracy. Optimal color temperature for the smartphone used in the experiments turned out to be 4000 K, the details on how it was evaluated can be found in Appendix A.
It should be noted that the spectrum image measured with a color camera is a result of a convolution and consequent multiplication of the true optical spectrum with two functions. The first operation is a convolution of the input optical spectrum with spectrometer instrument function (IF), which takes place for all spectrometers [36]. The second operation is multiplication of the convoluted input spectrum by the spectral responses of the optical filters in red, green and blue (RGB) channels of the camera. In the ideal case of a spectrometer with an infinitely narrow IF (corresponding to unrealistically high spectral resolution) the hue-to-wavelength correspondence of the measured spectrum will depend only on the RGB optical filters' spectral responses and will be independent of an input signal optical spectrum.
However, for finite width IF (finite spectral resolution of spectrometer) it will not be the case-the hue value of each pixel will be affected not only by the input signal intensity at a particular wavelength, but rather by the signal intensity in some spectral neighborhood. The wider the IF, the more the Hue distribution will depend on the input signal spectrum. In the context of our work, this is an undesirable effect as it will cause smoothing of the hue distribution features, discussed above. In order to avoid this detrimental effect, we have assembled a smartphone spectrometer with a fairly high spectral resolution of 4 nm.
When the hue distribution is independent of the input signal spectrum and possesses clearly detectable features, these features can be unambiguously associated with the corresponding wavelength points. In other words, the wavelength scale of the measured spectrum will be linked to the spectral responses of the RGB optical filters, which are quite stable. A vital advantage of such correspondence is that for each smartphone it must be performed only once, after that the self-calibration can be performed for all subsequent measurements. The most crucial condition for robust operation of the proposed spectral self-calibration approach is that the analyzed optical spectrum must be sufficiently broad (covering both spectral features used for the wavelength scale calculation) and sufficiently bright for proper calculation of hue distribution of the spectrum image.

Spectra Alignment
Below, we describe the consecutive stages of the proposed spectral self-calibration approach, based on the spectra features described in the previous subsection.
( 1) After acquisition of a spectrum image, it was transformed from RGB to HSV format. Then it was cropped in order to remove blank areas-columns which RMS values of the value channel were less than half of the maximal column's RMS were removed, after that RMS position τ RMS and width w RMS of rows' RMS values distribution were calculated according to equations where x is the analyzed array, t is the indexing variable (row number in our case). The rows falling outside of the [τ RMS − w RMS ; τ RMS + w RMS ] interval were removed from the analysis.
where M is the number of pixels in the cropped image, IQR is the interquartile range of H values. IQR is also known as midspread and is a difference between the first and the third quartiles of the considered data set. Typical number of bins estimated according to Equation (4) for the acquired and cropped spectra images was between 70 and 80.
After calculating the histogram, the coordinates of its bins h r , h g and h b with greatest count numbers were found. These bins correspond to the majority of pixels in the green, red and blue spectrum areas, respectively and therefore were located in the neighborhoods of 0, 0.33 and 0.67 values. After that, RMS positions h r RMS , h g RMS and h b RMS and widths δh r RMS , δh g RMS and δh b RMS of histogram areas inside the intervals were estimated according to Equations (2) and (3). Selecting δh = 1/6, the whole range of possible hue values was accounted for.
This allowed the red-to-green and green-to-blue transition areas to be identified in each column as the pixels, whose hue values lie within intervals, respectively. After the transition areas were identified, their positions were estimated by fitting all of them by a tanh function of a form given below where a and t dur are amplitude and temporal scaling parameters, t is the indexing variable (row number in our case) and t T is the position of the middle of the transition area. The values of parameters a, t dur and t T were found by least-squares fitting procedure. Since tanh is an odd function, all the fitted sections were subject to mean subtraction operation prior to the fitting.
The obtained dependencies of hue transition areas' coordinates on u coordinate (spectrum column number) were approximated by second-order polynomial fits, allowing to eliminate some noise effects. The fits are shown in Figure 2a with red and blue dashed curves. Thanks to such an accurate determination of the hue transition areas' coordinates, the circular distortion of measured spectra, clearly observable in Figure 2a, leading to relative shifts and change of wavelength sampling of spectrum columns could be compensated. (5) Finally, knowing the positions of two reference points, corresponding to certain wavelengths for each spectrum column, it was possible to interpolate all the columns and resample them to a true wavelength scale. The interpolation based on the fast Fourier transform [38] was applied. After spectrum columns interpolation, the columns were averaged, resulting in substantial increase of spectrum signal-to-noise ratio. Therefore, regardless of misalignment of the optical components of SPBS, the wavelength scale of the measured spectrum can be restored according to the two reference points.
Reproducibility of the proposed spectral self-calibration approach was tested using 7 smartphone models. The test results are presented in Appendix B.

Initial Wavelength-To-Hue Calibration
Calibration of the wavelengths corresponding to the red-to-green and green-to-blue transition areas was performed by measuring spectrum of a thermally and mechanically isolated Fabry-Perot interferometer with our developed SPBS and commercial spectrometer Hamamatsu C10082CAH. Smartphone LED was used as a light source for both measurements. Reference shape of the LED spectrum was previously recorded by directly irradiating the LED light to the spectrometers. After proper normalization, accounting for the reflection coefficients of the fiber ends, forming the interferometer, the quasi-static component of the both spectra was removed. This allowed to accurately estimate the positions of the FPI spectrum fringes by fitting the spectrum peaks by Gaussian functions. The spectra obtained with the commercial spectrometer and SPBS are shown in Figure 3a,b, respectively. Different envelopes of the spectra are due to the additional filtering performed by the red, green and blue channels of the smartphone camera; however, since we were interested only in fringe positions, the envelopes did not affect the calibration results.
The correspondence between the peaks positions is shown in Figure 4 together with the linear fit. The positions of the red-to-green and green-to-blue transition areas of SPBS spectrum were estimated as described in the previous subsection, their corresponding wavelengths were found using the linear fit of FPI peaks' coordinates.   Wavelength sampling interval of the SPBS (the difference between the coordinates of two adjacent points of the measured spectrum, not to be confused with the spectral resolution, which is a width of an instrument function) could be evaluated after this calibration and turned out to be 0.22 nm/pixel. Spectral resolution of the assembled smartphone spectrometer was also experimentally evaluated by observing the spectra of 3 lasers: green and red semiconductor lasers with spectral linewidths ∆λ SOURCE around 4 nm and Thorlabs HNL210LB He-Ne laser with overall spectral width around 1.9 pm (1.5 GHz in terms of frequency). Due to the above-mentioned convolution of the initial spectrum with the instrument function, the width of the measured spectrum ∆λ MEAS can be expressed as [36] ∆λ MEAS = δλ 2 + ∆λ 2 SOURCE , where δλ is the spectral resolution of the spectrometer (typically introduced as full width at half maximum (FWHM) of its instrument function). The widths of the measured spectra ∆λ MEAS were 5.8 nm, 5.7 nm and 4.1 nm for green semiconductor, red semiconductor and He-Ne lasers, respectively. Therefore, spectral resolution of the assembled spectrometer turned out to be 4 nm. This calibration operation needs to be performed only once prior to the use of the SPBS for optical fiber sensor interrogation if the spectrometer IF and the spectral transfer functions of the RGB channels of the smartphone camera do not change over time.

Interferometer Optical Path Difference Demodulation
Due to nonuniformity of the LED spectrum, the measured interferometer's spectra have a quasi-constant additive component and parasitic amplitude modulation. The most convenient way to eliminate these signal distortions is their cancellation based on the a-priori information on the LED spectral shape. This way, preceded by proper normalization, the LED spectrum can be subtracted from the measured interferometer spectrum, thus canceling the quasi-static component. Parasitic amplitude modulation can be suppressed by normalizing the interferometer spectra on the LED spectrum.
After the quasi-static component and parasitic amplitude modulation were suppressed, the interferometer spectra were processed, resulting in demodulation of the interferometer OPD L 0 . A least-squares approach, described in detail in [39] was used to estimate the OPD. This approach uses fitting of the measured spectrum with an analytical equation of a form S(L, λ, ϕ) = cos(4πL/λ + ϕ), where L is interferometer OPD and is the optimization parameter, λ is the wavelength scale, calculated using the hue-based self-calibration approach described above, ϕ is an additional phase that is often non-zero in extrinsic and in-fiber interferometers due to light diffraction during free space propagation [40] and mode coupling effects [41]. It must be noted that ignorance of this phase shift or its incorrect accounting may result in abrupt λ/2 errors [42]. In our case of extrinsic fiber Fabry-Perot interferometric sensor, additional phase shift was primarily caused by the diffractive broadening of the optical beam inside the cavity, a phenomenon also known as Gouy phase. Strict analysis of diffractive broadening of a beam exiting multimode fiber is quite complicated and falls out of the scope of the current paper. Therefore, the form ϕ = atan(Lλ/(πw 2 0 )), where w 0 is the fiber core diameter was used as an approximation, which is valid for a singlemode fiber output. Anyway, thanks to the small wavelength and short cavity length of the used EFPI, this phase shift is quite small and even its not exact accounting will not cause any critical errors.
The whole signal processing workflow, whose stages were described above, including spectrum image cropping, hue transition areas identification, spectra interpolation, averaging and normalization, as well as the wavelength scale calculation and interferometer OPD demodulation is shown schematically in Figure 5. The signal processing was designed and at first tested in Matlab on a personal computer. After the initial tests, the developed Matlab programs were ported to the smartphone, which has the Matlab Mobile application installed.

Experimental Results
The performance of the developed smartphone-based OFS interrogation system and the proposed spectral self-calibration approach was verified experimentally, for which we have carried out two experiments. The first one was aimed at proving the ability of plug-and-play operation, i.e., provide accurate interferometer OPD readings after reattachment of the fiber and diffraction grating holder from the smartphone without any calibration. The second experiment was aimed at demonstrating an improvement of the temperature stability of the smartphone-based OFS interrogation system.

Verification of Plug-And-Play Operation
Obviously, the wavelength-to-pixel number calibration of a smartphone-based spectrometer with conventional pre-calibration is lost after the fiber and diffraction grating holders are shifted or removed and reattached. Given that the size of the state-of-the-art smartphone camera pixels is on the order of 1-2 µm, micrometer-level movements of the fiber and diffraction grating holders will result in significant change of the wavelength scale. Therefore, plug-and-play operation of the smartphone-based spectrometers requires either to permanently incorporate the smartphone into the common holder, or can not be performed without auxiliary external light sources with well-defined spectra.
Our hue-based spectral self-calibration approach allows us to overcome this limitation and enables correct wavelength scale reconstruction and accurate signal demodulation in case of reasonably large offsets of the fiber and diffraction grating holders. A series of experimental trials was performed to verify this ability. The interferometric sensing element was stabilized by being put inside a thermally and vibrationally isolated chamber, thus ensuring that its true OPD remained constant, while fluctuation of the measured OPD value can characterize the robustness and accuracy of the proposed spectral self-calibration approach. Prior to each measurement of the interferometer spectrum, the holder was removed from the smartphone and then reattached without any special alignment. The only condition for the calibration and the measurement procedures to be performed is that the light from the LED is coupled to the fiber and interferometer spectrum is visible at some place of the camera image. Six spectra images are shown in Figure 6a-f. Horizontal, vertical and small angular misalignment of spectra can be clearly noticed. However, despite noticeable misalignment of the measured spectra images, the developed spectral self-calibration approach enables to reduce the detrimental effect of misalignment and provide an accurate demodulated sensor signal. This is shown in Figure 7, demonstrating demodulated OPD values of stabilized interferometer, corresponding to the spectra images shown in Figure 6. It can be seen that the wavelength scale of the spectra is reconstructed with high accuracy-the standard deviation of the demodulated OPD values was about 0.6 nm, while the deviation of the wavelength scale shift was less than 0.2 nm. On the other hand, as can be seen in Figure 6, the initial vertical shifts of spectra images are around 100 pixels, which corresponds to more than 20 nm. Therefore, more than two orders of magnitude reduction of the wavelength scale shift was achieved by applying the proposed self-calibration approach.

Verification of Temperature Stability
It is logical to anticipate that thermal expansion of the 3D-printed holders, which provide the alignment of all optical elements (LED, fibers, diffraction grating and the camera lens) will cause the change of the initial elements alignment. In turn, this will lead to the shift of the optical spectrum projected onto the smartphone camera and change of the corresponding wavelength scale. Therefore, the initial spectral calibration (correspondence between the pixel number and optical wavelength) will be lost, resulting in incorrect demodulation of sensors interrogated in spectral domain, such as interferometric and fiber grating-based sensors.
Our proposed spectral self-calibration approach is aimed at solving this problem. The verification experiment was carried out in the following manner-the smartphone-based OFS interrogation system was turned on and the temperature on the smartphone surface near the fiber and diffraction grating holder was monitored with an external electronic thermometer with a small footprint. The smartphone itself produces some heat even in idle mode; moreover, when the interrogation system is operating and there is an increased workload on the processor and the LED is switched on, it results in heating of the holder, causing it to expand, which results in a shift of the measured spectra images.
On the other hand, if the interrogated interferometer is placed in a thermally and mechanically isolated chamber, its real OPD remains constant, while the change of the demodulated OPD value will clearly indicate the influence of the interrogation system heating on the measurement outcome.
During the conducted experiment, the flash LED was constantly turned on, resulting in gradual change of temperature on the smartphone back panel near the 3D-printed fiber holders from nearly 33 Celsius to almost 41 Celsius over about an hour, which is shown in Figure 8a. The curve shows exponential fit of the experimental points, corresponding to Newton's heating law. Minor discrepancies between the points and the fit are likely to be caused by the change of the processor workload, network activity of background processes and other reasons. Anyway, the plot in Figure 8a clearly shows that even in case of constant ambient conditions, the temperature of SPBS might vary significantly.
Demodulated OPD values obtained with and without the developed hue-based spectral self-calibration approach as well as the shifts of the wavelength scale are shown in Figure 8b. Zero wavelength shift corresponds to initial spectrum position. It can be clearly seen that, without the spectral self-calibration, the shift of the wavelength scale follows the temperature deviation of the interrogation system, demonstrating about 37.5 pm/C dependency. On the other hand, when the wavelength scale recalculation was introduced, the temperature drift was eliminated, at least on the level of demodulated OPD fluctuations. Relatively long realization of measured spectra allowed to estimate the standard deviation of demodulated OPD values, which turned out to be around 1 nm (with corresponding standard deviation of the wavelength scale shift around 60 pm) and is shown with dashed lines in Figure 8b as well as the mean OPD value.

Conclusions
The paper presents a novel spectral self-calibration approach for smartphone spectrometers. Thanks to the mutual overlap between the spectral ranges covered by the red and green and green and blue channels of a smartphone camera, the hue distribution of the measured spectrum has two distinctive features, whose corresponding wavelengths can be calibrated with a reference spectrometer. Once the wavelengths corresponding to the hue distribution features are known, these features can be further used to restore the wavelength scale of the measured spectrum.
The use of the developed spectral self-calibration approach allowed to eliminate temperature dependence of the smartphone spectrometer readings and make the system plug-and-play, in contrast to the most other known smartphone spectrometers, which spectral accuracy relies upon wavelength-to-pixel calibration performed with external reference light sources and is lost if the fiber and diffraction grating holders are removed and reattached to the smartphone, for example, during transportation. However, the fallout of this improved accuracy is about 10 times reduced OPD measurement resolution, which is a result of finite accuracy of fitting the slopes of hue distribution. However, in practical situations self-calibration can be performed not continuously, but upon user's request or periodically in order to detect deviations of the wavelength scale. This will enable to achieve a trade-off between the sensing resolution and accuracy.
The performed experiments validated the efficiency of the developed spectral self-calibration approach and its ability to be used for interrogation of optical fiber Fabry-Perot interferometers. Further work must be directed towards estimating the accuracy limitations of the proposed approach (induced by the spectrum noises, finite spectral resolution of the smartphone spectrometer, shapes of spectral transfer functions of optical filters used in red, green and blue channels of the smartphone camera and others) and ways to improve the accuracy. It should be noted that the developed spectral self-calibration approach can be applied not only to interferometric sensors, but also to other sensors with spectral interrogation, such SPR and some grating-based sensors, as well as to spectroscopic tasks. The main requirement for robust operation of the proposed spectral self-calibration approach is relatively high spectrum intensity in red-to-green and green-to-blue transition areas, finite mutual overlap of red and green and green and blue camera channels' spectral functions, resulting in nonuniform hue distribution of the measured spectrum image and relatively high spectrometer spectral resolution ensuring correct capture of the spectra images' hue distribution.
Obtained experimental data, Matlab source codes for spectra images' processing and models for 3D-printing the fiber and diffraction grating holder are available from the authors on reasonable request.
Central parts of the hue slopes, corresponding to red-to-green and green-to-blue transition areas, are highlighted with thick ochre curves. These parts were approximated with hyperbolic tangent fits given be Equation (5), the corresponding R 2 values are shown in the plots near the corresponding solid ochre and red curves. The algorithms developed for identification of slopes' central parts and their fitting with tanh function are described in detail in Section 3.2. It can be seen that the hue distribution of transition areas is the most linear in case of T = 4000 K, moreover, the R 2 values of the both fits are also the largest for this color temperature. Therefore, T = 4000 K setting was used in all reported experiments.

Appendix B. Evaluation of Spectral Self-Calibration Reproducibility Using Different Smartphones
As follows from Section 3.1 and Figure 2, the overlap between the spectral ranges covered by the red and green and green and blue channels of a smartphone camera is the key element of the proposed spectral self-calibration method as it is responsible for the hue distribution nonuniformity. Therefore, in order to ensure that the proposed approach is reproducible when other smartphone models are used as the core of a smartphone optical spectrometer, additional experiments were carried out. We have not performed the whole series of experiments described above, including Fabry-Perot interferometer interrogation with other smartphones since this would require fabrication of fiber and diffraction grating holders for each tested smartphone model, which is time-consuming since each smartphone has unique positioning of flash LED and camera and creating a proper model for 3D printing is not straightforward and typically requires several iterations.
Instead, we have used a holder simply fixing one fiber and the diffraction grating and manually placed it in front of the smartphone camera, while the other fiber end was held in front of the flash LED, thus the spectrum of the smartphone LED was projected onto the camera. Hue distribution of these spectra images would reveal whether a particular smartphone could be used for implementation of a smartphone optical spectrometer with the proposed self-calibration approach or not.
Hue distributions of spectra images obtained with 7 smartphone models: Huawei P20 PRO, IPhone X, Samsung Galaxy S7 Edge, Honor 20 Pro, Xiaomi Redmi Note 8T, Sony Xperia X Compact and LG X Venture were estimated. Cross-sections of these distributions are shown in Figure A2. It can be clearly seen that the condition for the self-calibration possibility is fulfilled for all the tested smartphones, which proves that the proposed spectrum self-calibration approach can be reproduced with other smartphones.