WSN has been widely used in many sensitive applications and it also has novel possibilities for laying the groundwork for using ubiquitous and pervasive computing, but it has also presented a number of issues and challenges, such as a dynamic network topology and a congestion problem that hinders not only network bandwidth utilisation but also performance. Proficient rate control and fair bandwidth allocation (PRC-FBA) was one of the schemes in the literature to solve issues of WSN by combining the ideas of traffic class priority and bandwidth fairness. However, because of the nature of WSN, the energy of nodes near the sink node is diminished when packets move from lowly congested nodes to highly congested nodes. This paper proposes a proficient rate control with data aggregation and fair bandwidth allocation (PRCDA-FBA) to address this problem by using an effective data aggregation approach for reducing the number of transmissions. In the proposed method, fair bandwidth allocation is simplified by an artificial intelligence-based bandwidth prediction method. Thus, PRCDA-FBA increases the network's durability. Despite having lower bandwidth utilizations, energy-critical sensor nodes require careful power management to avoid being eavesdropped upon. Along with data aggregation and fair bandwidth allocation, the effects of overhearing packets by energy-critical nodes are mitigated through network-wide route adjustments based on the energy level of nodes. Thus, in the proposed method, data aggregation is scheduled based on the availability of bandwidth, energy, queue size and packet priority. The proposed method is named as energy-aware proficient rate control with data aggregation and fair bandwidth allocation (EPRCDA-FBA). The proposed algorithms have been deployed on the Network Simulator 2.35 platform, and a comparative analysis has been performed using several metrics, including throughput, packet loss, End-to-End (E2E) delay and energy utilization. The EPRCDA-FBA method archives highest throughput which is 9.17%, 5.48%, 4.68% and 2.45% higher than congestion control strategies like discrete-time sliding mode congestion controller (DSMC), weighted priority based fair queue gradient rate control (WPFQGRC), PRC-FBA and rate adjustment-based congestion control (RACC).