Electric discharge machining (EDM) is a manufacturing process that uses electrical discharges to remove material from a workpiece. In EDM, a tool-electrode is brought close to the workpiece and an electric voltage is applied, causing sparks to form between the electrodes that erode away material. There are two main types of EDM: wire EDM and sinker EDM. Wire EDM uses a thin wire as the tool to cut intricate shapes, while sinker EDM uses a shaped electrode that is submerged in dielectric fluid to machine complex 3D cavities in the workpiece. EDM can machine very hard materials, create complex geometries, and achieve high precision and surface finishes. However,