Osteoarthritis (OA) is one of the most common joint disorder which is debility seen in elderly & overweight people which affects the cartilage of bone joints like knee, feet, hip, and spine. In OA usually, cartilage is ruptured due to the kneading of bones with each other which will end up causing severe pain. In this condition, it is necessary to analyze the severity of OA which involves various medical imaging and clinical examination techniques. In this paper, automated analysis and detection of OA are proposed by calculating the thickness of cartilage which also helps to effectively detect and analyze the abnormalities in bone structures. Where we have considered various knee X-ray images. Initially, preprocessing and noise removal is performed. Further by implementing Particle Swarm Optimization (PSO) segmentation and thresholding, the specified knee region is cropped and analyzed to calculate the thickness of cartilage to detect the presence of OA.