The ODTs optimized using RSM and Python demonstrated excellent disintegration performance, leading to a decrease in the time the drug exists in solid form in the oral cavity. This improvement in disintegration time reduced the difficulty of swallowing for patients and enhanced medication compliance, while still ensuring that ODTs prepared by DC had sufficient mechanical strength to meet storage and transportation requirements.