An intelligent electric wheel hub comprising a deceleration motor, a freewheel mechanism and a cylindrical freehub body; wherein the intelligent electric wheel hub further comprises a cylindrical battery pack, a wheel hub left end cover, a cylindrical wheel hub housing, a wheel hub left half shaft, a wheel hub right half shaft, a riding state sensing device (13, 14) and a controller panel; wherein the freehub body is sleeved on the wheel hub right half shaft by supporting bearing; wherein the wheel hub left end cover is sleeved on the wheel hub left half shaft by supporting bearing and is fixedly connected to the left end of the wheel hub housing; wherein the freewheel mechanism comprises an outer freewheel ring and an inner freewheel ring that are matched by a ratchet-pawl and nested by supporting bearing, the inner freewheel ring fixedly connected to the freehub body, and the outer freewheel ring fixedly connected to the right end of the wheel hub housing to form a wheel hub inner cavity accommodating the deceleration motor and the battery pack; wherein a motor housing of the deceleration motor is fixedly connected to the wheel hub left half shaft and the wheel hub right half shaft, and the deceleration motor is connected to the wheel hub left end cover through a decelerating mechanism to drive the wheel hub left end cover to rotate; wherein the battery pack comprises rechargeable batteries and is fixedly sheathed outside the motor housing; wherein the battery pack is electrically connected to the controller panel to power the controller panel; wherein the controller panel comprises a processor and a motor driving module,, the motor driving module connected to the processor, and the motor driving module electrically connected to a coil of the stator, wherein the processor controls the motor driving module to drive the deceleration motor to run; characterized in that said riding state sensing device comprises: a multi-pole magnetic ring rotating with said freehub body, and a Hall sensor sensing a rotation direction of said multi-pole magnetic ring, said Hall sensor signal-connected to said processor; wherein said battery pack comprises a cylindrical base and a strap, wherein said rechargeable batteries are arranged around said cylindrical base and secured by said strap, and said inner cavity of said cylindrical base is provided with an axial shoulder protruding inwardly, wherein said axial shoulder is located between a right end cover of said motor housing and said controller panel that are axially connected by screws, and said axial shoulder is axially limited by a pressure of said right end cover and said controller panel from both sides. the intelligent electric wheel hub further comprises a cylindrical battery pack, a wheel hub left end cover, a cylindrical wheel hub housing, a wheel hub left half shaft, a wheel hub right half shaft, a riding state sensing device (13, 14) and a controller panel; wherein the freehub body is sleeved on the wheel hub right half shaft by supporting bearing; wherein the wheel hub left end cover is sleeved on the wheel hub left half shaft by supporting bearing and is fixedly connected to the left end of the wheel hub housing; wherein the freewheel mechanism comprises an outer freewheel ring and an inner freewheel ring that are matched by a ratchet-pawl and nested by supporting bearing, the inner freewheel ring fixedly connected to the freehub body, and the outer freewheel ring fixedly connected to the right end of the wheel hub housing to form a wheel hub inner cavity accommodating the deceleration motor and the battery pack; wherein a motor housing of the deceleration motor is fixedly connected to the wheel hub left half shaft and the wheel hub right half shaft, and the deceleration motor is connected to the wheel hub left end cover through a decelerating mechanism to drive the wheel hub left end cover to rotate; wherein the battery pack comprises rechargeable batteries and is fixedly sheathed outside the motor housing; wherein the battery pack is electrically connected to the controller panel to power the controller panel; wherein the controller panel comprises a processor and a motor driving module,, the motor driving module connected to the processor, and the motor driving module electrically connected to a coil of the stator, wherein the processor controls the motor driving module to drive the deceleration motor to run; characterized in that said riding state sensing device comprises: a multi-pole magnetic ring rotating with said freehub body, and a Hall sensor sensing a rotation direction of said multi-pole magnetic ring, said Hall sensor signal-connected to said processor; a multi-pole magnetic ring rotating with said freehub body, and a Hall sensor sensing a rotation direction of said multi-pole magnetic ring, said Hall sensor signal-connected to said processor; wherein said battery pack comprises a cylindrical base and a strap, wherein said rechargeable batteries are arranged around said cylindrical base and secured by said strap, and said inner cavity of said cylindrical base is provided with an axial shoulder protruding inwardly, wherein said axial shoulder is located between a right end cover of said motor housing and said controller panel that are axially connected by screws, and said axial shoulder is axially limited by a pressure of said right end cover and said controller panel from both sides.