Maintainability can be measured by Maintainability Index ( MI) which a software metric which measures how maintainable (easy to support and change) the source code is.
MI is dependent on
Lines Of Code, Cyclomatic Complexity and Halstead volume.
Dear Bhawana Mathur, you may use K-means algorithm for maintainability prediction, but before applying this clustering, you should define the range of MI. Because K-Means always give district value not continuous value.
Dear Dinesh, we can't use V, G, LOC, CM as feature for clustering, because you are using these feature to calculate MI index based on halsteded equation. You may consider some other metrics such as WMC, DIT, NOC, CBO etc as features for prediction.