The aim of this article is to study the degradation of a composite material under static pressure. The high pressure condition is similar to the one encountered inside hydrogen tanks. Damage modeling was used to evaluate the behavior of hydrogen tanks to high pressure. A practical approach, coupling a finite element method (FEM) simulation and machine learning (ML) algorithm, is suggested. The representative volume element (RVE) was used in association with a choice of a behavior law and a damage law as an input data. Algorithms for ML classification such as K‐nearest neighbors (k‐NN) and a special k‐NN with a dynamic time warping metric were used. The hierarchical clustering through dendrograms visualizations allowed to exhibit the impact of composite parameters in relation to fiber, matrix properties and fiber volume fraction on the strain degradation under external static pressure. Continuing this, the optimum RVE which shows a low degradation value will be exhibited.