Cruise machinists operate in dynamic and physically demanding environments where improper posture can lead to musculoskeletal disorders, adversely affecting their health and work efficiency. Current ergonomic assessments in such settings are often generic and not tailored to the unique challenges of maritime operations. This paper presents a novel application of artificial intelligence tools for real-time posture estimation specifically designed for cruise machinists. The primary aim is to enhance occupational health and safety by providing precise, real-time feedback on ergonomic practices. We developed a dataset by capturing video recordings of cruise machinists at work, which were processed to extract skeletal outlines using advanced computer vision techniques. This dataset was used to train deep neural networks, optimizing them for accuracy in diverse and constrained shipboard environments. The networks were tested across various computational platforms to ensure robustness and adaptability. The AI model demonstrated high efficacy in recognizing both correct and incorrect postures under real-world conditions aboard ships. The system significantly outperformed traditional ergonomic assessment tools in terms of speed, accuracy, and the ability to provide instant feedback. The findings suggest that AI-enhanced ergonomic assessments could be a transformative approach for occupational health across various industries.