Most filters which include pre and post-filters like sediment and activated carbon filters should be changed at least once every six months.
The membranes should be changed every two years. Most water purifiers these days come with alerts and indicators like filter change alerts and UV fail alarm that notifies you when it is time to change the filter and cartridges.