Adaptive neurofuzzy inference system (ANFIS) is investigated to optimize the configuration of anode shape in plasma focus devices to achieve the highest X-ray yield. Variables of discharge voltage, filling gas pressure, and angles of anode slopes (Φ1 and Φ2) are chosen as input parameters, while the output is designated to be the radiated hard X ray intensity. The trained ANFIS has achieved good agreement with the experimental results and has mean relative error percentages (MRE%) 1.12% and 2.18% for training and testing data, respectively.The study demonstrates that adaptive neurofuzzy inference system is useful, reliable, and low-cost way to the highest X-ray yield and corresponding anode configuration in plasma focus devices.