A digital twin is a real time digital replica of a physical device. Manufacturer are embedding digital twin in their device creating an embedded digital twin. Proven advantages are improved quality, earlier fault detection and better feedback on product usage to product designer. The presentation describe how we created an embedded digital twin using real-time data acquisition, physical modeling and machine learning algorithm.