looking first at fig1 , there is shown a novel tens apparatus 100 which comprises one preferred form of the present invention . tens apparatus 100 generally comprises three components : a stimulator 105 , a strap 110 , and an electrode array 120 . stimulator 105 comprises three mechanically and electrically inter - connected compartments 101 , 102 , and 103 . compartments 101 , 102 , 103 are inter - connected by hinge mechanisms 104 , thereby allowing tens assembly 100 to conform to the curved anatomy of a user &# 39 ; s leg . in the preferred embodiment , compartment 102 contains stimulation hardware ( except for a battery ) and user interface elements 106 , 108 . in the preferred embodiment , compartments 101 and 103 are smaller , auxiliary compartments that house a battery for powering the stimulation hardware and other ancillary elements . as shown in fig2 , electrode array 120 comprises electrical contacts 210 , 212 that snap into mating ports 130 , 132 provided on the underside of central stimulator compartment 102 . when snapped together , stimulator 105 and electrode array 120 are mechanically and electrically connected . this direct electro - mechanical connection between stimulator 105 and electrode array 120 eliminates the need for inconvenient lead wires found in other tens devices . central stimulator compartment 102 also has a usb port 133 on its underside for ( i ) charging the battery contained in one of the outboard compartments 101 , 103 , ( ii ) downloading of utilization data , ( iii ) configuring the stimulator 105 , and ( iv ) uploading of software upgrades . in the preferred embodiment , usb port 133 is not electrically isolated from the stimulator hardware in order to simplify the design and lower manufacturing costs . however , the location of usb port 133 on the underside of central stimulator compartment 102 prevents use of the usb port when an electrode array 120 is attached to stimulator 105 , e . g ., as may be understood from fig2 . as a result , electrical safety is maintained because stimulator 105 cannot be used to deliver stimulation to a patient via electrode array 120 while stimulator 105 is simultaneously connected to another device , e . g ., a power supply , via usb port 133 . looking again at fig1 , stimulator 105 includes a push button 106 for control of electrical stimulation , and leds 108 for indicating stimulation status and providing other feedback to the patient . although the preferred embodiment shown in fig1 comprises a single push button 106 and two leds 108 , other constructions may also be used , e . g ., two or more push buttons , etc . additional user interface elements ( e . g ., an lcd display , audio feedback through a beeper or voice output , haptic devices such as a vibrating motor , etc .) have been contemplated and are considered to be within the scope of the present invention . in the preferred embodiment , main compartment 102 of stimulator 105 includes an accelerometer ( not shown ), preferably in the form of a semiconductor chip , to detect user gestures such as tapping ( or slapping ) on central compartment 102 . additional uses for the accelerometer include the detection of certain movement characteristics of tens apparatus 100 , and therefore identification of patient orientation and activity , such as lying , standing , walking , gait , etc ., which permits modifying the stimulation characteristics of stimulator 105 in order to optimize stimulation for the identified patient state . in addition to the user interface elements noted above , the electrical stimulation itself can serve a user interface function . more particularly , the patient will generally recognize changes in the stimulation pattern . thus , for example , the stimulator 105 can indicate to the patient that the stimulation intensity has reached a maximum value by pulsing stimulation on and off with a fixed on and off period ( e . g ., 0 . 5 seconds ) for a short period of time ( e . g ., 3 seconds ). in the preferred embodiment , and still looking now at fig1 , the user interface elements ( e . g ., push button 106 and leds 108 ) are physically located on stimulator 105 . in alternative embodiments , one or more of the user interface components may be remotely located . these remote user interface elements may be connected to stimulator 105 through a variety of means including a physical link such as a wire , a wireless link such as a bluetooth ® connection , an optical link such as an infra - red ( ir ) connection , etc . these remote user interface elements may be located on dedicated devices specifically designed to control stimulator 105 such as a custom remote control , or they may be incorporated into existing devices used by the patient such as a smart phone , a tablet computer , etc . as seen in fig3 , strap 110 serves to securely and comfortably attach stimulator 105 to the patient &# 39 ; s leg in the upper calf region 140 . in the preferred embodiment , strap 110 is constructed from material that includes velcro ® which allows the device to be easily secured to a variety of different calf sizes . it is also possible to make the strap removable from stimulator 105 and thereby offer straps of varying sizes to more readily adapt to particularly small or large calves . strap 110 may also include a mechanism ( not shown ), such as a clip , for holding the ends of electrode array 120 in place . strap 110 may also include electronic means ( not shown ) that determine calf circumference and / or other biometric data ( e . g ., skin temperature ) and communicate this data to stimulator 105 for optimization of stimulation parameters . the preferred embodiment of the invention is designed to be worn on the patient &# 39 ; s upper calf 140 as shown in fig3 . a patient may wear a tens apparatus 100 on one or both legs depending on the nature and level of their pain , and as directed by their physician . in the case of two tens apparatus 100 , the devices may communicate with one another through a wireless link to synchronize their operation . tens apparatus 100 , comprised of stimulator 105 , electrode array 120 and strap 110 , is secured to upper calf 140 by placing the apparatus in position and then tightening strap 110 so as to secure electrode array 120 against the skin of the patient . the particular rotational disposition of tens apparatus 100 on upper calf 140 is not clinically important as the construction and operation of electrode array 120 is intentionally designed to be independent of the exact rotational position of tens apparatus 100 . more particularly , and as will hereinafter be discussed in further detail , electrode array 120 is deliberately sized and configured so that it will apply appropriate electrical stimulation to the appropriate anatomy of the patient regardless of the specific rotational position of tens apparatus 100 on the calf of the patient . stimulator 105 is a microprocessor - controlled circuit which generates biphasic , symmetrical , rectangular pulses with regulated current , as shown in fig4 . this pulse waveform is charge - balanced which prevents iontophoretic build - up under the electrodes of the electrode array 120 that can lead to skin irritation and potential skin damage . regulated current pulses provide more stable stimulation than regulated voltage pulses , because the stimulation current is independent of the electrode - skin impedance , which typically changes during the course of a therapy session . in order to address a wide variety of skin types and electrode quality ( due to repeat use and air exposure ), the maximum output voltage is 100v and the maximum output current is 100 ma . finally , the pulse pattern is continuous stimulation with randomly varying inter - pulse intervals such that the frequency of stimulation has a uniform probability distribution between 60 hz and 100 hz . alternatively , the frequency of stimulation may have a gaussian probability distribution between 60 hz and 100 hz , or some other probability distribution . the benefit of providing frequency stimulation with randomly varying inter - pulse intervals ( versus frequency stimulation with constant inter - pulse intervals ) is that the former type of stimulation may lead to less nerve habituation , which is a physiological decrease in nerve responsiveness to stimulation . preferably the gap between the positive and negative phases of the pulse pattern is relatively small and uniform , although the gap may be omitted , or modified , if desired . in this respect it should be appreciated that the presence of the gap between the positive and negative phases of the pulse pattern is primarily a consequence of simplified circuit design . although the preferred embodiment of stimulator 105 has specific technical characteristics , other technical specifications ( such as for the pulse waveform shape , maximum output voltage , maximum output current , and pulse pattern ) have been contemplated and are considered to be within the scope of the present invention . in another embodiment , the stimulation attributes of stimulator 105 are programmable , with the stimulator being connectable ( such as through the usb port ) to a computer or mobile device ( e . g ., smart phone , tablet computer , etc .) running appropriate setup software . in this fashion , the stimulation attributes of stimulator 105 can be customized to the user &# 39 ; s pain characteristics , physiology , and preferences . fig5 is a schematic view of an exemplary pulse train 480 provided by stimulator 105 during a therapy session and shows the waveform of two individual pulses 490 , each of which has the spaced biphasic waveform shown in fig4 . pulses of fixed or randomly varying frequencies persist throughout the therapy session duration 482 . the intensity of the stimulation ( i . e ., the amplitude of the current delivered by stimulator 105 ) is adjusted in response to patient input and for habituation compensation , as is described below . a schematic of the preferred embodiment of electrode array 120 is shown in fig6 . electrode array 120 preferably comprises four discrete electrodes 202 , 204 , 206 , 208 , preferably each electrode having an equal surface area . electrodes 202 , 204 , 206 , 208 are connected in pairs so that electrodes 204 and 206 ( representing the cathode ) are electrically connected to one another ( e . g ., via connector 205 ), and so that electrodes 202 and 208 ( representing the anode ) are electrically connected to one another ( e . g ., via connector 207 ). it is understood that when the polarity of the electrical pulse is reversed , the roles of the cathode and anode electrodes are also reversed . it should be appreciated that electrodes 202 , 204 , 206 and 208 are appropriately sized , and connected in pairs , so as to ensure adequate skin coverage regardless of the rotational position of electrode array 120 on the leg of a patient . furthermore , it should be appreciated that electrodes 202 , 204 , 206 and 208 are not connected in an interleaved fashion , but rather are connected so that the two inside electrodes 204 and 206 are connected to one another , and so that the two outside electrodes 202 and 208 are connected to one another , so as to ensure that if the two outer electrodes 202 and 208 should inadvertently come into contact with one another , such as might occur in a patient with a thin calf , the electrode array will not be shorted out . electrical current ( i . e ., for electrical stimulation to the tissue ) is provided to the electrode pairs by connectors 210 , 212 ( see also fig2 ) which mate with complementary connectors 130 , 132 on stimulator 105 ( see also fig2 ). connector 210 is electrically connected with electrodes 204 and 206 , and connector 212 is electrically connected with electrodes 202 and 208 . stimulator 105 generates electrical currents that are passed through electrodes 204 , 206 and electrodes 202 , 208 via connectors 210 , 212 , respectively . the individual electrodes 202 , 204 , 206 , 208 are preferably constructed from a hatched silver pattern overlaid with a conductive hydrogel . the backing 214 for electrode array 120 is preferably mylar on which the aforementioned silver patterns are printed . electrical connections between the electrodes 202 , 204 , 206 , 208 and the connectors 210 , 212 ( i . e ., connectors 205 , 207 ) are formed by printed silver traces which are covered with an insulating material . additional embodiments of electrode array 120 have been contemplated including the use of varying numbers of electrodes , different electrode sizes and different inter - electrode spacing , and alternative electrode silver patterns such as a solid , and are considered to be within the scope of the present invention . electrode array 120 is designed for circumferential placement around the patient &# 39 ; s upper calf as shown in fig3 . the design of electrode array 120 ensures that a minimum distance is always maintained between the electrodes 204 , 206 forming the cathode and the electrodes 202 , 208 forming the anode . in the preferred embodiment , this minimum distance is 40 mm . in this respect it should be noted that a minimum cathode - to - anode distance is critical for proper tens operation because if the cathode and the anode are too close to one another , the stimulation current does not penetrate sufficiently deeply into the tissue and the ability to stimulate nerves is compromised . when stimulator 105 and electrode array 120 are connected together as shown in fig2 , and placed on the patient ( using strap 110 ) as shown in fig3 , the individual electrodes 202 , 204 , 206 , 208 are positioned to deliver stimulation to the l4 , l5 , s1 and s2 sensory dermatomes which provide sensation to the foot and lower leg . as a result , the invention is particularly suitable for providing analgesia in the foot and lower leg , which supports its preferred use for the symptomatic treatment of chronic pain due to pdn . the use of the preferred embodiment of the present invention is straightforward . the user snaps an electrode array 120 into stimulator 105 ( fig2 ), thereby establishing a secure mechanical and electrical contact between the two components . using strap 110 , this assembly is then placed on the upper calf of the patient ( fig3 ) so that the electrodes of electrode array 120 are securely disposed against the skin of the patient . stimulation is initiated by pressing the control push button 106 . upon completion of the therapy session , tens apparatus 100 is removed from the patient and electrode array 120 is detached from stimulator 105 . electrode array 120 may be used multiple times on a single patient . a major objective of the present invention is to simplify the user interface , and therefore a one - button interface is preferred . conventional tens devices typically have multiple user interface elements consisting of on / off switches , buttons to increase / decrease the stimulation intensity , dials to change the stimulation intensity , and other controls to regulate device function . the correct use of such prior art user interfaces requires that the patient have unfettered physical and visual access to the device , which limits placement of the device to certain anatomical locations , such as on a belt clip . by comparison , the present invention utilizes a simple one - button interface that does not require visual confirmation and is easily operated with the device placed anywhere on the body , including the lower leg as shown in fig3 . in the preferred embodiment of the present invention , which utilizes a one - button interface , the device is powered on ( either from a low power stand - by state or from an off - state ) by a button press . stimulation intensity is controlled through short and long button presses . more particularly , holding the button down increases the stimulation intensity as long as the button is depressed , such as at the rate of 1 milliamp per second . pressing and quickly releasing ( i . e ., “ tapping ”) the button decreases the stimulation intensity by a fixed amount , such as 1 milliamp per button press or by a fixed percentage , such as 2 % per button press . in this fashion , the stimulation intensity can be easily controlled by the patient with a single push button ( i . e ., push button 106 ). the present invention further discloses the provision of an accelerometer to detect user gestures such as slapping ( or tapping ) the stimulator enclosure 102 . in the preferred embodiment , the detection of a slap immediately stops stimulation . there is no universal tens stimulation intensity that provides an effective , yet tolerable , therapeutic dose for all patients . therefore , in order to obtain the clinical benefit of tens therapy , it is essential to set the stimulation intensity to a patient - specific level . a stimulation intensity that elicits a “ strong but not painful ” sensation will provide effective pain relief , and is therefore suggestive of an intensity that is within the therapeutic window . the traditional approach in tens is for the medical staff to train patients on how to manually increase the intensity of the tens stimulation until the patients perceive the desired “ strong but not painful ” sensation . it is then the responsibility of the patient to thereafter perform this procedure as necessary , e . g ., at home when tens therapy is needed . however , this prior art approach requires the use of expensive medical resources ( i . e ., medical staff time ) and is error prone inasmuch as previously - trained patients may forget how to determine an appropriate therapeutic intensity . as a result , a major objective of the present invention is to automatically and reliably set the stimulation intensity within the therapeutic range . the present invention discloses a method for automatically setting the stimulation intensity to a therapeutic level , a procedure which is sometimes hereinafter referred to as “ configuration ”. this method is based on the concept of mapping a patient &# 39 ; s electrotactile perception scale , on which the “ strong but not painful ” sensation is represented , to an electrical stimulation intensity scale as measured in milliamps . in this respect , the term “ electrotactile ” is meant to refer to a patient &# 39 ; s sensation of electrical stimulation . there are three key measurable electrotactile perception levels : electrotactile sensation threshold ( i . e ., the lowest level of electrical stimulation which the patient can sense ), electrotactile pain threshold ( i . e ., the level of electrical stimulation which causes pain to the patient ), and electrotactile tolerance threshold ( i . e ., the maximum level of electrical stimulation which can be tolerated by a patient ). an optimal tens stimulation intensity is located between the electrotactile sensation threshold and the electrotactile pain threshold . fig8 shows a curve 300 illustrating the relationship between electrical stimulation intensity 302 and electrotactile perception 304 . the slope of curve 300 is steep near the electrotactile sensation threshold 306 , so the range 308 of stimulation intensities , i ( s ), which may first elicit sensation in the patient is generally narrow . as a result , the electrotactile sensation threshold 306 , and the corresponding stimulation intensity 308 , i . e ., i ( s ), can be reliably determined . the electrotactile pain threshold 310 , which is defined as the level where electrical stimulation sensation changes from comfortable to painful , is not as well - defined and is influenced by multiple physiological and psychological factors . as a result , the curve 300 is not as steep in the electrotactile pain threshold region 310 as in the electrotactile sensation threshold region 306 . this can lead to a wide range 312 of stimulation intensities , i ( p ), at which the transition to pain occurs . for this reason , it may be difficult to reliably measure the electrotactile pain threshold 310 , and the corresponding stimulation intensity 312 . another drawback with measuring the electrotactile pain threshold 310 is that it necessitates stimulation with current intensities that are at the upper limit of the patient &# 39 ; s comfortable range and , due to the variation in the exact pain threshold 310 , may occasionally be perceived as painful . consequently , a patient may consistently underestimate his / her pain threshold , leading to a stimulation level which is below the optimal therapeutic range if the therapeutic level is estimated from the electrotactile pain threshold 310 . since the stimulation intensity i ( s ) associated with the electrotactile sensation threshold 306 can be reliably estimated , a target therapeutic stimulation intensity i ( t ), which provides a “ strong but not painful ” sensation , may be calculated by adding an intensity offset i ( o ) to the stimulation intensity i ( s ) associated with the electrotactile sensation threshold . in other words , where i ( s ) is the stimulation intensity associated with the electrotactile sensation threshold , an intensity offset i ( o ) may be added to the stimulation intensity i ( s ) so as to determine the stimulation intensity i ( t ) which is “ strong but not painful ”, i . e ., therapeutically effective and yet comfortable for the patient . this is a new and innovative method for determining a stimulation intensity that is strong but not painful to the patient . a preferred embodiment of this procedure for automatically setting the stimulation intensity to a therapeutic level is to gradually increase the stimulation intensity from 0 ma until the patient indicates that the stimulation is first felt , i . e ., that the electrotactile sensation threshold has been reached , such as by using the push button 106 . in a preferred embodiment , the stimulation intensity is increased in a geometric progression . for example , the stimulation intensity may increase by 5 % every second ( i . e ., stimulation intensity is 1 . 05 times the prior stimulation intensity ). the benefit of a geometric progression is that it better matches the exponential relationship of stimulus intensity and electrotactile sensation ( i . e ., the so - called “ psychophysical power law ”) than does a linear increase in intensity ( e . g ., 1 ma per second ). the procedure can be repeated multiple times to allow a more accurate estimate of the electrotactile sensation threshold and the associated intensity i ( s ), such as by taking the mean or median of multiple measurements . in a preferred embodiment , the first determination of the electrotactile sensation threshold is discarded because the patient may not be familiar with the perception of electrical stimulation and may therefore underestimate or overestimate the correct level . an increment of stimulation intensity , i . e ., an intensity offset i ( o ), is then added to the stimulation intensity i ( s ) associated with the electrotactile sensation threshold so as to estimate the therapeutic intensity , i ( t ), 316 . in a preferred embodiment , the stimulation intensity offset i ( o ) is a constant for all patients . because sensory perception typically varies in a logarithmic fashion , the relationship between the therapeutic intensity , i ( t ), and the sensation threshold intensity , i ( s ), is expressed as a ratio ( e . g ., 2 ), or in decibels ( e . g ., 6 db ), where the ratio = 10 ( db / 20 ) . in another preferred embodiment , the stimulation intensity offset i ( o ) varies according to manual changes in the stimulation intensity made by the patient . as an example , if , after a first determination of the therapeutic intensity ( i . e ., by adding a default offset i ( o ) to the stimulation intensity i ( s ) associated with the electrotactile sensation threshold 306 ), the patient then manually increases the stimulation intensity ( as determined by the above procedure ) during a subsequent therapy session , it is likely that the optimal intensity offset for that patient is larger than the default offset . therefore , in a subsequent determination of the therapeutic intensity , a larger stimulation intensity offset is used . similarly , if , after a first determination of the therapeutic intensity ( i . e ., by adding a default offset i ( o ) to the stimulation intensity i ( s ) associated with the electrotactile sensation threshold 306 ), the patient then manually decreases the stimulation intensity during a subsequent therapy session , it is likely that the optimal intensity offset for that patient is smaller than the default value . therefore , in a subsequent determination of the therapeutic intensity , a smaller stimulation intensity offset is used . in this fashion , the therapeutic intensity estimated from the sensation threshold is adaptive and responsive to the patient &# 39 ; s input . additional embodiments of the present invention have been contemplated wherein the stimulation intensity offset i ( o ) is determined as a function of demographic or biometric variables such as the gender of the patient , circumference of the calf of the patient , calf temperature , and level and type of activity ( e . g ., rest , sleep , walking ). as an example , it is known that males have higher electrotactile thresholds than females , and therefore the stimulation intensity offset i ( o ) can be set to gender specific values wherein the male intensity offset is greater than the female intensity offset . as another example , a patient with a large calf is likely to require a higher stimulation intensity level than a patient with a smaller calf due to the distance between the skin and the underlying nerves which are to be stimulated . therefore , the calf size ( which , in one preferred form of the invention , may be electronically measured by the strap 120 and communicated to the stimulator 105 ) may be used as an input to determine the stimulation intensity offset to be used for that patient . as yet another example , it is known that electrotactile thresholds are inversely related to the temperature of the patient , which may be approximated by measuring the patient &# 39 ; s skin surface temperature . therefore , the stimulation intensity offset can be increased ( for lower patient temperatures ) or decreased ( for higher patient temperatures ) as a function of the skin surface temperature to address these temperature - dependent changes in electrotactile perception . the skin surface temperature can be measured with a non - contact infrared thermosensor ( e . g ., mlx90615 , melexis semiconductors , belgium ) or a contact digital thermosensor ( e . g ., ds1820 , maxim , inc ., sunnyvale , calif . ), which can be embedded in the strap 110 or the enclosure of stimulator 105 . although the use of skin surface temperature is described with respect to estimation of the therapeutic intensity from the sensation threshold , additional embodiments of the present invention have been contemplated in which skin surface temperature is used to continuously adjust the stimulation intensity during a therapeutic session to account for temperature changes . once a therapeutic intensity level i ( t ) is determined , tens apparatus 100 is ready to be used for therapeutic purposes . the patient may re - establish the therapeutic intensity , i . e ., i ( t ), from time to time . it should be noted that a tens device can be used without automatic determination of the therapeutic intensity level by using a universal intensity level , such as a maximum safe therapeutic intensity . however , such a fixed approach is severely limited as described above . in a preferred embodiment , when a patient initiates a treatment session , the stimulation intensity will steadily ramp up to the target intensity , i ( t ), 316 , where the target intensity has been determined by previously conducting electrotactile perception mapping for that patient ( which identified the stimulation intensity i ( s ) associated with the sensation threshold ) and then adding the desired intensity offset i ( o ) so as to establish the therapeutic stimulation intensity i ( t ) to be used for that patient . the stimulation intensity should gradually increase to the target intensity ( i . e ., the therapeutic stimulation intensity ) i ( t ) over a sufficiently long period of time such that the patient will not be surprised by the stimulation or become uncomfortable with the stimulation . in the preferred embodiment , the stimulation intensity increases to the target intensity over a time period of 1 minute , and this is done in three phases . in the first phase , the stimulation intensity increases to 90 % of the sensation threshold in 5 seconds . these intensity levels are sub - sensation threshold and therefore should not be perceived by the patient . in the second phase , the stimulation intensity increases from 90 % to 112 % (+ 1 db ) of the sensation threshold in 10 seconds . these stimulation intensities are near the sensation threshold and should be minimally perceived by the patient and will not be uncomfortable . in the third and final phase , the stimulation intensity increases from 112 % of the sensation threshold to the target intensity ( i . e ., the therapeutic stimulation intensity ). this gradual increase in stimulation intensity gives the patient the opportunity to become comfortable with the stimulation and avoids startling the patient . in the preferred embodiment , the patient may further refine the stimulation intensity by increasing or decreasing the stimulation intensity using push button 106 . in a preferred embodiment , the stimulation intensity cannot be decreased below an intensity “ floor ” which ensures that the stimulation intensity remains in a likely therapeutic range . as an example , the intensity floor can be set to 12 % ( 1 db ) above the sensation threshold . a novel benefit of determining the electrotactile sensation threshold in the foregoing manner is that the likely therapeutic benefit of the stimulation intensity used by the patient , particularly if manually modified by the patient from the automatic level determined as described above , can be evaluated . in the preferred embodiment , the utilization data stored by the stimulator 105 includes the stimulation intensity of each therapy session . as such , when the utilization data is uploaded to a computer , the average therapy level for that patient can be calculated and reported as , for example , a decibel level over the sensation threshold . the patient &# 39 ; s physician can then assess this value against the pain relief obtained by the patient and make appropriate clinical recommendations . for example , if the patient has a low therapy level ( e . g ., 2 db above the sensation threshold intensity , i ( s )) and the patient is not obtaining pain relief , the physician may then suggest that the patient re - establish their therapeutic intensity using the configuration procedure described above . habituation refers to a decrease in the sensory perception of a stimulus by the patient after the prolonged presentation of the stimulus to the patient . as applied to tens therapy , habituation may cause a decrease in pain relief following prolonged stimulation at the same therapeutic intensity . in traditional tens devices , patients are instructed to manually increase the stimulation intensity from time to time if their perception of the stimulation decreases . this places the onus on the patient , who is forced to repeatedly re - engage with the tens device , or they may entirely forget to adjust the intensity of the tens device . significantly , the present invention includes a method for providing automatic habituation compensation , which consists of an automatic gradual increase in the stimulation intensity over the course of a stimulation session . in the preferred embodiment , the stimulation intensity is increased geometrically with time . in other words , the stimulation intensity is multiplied by a fixed factor per unit time . for example , the stimulation intensity may be increased by the factor 1 . 004 for every minute of a therapy session . this equates to an approximately 27 % ( 2 db ) increase in stimulation intensity over a 60 minute therapy session . in another embodiment , the stimulation intensity is increased by a fixed amount , such as 0 . 5 milliamps , for every minute of the therapy session . in another embodiment , the rate of increase is adjusted to account for manual changes in the stimulation intensity . for example , if the patient decreases the stimulation intensity in the middle of the therapy session , then the automatic rate of increase may be too high for this patient and should be decreased for subsequent therapy sessions . similarly , if the patient increases the stimulation intensity in the middle of the therapy session , then the automatic rate of increase may be too low for this patient and should be increased for subsequent therapy sessions . in this fashion , the automatic habituation compensation is adaptive and responsive to the patient &# 39 ; s physiology . fig9 provides an overall view of the operation of the preferred embodiment of the present invention . first , as shown at 450 , the patient &# 39 ; s electrotactile perception thresholds are mapped to stimulation intensities , i . e ., the electrotactile sensation threshold is mapped to a stimulation intensity i ( s ), and the therapeutic stimulation intensity i ( t ) is determined , i . e ., by adding an intensity offset i ( o ) to the stimulation intensity i ( s ). thus , upon entering the first therapy session 465 , the therapeutic intensity level has already been automatically calculated for that patient . during the first phase 462 of first therapy session 465 , the patient may adjust the stimulation intensity using the user interface controls ( e . g ., push button 106 ). the stimulation intensity at the end of the this first phase 462 , which typically lasts for 3 minutes , is stored and becomes the therapeutic intensity level for the next therapy session 467 . habituation compensation , as previously described , occurs throughout the rest of the therapy session ( i . e ., during phase 464 of first therapy session 465 ) and subsequent therapy sessions 467 . the patient has the option of repeating the electrotactile perception mapping phase 450 , which will invoke a recalculation of the therapeutic stimulation intensity i ( s ), after one or more therapy sessions 467 . it should be understood that many additional changes in the details , materials , steps and arrangements of parts , which have been herein described and illustrated in order to explain the nature of the present invention , may be made by those skilled in the art while still remaining within the principles and scope of the invention .
apparatus for transcutaneous electrical nerve stimulation in humans , comprising a housing ; stimulation means mounted within the housing for electrically stimulating nerves ; an electrode array releasably mounted to the housing , connectable to the stimulation means , and comprising electrodes for electrical stimulation of nerves ; control means mounted to the housing and electrically connected to the stimulation means for controlling the stimulation means ; monitoring means mounted to the housing and electrically connected to the stimulation means for monitoring the stimulation means ; user interface means mounted to the housing and electrically connected to the control means for controlling the stimulation means ; display means mounted to the housing and electrically connected to the control means and the monitoring means for displaying the status of the stimulations means ; and a strap attached to the housing and configured to hold the housing , stimulation means and electrode array at a specific anatomical location to treat pain .