Hydromagnetic natural convection induced in a square cavity filled with a non-Newtonian fluid and confining a heating rhombic solid block submitted to multiple subdivisions is numerically analyzed. The heating blocks are maintained isothermal at \({T}_{H}\) and the cavity is cooled through its vertical walls at a constant temperature \({T}_{C}\) ( \({T}_{H}>{T}_{C}\) ). The multiple-relaxation-time lattice-Boltzmann-method (MRT-LBM) is used to simulate the momentum and energy equations by using D2Q9 and D2Q5 discretization schemes, respectively. The effect of the Rayleigh number ( \({10}^{4}\le Ra\le {10}^{6}\) ), the Hartmann number ( \(0\le Ha\le 50\) ), the power-law index ( \(0.7\le n\le 1.3\) ) and the fragmentation of the initial block ( \(Nb=1\) , \(4\) and \(16\) ) on the fluid flow and heat transfer is examined. An adaptive Artificial Neural Networks (ANN) approach is proposed, trained and tested based on the numerical results provided by the MRT-LBM. The results obtained show that the variations of \(Ha\) , \(Ra\) , \(Nb\) and the power-law index significantly influence the heat transfer rate and the flow intensity in the system considered. More specifically, heat transfer rate is improved by increasing the Rayleigh number and the number of subdivisions. For \(Ra={10}^{6}\) , increasing \(Nb\) from 1 to 16 enhances heat transfer by up to 55.8%, depending on fluid rheology, whereas increasing Hartmann number and power-law index reduce heat transfer. In the reference case ( \(Nb=1\) ), transitioning from a shear-thinning ( \(n=0.7\) ) fluid to a Newtonian ( \(n=1.0\) ) or shear-thickening ( \(n=1.3\) ) fluid decreases the heat transfer rate by approximately 51.9 and 72.6%, respectively. Furthermore, increasing \(Ha\) from 0 to 50 leads to heat transfer reductions of 51.4, 56, and 48.5% for \(n=0.7\) at \(Nb=1\) , 4 and 16; and 25.8, 24.4, and 16.8% for \(n=1\) ; and 10, 6.5, and 2.7% for \(n=1.3\) , demonstrating a stronger damping effect in shear thinning fluids compared to Newtonian or shear-thickening cases.