Submitted:
05 February 2025
Posted:
06 February 2025
You are already at the latest version
Abstract
This paper explores how generative AI can enhance the modeling and optimization of maintenance policies by incorporating real-time problem-solving techniques into structured maintenance frameworks. Maintenance policies, evolving from simple calendar-dependent or age-dependent preventive maintenance strategies to more complex approaches involving partial system replacement, minimal repairs or imperfect maintenance, have traditionally been optimized based on minimizing costs, maximizing reliability, and ensuring operational continuity. In this work, we leverage AI models to simulate and analyze the implementation and overlap of different maintenance strategies to an industrial asset, including the combined use of different preventive (total, partial replacement) and corrective actions (minimal repair, normal repairs), with perfect of imperfect maintenance results. Integrating generative AI with well-established maintenance policies and optimization criteria, this paper tries to demonstrate how AI-assisted tools can model maintenance scenarios dynamically, learning from predefined strategies and improving decision-making in real-time. Python-based simulations are employed to validate the approach, showcasing the benefits of using AI to enhance the flexibility and efficiency of maintenance policies. The results highlight the potential for AI to revolutionize maintenance optimization, particularly in single-unit systems, and lay the groundwork for future studies in multi-unit systems.
Keywords:
1. Introduction
- Understand and re-formulate traditional maintenance models: Instead of simply optimizing predefined models, generative AI can adapt, restructure, and improve models based on real-time data or shifting operational needs [14].
- Combine multiple policies dynamically: It offers a unique capability to overlap various maintenance strategies (e.g., preventive overhauls, corrective interventions, minimal repairs, imperfect maintenance, etc.), creating hybrid strategies that are more adaptable to industrial complexities [3].
- Offer enhanced interaction with optimization models: By enabling users to interact with the AI, it allows for adjustments not just in policy but also in the visualization of outcomes, the re-formulation of the model in finite time periods, and other exploratory tasks that go beyond traditional optimization techniques [3].
- Real-time adaptability: The AI’s ability to learn and refine strategies dynamically allows for real-time problem-solving in maintenance operations, unlike static models that require frequent manual updates [14].
2. The Maintenance Policy Concept
- The age-dependent preventive maintenance (PM) policy for a single unit system is a common approach where a unit is replaced at a predetermined age T or upon failure, whichever occurs first [2]. This policy has evolved to include concepts like minimal, imperfect or perfect repair for CMs [30], or imperfect maintenance for PMs [30,15,7] leading to various extensions and modifications (failure limit policy, failure cost limit policy, etc.).
- A very useful extension of previous policies was the partial replacement policy [16], that is based on the idea that in most cases where a system fails, a full replacement of the system is not necessary to restore it to proper operating conditions. Instead, a partial preventive replacement (PPR) of some components is sufficient. PPRs are interventions, many times named overhauls in industry, performed when the system reaches a certain age, which restore the system’s failure rate to its initial level. After a certain number of partial preventive replacements (to be determined), the accumulated costs of these interventions may exceed the cost of performing a total replacement of the system.
- Random age-dependent maintenance policy addresses scenarios where it is impractical to maintain a unit on a strictly periodic basis. Instead, maintenance is performed at random intervals, taking advantage of available free time [4,28]. In this context, a unit’s age is measured from the time of the last replacement, and minimal repairs are undertaken upon failure, leading to a periodic replacement with minimal repair at failure policy.
- Recently, [19] introduce an imperfect maintenance policy that defines a reliability improvement factor according to the intervention level of maintenance actions. This assumes the intervention level to be independent of the time between consecutive maintenance actions, removing the common constraint that longer intervals necessitate higher intervention levels. Additionally, it optimizes not only the number of maintenance activities, their timing, but also the intervention levels of maintenance activities
- Selective Maintenance: Maintenance prioritizes specific units based on their criticality or condition to optimize overall system reliability [31].
3. Criteria for Maintenance Policies Optimization
4. The Problem Statement
- Prompt 1. Fitting the failure data to a Weibull distribution using the MLE.

- Blue: Histogram and density of failure data.
- Green: Histogram and density of censored data.
- Red Line: Reliability function.
- Orange Dashed Line: Cumulative distribution function.
- Shape (β): 3.38
- Scale (η ): 18.50

5. Optimization using Total Replacement Policies
- Prompt 2. Properly formulating the maintenance optimization problem.
- Prompt 3. Ordering to solve the maintenance optimization problem.

- Prompt 4. Gaining knowledge to face potential failure scenarios.
- Optimal tp vs. β: This graph shows how the optimal preventive maintenance interval (tp) changes with different values of β for both calendar-based and operating time-based policies. Both policies show a decrease in optimal tp as β increases, reflecting the higher failure rates associated with higher β values.
- Minimum CTE vs. β: This graph illustrates how the minimum expected total maintenance cost (CTE) varies with different values of β. The operating time-based policy consistently results in a lower minimum CTE compared to the calendar-based policy across the range of β values.
- Prompt 5. Gaining more knowledge to face potential cost scenarios.
6. Optimization using Partial Replacement Policies
- Prompt 6. Transferring principles of partial replacement policy.
- [1] Models with partial preventive replacements (preventive overhauls) and minimal repairs; and
- [2] Models with partial preventive replacements (preventive overhauls) and corrective interventions (corrective overhauls).
- We consider a system that undergoes partial preventive replacements (SPPs or overhauls) and minimal repairs.
- A total system replacement (ST) occurs after k−1 overhauls.
- Each overhaul ii takes place after Ti calendar time, with ii ranging from 1 to k−1.
- In case of failure within the i-th interval, a minimal repair is performed, returning the system to an “as bad as old” condition (i.e., the failure rate remains unchanged after the repair).
- After an SPP or ST, the system is restored to an “as good as new” condition.
- k is the total number of intervals, including the interval after the last overhaul leading to the total replacement.
- Cspp is the cost of each partial preventive replacement (overhaul).
- Cst is the cost of total system replacement.
- Crm is the cost of minimal repairs.
- N(Ti) is the number of minimal repairs in the ii-th interval.
- Ti is the calendar time length of the i-th interval.
- Failure Rate and Minimal Repairs:
- Let λi(t) denote the failure rate of the system during the ii-th interval.
- N(Ti) is dependent on λi(t), which changes after each overhaul.
- Define Failure Rate λi(t): Determine how λi(t) evolves within each interval Ti. This may involve fitting a failure rate model for each interval based on historical data or assumptions.
- Calculate N(Ti): Integrate the failure rate over each interval to find the expected number of minimal repairs:Formulate CTE Expression: Substitute the values of N(Ti) and the corresponding costs into the expression to obtain the expected total maintenance cost.
- Optimize T1, …,Tk: Optimize the intervals to minimize the total expected maintenance cost CTE(k, T1, …, Tk).
- Cost Parameters: Ensure accurate estimation of Cspp, Cst, and Crm.
- Failure Rate Modeling: Accurate modeling of λi(t) for each interval is crucial for precise calculation of N(Ti).
- Optimization Method: Choose an appropriate optimization method (e.g., gradient descent, genetic algorithms) to minimize CTE(k, T1, …, Tk).
- Prompt 7. Outputs of the first partial replacement policy cost calculation

- Prompt 8. Transferring principles of the second partial replacement policy.
- Preventive Overhauls (SPP): These are scheduled preventive replacements that occur after a certain time interval Ti. After each preventive overhaul, the system is considered “as good as new.”
- Corrective Overhauls (IC): These occur when a failure happens that necessitates a complete overhaul before the next scheduled preventive overhaul. The cost of an IC includes the cost of a preventive overhaul plus an additional cost, represented as Cic = Cspp + Ceic After an IC, the system is also considered “as good as new.”
- The probability of requiring a corrective overhaul (IC) is modeled by a Weibull distribution with parameters βic and ηic. This distribution will have a lower failure rate compared to minimal repairs.
- The cost of each corrective overhaul (IC) is Cic, which includes the standard overhaul cost CsppCspp and an additional cost Ceic.
- Reliability Function (Survival Probability) : This indicates the probability that the system does not fail by time tt in the i-th interval.
- Probability of Corrective Overhaul : The probability that a corrective overhaul is needed by time t in the i-th interval.
- Integral of Time-Weighted Density: This represents the expected value of time until failure for each interval.
- : Total cost of k−1 preventive overhauls.
- : Cost of the final total system replacement after the last preventive overhaul.
- : Total additional cost due to corrective overhauls.
- : Expected time without failure for the i-th interval.
- : Expected time to failure weighted by the density function for the ii-th interval.
7. AI Designed Model of Hybrid Policies Optimization
- Prompt 9. Designing the prompt to combine models
- Preventive Overhauls (SPP): These are scheduled overhauls that are performed after a certain interval of time. Ti, leaving the system “as new”. Costo f each SPP is Cspp.
- Corrective Overhauls (CI): These are unscheduled interventions due to serious failures that require a complete repair before the next scheduled SPP. Costo f an IC is Cic=Cspp+Ceic , with Ceic named additional cost. The probability of the occurrence of a CI is modeled by a Weibull distribution with parameters βic and ηic.
- Minimal Repairs: These repairs occur when minor failures occur, returning the system to an “as bad as before” state without altering the failure rate. The cost of each minimal repair is Crm. The number of minimal repairs is N(Ti) is determined by integrating the failure rate over the interval adjusted by the expected duration.
- The reliability function for IC Ric(t), which represents the probability that a corrective intervention does not occur until time t.
- The cumulative probability of failure for IC Fic(t), which is the probability that a corrective intervention occurs in the interval.
- The time-weighted density integral for CI Mi(Ti), based on the probability density of CIs.
- The number of minimum repairs N(Ti), which considers the expected duration of the interval, calculated as TiRic(Ti)+Mi(Ti).
- Prompt 10. Validating hybrid model formulation corrections
- Reliability Function for CI Ric(t): represents the probability that a corrective intervention does not occur until time t.
- Time-weighted density integral for IC Mi(Ti): Based on the probability density function for corrective interventions fic(t): Number of Minimum Repairs Ni(Ti): Calculated using Rrm (Ti) instead of Ric(Ti) and the expected duration of the interval, considering that minimum repairs can occur before a corrective intervention (CI) is performed: . Where λrm(t) is the failure rate of the minimum repairs.
- Expected Total Cost (CTE):
8. AI Designed Discrete Event Simulation Model for Finite Time Period Analysis of the Previous Problem
- Prompt 11. Simulating the finite time problem for potential optimization

9. The AI Generated Code per Case Study: Considerations
- Effectiveness: accuracy and completeness with which users achieve specified goals.
- Efficiency: resources expended in relation to the accuracy and completeness with which users achieve goals.
- Satisfaction: degree to which user needs are satisfied when a product or system is used in a specified context of use.
- Freedom from risk: degree to which a product or system mitigates the potential risk to economic status, human life, health, or the environment.
- Context coverage: degree to which a product or system can be used with effectiveness, efficiency, freedom from risk and satisfaction in both specified contexts of use and in contexts beyond those initially explicitly identified.

9.1. Quality in Use assessment
- Effectiveness: Concerning goal’s satisfaction, the chatbot is proven useful when it comes to assessing simple tasks. It has to be noted that the model might usually behave in a narrow-minded way. For example, when defining functions, parameters such as alpha or costs won’t be included as function inputs, but as simple constants, unless explicitly told to do so.
- Efficiency: The time consumption of the Chatbot’s processing is negligible. However, there are some further issues that need to be addressed when it comes to resource consumption. First of all, it is important to consider that many companies will not be able to/want to upload sensitive data to an external cloud-based data system such as OpenAI’s ChatGPT platform. Running extensive AI models might require high-end hardware, posing an elevated cost that might not be so efficient if this is the only task it will be used for. Also, it is necessary to provide very specific and detailed instructions, and colloquial speech should be avoided at any costs – this usually leads to the need of thoroughly review the written prompts. If personnel with decent programming skills is available, the same task could be achieved as fast as with the Chatbot but avoiding any extensive hardware requirements and the use of the AI itself, as the task is fairly simple.
- Satisfaction. Personal user satisfaction has been evaluated from two different Points of View: A skilled programmer perspective and a non-skilled programming one.
- Freedom from risk: As stated before, the chatbot might sometimes commit errors that can only be checked by looking at the source code that the chatbot generated and used to accomplish the task. This means that a user unexperienced in coding might consider as valid wrong solutions, posing a potential risk. This also leads to an ironical situation where a programmer might be requested to check the source code and carry out necessary corrections but could have been tasked before to develop the model from scratch, being this potentially more efficient.
- Context coverage: Chatbots like ChatGPT allow the user to interact using different languages – this entails that language barriers might be easily surpassed when the user’s mother tongue is supported. Also, it is possible to generate models dynamically and updating input data through interaction with the chatbot. However, it is proven that at certain cases the chatbot might give wrong answers, leading to potential risks. Also, the nuances defining the barrier between a good or a bad answer might be unclear, therefore the context coverage might be considered as unclear, or null in the worst case, based on the inability of potential users to judge correctness of answers.
10. Conclusions Regarding the Use of AI For Modelling Policies
| Advantages | Disadvantages |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11. Conclusions Regarding the Code Generated
| Pros | Cons |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Acknowledgments
References
- Anders, G. J., & Sugier, J. (2006). Risk assessment tool for maintenance selection. Proceedings of International Conference on Dependability of Computer Systems, DepCoS-RELCOMEX 2006. [CrossRef]
- Barlow, R., & Hunter, L. (1960). Optimum Preventive Maintenance Policies. Operations Research, 8(1). [CrossRef]
- Ćelić, J., Bronzin, T., Horvat, M., Jović, A., Stipić, A., Prole, B., Maričević, M., Pavlović, I., Pap, K., Mikota, M., & Jelača, N. (2024). Generative AI in E-maintenance: Myth or Reality? International Journal of Advanced Computer Science and Applications, 15(2), 45-52.
- Chang, C. C. (2014). Optimum preventive maintenance policies for systems subject to random working times, replacement, and minimal repair. Computers and Industrial Engineering, 67(1). [CrossRef]
- Chareonsuk, C., Nagarur, N., & Tabucanon, M. T. (1997). A multicriteria approach to the selection of preventive maintenance intervals. International Journal of Production Economics, 49(1). [CrossRef]
- Cho, D. I., & Parlar, M. (1991). A survey of maintenance models for multi-unit systems A Survey of Preventive Maintenance Models for Stochastically Deteriorating Single-Unit Systems, by. European Journal of Operational Research, 51(1). [CrossRef]
- Coster, M., & Liu, Q. (2015). An Imperfect Preventive Maintenance Policy Considering Reliability Limit. Journal of Engineering Research and Applications, 5(2).
- Ding, S. H., & Kamaruddin, S. (2015). Maintenance policy optimization—literature review and directions. International Journal of Advanced Manufacturing Technology, Vol. 76. [CrossRef]
- Haridasan, P. K., & Kumar, V. (2024). Generative AI in Manufacturing: A Review of Innovations, Challenges, and Future Prospects. Journal of Artificial Intelligence and Machine Learning, 2(2), 1-15.
- Jafari, L., Naderkhani, F., & Makis, V. (2018). Joint optimization of maintenance policy and inspection interval for a multi-unit series system using proportional hazards model. Journal of the Operational Research Society, 69(1). [CrossRef]
- Journal, E., Pham, H., & Wang, H. (1996). EUROPEAN JOURNAL OF OPERATIONAL RESEARCH Imperfect maintenance. In Operational Research (Vol. 94).
- Laggoune, R., Chateauneuf, A., & Aissani, D. (2009). Opportunistic policy for optimal preventive maintenance of a multi-component system in continuous operating units. Computers and Chemical Engineering, 33(9). [CrossRef]
- Marais, K. B., & Saleh, J. H. (2009). System value trajectories, maintenance, and its present value. Safety, Reliability and Risk Analysis: Theory, Methods and Applications - Proceedings of the Joint ESREL and SRA-Europe Conference, 1. [CrossRef]
- Mohapatra, A. (2024). Generative AI for Predictive Maintenance: Predicting Equipment Failures and Optimizing Maintenance Schedules Using AI. International Journal of Scientific Research and Management (IJSRM), 12(11), 1648-1672.
- Nakagawa, T. (1979). Optimum policies when preventive maintenance is imperfect. IEEE Transactions on Reliability, R-28(4). [CrossRef]
- Nguyen, D. G., & Murthy, D. N. P. (1981). OPTIMAL PREVENTIVE MAINTENANCE POLICIES FOR REPAIRABLE SYSTEMS. Operations Research, 29(6). [CrossRef]
- OpenAI. (2024). Hello GPT-4o. Retrieved from https://openai.com/index/hello-gpt-4o/.
- Pereira, D. S., Bezerra, L. F. V., Nunes, J. S., Barroca Filho, I. M., & Lopes, F. A. S. (2023). Performance Efficiency Evaluation based on ISO/IEC 25010:2011 applied to a Case Study on Load Balance and Resilient. [CrossRef]
- Pereira, F. H., Melani, A. H. de A., Kashiwagi, F. N., Rosa, T. G. da, Santos, U. S. dos, & Souza, G. F. M. de. (2023). Imperfect Preventive Maintenance Optimization with Variable Age Reduction Factor and Independent Intervention Level. Applied Sciences (Switzerland), 13(18). [CrossRef]
- Pérez, F., & Granger, B. E. (2007). IPython: A System for Interactive Scientific Computing. Computing in Science & Engineering, 9(3), 21–29. [CrossRef]
- Pierskalla, W. P., & Voelker, J. A. (1976). A survey of maintenance models: The control and surveillance of deteriorating systems. Naval Research Logistics Quarterly, 23(3). [CrossRef]
- Prabowo, W. A. (2024). Developing Compliant Audit Information System for Information Security Index: A Study on Enhancing Institutional and Organizational Audits Using Web-based Technology and ISO 25010:2011 Total Quality of Use Evaluation. International Journal on Informatics Visualization, 8(1). [CrossRef]
- Samrout, M., Châtelet, E., Kouta, R., & Chebbo, N. (2009). Optimization of maintenance policy using the proportional hazard model. Reliability Engineering and System Safety, 94(1). [CrossRef]
- Santos, A. C. de J., Cavalcante, C. A. V., & Wu, S. (2023). Maintenance policies and models: A bibliometric and literature review of strategies for reuse and remanufacturing. Reliability Engineering and System Safety, Vol. 231. [CrossRef]
- Shafiee, M., & Finkelstein, M. (2015). An optimal age-based group maintenance policy for multi-unit degrading systems. Reliability Engineering and System Safety, 134. [CrossRef]
- Sharma, A., Yadava, G. S., & Deshmukh, S. G. (2011). A literature review and future perspectives on maintenance optimization. Journal of Quality in Maintenance Engineering, Vol. 17. [CrossRef]
- Tian, Z., & Liao, H. (2011). Condition based maintenance optimization for multi-component systems using proportional hazards model. Reliability Engineering and System Safety, 96(5). [CrossRef]
- Valdez-Flores, C., & Feldman, R. M. (1989). A survey of preventive maintenance models for stochastically deteriorating single-unit systems. Naval Research Logistics (NRL). [CrossRef]
- Wakiru, J., Pintelon, L., Muchiri, P. N., Chemweno, P. K., & Mburu, S. (2020). Towards an innovative lubricant condition monitoring strategy for maintenance of ageing multi-unit systems. Reliability Engineering and System Safety, 204. [CrossRef]
- Wang, H., & Pham, H. (1996). Optimal maintenance policies for several imperfect repair models. International Journal of Systems Science, 27(6). [CrossRef]
- Xu, Q. Z., Guo, L. M., Wang, N., & Fei, R. (2015). Recent advances in selective maintenance from 1998 to 2014. Journal of Donghua University (English Edition), 32(6).




Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).