Skip to main content
Scientific Data logoLink to Scientific Data
. 2026 May 20;13:1166. doi: 10.1038/s41597-026-07439-1

Intelligent Manufacturing: A Fully Annotated Synthetic Dataset for Fiber Orientation Estimation

César García-Gascón 1,2, Javier Bas-Bolufer 1, Pablo Castelló-Pedrero 1,2, Juan A García-Manrique 1,✉
PMCID: PMC13457607  PMID: 42162009

Abstract

This work introduces a fully annotated synthetic dataset designed to support machine learning-based estimation of fiber orientation in short-fiber reinforced polymers. The dataset comprises 55,092 high-resolution microscopy-like images generated through a physics-informed simulation pipeline that reproduces the morphological characteristics of real microstructures. Each micrograph contains a non-overlapping arrangement of ellipsoidal fiber cross-sections with controlled distributions of aspect ratio, in-plane orientation and areal fraction. These parameters are calibrated using descriptors extracted from X-ray microscopy of ABS-GF20 specimens processed via large-format material extrusion. For every synthetic image, the corresponding second-order orientation tensor is computed analytically from the exact fiber geometry, providing noise-free ground-truth annotations suitable for supervised learning and rigorous benchmarking. The dataset enables reproducible evaluation of deep learning models for orientation prediction and supports the development of automated workflows for composite characterization and intelligent manufacturing. Comprehensive documentation and the accompanying open-source Python code ensure transparency, facilitate reuse and allow users to extend or regenerate the dataset for materials science, computer vision and data-driven manufacturing research.

Background & Summary

Short-fiber reinforced polymers play a central role in modern manufacturing, offering a combination of high stiffness-to-weight ratio, tunable anisotropy and compatibility with high-throughput forming processes. Among these technologies, large-format additive manufacturing (LFAM) has emerged as a transformative platform that enables the production of meter-scale composite components with reduced tooling costs and unprecedented geometric freedom1,2. The mechanical performance of these materials, however, depends critically on the underlying fiber architecture and, in particular, on the statistical distribution of fiber orientations that develops during processing. Flow-induced alignment governs stiffness, strength, thermal conductivity and residual stress, making fiber orientation a key descriptor for simulation, certification and structural design3,4. In the context of LFAM, where deposition paths, bead geometry, cooling rates and rheological conditions fluctuate significantly, the resulting microstructure often exhibits a complex mixture of highly aligned regions and locally heterogeneous configurations, amplifying the need for reliable characterization tools5,6.

Traditional approaches to fiber-orientation characterization rely on microscopy followed by segmentation and ellipse fitting. Scanning electron microscopy (SEM), optical microscopy and X-ray microtomography provide high-resolution images of fiber cross-sections, from which geometric descriptors such as major axis, minor axis and in-plane orientation are extracted6. These measurements are then mapped to orientation tensors, a mathematically compact representation of the orientation distribution that is widely used for constitutive modelling and simulation7. Although effective, such workflows are labor-intensive, sensitive to operator-dependent thresholding, inherently two-dimensional and difficult to scale to the thousands of samples required for robust statistical analysis. Even when automated image-processing pipelines are used, the reliable annotation of experimental micrographs remains a substantial bottleneck, particularly for data-driven methods that depend on large, diverse and consistently labelled datasets.

In parallel, machine learning (ML) and artificial intelligence (AI) techniques have gained traction in materials science and composite manufacturing. Convolutional neural networks (CNNs), encoder-decoder architectures and hybrid physics-informed models have demonstrated strong potential for predicting fiber orientation, stiffness tensors or morphological descriptors directly from micrographs8–10. These methods substantially reduce inference time, sometimes by orders of magnitude, making them suitable for digital twins, in-line quality monitoring and real-time process control. More broadly, machine learning is becoming a pervasive tool in composite design, multiscale modelling and topology optimisation11–13. In additive manufacturing specifically, deep learning has been applied to material-process-property relationships, defect detection and microstructure prediction, highlighting a clear trend towards data-driven optimisation14. However, the success of these methods depends fundamentally on the quantity and quality of training data, and the scarcity of large annotated datasets remains one of the most significant obstacles to the adoption of ML in composite microstructure analysis.

Synthetic data generation has therefore emerged as a powerful strategy to overcome the limitations of experimental datasets. In computer vision and robotics, physics-based rendering and generative models already play a central role in training perception systems, enabling the development of digital twins and reinforcement-learning agents capable of operating in real-world environments15,16. In textiles and woven composites, deep learning models have been trained on digital simulations of weaving patterns to infer 3D architectures efficiently17. Within materials science, synthetic data is increasingly being used to accelerate discovery, quantify uncertainty and augment experimental datasets18,19. Yet despite these advances, the materials community still lacks large-scale, openly available datasets of fiber microstructures with reliable ground-truth orientation annotations.

Recently, physics-informed synthetic image generation has proven to be a compelling alternative to conventional microscopy-based approaches. By simulating the geometric intersection of cylindrical fibers with a 2D imaging plane, it becomes possible to generate realistic microscopy-like microstructures while preserving exact knowledge of orientation tensors, aspect ratios and areal fractions. This idea has been explored in the context of LFAM, where datasets of synthetic images were used to train CNNs that predict fiber orientation directly from binarised micrographs, achieving high accuracy and demonstrating strong agreement with conventional methods5,6. The main advantage of synthetic datasets lies in their scalability and the absence of annotation noise: precisely controlled distributions of aspect ratio, density and orientation can be generated at negligible cost, and the ground truth is known analytically. Moreover, synthetic datasets enable balanced sampling across the orientation-tensor space, facilitating the training of machine learning models that generalise well across isotropic, weakly anisotropic and highly aligned regimes.

Orientation tensors provide a compact and physically meaningful descriptor of fiber alignment and are widely used in continuum models and constitutive laws3,7. Recent research highlights the importance of quantifying uncertainty in orientation reconstruction, since small perturbations in image segmentation or ellipse fitting can propagate into significant variations in predicted mechanical response20. This sensitivity motivates the use of synthetic datasets both for benchmarking and for developing robust estimators. Synthetic microstructures also offer the opportunity to evaluate the effect of sampling density, noise, partial visibility and segmentation artefacts in a controlled manner, allowing researchers to systematically analyse the limits of orientation-reconstruction algorithms8,9.

At the same time, synthetic datasets must be statistically representative of real microstructures in order to be useful for training predictive models. Advances in LFAM process characterisation have shown that fiber aspect ratios, areal fractions and orientation biases can be extracted from X-ray microscopy (XRM) and SEM, and then used to calibrate physics-based simulation pipelines5. Such pipelines incorporate geometric constraints (e.g. non-overlapping ellipses), morphological variability and experimentally derived distributions of orientation and aspect ratio. The resulting images capture the characteristic texture and morphology of microscopy slices, while preserving full analytical access to the underlying fiber geometry. This hybrid approach, experimental calibration combined with physics-based generation, offers a transparent, interpretable and reproducible alternative to GAN- or VAE-based methods, which, despite their generative power, may suffer from mode collapse, limited interpretability or unphysical artefacts18,19.

The increasing importance of synthetic datasets in engineering disciplines has led to broader efforts to integrate data generation, simulation and AI within digital manufacturing workflows. In the context of composite materials, the potential applications are extensive: process optimisation, predictive simulation, inverse design, uncertainty quantification and adaptive control all benefit from reliable microstructural descriptors. Digital twins for additive manufacturing, for example, require rapid estimation of fiber orientation to assess stiffness evolution and thermal behaviour in real time14,15. Synthetic datasets make it possible to train such estimators without the overhead of exhaustive microscopy campaigns and provide a platform for testing predictive models under a wide range of controlled scenarios.

Despite this momentum, no open and fully annotated dataset existed prior to this work that simultaneously offered realistic microscopy-like textures, complete ground-truth orientation tensors, calibrated morphological statistics and large sample size. Existing studies typically rely on small datasets curated for specific experiments, limiting the generalisability and reproducibility of machine learning models6,8. The lack of open benchmarks hampers comparison between methods and slows down progress in automated fiber-orientation analysis. Furthermore, many datasets focus solely on global orientation or average measures, neglecting the rich morphological diversity present in LFAM-processed composites, where local anisotropy can vary significantly across the bead cross-section4. A comprehensive dataset must therefore capture microstructural variability across tens of thousands of images, spanning a broad and well-balanced region of the orientation-tensor space.

To address these gaps, the present dataset (Fully Annotated Synthetic dataset (FAS-DS)21) introduces a large-scale, physics-informed collection of 2D synthetic microstructures, each annotated with exact fiber geometry and associated second-order orientation tensors. The images reproduce the characteristic features of microscopy slices, including heterogeneous alignment, variable aspect ratios and experimentally derived areal fractions. By generating a statistically balanced set covering isotropic, intermediate and highly aligned configurations, the dataset facilitates the training and benchmarking of machine learning models for fiber-orientation estimation. Its scale enables comprehensive validation across morphological regimes, while its reproducibility ensures that researchers can extend or regenerate subsets under modified assumptions. The dataset is accompanied by open-source Python code for image generation, annotation and tensor computation, thereby ensuring full transparency and reusability22. In this way, it supports ongoing efforts to integrate synthetic data, physics-informed modelling and AI within digital-manufacturing pipelines.

Overall, this dataset provides an essential resource for the composite-materials and manufacturing communities. By bridging the gap between experimental microscopy and data-driven modelling, it establishes a foundation for reproducible benchmarking and accelerates the development of ML-based fiber-orientation estimators. It also opens new opportunities for studying microstructural variability, quantifying uncertainty and designing robust algorithms for orientation prediction. As synthetic data becomes increasingly central to materials informatics, large-scale datasets such as this one will play a vital role in advancing AI-driven composite characterisation and supporting the next generation of digital twins, intelligent manufacturing systems and simulation-informed design frameworks.

Methods

Synthetic microstructure generation

The synthetic microstructures included in this dataset were generated through a fully deterministic, physics-informed pipeline designed to reproduce the morphological characteristics of short-fiber reinforced polymers while ensuring complete control over geometric parameters, spatial constraints and statistical distributions. The objective is to produce microscopy-like binary images with analytically known ground-truth orientation tensors, enabling reproducible benchmarking and large-scale training of machine-learning models. The pipeline comprises three principal stages: (i) parameter sampling, (ii) spatial placement of non-overlapping ellipses within a bounded 2D domain and (iii) analytical computation of orientation tensors and metadata. Each stage is documented to allow full reproducibility and extension by external users.

The microstructural domain is defined as a rectangular image of fixed resolution (typically 512 × 384 px), chosen to approximate the aspect ratio of experimental microscopy frames. All geometrical quantities, ellipse axes, centroid positions, in-plane angles and areas, are expressed in pixel units, which allows the images to be directly used for training convolutional neural networks or for comparison with thresholded SEM/XRM micrographs. The simulation treats each fiber as the intersection of an infinitely long rigid cylinder with the imaging plane. The resulting cross-section is an ellipse characterised by a semi-minor axis a, a semi-major axis b and an in-plane angle ϕ. These parameters are calibrated to match experimentally observed fiber morphologies, as reported in previous LFAM microstructure studies5,6.

Parameter sampling governs the statistical diversity of fiber geometries and orientations. The semi-minor axis a is sampled from a narrow distribution centred around a base value aparam with a small variation Δa, reproducing the consistent fiber diameter observed in ABS-GF20 composites. The semi-major axis b is drawn from a predefined interval [bmin,bmax], yielding aspect ratios between approximately 5:1 and 15:1, which is consistent with values reported for glass fibers in extrusion-based processes4. The in-plane orientation ϕ is sampled using a mixture distribution that reflects both the global alignment imposed by LFAM deposition and local heterogeneity. Specifically, a predominant proportion of fibers (~90%) is drawn from a normal distribution ϕ~N(0∘,σϕ2), where σϕ is typically 5–10°, capturing bead-scale alignment. The remaining fibers are sampled uniformly from [−90°, 90°], ensuring the presence of misaligned or curved-flow regions that commonly appear in turning segments or near bead boundaries. The sampling process is fully configurable, and the parameters used in each generated image are recorded in the accompanying metadata files, facilitating sensitivity analyses and downstream model explainability.

Fiber placement proceeds through an iterative stochastic algorithm that enforces strict non-overlap among ellipses. A spatial index (STRtree from the Shapely library) is used to efficiently query nearby fibers and detect geometric intersections. For each candidate fiber, a centroid (x, y) is drawn uniformly from the domain, and an ellipse with parameters (a, b, ϕ) is instantiated. Intersection tests are performed between the candidate ellipse and all previously accepted ellipses. If any overlap is detected, defined as positive area intersection computed via polygonal approximation, the candidate is rejected; otherwise, the ellipse is accepted and appended to the spatial index. This procedure continues until the cumulative area of all accepted ellipses reaches a prescribed target area fraction ptarget ∈ [0.15, 0.50], consistent with experimentally measured fiber volume fractions in LFAM-deposited beads. The algorithm includes an upper bound on the number of attempts to avoid infinite loops in high-density configurations; the actual number of attempts and successfully placed ellipses are stored as metadata for each image, enabling users to quantify packing difficulty and correlate it with morphological characteristics or ML model performance.

To guarantee that the rendered microstructures are consistent with microscopy segmentation, only the intersection area of each ellipse with the image boundaries is retained. Fibers partially outside the domain contribute only the visible portion of their ellipse, and all geometric descriptors (projected area, centroid and orientation) are computed based on the truncated shape. This step mimics real microscopic fields of view, where fibers are frequently clipped by the image edges, and is important for generating realistic training data for segmentation or orientation-estimation algorithms. The final image is rendered as a binary mask with white ellipses on a black background. This representation intentionally mirrors thresholded SEM/XRM images used in prior LFAM fiber-orientation studies6, ensuring compatibility with conventional CNN architectures.

An essential feature of this dataset is the analytical computation of the second-order orientation tensor A for every image. For each fiber i, the apparent aspect ratio bi/ai is used to infer an out-of-plane tilt angle βi via the relation sinβi=ai/bi, following the geometric interpretation of cylindrical inclusions intersecting a plane7. The in-plane orientation ϕi is directly obtained from the sampling stage. The direction vector of fiber i is then expressed in three dimensions as

pi=cosϕicosβisinϕicosβisinβi.

The global orientation tensor is computed as the average dyadic product

A=1N∑i=1Npi⊗pi,

yielding components Axx, Ayy and Azz that satisfy tr(A)=1. These components quantify the degree of anisotropy in the synthetic microstructure and are widely used in continuum-mechanics models for injection-moulding and additive-manufacturing flows3. By construction, the computed orientation tensor represents the exact ground truth of the synthetic image, free from segmentation errors or ellipse-fitting uncertainty. The dataset therefore enables rigorous evaluation of ML estimators, including their sensitivity to noise, morphology and sampling density.

Representative synthetic microscopy-like images from the dataset are shown in Fig. 1. Pictures (a-f) display binary micrographs spanning a broad range of fiber-orientation states, from highly aligned configurations (a,b) to quasi-isotropic patterns (f). Each sample corresponds to a 512 × 384 pixel binary image in which white ellipses depict individual fiber cross-sections against a black background. The tensor components (Axx, Ayy, Azz) reported for each panel represent the analytically computed ground-truth orientation tensor stored in the metadata accompanying the full dataset of 55,092 images.

Fig. 1.

Fig. 1

Representative synthetic fiber micrographs spanning from highly aligned to quasi-isotropic orientation states.

Alongside the orientation tensor, the full per-fiber geometric dataset is exported in a comma-separated values (CSV) file sharing the same basename as the corresponding image. Each file contains per-ellipse descriptors including centroid coordinates, axis lengths, orientation, individual ellipse area, truncated intersection area and derived quantities such as aspect ratio and inclination angle βi. The files also record global parameters such as the target and achieved area fraction, image dimensions, sampling bounds and the total number of placement attempts. This rich metadata supports advanced statistical analyses, including parameter-space mapping, fiber-density studies, packing-efficiency characterisation and correlation analyses between morphological properties and orientation anisotropy5. The complete dataset thus provides not only training images for machine-learning applications but also a detailed corpus for studying fiber-level interactions and microstructural variability.

Finally, the entire generation procedure is openly available as Python code22, ensuring complete transparency and enabling users to modify sampling distributions, introduce new morphological features (e.g. curved fibers, polydispersity, defects) or extend the framework to three-dimensional simulations. Because all randomness is governed by explicit pseudo-random number generators with user-controlled seeds, the pipeline supports deterministic regeneration of the dataset for validation and reproducibility studies. This makes the present synthetic microstructure generator a robust and extensible tool for the composite-materials, additive-manufacturing and machine-learning communities.

Geometric parameterization

The geometric parameterization defines the fundamental building blocks of the synthetic microstructures and establishes the mathematical assumptions that connect the simulated ellipses to the physical behaviour of short fibers embedded in a polymer matrix. Because each fiber is modelled as the planar intersection of a three-dimensional cylindrical inclusion with the imaging plane, a consistent and physically informed parameterization is essential for reproducing the morphological characteristics of real micrographs, ensuring comparability with experimental datasets and enabling exact analytical computation of orientation tensors7. The geometric framework adopted here emphasises reproducibility, control and physical interpretability, allowing users to modify the structural assumptions in a transparent manner.

Each fiber cross-section is represented by a two-dimensional ellipse parameterised by three primary quantities: the semi-minor axis a, the semi-major axis b and the in-plane orientation ϕ. These parameters together dictate the fiber’s projected shape, size and orientation within the 2D imaging domain. The semi-minor axis a corresponds to half of the projected width of the fiber, which in turn reflects the actual fiber diameter under the assumption of uniform cylindrical geometry. Experimental X-ray microscopy (XRM) and SEM imaging of ABS-GF20 composites consistently show narrow distributions of fiber diameters, typically around 12-14 μm, with relatively small variance5. To reflect this behaviour, a is sampled from a nearly constant distribution centred around a base parameter aparam with a small variation Δa. This approach captures realistic manufacturing tolerances while maintaining consistency across the dataset. All values are expressed in pixel units, which allows direct comparison between synthetic and binarised experimental micrographs.

The semi-major axis b governs the apparent fiber length in the imaging plane and plays a key role in reproducing the aspect-ratio distribution of real fibers. Since the true three-dimensional fiber length does not directly appear in a 2D section, b represents the effective projected length, which depends on both the real fiber length and the out-of-plane intersection angle. Empirical distributions derived from LFAM micrographs indicate that observed aspect ratios (i.e. b/a) commonly range from 4:1 to 20:1, depending on processing history and measurement orientation4,6. To capture this variability, b is sampled from a uniform or truncated-normal distribution with bounds [bmin,bmax], where the default limits produce aspect ratios of approximately 5:1 to 15:1. These values were selected to balance physical realism with computational stability during packing. The use of controlled aspect-ratio distributions ensures that the dataset spans the full morphological space encountered in LFAM, including configurations with high anisotropy and regions where fibers appear nearly circular due to steep out-of-plane tilt angles.

The in-plane orientation ϕ defines the rotation of the ellipse with respect to the horizontal axis of the image. This parameter is of central importance for orientation-tensor computation and for training machine-learning models that estimate fiber alignment directly from micrographs. In real LFAM-deposited materials, fiber alignment is strongly influenced by the local bead-deposition direction, producing a predominant alignment axis, but also includes stochastic deviations due to secondary flow, bead curvature, cooling-induced disturbances and local rheological effects1,2. To model this behaviour realistically, the synthetic microstructure generator employs a mixture distribution: the majority of fibers (typically 90%) are assigned orientations sampled from a zero-centred normal distribution with standard deviation σϕ in the range of 5-10∘, while a minority (10%) are drawn from a uniform distribution over [ − 90∘, 90∘]. This approach captures both the dominant alignment behaviour characteristic of extrusion processes and the presence of misaligned or cross-flow fibers. The relative proportions and statistical parameters are fully configurable and recorded as metadata, supporting rigorous sensitivity studies and domain-shift analyses for machine-learning applications.

In addition to the primary geometric parameters (a, b, ϕ), several derived quantities are computed to support subsequent analysis. The aspect ratio, AR = b/a, provides a convenient scalar measure of elongation and is widely used in statistical characterisation of fiber populations. Its distribution strongly influences the achievable packing density and affects mechanical-anisotropy predictions in modelling frameworks3. The ellipse area, Aellipse = πab, quantifies the contribution of a given fiber to the overall area fraction and determines its likelihood of interacting with neighbouring fibers during packing. Because some fibers are clipped by the image boundaries, a truncated intersection area is computed for each ellipse through polygonal intersection with the domain limits. This truncated area, rather than the full ellipse area, governs the evaluation of the final achieved area fraction pachieved and ensures consistency with what would be observed in a real micrograph.

The geometric parameterization also enables inference of out-of-plane fiber inclination, an otherwise unobservable property in a two-dimensional section. Under the cylindrical-fiber model, the inclination angle β is related to the observed ellipse axes by sinβ=a/b. Although this relation assumes exact cylindrical geometry, it provides a consistent means of estimating a three-dimensional orientation vector from two-dimensional measurements, forming the basis of the analytical orientation tensor used throughout this dataset. This geometric link ensures that the dataset not only provides visually realistic microstructures but also carries physically meaningful three-dimensional orientation information necessary for continuum-scale constitutive modelling and AI-driven property prediction7,10. The ability to compute β analytically, without segmentation or inference error, distinguishes synthetic datasets from experimental ones, where measurement noise introduces uncertainty into tensor estimation20.

For clarity, the default ellipse-parameter distributions used in this work can be summarised as:

  • Semi-minor axis: a = 6 ± 1 px, representing the fiber diameter calibrated from XRM data.

  • Semi-major axis: b ∈ [30, 100] px, producing aspect ratios between 5:1 and 15:1.

  • In-plane orientation:
    • 90% of fibers sampled from ϕ~N(0∘,5∘) to emulate LFAM-induced alignment.
    • 10% sampled uniformly from [ − 90°, 90°] to model local misalignment and edge effects.

These distributions reproduce the anisotropic microstructure observed in LFAM-processed materials while enabling controlled variability for machine learning. Figure 2 provides an overview of the physics-informed pipeline used to generate the synthetic fiber microstructure dataset. Experimental X-ray microscopy (XRM) and SEM images are first analysed to extract key morphological descriptors (fiber aspect ratio, area fraction and orientation bias). These parameters are then used as inputs for a Python-based simulator that places non-overlapping ellipses, computes the associated second-order orientation tensor and renders microscopy-like binary images. Repeating this process yields the final dataset of 35,893 fully annotated images.

Fig. 2.

Fig. 2

Overview of the synthetic fiber-image generation pipeline. Experimental XRM/SEM images are used to calibrate morphological descriptors, which feed a physics-informed simulator that generates non-overlapping ellipses, computes the associated orientation tensor and renders binary micrographs with full metadata.

Ellipse placement uses a spatial index (STRtree from Shapely) to efficiently detect geometric intersections. Candidate ellipses that overlap previously placed ellipses are rejected. The algorithm terminates once the accumulated fiber area fraction reaches the target value (typically around 20%), matching the experimentally observed fiber coverage in XRM virtual slices. Images are rendered as binary micrographs with white ellipses on a black background, emulating thresholded SEM/XRM images and ensuring compatibility with standard computer-vision pipelines.

Orientation tensor computation

Each synthetic micrograph is accompanied by an analytically computed second-order orientation tensor A based on the ground-truth geometry of all fibers in the image. For each ellipse, the out-of-plane angle β is estimated from its aspect ratio through

sinβi=aibi.

The in-plane orientation angle ϕi is directly known from the generation routine. The diagonal components of the tensor are then computed using the Advani-Tucker formulation7:

Axx=1N∑i=1Nsin2βi,
Ayy=1N∑i=1Ncos2βisin2ϕi,
Azz=1N∑i=1Ncos2βicos2ϕi,

where N is the total number of fibers in the micrograph. All tensors satisfy tr(A)=1 within numerical precision.

Tensor components are included in each image filename for traceability, and a separate metadata file stores the values of (Axx, Ayy, Azz), the fiber count, area fraction and additional geometric descriptors.

Calibration using X-ray microscopy

Simulation parameters were calibrated using virtual slices extracted from XRM scans of LFAM-processed ABS-GF20 specimens6. The XRM volumes provided reference distributions for:

  • fiber area fraction (19–21%),

  • apparent aspect ratios,

  • in-plane orientation dispersion,

  • fiber count per field of view (approximately 750–800).

These descriptors guided the selection of a, b, ϕ and the area-fraction target in the synthetic generator. Although the simulation does not explicitly model flow dynamics or thermal gradients, its statistical calibration ensures morphological fidelity to real microstructures.

The final dataset comprises 55,092 synthetic images, each with its corresponding orientation tensor and metadata. Images are stored in JPG format, while labels are saved in CSV files. Each dataset entry contains:

  • the binary micrograph (image.png),

  • the tensor components (Axx, Ayy, Azz),

  • the number of fibers,

  • the total fiber area fraction.

The dataset is organised into folders representing different anisotropy levels, enabling balanced sampling and controlled experimental design. The Python code used to generate and annotate the dataset is publicly available in an open-access repository22. The repository enables full reproducibility and supports extensions such as simulating porosity, curved fibers or 3D volumetric data.

Representative XRM images used for the multi-ROI analysis are shown in Fig. 3, where each fiber is treated as an independent region of interest.

Fig. 3.

Fig. 3

XRM images used for multi-ROI analysis, in which each fiber is treated as an independent region of interest (ROI) for quantitative calculations. From left to right, the images correspond to consecutive cross-sections of the same field of view, illustrating the evolution of fiber orientation with depth in the 3D-printed part.

To further support the calibration process, Fig. 4 shows a comparison of an experimentally microscopy image and its processed version, which is used for quantitative analysis. The raw micrograph is segmented to identify individual fibres, which are then approximated as ellipses to extract geometric and orientation descriptors. As can be seen, the synthetic images produced by the proposed methodology closely replicate the main morphological and orientational features of the real microstructure, such as fibre shape, spatial distribution and alignment patterns. This strong agreement demonstrates that the synthetic generation approach effectively captures the key characteristics of the material, thereby supporting the realism and reliability of the published dataset.

Fig. 4.

Fig. 4

Real fibrous microstructure (top left) and its binary segmentation (right)6.

Data Records

The Fully Annotated Synthetic dataset (FAS-DS)21 is available at Zenodo repository 10.5281/zenodo.17856003. The released dataset comprises 55,092 synthetic micrographs of short-fiber reinforced polymer microstructures. Each image is accompanied by a metadata file containing per-fiber geometric descriptors and the analytically computed second-order orientation tensor. All data are provided in open, human-readable formats (PNG for images and CSV for metadata) to ensure long-term accessibility, interoperability and straightforward integration into machine-learning workflows.

Each synthetic micrograph is a binary image of resolution 512 × 384 pixels, where white ellipses represent individual fiber cross-sections on a black background, mimicking thresholded SEM/XRM images. The dataset spans a broad range of anisotropy levels, from nearly isotropic configurations to highly aligned orientations, with fractional anisotropy values covering the full admissible range. In total, the collection contains 5,354,445 individual ellipses, corresponding to an average of 97.2 fibers per image. Global statistics (fiber count, area fraction, anisotropy and geometric descriptors) are summarised in accompanying log files and dataset-level tables.

All image files follow a consistent naming convention that embeds the analytically computed orientation-tensor components, for example:

Axx,Ayy,Azz.jpg

0.0003,0.9970,0.0027.jpg

This convention enables rapid indexing of the dataset and facilitates the construction of supervised learning pipelines without requiring a separate label file. Each image corresponds to an independent draw of geometric parameters and spatial configurations, ensuring broad coverage of the orientation-tensor and morphological parameter spaces.

For every micrograph, a corresponding CSV file stores the complete set of analytical labels derived from the ground-truth geometry of all fibers. These metadata files are organised as one CSV per image and include both global image-level quantities and fiber-resolved descriptors. A typical record contains:

  • image_name: filename of the corresponding JPG micrograph,

  • Axx, Ayy, Azz: second-order orientation-tensor components for the full image,

  • fiber_count: total number of ellipses in the image,

  • area_fraction: fraction (or percentage) of the image domain covered by fibers,

  • per-fiber geometric descriptors such as centroid coordinates (x, y), semi-minor and semi-major axes (a, b, in pixels), in-plane orientation angles phi (degrees), ellipse area and visible intersection area (ellipse_area, intersection_area),

  • packing-related quantities, including target and achieved area (target_area, final_area) and corresponding densities (p_target, p_achieved),

  • generator diagnostics such as total_attempts and num_ellipses, which document convergence and packing efficiency.

All fields follow consistent units and formats to facilitate automated parsing and integration into data-processing pipelines. These metadata files enable full traceability and allow users to recompute orientation tensors, derive additional morphological descriptors or perform customised filtering and subsampling.

The publicly available repository is organised into distinct directories to separate image data, per-image metadata, global logs and source code:

  • /images/: all JPG micrographs (binary masks) representing synthetic fiber microstructures,

  • /csv_metadata/: one CSV file per image containing the complete set of fiber-level and image-level descriptors,

  • /code/: Python scripts and example Jupyter notebooks for loading, visualising and regenerating the dataset.

All records are distributed under an open licence to promote reuse in materials science, image analysis and machine-learning applications.

Repository contents

The publicly available repository includes:

  • the full dataset of synthetic micrographs,

  • analytical labels and per-image metadata in CSV format,

  • global logs and dataset summary files,

  • the Python scripts used to generate and annotate the dataset,

  • example notebooks illustrating how to load, visualise and process the data.

All data files are provided under an open licence to facilitate reuse in materials science, machine learning and computational microscopy research.

Technical Validation

All data generated in this work are released as a fully annotated dataset of synthetic fiber microstructures specifically designed for machine-learning-based orientation estimation. Each microscopy-like image is paired with its analytically computed second-order orientation tensor and extensive per-image metadata. To validate the dataset, we assess four key dimensions: internal consistency, morphological realism, spatial statistics and tensor-space coverage—criteria that collectively determine its suitability for reproducible benchmarking and model development.

Figure 5 shows representative examples of microscopy-like images across three anisotropy regimes: (i) isotropic (low fractional anisotropy, FA), (ii) intermediate anisotropy and (iii) highly aligned microstructures. These examples highlight the range of textures, fibre densities and alignment patterns present in the dataset. All images are generated using a physics-informed simulator that enforces strict non-overlap constraints and provides exact analytical orientation-tensor annotations.

Fig. 5.

Fig. 5

Representative synthetic microstructures drawn from three anisotropy regimes: isotropic (low FA), intermediate anisotropy and highly aligned (high FA). Each image is generated by the physics-informed simulator and annotated with its analytical second-order orientation tensor.

A quantitative assessment of orientation-tensor coverage is shown in Fig. 6. The joint distribution of (Axx, Ayy, Axy) demonstrates that the dataset spans the full continuum between isotropic and strongly aligned configurations. The Axx-Ayy distribution adheres to the expected constraint Axx + Ayy ≈ 1, and microstructures populate both sides of the isotropy line Axx = Ayy without leaving gaps, even in extreme anisotropy regimes. The Axx-Axy map shows a symmetric distribution of positive and negative shear components, indicating balanced sampling of clockwise and counterclockwise fibre orientations. Together, these statistics confirm broad and unbiased coverage of the physically admissible tensor space.

Fig. 6.

Fig. 6

Coverage of the second-order orientation-tensor space (Axx, Ayy, Axy) across the full dataset. The distributions show continuous, balanced sampling from nearly isotropic to highly aligned microstructures and symmetric populations of positive and negative shear components.

Morphological realism is validated in Fig. 7, which reports statistics from 100,000 simulated fibres sampled from the generator. The aspect-ratio distribution (mean 7.59) is positively skewed, reflecting the predominance of elongated fibres characteristic of short-glass-fibre composites such as ABS-GF20. The orientation distribution shows a strong peak near 0∘ due to the imposed alignment bias, while retaining substantial variability-mimicking local flow-induced misalignment. The joint distribution of semi-axes (a, b) confirms tight control over fibre diameter and a broader spread of projected fibre lengths, consistent with physical intersection patterns. The heavy-tailed ellipse-area distribution further captures the coexistence of short transverse cuts and long oblique intersections. These observations demonstrate that the generated fibre geometries are realistic, diverse and physically interpretable.

Fig. 7.

Fig. 7

Morphological statistics for 100,000 simulated fibers, including aspect ratio, in-plane orientation angle, semi-axis distributions and ellipse area. The results confirm realistic geometric variability consistent with short-fiber composite microstructures.

Figure 8 summarises the distribution of fractional anisotropy (FA) across the dataset. The histogram exhibits full coverage of the range [0, 1], capturing isotropic, weakly anisotropic and strongly aligned regimes. The FA-Axx relationship, coloured by Ayy, displays a monotonic trend consistent with the geometric behaviour of aligned fibre populations. This result provides an internal validation of the analytical tensor computation and confirms that the synthetic microstructures behave in accordance with physical expectations.

Fig. 8.

Fig. 8

Global distribution of fractional anisotropy (FA) across the dataset and its relationship with the horizontal tensor component Axx (coloured by Ayy). The plots confirm full FA coverage and the expected coupling between tensor components and anisotropy level.

The generator’s ability to reproduce prescribed packing densities is validated in Fig. 9. The left panel compares target and achieved area fractions for thousands of simulations, revealing a tight clustering around the identity line, ptarget = pachieved. This indicates that the packing routine successfully reaches the desired densities across the full parameter space. The right panel examines the packing deficit Δp = ptarget − pachieved as a function of mean aspect ratio. As expected, highly elongated fibres exhibit slightly larger deficits due to geometric constraints, but deviations remain modest and do not compromise generator robustness.

Fig. 9.

Fig. 9

Performance of the synthetic microstructure generator. (Left) Comparison between target and achieved area fractions across all images, showing strong agreement along the identity line. (Right) Packing deficit as a function of mean aspect ratio, indicating mild decreases in packing efficiency for highly elongated fibres.

At the dataset level, fibre counts vary widely, from fewer than 50 to more than 800 fibres per image, supporting machine-learning models that must generalise across sparse and dense microstructures. Figure 10(a) reports the distribution of fibre counts, while Fig. 10(b) shows the dependence of FA on fibre density. As expected, dense packings restrict alignment and therefore favour lower FA values, whereas highly aligned configurations tend to be sparser. Importantly, examples exist across the full FA range for all densities.

Fig. 10.

Fig. 10

Global statistics of fiber count and anisotropy.

Additional statistical relationships are consolidated in Fig. 11. The correlation matrix reveals strong, physically interpretable couplings between FA and the tensor components Axx and Ayy, while geometric descriptors such as aspect ratio and area fraction show only weak correlations with orientation. This indicates that morphological and orientational parameters are sampled largely independently—an essential property for designing controlled ML experiments and avoiding unintended biases.

Fig. 11.

Fig. 11

Correlation structure among geometric and tensorial descriptors, including FA, mean aspect ratio, area fraction and the analytically computed orientation-tensor components. The patterns confirm physically meaningful relationships without unintended couplings between morphology and orientation.

Spatial realism is assessed in Fig. 12. The centroid-density map reveals a uniform spatial distribution with no clustering or voids, confirming unbiased fibre placement. The nearest-neighbour distance distribution is unimodal and consistent with random non-overlapping packings. Quadrant-wise comparisons of nearest-neighbour distances and local orientation distributions show no detectable boundary artefacts or directional biases. This spatial homogeneity is crucial for machine-learning pipelines, as spurious regularities could bias convolutional filters or impair generalisation to experimental data.

Fig. 12.

Fig. 12

Spatial statistics of representative high-density microstructures. Top-left: Spatial density of fiber centroids. Top-right: Nearest-neighbour distance distribution. Bottom-left: Quadrant-wise comparison of nearest-neighbour distances. Bottom-right: Local orientation distributions. Together, these analyses confirm spatial realism, homogeneity and the absence of boundary artefacts.

Overall, the synthetic dataset exhibits broad, balanced and physically meaningful coverage of the microstructure-anisotropy landscape. The combination of millions of individually parameterised fibers, wide variability in geometric descriptors and uniform sampling of the orientation-tensor space ensures that the dataset is well suited for training machine-learning models, conducting statistical analyses of fiber networks and benchmarking orientation-estimation algorithms under controlled yet realistic conditions.

Usage Notes

The dataset is intended to support research in machine learning, composite characterisation, microstructure modelling and digital manufacturing. Each synthetic micrograph is accompanied by a CSV file containing per-fiber descriptors and the corresponding second-order orientation tensor. Users may directly load the images for computer-vision applications or operate exclusively on metadata files for statistical analysis, benchmarking, or model validation.

The dataset follows a consistent naming convention, where each image and its associated CSV file share an identical filename encoding the ground-truth orientation tensor. This ensures full traceability between visual content and analytical descriptors. The CSV files include both geometric properties of each ellipse (e.g., semi-axes, orientation angle, centroid position, intersection area) and global parameters such as achieved area fraction, number of fibers, and the analytically computed orientation tensor. A complete description of the columns is provided in the accompanying documentation.

Because the images are synthetic and analytically annotated, they contain no segmentation noise, missing fibers, artefacts, or operator bias. This makes the dataset especially suitable for benchmarking supervised learning methods and for generating controlled experiments in which specific aspects of microstructure variability (e.g., anisotropy, density, aspect-ratio distribution) can be isolated and quantified. When training neural networks, researchers are encouraged to apply data augmentation strategies that mimic real microscopy imperfections (e.g., blur, partial occlusion, contrast variations) to enhance robustness.

Users may also regenerate new datasets by modifying the simulation parameters included in the code repository. This allows exploring custom distributions of fiber orientations, aspect ratios, or packing densities, as well as designing targeted training sets for specialised tasks such as uncertainty quantification, domain adaptation, or sensitivity analysis. No restrictions apply to reuse, modification or redistribution of the dataset beyond attribution requirements of the license.

To ensure both accessibility and reproducibility, the synthetic images can also be directly regenerated by executing the Python code publicly available in22. This guarantees full reproducibility of the dataset and enables users to generate additional samples under identical or modified conditions. While previous work6 employed synthetic data primarily as a tool for training a specific deep learning model, the present dataset is explicitly released as a standalone, reusable resource designed for broad applications beyond a single methodological framework. At the same time, the dataset is distributed as a ready-to-use collection of images and metadata files, allowing researchers without programming expertise to directly employ it for training, validation and benchmarking of artificial intelligence models without the need to run the generation code. Advanced users may leverage the open-source implementation to customise the dataset or extend it to new scenarios, thus combining ease of use with full flexibility.

Declaration of generative AI and AI-assisted technologies in the writing process

During the preparation of this work the authors used ChatGPT in order to check grammar and style. After using this tool/service, the authors reviewed and edited the content as needed and take(s) full responsibility for the content of the publication.

Author contributions

All authors contributed to the study conception and design. Data collection and analysis were performed by C.G.G. C.G.G and J.A.G.M collected the samples and performed the experiments. All authors read and approved the final manuscript.

Funding

This research received partial funding from the Government of Spain under the project PID2023-151110OB-I00, and from the Generalitat Valenciana through projects CIPROM/2022/3, CIACIF/2021/286, and CIBEFP/2024. César García-Gascón is supported by a predoctoral contract funded under CIACIF/2021/286 and has also received a mobility grant for a research stay under reference CIBEFP/2024. Javier Bas-Bolufer is funded through the project CIPROM/2022/3. All co-authors are contributors within the framework of the national project PID2023-151110OBI00. Funding for open access charge: CRUE-Universitat Politècnica de València.

Data availability

The dataset described in this study is openly available in the Zenodo repository at 10.5281/zenodo.17856003. The repository contains the complete collection of 55,092 synthetic microstructure images together with their corresponding CSV metadata files. Each image is provided in PNG format, and each CSV file includes per-fiber geometric descriptors as well as the analytically computed second-order orientation tensor. Additional global statistics, summary tables and full documentation are also included to facilitate large-scale analysis and reuse. The dataset is released under an open license to ensure long-term accessibility, interoperability and unrestricted reuse in research, education and industrial applications.

Code availability

All Python scripts used to generate the synthetic microstructures, compute the associated orientation tensors, and export the accompanying metadata are openly available in the project repository: https://github.com/polila6/Fibers. The repository includes the full simulation pipeline—ellipse generation, non-overlap placement algorithms, parameter sampling routines, and analytical tensor computation—as well as utilities for batch dataset creation. Example Jupyter notebooks illustrate data loading, visualisation and parameter customisation, enabling users to reproduce the dataset or generate new variants under modified conditions. The code is released under an open-source license to ensure transparency, reproducibility and ease of reuse.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Hassen, A. A., Roschli, A., Moreno, D., Kunc, V. & Post, B. Review of processing techniques in large-format additive manufacturing of polymers and composites. In: Large Format Additive Manufacturing, pp. 1–27. John Wiley and Sons, Ltd, Hoboken, NJ 10.1002/9783527844807.ch1 (2026).
  • 2.Vanerio, D., Guagliano, M. & Bagherifard, S. Emerging trends in large format additive manufacturing processes and hybrid techniques. Progress in Additive Manufacturing10(4), 1945–1972, 10.1007/s40964-024-00771-1 (2025). [Google Scholar]
  • 3.Bauer, J. & Böhlke, T. Fiber orientation distributions based on planar fiber orientation tensors of fourth order. Mathematics and Mechanics of Solids28, 108128652210939, 10.1177/10812865221093958 (2022). [Google Scholar]
  • 4.Pibulchinda, P., Barocio, E. & Pipes, R. B. Influence of fiber orientation on deformation of additive manufactured composites. Additive Manufacturing49, 102483, 10.1016/j.addma.2021.102483 (2022). [Google Scholar]
  • 5.García-Gascón, C., Bas-Bolufer, J., Castelló-Pedrero, P. & García-Manrique, J. A. Manufacturing-driven ai: synthetic image generation for automated fiber orientation analysis in reinforced polymers. The International Journal of Advanced Manufacturing Technology, 1–13, 10.1007/s00170-025-16831-x (2025).
  • 6.García-Gascón, C., Bas-Bolufer, J., Castelló-Pedrero, P. & Chinesta, F. Deep learning-based fiber orientation analysis for discontinuous composites: Application to material extrusion additive manufacturing. Fibers and Polymers, 1–17, 10.1007/s12221-025-01218-2 (2025).
  • 7.Tucker III, C. L. Fundamentals of Fiber Orientation: Description, Measurement and Prediction. Hanser (2022).
  • 8.Herrmann, T., Niedziela, D., Salimova, D. & Schweiger, T. Predicting the fiber orientation of injection molded components and the geometry influence with neural networks. Journal of Composite Materials58(15), 1801–1811, 10.1177/00219983241248216 (2024). [Google Scholar]
  • 9.Thomas, A. J., Barocio, E. & Pipes, R. B. A machine learning approach to determine the elastic properties of printed fiber-reinforced polymers. Composites Science and Technology220, 109293, 10.1016/j.compscitech.2022.109293 (2022). [Google Scholar]
  • 10.Kalimullah, N. M., Ojha, S., Radzieński, M., Shelke, A. & Habib, A. A probabilistic machine learning framework for stiffness tensor estimation of carbon composite laminate. Mechanical Systems and Signal Processing223(1), 111872, 10.1016/j.ymssp.2024.111872 (2025). [Google Scholar]
  • 11.Wang, Y., Wang, K. & Zhang, C. Applications of artificial intelligence/machine learning to high-performance composites. Composites Part B: Engineering285, 111740, 10.1016/j.compositesb.2024.111740 (2024). [Google Scholar]
  • 12.Agarwal, M., Pasupathy, P., Wu, X., Recchia, S.S. & Pelegri, A.A. Multiscale computational and artificial intelligence models of linear and nonlinear composites: A review. Small Science, 2300185, 10.1002/smsc.202300185 (2024). [DOI] [PMC free article] [PubMed]
  • 13.Li, J. et al. An efficient deep learning-based topology optimization method for continuous fiber composite structure. Acta Mechanica Sinica41(4), 424207, 10.1007/s10409-024-24207-x (2025). [Google Scholar]
  • 14.Ng, W. L., Goh, G. L., Goh, G. D., Ten, J. S. J. & Yeong, W. Y. Progress and opportunities for machine learning in materials and processes of additive manufacturing. Advanced Materials36(34), 2310006, 10.1002/adma.202310006 (2024). [DOI] [PubMed] [Google Scholar]
  • 15.Kim, D., Choi, M. & Um, J. Digital twin for autonomous collaborative robot by using synthetic data and reinforcement learning. Robotics and Computer-Integrated Manufacturing85, 102632, 10.1016/j.rcim.2023.102632 (2024). [Google Scholar]
  • 16.Lopes, P. V. et al. Synthetic data generation for digital twins: enabling production systems analysis in the absence of data. International Journal of Computer Integrated Manufacturing37(10–11), 1252–1269, 10.1080/0951192X.2024.2322981 (2024). [Google Scholar]
  • 17.Koptelov, A., Thompson, A., Hallett, S. R. & El Said, B. A deep learning approach for predicting the architecture of 3d textile fabrics. Materials and Design239, 112803, 10.1016/j.matdes.2024.112803 (2024). [Google Scholar]
  • 18.Goyal, M. & Mahmoud, Q.H. A systematic review of synthetic data generation techniques using generative ai. Electronics 13(17), 10.3390/electronics13173509 (2024).
  • 19.Hao, S. et al. Synthetic data in ai: Challenges, applications, and ethical implications arXiv:2401.01629 (2024).
  • 20.Ogierman, W. Influence of reconstruction uncertainty in fiber orientation distribution on the effective elastic constants of composites reinforced with discontinuous fibers: a monte carlo simulation study. Multiscale and Multidisciplinary Modeling, Experiments and Design7(5), 4791–4805, 10.1007/s41939-024-00494-4 (2024). [Google Scholar]
  • 21.García Gascón, C., Castelló Pedrero, P., Bas Bolufer, J. & García Manrique, J.A. A fully annotated synthetic dataset of fiber microstructures for machine learning-based orientation estimation 10.5281/zenodo.17856003 (2025).
  • 22.Synthetic Fiber Image Generator. https://github.com/polila6/Fibers. Accessed: 2025-05-28 (2025).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The dataset described in this study is openly available in the Zenodo repository at 10.5281/zenodo.17856003. The repository contains the complete collection of 55,092 synthetic microstructure images together with their corresponding CSV metadata files. Each image is provided in PNG format, and each CSV file includes per-fiber geometric descriptors as well as the analytically computed second-order orientation tensor. Additional global statistics, summary tables and full documentation are also included to facilitate large-scale analysis and reuse. The dataset is released under an open license to ensure long-term accessibility, interoperability and unrestricted reuse in research, education and industrial applications.

All Python scripts used to generate the synthetic microstructures, compute the associated orientation tensors, and export the accompanying metadata are openly available in the project repository: https://github.com/polila6/Fibers. The repository includes the full simulation pipeline—ellipse generation, non-overlap placement algorithms, parameter sampling routines, and analytical tensor computation—as well as utilities for batch dataset creation. Example Jupyter notebooks illustrate data loading, visualisation and parameter customisation, enabling users to reproduce the dataset or generate new variants under modified conditions. The code is released under an open-source license to ensure transparency, reproducibility and ease of reuse.


Articles from Scientific Data are provided here courtesy of Nature Publishing Group

RESOURCES