Flax fiber/shape memory epoxy hygromorph composites are a promising area of research in the field of biocomposites. This paper focuses on the tensile modulus of these composites and investigates how it is affected by factors such as fiber orientation (0° and 90°), temperature (20 °C, 40 °C, 60 °C, 80 °C, and 100 °C), and humidity (50% and fully immersed) conditions. Machine learning algorithms were utilized to predict the tensile modulus based on non-linearly dependent initial variables. Both decision tree (DT) and random forest (RF) algorithms were employed to analyze the data, and the results showed high coefficient of determination R2 values of 0.94 and 0.95, respectively. These findings demonstrate the effectiveness of machine learning in analyzing large datasets of mechanical properties in biocomposites. Moreover, the study revealed that the orientation of the flax fibers had the greatest impact on the tensile modulus value (with feature importance of 0.598 and 0.605 for the DT and RF models, respectively), indicating that it is a crucial factor to consider when designing these materials.