The invention relates to an intelligent and ecological healthy sleep system which comprises a control center, a human parameter and lying gesture testing system, a double-bearing spacing mattress, a reverse drawing type displacement transducer, an information transmission technology, and the like, wherein the testing system automatically collects the human parameters of height, weight, figure, and the like of a person lying in bed, or instructions or parameters can be freely input in the testing system; the control center computes the suitable thickness of the mattress and height of a pillow for lying on back or lying on side according to the human parameters; the lying gesture testing system tests the lying gestures; and according to the lying gestures, parameters are selected to adjust the effective thickness of the double-bearing spacing mattress and the height of the pillow. The invention meets different requirements of skoliosis and lordosis of the waist for the thickness of the mattress and different requirements for the height of the pillow when the person lies on back or lies on side, adjusts the sleeping gesture of the human body to provide the most reasonable support for the human body, and has the functions of enhancing the bearing performance of the mattress, preventing local collapse and deformation of the mattress, embodying and quantifying the thickness and the hardness, solving the problem of difficult bed-selecting for a user, supporting the human body stably and steadfastly, and keeping the natural physiological curvature of the skeleton.