Interdisciplinary Research to Advance Digital Imagery and Natural Compounds for Eco-Cleaning and for Preserving Textile Cultural Heritage

The old fibers that make up heritage textiles displayed in museums are degraded by the aging process, environmental conditions (microclimates, particulate matter, pollutants, sunlight) and the action of microorganisms. In order to counteract these processes and keep the textile exhibits in good condition for as long as possible, both reactive and preventive interventions on them are necessary. Based on these ideas, the present study aims to test a natural and non-invasive method of cleaning historic textiles, which includes the use of a natural substance with a known antifungal effect (being traditionally used in various rural communities)—lye. The design of the study was aimed at examining a traditional women’s shirt that is aged between 80–100 years, using artificial intelligence techniques for Scanning Electron Microscopy (SEM) imagery analysis and X-ray powder diffraction technique in order to achieve a complex and accurate investigation and monitoring of the object’s realities. The determinations were performed both before and after washing the material with lye. SEM microscopy investigations of the ecologically washed textile specimens showed that the number of microorganism colonies, as well as the amount of dust, decreased. It was also observed that the surface cellulose fibers lost their integrity, eventually being loosened on cellulose fibers of cotton threads. This could better visualize the presence of microfibrils that connect the cellulose fibers in cotton textiles. The results obtained could be of real value both for the restorers, the textile collections of the different museums, and for the researchers in the field of cultural heritage. By applying such a methodology, cotton tests can be effectively cleaned without compromising the integrity of the material.


Introduction
Fiber's constituent of heritage textiles weathering can be caused by the environmental conditions (microclimate, particulate matters, pollutants, sunlight) and the aging process of the cotton fibers, resulting in a decline in their strength, elasticity and cohesion level [1][2][3]. Cotton fibers composed of natural organic material (90% cellulose) are also subjected to the degrading effects of microorganisms in storage or exhibition places [4,5]. The undesirable consequences can consist of discoloration, loss of fibers luster, modification of tensile properties and weight modifications. Textural features can determine changes in textile fabrics after various treatments. They can be linked to the technical measurements of the characteristics of textile fabrics to obtain detailed information about the changes in these characteristics [6,7]. Digitization can be a significant apparatus in the present endeavors toward the promotion, preservation and renovation of cultural heritage [8][9][10][11]. By digitizing the heritage textiles and making the information accessible to all interested parties, they help to protect our cultural heritage. The study of cultural heritage artifacts and the preparation of conservation and restoration interventions are often limited to surface characterization of the constituent material of which the object is made. The value of the physico-chemical investigations at the surface level of the artifacts brings out important information. This is about their physical constitution, authenticity, history, elaboration and behavior after they have been abandoned and/or stored; its usefulness is to increase the knowledge about civilization, history and evolution, execution techniques and for the development of an optimal conservation policy [1,3].
In order to obtain information and imaging for the digitization of heritage objects, in recent years, good results have been obtained through photography and video, as well as through analysis and interpretations obtained, especially through the application of modern non-destructive techniques, such as, X-ray techniques applications, infrared radiation (compound crystallography, ≥10 µm), optical microscopy, thermal analyses, transmission electron microscopy (TEM), reflectance FT-IR (compound and bonds, analyzed depth µm level), (TEM), atomic force microscopy (AFM) (investigations at the level of the first layer of surface topography), nuclear magnetic resonance (NMR) method and laser 3D scanning [12][13][14]. Asmus and Katz [15], Comelli et al. [16], Filippidis et al. [17] and Aucouturier and Darque-Ceretti [18] used digital image processing and physico-chemical investigations to determine the degree of degradation and the measures needed to be taken on the surfaces of works of art, especially valuable paintings. Regarding the use of three-dimensional models (photogrammetry and 3D modeling) applied to cultural heritage objects, Manferdini and Remondino [19], Jiménez Fernández-Palacios et al. [20] and Herman et al. [21] use them for degradation assessment, virtual promotion and longterm conservation applications, while Higueras et al. [22] and Albu et al. [23] use them for the remote restoration of movable and immovable cultural heritage. Ortiz et al. [24], Peets et al. [25], Demenchuk et al. [26] and Zhou et al. [27] seek, in their infrared spectroscopy studies, to evaluate and identify the composition of old textiles and paintings, some of which are made of canvas. Other studies focus on the separate or combined use of SEM and X-ray in the field of cultural heritage in general and in the case of historical textiles in particular [28][29][30][31].
The main application of scanning electron microscopy (SEM) for fibers was in the medium to large magnification range and with greater depths of focus than optical microscopy. The resolution has been much improved, and the sensitivity increased, which leads to a considerable limitation of the exposure times of the samples and implicitly of the least possible damages that can be caused by radiation [14,32]. In order to carry out high-precision studies, the samples must be very thin (thickness less than 0.1 µm) and of certain dimensions to allow them to be fixed in the special device (from this point of view the technique is considered micro-invasive) [14], for facilitating the transmission of electrons, as well as for more precision, with a great depth of focus obtaining information about the morphology of the scanned areas. The problem facing electron microscopy for the study of textile fibers is securing a sufficiently good contrast; this can be achieved either by the technique of coloring with heavy metal compounds or the technique by which the effect of shadows is created by depositing the atoms of heavy metals on the specimen at certain angles. Another possibility would be to apply the technique, which consists of analyzing the remaining fragments as a result of the bio-chemical-mechanical degradation of the fibers. The polymers in the fiber composition can also be investigated as very thin films. SEM allows focusing an image, resulting in the electron diffraction pattern of the crystal lattice, orientation and crystallinity information even from a certain area of an image (similar to those resulting from the application of the X-ray diffraction technique), not necessarily from the whole specimen [32], and information on the chemical composition of inorganic compounds [14].
Most studies in the literature combine digital imaging techniques (X-ray Spectroscopy, SEM, Fourier transform infrared spectroscopy, etc.) with non-invasive natural substances for the treatment and preservation of heritage textiles. Table 1 presents, in detail, some of the works that use modern digital techniques to investigate the state of conservation of textiles and non-destructive solutions for the dual objective of cleaning-preservation.  Determination the antifungal effects of these substances against the most common fungi on heritage textiles (Aspergillus flavus, A. versicolor, Penicillium sp. and P. purpurogenum).
All applied substances have antifungal effects, but essential oils are shown to be very effective for the types of fungi identified. At the same time, the substances have a low toxicity and do not affect the support materials, while the risk of microorganisms developing resistance to them is quite low.
As noted above, this study also combines the digital techniques of analysis and interpretation (SEM and X-rays) of the state of conservation of textile materials belonging to the Romanian cultural heritage with the traditional methods used in the past to clean these garments. Lye is the traditional cleaning method used as it is known as a natural substance with antifungal properties.
The main purpose of the study is to observe to what extent these traditional methods and substances for cleaning old materials are effective or not. SEM analyses were performed both before washing the material with lye and after this intervention to compare the results and establish the cleaning and antifungal properties of the natural substance. At the same time, the data obtained were analyzed by various imaging and statistical methods to identify the extent to which the applied treatment directly degrades the constituent cotton fibers, thus having destructive potential on the entire garment.
The ultimate goal of the research is to identify new and non-destructive methods of cleaning and long-term preservation of historical textiles in museums. In this context, most textile exhibits are treated with various cleaning chemicals, most of which have strong side effects that can eventually lead to the destruction of the constituent material.

Materials and Methods
The heritage textile object under investigation is from the Bihor region, Romania ( Figure 1). It is a female cotton shirt, woven in a house, aged 80-100 years old and stored in an ethnographic museum. The fabric was investigated before and after natural, ecological washing with "lye". strong side effects that can eventually lead to the destruction of the constituent material.

Materials and Methods
The heritage textile object under investigation is from the Bihor region, Romania ( Figure 1). It is a female cotton shirt, woven in a house, aged 80-100 years old and stored in an ethnographic museum. The fabric was investigated before and after natural, ecological washing with "lye". Lye is an ecological substance obtained from boiled ash. The process is to boil the ash with 1 L to 10 L of clear water from a river or a well. The lye results from the burning of trunks (saw-cut logs and axe splits) and thick-cut beech branches (Fagus sylvatica), with the whole well-dried bark, in traditional household stone or brick stoves. For bleaching the cloth, this solution was traditionally used in different parts of Romania, both immediately after their sewing and during the long period of use. It is important that the thick toile is not washed with lye and only the cloth, the shirts, the traditional men's trousers (wide summer trousers) and the "bed sheet". It is usual to soak the shirt/coat for 30 min in lukewarm water and then insert it into a "barrel" made of narrow wooden planks, slightly rounded in width (like a circular arch) or finished obliquely at the joints to form a round vessel. The bottom of the barrel has holes in it so that all the lye drains well.
The lye solution is poured from above, through a homemade gauze, over the shirt. This action is usually performed in the evening. In the morning, the coat is removed from the "barrel". Therefore, the piece of clothing stays in the lye and in the lye steam for about 8 or 10 h. Hot water/hot lye negatively affects the colored parts of the garment/shirt, which is why the warm water solution is applied. Most of the washing and cleaning process was performed in river water.
The shirt is tightened by twisting and hitting with a piece of beech wood (a rectangular bat with carved and engraved ornaments, placed on the sides that do not touch the canvas), very often, on a thick slab of andesite stone, eroded by the river, carefully chosen and placed at a 45-degree inclination to the horizontal plane or hit on a long chair made of thick beech board, specifically made for such uses. Thus, the water is released with each hit. The operation is performed by alternately hitting, rinsing, rubbing, squeezing and soaking as many times as needed until cold clear water flows out of it.
Each piece should be washed separately and not mixed with clothes of different colors. The garments should never be put in a washing machine, as certain parts that adorn the clothes have holes, lace, different decorative handmade decorative models, and sometimes beads, which could be damaged by the mechanical action during operation and spinning in the washing machine. Less often, if necessary, it is finally washed with homemade soap made from animal bones by boiling it in rainwater. The shirt is dried in the sun, hung on a hanger or on a wooden beam so that the weight of the water straightens it and minimal, if any, ironing is needed.
The morphology and qualitative analysis of fibers were carried out using a scanning electron microscope (SEM) Hitachi SU8230 cold field emission gun STEM (Chiyoda, Tokyo, Japan). The samples were sputter-coated with 6 nm gold (Agar Automatic Sputter-Coater, Stansted, Essex, UK) for better conductivity required for high-resolution SEM imaging. SEM analysis parameters were inter alia, high vacuum mode, 30 kV acceleration voltage, secondary electron detectors (upper and lower) and two magnification orders, one for general aspects of samples and a higher one for surface topography analysis. Table 2 describes the steps used in data processing from SEM images of washed and unwashed textiles. Data processing involves the use of global texture features from which feature vectors are formed. The data from them were reduced by the PCA method; the kernel variant was used. The reduced data are classified. An appropriate classification algorithm has been selected, and recommendations for practice have been made.  [39]. One of the widely used methods of training based on templates is the kernel analysis of the principal components. It is an extension of the PCA using kernel techniques. Using a single kernel, the original PCA transformation is performed in a new high-dimensional space, with nonlinear mapping of the input data.
PCA starts with the calculation of the covariance matrix C of the matrix X of the input data with dimension m × n: The data are then projected onto the first k eigenvectors of the matrix. kPCA starts by calculating the covariance matrix C of the data after they have been transformed into a high-dimensional space Φ(x): The transformed data are then projected onto the first k eigenvectors of the matrix, similar to PCA. The kernel trick method is used to decompose some of the calculations so that the whole process is implemented without actually calculating Φ(x). Φ must be selected as a known kernel. In this work, Simple, Polynomial and Gaussian kernel functions were used.
Naïve Bayesian classifier (NB) [40]. Based on Bayes' theorem for determining the a posteriori probability of an event, this classifier has become one of the classic algorithms in machine learning. By accepting the "naive" assumption of conditional independence between each pair of attributes, the naive Bayesian classifier effectively handles too many attributes to describe an example, i.e., with the so-called "Curse of dimension". Bayes' theorem: where P (y = c|x) is the probability that the object belongs to class c (a posteriori probability of the class); P (x|y = c)-the probability that the object x will meet in the middle of the object of class c; P (y = c)-unconditional probability to find object y in class c (a priori probability of the class); P (x)-unconditional probability of the object x.
The purpose of the classification is to determine to which class object x belongs. Therefore, it is necessary to find the probability class of the object x, i.e., it is necessary to choose from all classes the one that gives the maximum probability P (y = c|x).
Discriminant analysis (DA). The definition of discriminant functions is performed by discriminant analysis using linear (LDA) and quadratic (QDA) separation functions [41].
QDA is a better option than LDA for large data sets. This is because the QDA tends to have a lower deviation and higher variation. On the other hand, the LDA is more suitable for smaller data sets that have higher grouping and lower variance. In summary, the quadratic separating function has the form: where δk is a separating function; µk-averaged vector; x-observations; Σ −1 -covariance matrix. For practical purposes, including the creation of control programs for driver assistance systems, it is convenient to present the separation function in the form of: where K is a constant; L-linear coefficient; Q-square coefficient; v = [x;y]-vectors (matrix) of data; x and y are the data along both axes; v'-transposed matrix of v.
Kernel SVM (KSVM) [42]. Using the core support vector machines method (KSVM), nonlinear transformation of the original data into another higher-dimensional space is performed, where the objects are linearly separable. In SVM, hypersurfaces separating the classes for which the distance between the boundaries for both classes are maximal can be calculated from reference points that represent boundary points for a given data class in the multidimensional feature space.
According to the type of the selected kernel function Φ, several types of classifiers are constructed (linear, radial-basis function, polynomial, neural network). A width σ is chosen, and a kernel function with the following general form: where K is a kernel function; x and y are input vectors (vectors of features determined by the training sample); C > 0 is a constant. At C = 0 the kernel is homogeneous.
Evaluation of classifiers [42]. Basic (e i ), actual (g i ) and total (e 0 ) classification errors were used to evaluate the performance of the classifiers. The input data for the two classes processed by the classifier can be in groups: correctly (Positive P) and incorrectly (Negative N) classified. The errors can be defined by: The X-ray diffraction patterns scan was achieved in reflection Bragg-Brentano geometry; the samples are fixed in the sample holder such that the surface of the analyzed specimen is attached parallel to the support. The measurement of X-ray powder diffraction patterns was performed with a Bruker D8 Advance diffractometer equipped with a LINX-EYE detector, a germanium (1 1 1) monochromator and an X-ray tube operating at 40 kV and 40 mA. The acquisition was performed with CuKα1 radiation in DIFFRAC plus XRD Commander Program considering a scan rate of 0.01 • /s. Methods of consistently improving assessments have been used for the selection of informative textural features. They significantly reduce the number of resulting combinations of traits used for classification. The FSNCA, RelieFf and SFCPP methods described in detail in [43] were used. Method for selection of features by analysis of adjacent components FSNCA. This algorithm is suitable for assessing the significance of characteristics of distance-based models. Method for ranking significant parameters for RelieFf forecasting. The method is a selection function using RelieFf's classification algorithm. It is suitable for assessing the significance of features for distance-based models. Method of the subsample of traits with comparable predictive power SFCPP.

Results and Discussions
SEM provides useful tools for examining the surface and structural characteristics of fibers of the fabrics through high resolution and depth of field of images. The scanning electron micrograph (Figure 2a) of convolutions in mature cotton fiber, bar = 18.9 µm, shows that cotton fibers look like collapsed and twisted tubes (blue arrow). The longitudinal view of organic cotton fibers shows ribbon-like twists (lower part of the image-orange arrow). The deterioration of the fibers (longitudinal)-detail of fibers-and the peeling process (black arrow, more visible in the upper left part of this image) is evident [44]. In Figure 2b, staple fiber ends of cotton fibers damaged in cotton fibers are damaged, shown with black lines on the figure (black arrow) [45]. The deterioration of the fibers (longitudinal), detail of fibers and the peeling process (orange arrow) are shown, as are dust/microorganisms on the fibers. Some fibers (Figure 2c,d) appear like collapsed and twisted tubes. These seem to have deteriorated and the peeling process is very intense (black arrow); note the presence of a high quantity of dust/microorganisms (fungi upper and lower right part of the image). Organic cotton fibers showing ribbon-like twists (left part of the image) as well as dust and/or microorganisms present on the cotton fibers are observable. In addition, the peeling process of the fibers is visible (Figure 2e).
Staple fiber ends-end of cotton fibers (Figure 3a) are damaged in processing; organic cotton fibers look like collapsed and twisted tube or show ribbon-like twists. Less evidence of dust/microorganisms on the fibers after the wash [33] (Figure 3b). Of note is the peeling of the fibers and possible dust presence on the fibers in the upper part of the image. It can also be seen showing cross-marking or nodes. Longitudinal cotton fibers (Figure 3c    The comparison between the washed and unwashed images demonstrates that some cellulose fibers and microfibrils have lost their integrity with the main cotton fibers, being loosened and eventually separated from the cotton fibers. This separation of cellulose microfibrils is apparent in the comparison made in Figure 4a  The comparison between the washed and unwashed images demonstrates that some cellulose fibers and microfibrils have lost their integrity with the main cotton fibers, being loosened and eventually separated from the cotton fibers. This separation of cellulose microfibrils is apparent in the comparison made in Figure 4a,b. The comparison between the washed and unwashed images demonstrates that some cellulose fibers and microfibrils have lost their integrity with the main cotton fibers, being loosened and eventually separated from the cotton fibers. This separation of cellulose microfibrils is apparent in the comparison made in Figure 4a,b. Considering the fact that cellulose fibers and microfibrils are mainly connected to each other in a cotton fiber by hydroxyl bonds, ultimately forming the final cotton fiber, Considering the fact that cellulose fibers and microfibrils are mainly connected to each other in a cotton fiber by hydroxyl bonds, ultimately forming the final cotton fiber, the process of washing the cotton textile specimens in water (with abundant free hydroxyl groups -OH) facilitated this easy loosening and the eventual separation of the surface microfibrils. Similar breakage of primary bonds between wollastonite and wood polymers (cellulose and hemicellulose) was previously reported as a result of abundant water molecules, though the adsorption energy of wollastonite-cellulose was calculated to be greater than that of water-cellulose (red arrows) [46][47][48]. The comparison of the SEM image of washed cotton textile specimen (Figure 5a) with that of an unwashed specimen (Figure 5b) with 50-micron magnification clearly illustrates that no separation of cellulose microfibrils can be observed in the unwashed specimen. As an example, some defects on the fibers are shown with red lines. the process of washing the cotton textile specimens in water (with abundant free hydroxyl groups -OH) facilitated this easy loosening and the eventual separation of the surface microfibrils. Similar breakage of primary bonds between wollastonite and wood polymers (cellulose and hemicellulose) was previously reported as a result of abundant water molecules, though the adsorption energy of wollastonite-cellulose was calculated to be greater than that of water-cellulose (red arrows) [46][47][48]. The comparison of the SEM image of washed cotton textile specimen (Figure 5a) with that of an unwashed specimen (Figure 5b) with 50-micron magnification clearly illustrates that no separation of cellulose microfibrils can be observed in the unwashed specimen. As an example, some defects on the fibers are shown with red lines. It is important to note that the loosening and separation of surface cellulose microfibrils cannot solely be attributed to the abundance of water hydroxyl groups, the breakage of hydroxyl bonds that made cellulose fibers and microfibrils integrated to form cotton fibers. The friction between cotton fibers during washing can be considered another cause for the breakage and the eventual separation of microfibrils.
Analysis of SEM images of historical textiles using artificial intelligence techniques. SEM images of washed and unwashed textile fabrics were used. The photos were in TIFF file format. They had resolutions of 1200 × 960 pix. They were divided into three groups depending on the magnification ×1000, ×300 and ×100 LM. In the analysis of the SEM images of textiles, the most commonly used way of their digital representation is textural It is important to note that the loosening and separation of surface cellulose microfibrils cannot solely be attributed to the abundance of water hydroxyl groups, the breakage of hydroxyl bonds that made cellulose fibers and microfibrils integrated to form cotton fibers. The friction between cotton fibers during washing can be considered another cause for the breakage and the eventual separation of microfibrils.
Analysis of SEM images of historical textiles using artificial intelligence techniques. SEM images of washed and unwashed textile fabrics were used. The photos were in TIFF file format. They had resolutions of 1200 × 960 pix. They were divided into three groups depending on the magnification ×1000, ×300 and ×100 LM. In the analysis of the SEM images of textiles, the most commonly used way of their digital representation is textural features [37,38]; the advantage of using textural features in the analysis of SEM images is that they can be used to analyze, model and process the texture. In this way, human vision is simulated by distinguishing elements in images. Texture features provide sufficient information about objects in SEM images appropriate for their classification, identification and prediction modeling.
Twenty-two texture features were used, described in detail [49]. These are described in general terms with their formulas (Table 1: Equations (1)-(22)), where µx, µy, σx, σy represent the mean values and standard deviations of px and py functions of the partial probability density; x and y are coordinates (rows and columns) of a common matrix; probability "p", px + y(i) is the probability of the joint matrix; HX and HY-entropy of px and py; N is the number of grey levels in the image. Table 3 shows the mean and standard deviation of the two classes of textile fabricsunwashed (UW) and washed (W). Some of the features have similar values, while others visibly overlap. It is necessary to make a selection of these textural features that are sufficiently informative and can be used to classify both types of fabrics. The names of texture features are according to Boland [49]. All names are in their original form. Table 3. Formulas of the used textures features (after Bolad [49]).
Cluster Prominence Cluster Shade Dissimilarity Energy Entropy It is an optimal set of features that are mutually and maximally different and can effectively represent the compared objects through it (Table 4).  Tables 5-7 show the results of a selection of informative textural features, depending on the resolution of the SEM images and the magnification at which they were obtained. The smallest number of features (five) were obtained by the FSNCA method. It is followed by the RelieFf method, with seven features in all cases. The most features were selected by the SFCPP method, a total of 13 features, regardless of image resolution. Table 5. Selected texture features on images with magnification ×1000 LM.

Method for Selection Selected Features
FSNCA T5, T6, T9, T16, T19   RelieFf  T5, T6, T8, T12, T15, T16, T22   SFCPP  T3, T4, T5, T8, T10, T11, T12, T15, T16, T18, T19, T20, T21  Table 7. Selected texture features on images with magnification ×100 LM. FSNCA  T5, T6, T13, T15, T19   RelieFf  T5, T6, T12, T13, T16, T19, T22   SFCPP  T2, T3, T9, T10, T11, T13, T14, T15, T16, T17, T19, T21, T22 The kernel variant of the principal component (kPC) method was used to reduce the data volume of the resulting feature vectors [40]. When reducing data from vectors with textural features, the use of the method is appropriate because the data have relatively complex structures that cannot be represented with sufficient accuracy in a linear subspace. The kernel functions used are three linear (Simple) and two nonlinear: Polynomial (Poly) and Gaussian. These functions correspond to the way of design (transformation) in the space of the principal components. Figure 6 shows the reduced data from a vector with textural features selected by the FSNCA method for three principal components with a linear (Simple) kernel. The visualization depends on the magnification of the images. There is a visible separation between the two types of textile fabrics observed. Classification methods will highlight this distinctiveness. The scattered data in Figure 6 obtained from the washed and unwashed specimens reveal distinct separation between the data grouping of the unwashed specimens for all three principal components with a linear kernel (×100, ×500 and ×1000 LM). For the washed data, though, the data grouping revealed a less degree of distinction; that is, data are scattered more widely in comparison to the data of the unwashed specimens. The widely scattered data for the washed specimens clearly indicate that the breakage of hydroxyl bonds has happened on a random basis along cellulose microfibrils along cotton threads, which is common in natural materials [46][47][48]. Still, it can be observed that no overlap can be found between the two main data groupings of the washed and the unwashed observations. From a statistical point of view, the data in each group of the washed and unwashed can be considered sufficient to come to a conclusion that there is a statistically significant difference between them from all three principal components with a linear kernel. It is to be noted that the physical breakage of microfibrils by friction has intensified the wide scattering of data for principal components with a linear kernel in the washed specimens. tween the two types of textile fabrics observed. Classification methods will highlight this distinctiveness. The scattered data in Figure 6 obtained from the washed and unwashed specimens reveal distinct separation between the data grouping of the unwashed specimens for all three principal components with a linear kernel (×100, ×500 and ×1000 LM). For the washed data, though, the data grouping revealed a less degree of distinction; that is, data are scattered more widely in comparison to the data of the unwashed specimens. The widely scattered data for the washed specimens clearly indicate that the breakage of hydroxyl bonds has happened on a random basis along cellulose microfibrils along cotton threads, which is common in natural materials [46][47][48]. Still, it can be observed that no overlap can be found between the two main data groupings of the washed and the unwashed observations. From a statistical point of view, the data in each group of the washed and unwashed can be considered sufficient to come to a conclusion that there is a statistically significant difference between them from all three principal components with a linear kernel. It is to be noted that the physical breakage of microfibrils by friction has intensified the wide scattering of data for principal components with a linear kernel in the washed specimens. The methods of naïve Bayesian classifier, discriminant analysis and support vector machines method (SVM) were used for classification [40]. Two types of separating functions were used in the discriminant analyses-linear and quadratic. The SVM method uses three separating functions-linear, quadratic and one based on radial basis functions. Figure 7 shows an example of data classification for washed and unwashed textile fabrics obtained from textural features of their SEM images. They have a magnification of ×1000 LM. The vector of features was selected by the RelieFf method. It is reduced to principal components with a linear (Simple) kernel. Linear separation functions were used in the discriminant analysis and the support vector machines method. The Bayesian classifier shows the restriction of the areas of the two classes of textile fabrics with spherical borders. With regard to the covariance nature of the principal component, the absolute values for PC1 and PC2 may range from 0 to 1. In the case of unwashed specimens, the values were very near to 0, indicating that there was little or no covariance The methods of naïve Bayesian classifier, discriminant analysis and support vector machines method (SVM) were used for classification [40]. Two types of separating functions were used in the discriminant analyses-linear and quadratic. The SVM method uses three separating functions-linear, quadratic and one based on radial basis functions. Figure 7 shows an example of data classification for washed and unwashed textile fabrics obtained from textural features of their SEM images. They have a magnification of ×1000 LM. The vector of features was selected by the RelieFf method. It is reduced to principal components with a linear (Simple) kernel. Linear separation functions were used in the discriminant analysis and the support vector machines method. The Bayesian classifier shows the restriction of the areas of the two classes of textile fabrics with spherical borders. With regard to the covariance nature of the principal component, the absolute values for PC1 and PC2 may range from 0 to 1. In the case of unwashed specimens, the values were very near to 0, indicating that there was little or no covariance between PC1 and PC2. However, the scattered dots for the PC1 and PC2 values for the washed specimens meant a quite different trend. This clearly illustrated a significant difference between the washed and the unwashed specimens (Figure 7b). An assessment of classification errors has been made [42]. These errors are basic (ei), actual (gi) and general (e0). When calculating these errors, the false-negative (FN) data, which are the number of Class i data incorrectly assigned to other classes, as well as the true-positive (TP) data, which are the number of correctly classified Class i data, are determined.

Method for Selection Selected Features
The results of a naive Bayesian classification are shown in Table 8. Using a linear kernel of the main components between the two groups of tissues results in zero classification errors. The same trend is observed when using reduced data from the vector of features with principal components using a Polynomial kernel. The highest values of classification errors are obtained when using data reduced by main components with Gaussian kernel. The actual error of over 40% obtained between all the surveyed areas shows that a large part of the data from the second class fell into the first. Hence, the total classification error reaches values of 27-52%, which is an indication that the reduction of data with this method is inappropriate. The results of the discriminant analysis classification are shown in Table 9. The total classification error is 18-24%. Using a feature vector selected by the RelieFf method and reduced with principal components using a Polynomial kernel, maximum values of the total classification error of 24% are obtained. The basic error, in this case, reaches 8%. This shows that 8% of the first class of textile fabrics data falls into the second. Classification errors above 10% indicate that using this classifier to separate the two studied classes of textile fabrics is not appropriate. An assessment of classification errors has been made [42]. These errors are basic (e i ), actual (g i ) and general (e 0 ). When calculating these errors, the false-negative (FN) data, which are the number of Class i data incorrectly assigned to other classes, as well as the truepositive (TP) data, which are the number of correctly classified Class i data, are determined.
The results of a naive Bayesian classification are shown in Table 8. Using a linear kernel of the main components between the two groups of tissues results in zero classification errors. The same trend is observed when using reduced data from the vector of features with principal components using a Polynomial kernel. The highest values of classification errors are obtained when using data reduced by main components with Gaussian kernel. The actual error of over 40% obtained between all the surveyed areas shows that a large part of the data from the second class fell into the first. Hence, the total classification error reaches values of 27-52%, which is an indication that the reduction of data with this method is inappropriate. The results of the discriminant analysis classification are shown in Table 9. The total classification error is 18-24%. Using a feature vector selected by the RelieFf method and reduced with principal components using a Polynomial kernel, maximum values of the total classification error of 24% are obtained. The basic error, in this case, reaches 8%. This shows that 8% of the first class of textile fabrics data falls into the second. Classification errors above 10% indicate that using this classifier to separate the two studied classes of textile fabrics is not appropriate. The classification results with the support vector machines method are presented in Table 10. In the general case, zero classification errors occur. Error values above 10% are obtained using a linear separator function of the classifier. In this case, the actual error is 12-29%, which indicates that when using the linear separation function of the SVM classifier, some of the data is incorrectly classified and falls into the class to which they do not belong.
The obtained results found that the separation of the two classes of textile fabricswashed and unwashed, does not depend on the method of selecting informative textural features. It also does not depend directly on the classifier used. Suitable methods for reducing the data volume of feature vectors are principal components with linear and Polynomial kernels. It is not appropriate to use linear separation functions of classifiers because high values (above 10%) of classification errors are obtained.
The X-ray powder diffraction technique was used for the structural characterization of heritage cotton textiles. In the case of textiles, they contain both crystalline and amorphous phases. The crystalline phase is highlighted by diffraction peaks corresponding to the crystallographic planes involved and the amorphous phase produces diffraction halos. X-ray diffraction is specific for each class of textile materials, thus characterizing these materials in terms of crystalline peaks and amorphous halos; a structural fingerprint of these materials is obtained. This paper characterizes the crystalline phase and the amorphous phase of materials, evaluating the degree of crystallinity and the dimensions of crystallites corresponding to the crystalline phase at the same time. The X-ray diffraction patterns for specimens 1 and 2, both before and after washing, are shown in Figure 8a,b. In both cases, the existence of broad diffraction peaks specific to cellulose is observed [50]. According to the literature, cellulose is found in the monoclinic system, space group P21 with the following lattice parameters a = 7. The crystallite sizes were evaluated using the Scherrer relation [52] (Equation (1)) for the (2 0 0) diffraction peak occurring at 2θ = 22.80 • (where λ is defined as the wavelength of X-ray radiation, β is the full width at half maximum of the selected peak and θ represents the diffraction angle). The following results were obtained: D = 73 Å for the white sample and D = 45 Å for the black one, both before and after washing.
The crystallinity was evaluated based on Equation (2), where Icryst is the sum of the intensities due to the crystalline phases and Itotal is the sum of the intensities due to the crystalline phases plus the diffraction intensity due to the amorphous halos. A value of 34% was obtained for the white specimen and 29% for the black one, both before and after washing. The figure represents the X-ray diffraction patterns of investigated samples. The presented results are according to the color of the samples.

Conclusions
Following the proposed experiment, the following conclusions can be drawn: • From SEM images, the cotton fibers are in the form of collapsed, ribbon-like twists and twisted tubes and no significant surface modifications were noticed after fiber washing.

•
In the unwashed specimen, a fairly large number of microorganism (fungi) colonies, as well as a large amount of dust, were highlighted. • After washing, the SEM microscopy showed that the number of microorganism colonies, as well as the amount of dust, decreased, the cellulose fibers lost their integrity and the presence of microfibrils that connect the cellulose fibers is better observed. • X-ray diffraction showed that the basic material of the textile samples is cellulose, which possesses both a crystalline and an amorphous phase.

•
The calculation of the degrees of crystallinity in the washed and the unwashed specimens revealed that the washing process did not significantly alter the degree of crystallinity.

Conclusions
Following the proposed experiment, the following conclusions can be drawn: • From SEM images, the cotton fibers are in the form of collapsed, ribbon-like twists and twisted tubes and no significant surface modifications were noticed after fiber washing.

•
In the unwashed specimen, a fairly large number of microorganism (fungi) colonies, as well as a large amount of dust, were highlighted. • After washing, the SEM microscopy showed that the number of microorganism colonies, as well as the amount of dust, decreased, the cellulose fibers lost their integrity and the presence of microfibrils that connect the cellulose fibers is better observed. • X-ray diffraction showed that the basic material of the textile samples is cellulose, which possesses both a crystalline and an amorphous phase.

•
The calculation of the degrees of crystallinity in the washed and the unwashed specimens revealed that the washing process did not significantly alter the degree of crystallinity.

•
The crystallite dimensions were evaluated as being 73 Å for the white specimen and 45 Å for the black one, both before and after washing.
• Comparing the transverse dimensions of the cellulose fibers in the SEM images, which are of the order of 100-200 µm, it is found such a fiber consists of a very large number of crystallites.
Overall, the separation of the two classes of textile fabrics, washed and unwashed, does not depend on the method of selecting informative textural features, which are proposed by artificial intelligence methods. It also does not depend directly on the classifier used. Appropriate methods for reducing the data volume of selected texture feature vectors have been shown to be principal components with linear and Polynomial kernel functions. Reducing the data in the selected feature vectors by Gaussian kernel principal components is impractical. When using this method, classification errors of more than 10% occur. The use of the LDA classification method leads to classification errors above 10%, which makes its use inappropriate for the task solved in the present work. The reason for this could be that LDA is sensitive to overlapping data, missing values and deviations. The overlap of data is observed in the texture characteristics of the studied washed and unwashed textile fabrics. The lowest values of classification errors were obtained using the SVM method, compared to the other two methods, LDA and QDA.

Data Availability Statement:
The data presented in this study may be obtained on request from the corresponding author.