Next Article in Journal
In Field Detection of Downy Mildew Symptoms with Proximal Colour Imaging
Next Article in Special Issue
The Geometry of Noise in Color and Spectral Image Sensors
Previous Article in Journal
Fast Single-Image HDR Tone-Mapping by Avoiding Base Layer Extraction
Previous Article in Special Issue
Spatial–Spectral Evidence of Glare Influence on Hyperspectral Acquisitions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Approach to Using Spectral Imaging to Classify Dyes in Colored Fibers

by
G. M. Atiqur Rahaman
1,2,*,
Jussi Parkkinen
3 and
Markku Hauta-Kasari
1,3
1
Computational Spectral Imaging Lab, School of Computing, University of Eastern Finland, FI-80101 Joensuu, Finland
2
Computational Color and Spectral Image Analysis Lab, Computer Science and Engineering Discipline, Khulna University, Khulna 9208, Bangladesh
3
Institute of Photonics, University of Eastern Finland, FI-80101 Joensuu, Finland
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(16), 4379; https://doi.org/10.3390/s20164379
Submission received: 10 June 2020 / Revised: 1 August 2020 / Accepted: 3 August 2020 / Published: 5 August 2020
(This article belongs to the Special Issue Color & Spectral Sensors)

Abstract

:
In the field of cultural heritage, applied dyes on textiles are studied to explore their great artistic and historic values. Dye analysis is essential and important to plan correct restoration, preservation and display strategy in museums and art galleries. However, most of the existing diagnostic technologies are destructive to the historical objects. In contrast to that, spectral reflectance imaging is potential as a non-destructive and spatially resolved technique. There have been hardly any studies in classification of dyes in textile fibers using spectral imaging. In this study, we show that spectral imaging with machine learning technique is capable in preliminary screening of dyes into the natural or synthetic class. At first, sparse logistic regression algorithm is applied on reflectance data of dyed fibers to determine some discriminating bands. Then support vector machine algorithm (SVM) is applied for classification considering the reflectance of the selected spectral bands. The results show nine selected bands in short wave infrared region (SWIR, 1000–2500 nm) classify dyes with 97.4% accuracy (kappa 0.94). Interestingly, the results show that fairly accurate dye classification can be achieved using the bands at 1480nm, 1640 nm, and 2330 nm. This indicates possibilities to build an inexpensive handheld screening device for field studies.

1. Introduction

Natural and synthetic dyes have been used historically in clothes, carpets, blankets, tapestries, shrouds, paintings on fabrics etc. to obtain a wide array of different hues [1,2]. However, as both the dyes and the substrate fibers are naturally deteriorating, it is essential to develop effective restoration, preservation and display strategy. Accurate, fast and precise detection and classification of the dyes in such historical objects is thus of substantial importance in the fields of cultural heritage [3,4] and forensic science [5]. Unfortunately, most conventional technologies used for the dye identification process are destructive; damaging to the fugitive objects. There are a number of works where knowing prior information of dye class could be decisive, and eventually would lead to avoid or minimize the damage to the rare pieces of historical objects.
Natural textile fibers like cotton, wool or silk vary in cross-sectional shape, color, surface contour, chemical structure, length and width [6]. Protein is the main component in wool or silk that is animal fiber. Wool is composed of the fibrous protein α-keratin, and the fiber diameters vary from 11 to 100 microns depending on wool sources [7]. Generally wool contains carbon, hydrogen, oxygen, nitrogen and sulphur in different proportions. Wool is chemically viewed as a polymer made of more than 100 amino acids. The 20 common natural α-amino acids are found in the peptide bonds that keep the amino acids together in wool fiber [8]. Differences in physical and chemical properties are basis to identify textile fibers by various technologies. The common purpose of all technologies is to determine as distinctly as possible a fiber’s morphological, optical and chemical properties [6,7,8,9].
The American Society for Testing and Materials (ASTM) recommends infrared (IR) spectroscopy for fiber identification. The absorption, reflection and transmission of light in a fiber depends on the functional groups (bonds) of the fiber. For example, the molecular vibrations of the nonpolar bonds are strong in Raman spectrum and vibrations of the polar bonds in IR spectrum [6]. Note that the fundamental principles of Raman spectroscopy is a scattering process while IR spectroscopy is a pure absorption phenomenon. The wool fiber reflectivity in terms of the ratio K/S of absorption (K) and scattering (S) coefficients following Kubelka–Munk theory is explained in [10]. In contrast to the synthetic fibers the natural fibers have more intra-sample variation in the absorption spectrum.
A review article on using natural dyes in colorization of textile fibers is in [11]. Although wool fiber has native black, brown or different shades of gray as natural color attributed to the amount of melanin, the color and structural characteristics change during storage, scouring, dyeing, bleaching and other finishing processes [12,13,14]. Guesmi in [13] investigated the effects of dye concentration, dye bath pH, salts addition, dyeing temperature, and dyeing time on color strength (K/S) and light fastness. It was revealed that adding different mordants affect the color strength (K/S) of dyed wools according to the order of uses. The Spectral characterization of wool dyed with natural dye can be consulted with [15].
In [2], a number of fiber samples of historical textiles were tested to study various properties of dyes as a function of generic class. In another study [16], 45 samples of museum textiles were investigated to detect synthetic dyes among which only 14 yarns were identified containing the target dye. Ahmed et al. examined dyes of textiles that are of Ottoman age to develop a plan for conservation treatment [17]. Although, in [18], the objective was to analyze natural dyes as it was supposed to be contained in 30 textile samples stored in Mount Athos, synthetic dyes were identified unexpectedly in some of them. Claro et al. investigated 76 samples from Pre-Columbian textiles to study the properties of natural dyes [19]. Samples of length about half a centimeter were collected from five historical Roman textiles to identify the origin of the natural dyes [20]. Similar type of investigation is conducted in forensic science applications regarding the fiber dyes [21,22].
Existing common diagnostic technologies to perform such investigations are high-performance liquid chromatography (HPLC), HPLC coupled with UV-Vis detection, Raman and surfaced-enhanced Raman scattering spectroscopy, X-ray fluorescence etc. The investigations are performed by analyzing the chemical structures at the molecular level to identify the dyes chemically extracted from the fibers [16,18,19,20,23,24]. The accuracy and sensitivity of these techniques cannot be denied. However, most of the technologies are sampling based, elemental and need complex dye extraction and chemical preparation methods [4,25,26]. Moreover, sample collection, preparation and chemical analysis are often challenging due to the deteriorating nature of the materials in the historical objects.
There exist some non-destructive spectroscopic optical technologies based on (diffuse) reflectance, fluorescence, X-ray fluorescence and Fourier transform infrared (FT-IR) [27,28]. However, these technologies are limited by point analysis where the points are selected by human observers. Also point information is inadequate for the analysis of the objects due to the high spatial heterogeneity. Importantly, the target areas of the objects are often not visually detectable due to the alterations in material status, deterioration effects and interventions [28]. Raman and FT-IR spectroscopy can be used for spatial mapping of colorants, but they have also intrinsic technological restrictions [29]. Due to these limitations of spectroscopic techniques the state-of-the-art spectral reflectance imaging is being popular as an alternative. This technique neither needs to remove any sample nor needs any direct contact to the objects. In addition, the operation is fast, in-situ and spatially resolved, the technology therefore is currently drawing attention to investigate the colorants of various art and historical objects [30,31,32,33].
In spectral imaging, the reflectance measurements are made in a series of narrow and contiguous wavelength bands, and such between-band information can be used to characterize the dyes at pixel level. However, the diffuse reflectance in visible to near infrared (V/NIR, 400–1000 nm) or short-wave infrared (SWIR, 1000–2500 nm) wavelength range is broad, thus consists of broad emissions of different molecules of the object under examination [34,35]. As a result, the detection and discrimination of dyes is challenging as the information encoded in measured reflectance spectra are not molecule specific. Rather, the reflectance represents a mixture of information both from the molecules of dyes and the fibers. Fortunately, computational methods are capable to identify the regions in the wavelength scale characterized by the individual material [29].
We argue that, especially in the fields of cultural heritage, preliminary identification of generic dye class by spectral imaging can have considerable advantages. The advantages include minimizing the destruction of the object, making decisions concerning further analytical tools, or deciding on dye extraction methods [25]. However, to the best of our knowledge to the date no work has been reported in the literatures as such. This paper presents a novel approach to classify the fiber dyes as natural or synthetic class using the spectral reflectance of the dyed fibers. The key principle is to determine the spectral bands that are characteristically distinctive between the dye classes. At first, we show that natural or synthetic dyes can be classified by the reflectance spectra of the dyed fibers. Next, we show that this can be done through a small number of well-chosen spectral bands. We apply sparse logistic regression technique to recognize the discriminating spectral bands, and later a simple support vector machine algorithm (SVM) method is used to classify the dyes of any arbitrary sample considering the recognized bands. The objectives of this paper therefore are of twofold:
  • Determine the wavelength bands useful to classify natural and synthetic dyes.
  • Recommend three optimal bands to achieve a reasonable accuracy.

2. Materials and Methods

2.1. Samples of Dyed Fibers

In this study, the reference dyed fiber set consisted of dyed wools as they are frequently encountered in historical textiles [36] due to its ecological nature and human friendly. The sample set included a large number of woolen yarns that were dyed by natural Madder in varying aspects. Please note that Madder is a frequently found and historically important natural dye. It produces color shades varying from pink to black, purple and red if fibers are treated with different mordants salts. The entire sample set contained total 459 woolen threads shown in Figure 1a, and their colors are shown in the CIELAB color space in Figure 1b. We separated the samples into two sets depending on the origins and preparations that are described below. Note that we have used the dyed fiber of red hues of Set-1 to demonstrate the detailed analysis all through this paper.
Set-1: The samples were prepared by dyeing experts in Iran and consists of 216 patches among which 60 patches (Figure 1a(g)) were dyed with acid dyes manufactured by former Ciba-Geigy Ltd., Basel, Switzerland. Other patches were dyed with Madders treated with different mordant salts (Al, Sn, Fe, Cu and Cr) and some patches were dyed without any mordant treatments. The Madder roots were of different ages (average three years), and places (Nain, Khur-Biabanak and Bafq in Iran, and Mediterranean area). The roots were finely powdered in local traditional gristmill, and different recipes were followed to dye the woolen yarns [37]. At the time of this study the average age of the samples was around five years. Figure 1a(a) shows patches with variable concentrations of Madders (5%, 10%, 20%,...,100%). Figure 1a(b) shows four columns of samples where each column was characterized by Madders originated in four different places. Figure 1a(c) shows patches before dyeing and after dyeing treated with mordant salts. The samples in Figure 1a(d) were characterized with treatment of mordants salts and dyed with variable concentrations of Madders. Figure 1a(e) shows bare wools of different tones and thickness, and Figure 1a(f) shows them after dyeing with the Madder.
Set-2: These samples were collected from a house of Arts and Creative Handicrafts (Wetterhoff, Finland). At the time of this study, the age of the sample set was over 11 years. Among 243 samples, 90 samples were colored by synthetic dyes (Figure 1a(h)) and the rest of them (Figure 1a(i)) were colored by the dyes of natural origins (Madder, Indigo, Weld, Oak barks etc.). Different recipes and mordant treatments were applied for dyeing the woolen yarns.

2.2. Measurements

2.2.1. Spectral Imaging

The images of the samples were captured with a spectral line scan system (Specim, Oulu, Finland) that had two cameras covering the V/NIR and SWIR spectral range, independently. Two sets of halogen lamps (35 W each, 45/0 degree geometry) mounted in a separate casing moved with the camera to illuminate the samples (Figure 2). The scanning speed was fixed at 25 mm/s for both cameras. The internal shutter of the camera was closed to acquire a dark image, and a Spectralon (Specim Ltd., Oulu, Finland) white plate was measured for the reference image. Table 1 describes other specifications of the system.

2.2.2. Image Pre-Processing

The imaging procedure produced three-dimensional (3D) cube for each measured sample. Each 3D cube contains the spatial information in 2D and spectral information in the third dimension. The effect of dark current and illumination variations across the line scan was removed through the computation of spectral reflectance image H as follows.
H = S a m p l e   I m a g e D a r k   I m a g e W h i t e   I m a g e D a r k   I m a g e · W
where the matrix W contains known reflectance factors of the reference white. The average wavelength sampling interval was 3 nm and 6 nm for V/NIR and SWIR range but the interval was not equal for all wavelength regions. Moreover, very large data size of RAW format images made the processing unfeasible. Therefore, a spline interpolation method was applied to resample the reflectance in the spectral dimension at 10-nm intervals. The final spectral range was 400–1000 nm for V/NIR and 1000–2500 nm for the SWIR wavelengths at the step of 10 nm.

2.3. Data Analysis

2.3.1. Reflectance Spectra

The spectral image of each palette was visualized in the computer display as the RGB image rendered by the spectral envelope visualization method [38]. Then we manually selected multiple pixels at random spatial locations of each patch and stored the mean reflectance spectrum of that patch. To reduce the effect of unevenness of the surface, we collected the pixels from the ridges of the yarns. This process generated reflectance spectra as vectors with a dimension of 61 for the V/NIR image and 151 for the SWIR image. The known class information of each sample was associated with the corresponding reflectance vector. Figure 3 shows the reflectance spectra of red colored samples of Set-1. The solid lines in red color in the plot represent the natural class (Madder) and the dotted lines in blue color represent the synthetic class. Notice that in contrast to the spectra in SWIR range (Figure 3b) the spectra of both the classes overlap inseparably in V/NIR range (Figure 3a).

2.3.2. Spectral Band Selection Procedure

To identify the wavelengths with the most discriminatory power, we partitioned the range of wavelengths into separate regions. The regions in the V/NIR range were: (400–700 nm), (700–1000 nm) and (400–1000 nm), and the regions in SWIR range are: (1000–1500 nm), (1500–2000 nm), (2000–2500 nm), (1000–2000 nm), (1500–2500 nm) and (1000–2500) nm. This partition of wavelengths into groups was performed intuitively visualizing the spans of reflectance in wavelength scale (Figure 3). We used the reflectance spectra of 70% randomly chosen samples of each class to serve as the training data for the spectral band selection process. A sparse logistic regression technique with a Bayesian regularization approach was applied to select the useful bands for discriminating the dye class [29,30]. A particular band was selected if the corresponding logistic regression coefficient was a positive value. The details of the model and the optimization process of the regularization parameters are presented in [39,40,41,42]. This approach has been used for feature selection in high-dimensional data classification in various application areas. In this study, wavelength bands were selected using a one-versus-all implementation of the algorithm [43].

2.3.3. Classification

Classification of the spectral bands was performed using a binary classification support vector machine (c-SVM) model. A polynomial kernel of order 3 was chosen enabling standard data normalization through a trial and error basis. A leave-one-out cross-validation method [39] was applied on each subset of spectral bands for evaluating the classification accuracy. Table 2 lists the settled parameters for this study. Each subset of bands in the V/NIR or SWIR range was considered independently to determine the class (natural or synthetic) and to evaluate the accuracy.

2.3.4. Calculation of Indexed Ratio Features

Two ratio indexes calculated using reflectance of three optimal bands can be used as features to achieve high classification accuracy [41]. The bands are determined as a result of searching optimum classification accuracy using all possible band combinations. If the optimal spectral bands are Band1, Band2 and Band3, the formulas are described in Equations (2) and (3). Thereafter, index1 and index2 are used as features in the classifier.
i n d e x 1 = r ( B a n d 1 ) r ( B a n d 2 ) r ( B a n d 1 ) + r ( B a n d 2 )
i n d e x 2 = r ( B a n d 1 ) r ( B a n d 3 ) r ( B a n d 1 ) + r ( B a n d 3 )

3. Results

This section has three parts. In the first, we present the results taking into account the spectra (that represented in Figure 3) of fibers dyed with only natural Madder and synthetic red dyes. The purpose is to evaluate the aptness of the method and interpret the results. In addition to that, since natural Madder is a frequently and historically used colorant in cultural objects, we want to separately report the classification results. In the second, we present the results of all the samples colored with various natural and synthetic dyes. Thereafter, we represent the results of optimal (three) band selection process and their accuracy.
The results in Table 3 were yielded by the spectra of the fibers dyed with the natural Madder or synthetic red dyes. The table shows identified discriminatory wavelength (WL) bands that are useful for recognizing the corresponding class and the leave-one-out classification accuracy. The selected bands in each group in the third column are shown according to the order of selections by the sparse logistic regression algorithm. Note that the same bands have been selected in different group while the spectral range was expanded to new regions implying their importance in discriminating the class. However, for case-2 and case-6 only one band was selected. In those cases, either the classification algorithm did not converge or a whole class of samples was misclassified. These cases are marked by dashes. Here, natural class error 6.1% means that 6.1% samples dyed with synthetic dyes have been misclassified as natural class samples. Except case-6 note that in other cases of SWIR range, the classification accuracy is over 99% with the kappa value around 1.0. The results thus evidently show that the bands in the SWIR range have a better discriminating power than the V/NIR range. In cases-4,7,9, the obtained classification accuracy is 100% for the selected bands at 1140 nm and 1000 nm. To check the agreement between the dye classes through a visual support, in Figure 4 we show the scatterings of the samples in the reflectance space. This figure demonstrates that a distinct class separating boundary line can clearly separate the members of both classes.
As the initial results and observation were convincing, the same technique was applied to the spectra of all the samples comprising Set-1 and Set-2 altogether. Table 4 represents the results. The obtained best accuracy is 97.4% (kappa 0.94) in case-9 with less than 3% miss classification error in either of the classes. In case-9, nine bands were selected by the algorithm. But notice that with six and five bands case-7 and case-8 achieved accuracy just less than 1% compared to the accuracy of case-9. The classification accuracy depends on the number and order of the selected bands.
For the best three groups of spectral bands (cases 7–9), Figure 5a shows the classification accuracies and Figure 5b shows the sensitivity or true positive rate (TPR) and the false positive rate (FPR), in increasing order of adding the number of bands. For the first six bands in case-9, the maximum accuracy (97.8%) and maximum TPR were obtained, but adding last the three bands, in fact, slightly degraded the performance (97.4%). For case-7, adding the second band did not change the accuracy but adding the third band dramatically increased the accuracy and decreased the FPR. Due to this observation we linearly searched to determine the top bands from the selected bands in cases-7,8,9 yielding a high accuracy.
Three bands at 1640 nm, 2330 nm and 1480 nm were identified that produced the maximum 90.1% accuracy. We calculated the two ratio indexes using these optimal bands (Equations (2) and (3)) and used as features in the classifier. Randomly chosen 70% samples were used to train an SVM classifier with a simple quadratic kernel. The remaining samples were used to validate the classification accuracy. The average result of 100 iterations is shown in Table 5.

4. Discussion

In this study, we show that machine learning based computational methods can identify the relevant spectral bands to discriminate the dye classes. For this experiment, we studied a large number and wide variety of woolen fibers dyed with various natural and synthetic dyes. The results demonstrate that, in general, the spectral bands in SWIR range (1000–2500 nm) have higher class discriminating power compared to the bands in V/NIR range (400–1000 nm). In any performance aspect, the selected bands in SWIR range yields superior result (Table 4). It is also noteworthy that three optimal bands in SWIR range can achieve around 90% classification accuracy. It was not straightforward to extract the class discriminating bands as the measured reflectance spectra are not molecular specific. Rather the reflectance spectra of dyed fibers encode convoluted information of mixed molecules [29]. Figure 6 demonstrates that reflectance of dyed wool fibers are overlapping in visible region [44], on the other hand, reflectance are non-overlapping in some wavelength regions in NIR to SWIR range. The proposed computational technique in this study was successful to automatically recognize the effective class discriminating bands in SWIR spectral range.
The spectra (Figure 6) and the obtained results demonstrate that the natural and synthetic dyes have distinct characteristics difference in optical absorption in SWIR region. This statement is supported by some existing literatures. Interestingly, it has been reported in [14,22] that chromophores of many synthetic dyes (e.g., azo dyes) are absorbing in infrared range. In [36], it has been revealed that some natural dyes can change the photoluminescence property of wools in visible range, which are not present in undyed wool. Moreover, synthetic dyes change subtle chemical structure (e.g., in keratin) of wool fiber [14]. There are many dye chromophores which absorb in the infrared or near-infrared region [5,22,24]. Therefore, in this context of our paper, it may be interesting to look at the selected bands and their behaviors. Several comments about the bands selected for the classification (Table 3) are worthy to mention.
As a case study, the subset of samples of Set1, attributed to natural Madder and synthetic red dyes, were examined. Figure 7 shows the spectra (in SWIR range) of the undyed wool fiber (black line) and the dyed fibers of both classes. Visually the shape of spectra of dyed fibers looks almost similar to the spectrum pattern of undyed wool. It also illustrates that in contrast to a large number of naturally dyed fibers, fibers with synthetic dyes have less reflection values.
For a better visualization the reflectance was converted to the ratio of absorption and scattering coefficients (K/S) by the standard Kubelka–Munk formula [45] and illustrated in Figure 8. Note that the selected bands at 1000 nm, 1140 nm, 1500 nm, 1660 nm for this subset of samples produced almost 100% classification accuracy (Table 3). This figure illustrates that the logistic regression algorithm reasonably identified the discriminating spectral bands. For example, in contrast to the natural class the spectra of synthetic class show consistent differences between bands at 1140 nm. It is known that natural dyes weakly absorb in the infrared region. But some spectra show high absorption between 1000–1350 nm possibly due to the effect of mordant salts and/or interesting fluorescence properties. The spectra of both classes are simply flat for the bands in case-7 (2000–2500 nm). In this range, the algorithm selected just one band indicating lack of a pair of discriminating bands.
In the Results section we have reported the data and illustrations in details so that the validation of the proposed technique can be envisaged. It was found that top three spectral bands in (1000–2500nm) wavelength range satisfactorily classify the natural or synthetic dye class applied on woolen fibers. The general technique was to use a priori class information in determining the most discriminative bands and then apply a classifier on those bands for new samples. The optimum spectral bands were 1640 nm, 2330 nm, and 1480 nm. Figure 9 represents the ratio indexes of the samples calculated using those optimum bands (Equations (2) and (3)) and validates the obtained accuracy (90.1%) reported in Table 4. The samples are separated in a useful pattern in the calculated feature space, and a SVM kernel draws a decision boundary that produces almost 90% accuracy.

5. Limitations and Future Directions

This paper proposes a novel approach for non-destructive application of spectral imaging to investigate historical textiles in-situ through an empirical study of mockup samples. It should be noted that this work is the very first attempt to classify the textile dyes using spectral camera to the best of authors’ knowledge. During this study the authors did not find any such literature to make a comparative study of the obtained results. Besides the technology the same samples/datasets are to be used for an acceptable comparison, but any such public dataset was also not available at the time of this study. The closest literature was [29,31,33] where the authors applied spectral imaging to identify and mapping of pigments materials, in reading palimpsests and in visualization of coatings in paintings artwork.
Although the number of samples used in this experiment is enough for a primary study for computational method development [27], in the future, investigations will be performed with an increased number of samples in each class with different types of dyes applied on them following different preparations, mordant treatments and dying techniques. The results reported in this paper were obtained examining only wool fibers that were prepared by the experts in dying process and heritage science. The used dataset can be supplied upon request by other researchers.
It is observed that the absorption coefficients of the materials in dyed fibers are wavelength dependent. So, tuning the imaging bands from V/NIR to SWIR, selective imaging of different layers can be performed to visualize and investigate target areas regarding any subtle question. Inexpensive handheld device can be built with selected top three discriminating bands to real-time and non-destructive mapping of the dye class in a large area of a cultural object.
Other works in the future will be to apply the same technique considering various types of fabrics (e.g., cotton, linen, silk) with varying ages. Also, it will be worth to investigate the reflectance of samples affected by oily, protein stains. The observations and result in this study encourage further investigating the data in order to detect and identify mordant salts. Moreover, different subclass, origins and age of the dyes can be studied that have profound applications in history and authentication of the textile objects and is worthy of scientific investigation.

6. Conclusions

In this paper, different natural and synthetic dyes on wool fiber were studied. It is shown that fiber dyes can be classified as natural or synthetic with high accuracy using spectral imaging in the SWIR (1000–2500 nm) range. A simple machine learning approach was applied to recognize and use the most informative bands in classifying the fiber dyes. The spectral bands in V/NIR (400–1000 nm) range appeared not as effective as SWIR range. The results show that nine bands in SWIR range can achieve 97.4% classification accuracy and kappa 0.94. Interestingly, top three selected bands can produce around 90% classification accuracy and kappa 0.78. Within subgroup of samples, i.e., wool fiber dyed by natural madder or synthetic red pigment, the separation between natural and synthetic dye is possible with the pair of wavelengths 1000 nm and 1140 nm. In this range the reflectance from wool fiber should not be disturbing. In the SWIR range the signal detected comes from deeper and more complex scattering profile compared to VNIR. Although, the wavelengths used in the classification are not disturbed by the characteristic peaks of wool fiber, further studies are required to fully explain classification between natural and synthetic pigments. This study thus opens the opportunity to further work on spectral imaging in non-destructive study of colored textile fibers in exploring more questions about the fibers and the dyes that they contain.

Author Contributions

Conceptualization, methodology, software and validation, G.M.A.R.; formal analysis, G.M.A.R. and J.P.; investigation, G.M.A.R.; resources, J.P. and M.H.-K.; data curation, G.M.A.R.; Writing—Original draft preparation, G.M.A.R.; Writing—Review and editing, G.M.A.R., J.P. and M.H.-K.; supervision, J.P. and M.H.-K.; project administration, M.H.-K. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by a Fellowship Grant (56.00.0000.28.33.042.15-530, Date: 31 March, 2016) from Ministry of Posts, Telecommunication and Information Technology (ICT Division), Government of People’s Republic of Bangladesh.

Acknowledgments

The authors acknowledge sharing the samples by Professor Emeritus Tuomas Sopanen of University of Eastern Finland and Professor Seyed Hossein Amirshahi of Department of Textile Engineering, Amir Kabir University of Technology, Iran. The authors studied the same set of dyed samples to classify the dye class using PCA [46].

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bell, I.M.; Clark, R.J.H.; Gibbs, P.J. Raman Spectroscopic Library of Natural and Synthetic Pigments (Pre- ≈ 1850 AD). Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 1997, 53, 2159–2179. [Google Scholar] [CrossRef]
  2. Villafana, T.E.; Delaney, J.K.; Warren, W.S.; Fischer, M.C. High-Resolution, Three-Dimensional Imaging of Pigments and Support in Paper and Textiles. J. Cult. Herit. 2016, 20, 583–588. [Google Scholar] [CrossRef] [Green Version]
  3. Casadio, F.; Leona, M.; Lombardi, J.R.; Van Duyne, R. Identification of Organic Colorants in Fibers, Paints, and Glazes by Surface Enhanced Raman Spectroscopy. Acc. Chem. Res. 2010, 43, 782–791. [Google Scholar] [CrossRef] [PubMed]
  4. Degano, I.; Ribechini, E.; Modugno, F.; Colombini, M.P. Analytical Methods for the Characterization of Organic Dyes in Artworks and in Historical Textiles. Appl. Spectrosc. Rev. 2009, 44, 363–410. [Google Scholar] [CrossRef]
  5. Buzzini, P.; Massonnet, G. The Discrimination of Colored Acrylic, Cotton, and Wool Textile Fibers Using Micro-Raman Spectroscopy. Part 1: In Situ Detection and Characterization of Dyes. J. Forensic Sci. 2013, 58, 1593–1600. [Google Scholar] [CrossRef] [PubMed]
  6. Nayak, R.K.; Padhye, R.; Fergusson, S. Identification of Natural Textile Fibers. In Handbook of Natural Fibers; Woodhead Publishing Limited: Cambridge, UK, 2012; pp. 314–344. [Google Scholar] [CrossRef]
  7. Kuffner, H.; Popescu, C. Wool Fibers. In Handbook of Natural Fibers; Woodhead Publishing Limited: Cambridge, UK, 2012; pp. 171–195. [Google Scholar] [CrossRef]
  8. Popescu, C.; Höcker, H. Hair—The Most Sophisticated Biological Composite Material. Chem. Soc. Rev. 2007, 36, 1282. [Google Scholar] [CrossRef] [PubMed]
  9. She, F.H.; Chow, S.; Wang, B.; Kong, L.X. Identification and Classification of Animal Fibers Using Artificial Neural Networks. J. Text. Eng. 2001, 47, 35–38. [Google Scholar] [CrossRef] [Green Version]
  10. Thiébaud, F.; Kneubühl, F.K. Infrared Properties of Quartz Fibers and Wool. Infrared Phys. 1983, 23, 131–148. [Google Scholar] [CrossRef]
  11. Taylor, G.W. Natural Dyes in Textile Applications. Rev. Prog. Color. Relat. Top. 2008, 16, 53–61. [Google Scholar] [CrossRef]
  12. Treigienė, R. The Influence of Physical Factors on Wool Fiber Colour Changes. Mater. Sci. 2010, 16, 341–345. [Google Scholar]
  13. Guesmi, A.; Hamadi, N.B.; Ladhari, N.; Sakli, F. Dyeing Properties and Colour Fastness of Wool Dyed with Indicaxanthin Natural Dye. Ind. Crops Prod. 2012, 37, 493–499. [Google Scholar] [CrossRef]
  14. Pielesz, A.; Wesełucha-Birczyńska, A. The Identification of Structural Changes in the Keratin of Wool Fiber Dyed with an Azo Dye Using the Raman and Fourier Transform Infrared Spectroscopy Methods. J. Mol. Struct. 2000, 555, 325–334. [Google Scholar] [CrossRef]
  15. Guesmi, A.; Hamadi, N.B.; Ladhari, N.; Saidi, F.; Maaref, H.; Sakli, F. Spectral Characterization of Wool Fabric Dyed with Indicaxanthin Natural Dye: Study of the Fluorescence Property. Ind. Crops Prod. 2013, 46, 264–267. [Google Scholar] [CrossRef]
  16. Liu, J.; Zhou, Y.; Zhao, F.; Peng, Z.; Wang, S. Identification of Early Synthetic Dyes in Historical Chinese Textiles of the Late Nineteenth Century by High-Performance Liquid Chromatography Coupled with Diode Array Detection and Mass Spectrometry. Color. Technol. 2016, 132, 177–185. [Google Scholar] [CrossRef]
  17. Ahmed, H.E.; Ziddan, Y.E. A New Approach for Conservation Treatment of a Silk Textile in Islamic Art Museum, Cairo. J. Cult. Herit. 2011, 12, 412–419. [Google Scholar] [CrossRef]
  18. Mantzouris, D.; Karapanagiotis, I.; Valianou, L.; Panayiotou, C. HPLC–DAD–MS Analysis of Dyes Identified in Textiles from Mount Athos. Anal. Bioanal. Chem. 2011, 399, 3065–3079. [Google Scholar] [CrossRef]
  19. Claro, A.; Melo, M.J.; Seixas de Melo, J.S.; van den Berg, K.J.; Burnstock, A.; Montague, M.; Newman, R. Identification of Red Colorants in van Gogh Paintings and Ancient Andean Textiles by Microspectrofluorimetry. J. Cult. Herit. 2010, 11, 27–34. [Google Scholar] [CrossRef]
  20. Petroviciu, I.; Van den Berghe, I.; Cretu, I.; Albu, F.; Medvedovici, A. Identification of Natural Dyes in Historical Textiles from Romanian Collections by LC-DAD and LC-MS (Single Stage and Tandem MS). J. Cult. Herit. 2012, 13, 89–97. [Google Scholar] [CrossRef]
  21. Coupry, C.; Sagon, G.; Gorguet-Ballesteros, P. Raman Spectroscopic Investigation of Blue Contemporary Textiles. J. Raman Spectrosc. 1997, 28, 85–89. [Google Scholar] [CrossRef]
  22. Massonnet, G.; Buzzini, P.; Jochem, G.; Stauber, M.; Coyle, T.; Roux, C.; Thomas, J.; Leijenhorst, H.; Van Zanten, Z.; Wiggins, K.; et al. Evaluation of Raman Spectroscopy for the Analysis of Colored Fibers: A Collaborative Study. J. Forensic Sci. 2005, 50, 1–11. [Google Scholar] [CrossRef]
  23. Teslova, T.; Corredor, C.; Livingstone, R.; Spataru, T.; Birke, R.L.; Lombardi, J.R.; Cañamares, M.V.; Leona, M. Raman and Surface-Enhanced Raman Spectra of Flavone and Several Hydroxy Derivatives. J. Raman Spectrosc. 2007, 38, 802–818. [Google Scholar] [CrossRef]
  24. Szostek, B.; Orska-Gawrys, J.; Surowiec, I.; Trojanowicz, M. Investigation of Natural Dyes Occurring in Historical Coptic Textiles by High-Performance Liquid Chromatography with UV–Vis and Mass Spectrometric Detection. J. Chromatogr. A 2003, 1012, 179–192. [Google Scholar] [CrossRef]
  25. Manhita, A.; Ferreira, T.; Candeias, A.; Barrocas Dias, C. Extracting Natural Dyes from Wool—An Evaluation of Extraction Methods. Anal. Bioanal. Chem. 2011, 400, 1501–1514. [Google Scholar] [CrossRef] [PubMed]
  26. Bisulca, C.; Picollo, M.; Bacci, M.; Kunzelman, D. UV-Vis-NIR Reflectance Spectroscopy of Red Lakes in Paintings. In Proceedings of the 9th International Conference on NDT of Art, Jerusalem, Israel, 25–30 May 2008; pp. 25–30. [Google Scholar]
  27. Hemingray, C.; Westland, S. A Novel Approach to Using Neural Networks to Predict the Colour of Fiber Blends. Color. Technol. 2016, 132, 297–303. [Google Scholar] [CrossRef] [Green Version]
  28. Swatland, H.J. Reflectance versus Transmittance: The Effects of Light Scattering on Red Colorants (Carmine, Amazonian Red Annatto, and Peruvian Cochinilla Rojo and Rosada) in Biological, Textile, and Museum Science. Color. Res. Appl. 2014, 39, 599–606. [Google Scholar] [CrossRef]
  29. Balas, C.; Papadakis, V.; Papadakis, N.; Papadakis, A.; Vazgiouraki, E.; Themelis, G. A Novel Hyper-Spectral Imaging Apparatus for the Non-Destructive Analysis of Objects of Artistic and Historic Value. J. Cult. Herit. 2003, 4, 330–337. [Google Scholar] [CrossRef]
  30. Kubik, M. Hyperspectral imaging: A new technique for the Non-Invasive study of artworks. In Physical Techniques in the Study of Art Archaeology and Cultural Heritage; Creagh, D., Bradley, D., Eds.; Elservier: Amsterdam, The Netherlands, 2007; pp. 199–259. [Google Scholar]
  31. Zhao, Y.; Berns, R.S.; Taplin, L.A.; Coddington, J. An Investigation of Multispectral Imaging for the Mapping of Pigments in Paintings. In Computer Image Analysis in the Study of Art; Stork, D.G., Coddington, J., Eds.; SPIE: Bellingham, WA, USA, 2008; Volume 6810, pp. 65–73. [Google Scholar] [CrossRef]
  32. Fischer, C.; Kakoulli, I. Multispectral and Hyperspectral Imaging Technologies in Conservation: Current Research and Potential Applications. Stud. Conserv. 2006, 51 (Suppl. S1), 3–16. [Google Scholar] [CrossRef]
  33. Cosentino, A. Identification of Pigments by Multispectral Imaging; a Flowchart Method. Herit. Sci. 2014, 2, 8. [Google Scholar] [CrossRef] [Green Version]
  34. Thomas, J.; Buzzini, P.; Massonnet, G.; Reedy, B.; Roux, C. Raman Spectroscopy and the Forensic Analysis of Black/Grey and Blue Cotton Fibers. Forensic Sci. Int. 2005, 152, 189–197. [Google Scholar] [CrossRef]
  35. Hearle, J.W.S.; Morton, W.E. Physical Properties of Textile Fibers; Woodhead Publishing Limited: Cambridge, UK, 2008. [Google Scholar]
  36. Morales, K.M.; Berrie, B.H. A Note on Characterization of the Cochineal Dyestuff on Wool Using Microspectrophotometry. E Preserv. Sci. 2015, 12, 8–14. [Google Scholar]
  37. Ghanean, S.; Afjeh, M.G. Using Derivative Spectrophotometry to Determine the Relation between Color Intensity and Dye Concentration of Madder. Prog. Color. Color. Coat. 2016, 9, 183–194. [Google Scholar]
  38. Jacobson, N.P.; Gupta, M.R. Design Goals and Solutions for Display of Hyperspectral Images. IEEE Trans. Geosci. Remote Sens. 2005, 43, 2684–2692. [Google Scholar] [CrossRef]
  39. Cawley, G.C.; Talbot, N.L.C. Gene Selection in Cancer Classification using Sparse Logistic Regression with Bayesian Regularization. Bioinformatics 2006, 22, 2348–2355. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  40. Shevade, S.K.; Keerthi, S.S. A Simple and Efficient Algorithm for Gene Selection Using Sparse Logistic Regression. Bioinformatics 2003, 19, 2246–2253. [Google Scholar] [CrossRef]
  41. Dumont, J.; Hirvonen, T.; Heikkinen, V.; Mistretta, M.; Granlund, L.; Himanen, K.; Fauch, L.; Porali, I.; Hiltunen, J.; Keski-Saari, S.; et al. Thermal and Hyperspectral Imaging for Norway Spruce (Picea Abies) Seeds Screening. Comput. Electron. Agric. 2015, 116, 118–124. [Google Scholar] [CrossRef]
  42. Pant, P.; Heikkinen, V.; Korpela, I.; Hauta-Kasari, M.; Tokola, T. Logistic Regression-Based Spectral Band Selection for Tree Species Classification: Effects of Spatial Scale and Balance in Training Samples. IEEE Geosci. Remote Sens. Lett. 2014, 11, 1604–1608. [Google Scholar] [CrossRef]
  43. Algorithms | Feature Selection @ ASU. Available online: http://featureselection.asu.edu/old/software.php (accessed on 18 July 2020).
  44. Ramesh, R. Near-Infrared Applications in Biotechnology; Marcel Dekker, Inc.: New York, NY, USA, 2001. [Google Scholar]
  45. Pauler, N. Paper Optics: Optical and Colour Science Related to the Pulp and Paper Industry; Lorentzen & Wettre: Kista, Sweden, 2007. [Google Scholar]
  46. Rahaman, G.A.; Parkkinen, J.; Hauta-Kasari, M. Fiber Dye Classification by Spectral Imaging. In Proceedings of the 2017 IEEE International Conference on Imaging, Vision & Pattern Recognition (icIVPR), Dhaka, Bangladesh, 13–14 February 2017; pp. 1–6. [Google Scholar] [CrossRef]
Figure 1. (a) Images of all samples used in this study; (b) colors of the samples in CIELAB space.
Figure 1. (a) Images of all samples used in this study; (b) colors of the samples in CIELAB space.
Sensors 20 04379 g001
Figure 2. Schematic diagram of the spectral imaging system: (1) the control unit, (2) the linear conveyor, (3) the container of spectral cameras, (4) the halogen lamps and (5) the samples.
Figure 2. Schematic diagram of the spectral imaging system: (1) the control unit, (2) the linear conveyor, (3) the container of spectral cameras, (4) the halogen lamps and (5) the samples.
Sensors 20 04379 g002
Figure 3. Reflectance spectra of 114 yarns dyed with natural Madder (solid red lines) and 34 samples dyed with synthetic red dyes (dotted blue lines): (a) the V/NIR range, (b) the SWIR range.
Figure 3. Reflectance spectra of 114 yarns dyed with natural Madder (solid red lines) and 34 samples dyed with synthetic red dyes (dotted blue lines): (a) the V/NIR range, (b) the SWIR range.
Sensors 20 04379 g003
Figure 4. Scatterings of the samples (cases- 4,7,9) in the reflectance space of 1000 nm and 1140 nm to give a visual support of obtained 100% classification accuracy.
Figure 4. Scatterings of the samples (cases- 4,7,9) in the reflectance space of 1000 nm and 1140 nm to give a visual support of obtained 100% classification accuracy.
Sensors 20 04379 g004
Figure 5. Performance measures in increasing order of adding the selected bands for cases 7–9: (a) classification accuracies, (b) the TPR and FPR rate.
Figure 5. Performance measures in increasing order of adding the selected bands for cases 7–9: (a) classification accuracies, (b) the TPR and FPR rate.
Sensors 20 04379 g005
Figure 6. Average reflectance spectra of several patches with Red hue of natural and synthetic class both from set-1 and Set-2.
Figure 6. Average reflectance spectra of several patches with Red hue of natural and synthetic class both from set-1 and Set-2.
Sensors 20 04379 g006
Figure 7. Reflectance spectra of bare wool and fibers dyed with natural Madder and synthetic red dyes.
Figure 7. Reflectance spectra of bare wool and fibers dyed with natural Madder and synthetic red dyes.
Sensors 20 04379 g007
Figure 8. Reflectance spectra transformed to ratio of absorption and scattering coefficients (K/S) and the locations of selected bands (1140 nm, 1500 nm, 1660 nm) indicated by vertical lines.
Figure 8. Reflectance spectra transformed to ratio of absorption and scattering coefficients (K/S) and the locations of selected bands (1140 nm, 1500 nm, 1660 nm) indicated by vertical lines.
Sensors 20 04379 g008
Figure 9. Scatterings of all samples from both classes in the space of normalized indexes.
Figure 9. Scatterings of all samples from both classes in the space of normalized indexes.
Sensors 20 04379 g009
Table 1. Measurement specifications of the spectral camera system.
Table 1. Measurement specifications of the spectral camera system.
V/NIR RangeSWIR Range
CameraZyla 5.5 sCMOS; Andor Tech., UKLVDS-100; Specim, Spectral Imaging Ltd.
LensV18.5 – f/2.4 091101 Specim Ltd.OLES15-f1/2.0 052301 Specim Ltd.
SpectrographImSpector V10E; Specim, Spectral Imaging Ltd.ImSpector N25E; Specim Spectral Imaging Ltd.
Data FormSpectral radiance, 386–998 nm at 3 nm intervalsSpectral radiance, 933-2538 nm at 6 nm intervals
Standard WhiteSpectralon® reference plate (Specim Ltd.)Spectralon® reference plate (Specim Ltd.)
Light Source2 set halogen lamps (35 W each), 45/0° geometry2 set halogen lamps (35 W each), 45/0° geometry
Spatial Resolution6.5 micrometer30 micrometer
Sample distance395 mm380 mm
Exposure time9.1 ms1.6 ms
Table 2. The MATLAB configuration parameters for fitcsvm function.
Table 2. The MATLAB configuration parameters for fitcsvm function.
ParameterValue
Kernel Functionpolynomial
PolynomialOrder3
KernelScale1(default)
StandardizeTrue
LeaveoutOn
SolverSequential Minimal Optimization (SMO)
Table 3. Leave-one-out classification performance considering the spectra of fibers dyed with natural Madder or synthetic red dyes.
Table 3. Leave-one-out classification performance considering the spectra of fibers dyed with natural Madder or synthetic red dyes.
CaseWL Range (nm)Selected Bands (nm)Classification Accuracy (%)Cohen’s KappaNatural Class Error (%)Synthetic Class Error (%)
1400–700580, 590, 40090.50.736.120.6
2700–1000700
3400–1000580, 400, 59090.50.736.120.6
41000–15001000, 11401001.000
51500–20001500, 166099.30.9802.9
62000–25002000
71000–20001000, 11401001.000
81500–25001500, 166099.30.9802.9
91000–25001000, 11401001.000
Table 4. Leave-one-out classification performance between natural and synthetic dye class considering spectra of all the samples.
Table 4. Leave-one-out classification performance between natural and synthetic dye class considering spectra of all the samples.
CaseSelected Bands (nm)Accuracy (%)Cohen’s KappaNatural Class Error (%)Synthetic Class Error (%)
1640, 700, 570, 480, 40091.60.827.510.0
2810, 780, 70079.90.5226.68.7
3640, 700, 810, 800, 560, 450, 1000, 710, 600, 40094.00.876.45.3
41460, 1470, 1000, 114093.30.865.68.0
51640, 1690, 150087.30.7018.72.0
62000, 2500, 229089.90.787.115.3
71470, 1460, 1730, 1000, 1140, 198096.90.933.82.7
81640, 2300, 2500, 1920, 150096.60.932.64.6
91140, 1920, 1480, 1910, 1000, 2500, 2330, 1130, 145097.40.942.62.7
Table 5. Average results of 100 iterations using normalized ratio indexes as the features.
Table 5. Average results of 100 iterations using normalized ratio indexes as the features.
CaseTop Three Bands (nm)Accuracy (%)Cohen’s KappaNatural Class Error (%)Synthetic Class Error (%)
2 ratio indexes 1640, 2330, 148090.10.789.810.0

Share and Cite

MDPI and ACS Style

Rahaman, G.M.A.; Parkkinen, J.; Hauta-Kasari, M. A Novel Approach to Using Spectral Imaging to Classify Dyes in Colored Fibers. Sensors 2020, 20, 4379. https://doi.org/10.3390/s20164379

AMA Style

Rahaman GMA, Parkkinen J, Hauta-Kasari M. A Novel Approach to Using Spectral Imaging to Classify Dyes in Colored Fibers. Sensors. 2020; 20(16):4379. https://doi.org/10.3390/s20164379

Chicago/Turabian Style

Rahaman, G. M. Atiqur, Jussi Parkkinen, and Markku Hauta-Kasari. 2020. "A Novel Approach to Using Spectral Imaging to Classify Dyes in Colored Fibers" Sensors 20, no. 16: 4379. https://doi.org/10.3390/s20164379

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop