## 1 Introduction  
In recent years, the production of biofuels has increased. One of them, biohydrogen, is produced from biomass and organic waste through biological or thermochemical processes. This renewable fuel is an alternative to fossil fuels and reduces greenhouse gases. Biohydrogen is extracted from renewable resources instead of natural gas. These can be waste generated by agriculture or industry [1]. Biohydrogen production faces multiple challenges in its large-scale adoption as a clean energy source. One of them is involved in how biofuel is obtained, one way is electrolysis, which is very expensive [2]. Other ways of production are using industrial water waste from beverage, chemical, distillery, effluent, palm oil, and sugar industries [3; 4; 5]; employing microorganisms, such as dark fermentative bacteria, photosynthetic bacteria, and algae, to convert organic substrates to hydrogen gas under anaerobic conditions [6; 7; 8]. Biohydrogen production includes technologies such as dark fermentation, where anaerobic bacteria degrade organic matter to generate hydrogen, albeit with impurities such as CO\({}_{2}\) and CH\({}_{4}\)[8]. Photorefmentation uses photosynthetic bacteria and sunlight to convert organic acids to hydrogen, complementing dark fermentation [9]. Microbial electrolysis uses microorganisms in fuel cells to produce hydrogen from organic matter, with greater energy efficiency [10]. Artificial photosynthesis mimics natural processes using catalysts and sunlight to separate water into hydrogen and oxygen [11]. Finally, biomass gasification transforms biomass into syngas, which is then reformed to obtain hydrogen, although it requires purification [12]. One of the problems with these technologies is the purity of the product; for this, the pressure swing adsorption (PSA) plant can help us achieve the purity required for international standards, which is the 99% purity of the biohydrogen [13; 14; 15]. The PSA plant is a typical cyclic process, which means a complex behavior in which many columns are interconnected and operated at different pressures and temperatures according to a specific sequence, with the objective of separate gases and purification [16]. Widely used in many processes to separate gases or to purify a gas mixture, the PSA plant is a robust, flexible and commercially viable separation technology [17; 18; 19]. Some of the impurities in hydrogen production are carbon dioxide (CO\({}_{2}\)), methane (CH\({}_{4}\)) and other contaminants, which require purification before their use in fuel cells or industrial applications [8; 11]. Among the various gas separation technologies, PSA has emerged as a highly effective method for purifying hydrogen from gas mixtures. PSA operates on the principle of selective adsorption of impurities under high pressure, followed by desorption at lower pressures, enabling the recovery of high-purity hydrogen [20; 21; 22; 23]. Furthermore, the cost of producing biohydrogen using the PSA plant may be less expensive than that obtained with other methods. All of this depends on the number of columns and the type of absorbent. In the case of using warm gas separation technology with a zinc oxide sorbent, as demonstrated by [PERSON] et al. [24], the cost of electricity can reach 127.2 USD/MWh. When coupled with a vacuum PSA unit, is approximately 5 EUR/kg of hydrogen [25]. This highlights the importance of selecting the right technology to optimize costs in hydrogen production using the PSA plant or other technologies. Current research shows the trend of using artificial intelligence methods to optimize and produce biofuels using the PSA process [26; 27; 28; 29]. Deep learning was used to regulate and control the purity of biofuel products [30; 31], as well as identify the optimal condition to produce biohydrogen or optimize the process [32; 33]. Machine learning can be used to develop new tools to help the production of biofuels.