One night last year at an army barracks in Tehran, a tormented young conscript rousted his sergeant from bed and marched him outside at gunpoint.
The private made his superior writhe in the dirt for an hour, mimicking the exercises he had been forced to do for two months after he was drafted. The private would soon disappear; soldiers later heard he was imprisoned for three years.
Ahmad, a 25-year-old draftee who had just reported to the base, recalled that incident this summer after a series of deadly shootings by conscripts focused national attention on the struggles faced by those completing Iran's mandatory military service.
"I sympathize with the shooters," said Ahmad, who like several recruits interviewed for this story requested that his last name be withheld because he could be punished for speaking out. "Something or someone must have been torturing them so deeply. That's why they did what they did."
In July, a 23-year-old draftee holed up in his room at a barracks in southern Iran with a loaded weapon after his superiors turned down his request for leave. He shot and wounded a police officer before killing himself.
A soldier in northern Iran who was denied a transfer to another base opened fire on service members, killing three and injuring six. The shooter was hospitalized.
In August, a conscript from the country's poorest province gunned down three troops at a garrison in Tehran and wounded at least eight others before he was shot. He died on the way to the hospital.
Reports of trouble inside Iran's secretive security forces are rare. While scant details have emerged from officials or state media, many young draftees said the violence was not surprising.
They described Iran's military training as a 21-month ordeal of physical humiliation, psychological stress and petty corruption, where mental health problems fester and socioeconomic grievances are magnified. Many said superiors often trample on poor and disadvantaged recruits while the wealthy and well-connected avoid the toughest tasks — or dodge the draft altogether.
"Almost everyone is a victim of hazing and mistreatment," Ahmad said. "I am educated, so I don't have it as bad. But I hate the service and I hate my surroundings. I don't feel any patriotism in my heart."
The shootings have raised uncomfortable questions for Iran's army, one of the largest in the Middle East with an estimated 350,000 active-duty troops, nearly two-thirds of whom are conscripts.
Although far less powerful or well financed than the elite Islamic Revolutionary Guard Corps — whose commanders hold stakes in key industries and lead Iran's military adventures in foreign lands— the nation's conventional army, or artesh, a mainly defensive force, has long been seen as a pillar of the Islamic Revolution at home and loyal servants of the theocracy.
But a prolonged economic crisis and growing resentment of clerics' sweeping powers have dampened Iranians' revolutionary zeal.
The recruits entering the army now were all born after the 1979 revolution. Experts say the shootings signal a young generation's increasing hostility to a ruling class that controls what they watch, wear, read and eat, and its worries about an economy that has failed to rebound despite the promises of the 2015 nuclear agreement, which relaxed international sanctions on Iran.
"When you see things like this in the garrison, it's a reflection of the broader problems in society," said Misagh Parsa, a sociology professor at Dartmouth College and author of "Democracy in Iran: Why It Failed and How It Might Succeed."
"The draftees, almost all of them, they know their future is bleak. They're sacrificing two years of their lives, but for what? They are more agitated than previous generations because of all the social and economic failures and the absence of better alternatives."
Iran, among roughly 60 countries that use a draft system, began conscription almost a century ago under the former monarchy. (Women were included until 1979, when the new Islamic rulers began enforcing segregation of the sexes.) Service is mandatory for all males older than 18, although some wealthy families are able to pay fines to keep their children out of the draft, so in practice the poorest Iranians are overrepresented in the forces.
Military service begins with two months of physical training, in which recruits wake before dawn six days a week for frog jumps and other exercises, and education in weapons, self-defense and responding to chemical attacks. Then they are assigned to up to 19 months of active duty.
Uneducated soldiers are often sent to guard remote outposts, while those with connections can often negotiate undemanding desk jobs. Those disparities are in the spotlight now because they appeared to have been a factor in both July shootings.
Ahmad, the draftee from Tehran, sorts and distributes mail for a senior commander, a job he got because his brother-in-law is a staff officer at the same base. Reza Agarahimi, a 30-year-old who recently completed his service and whose father is a politician, was assigned to defense ministry headquarters while others were told during physical training that they could be sent to far-flung cities where they would not see their families.
"Picture it: You're a young private stationed in a remote area, you are humiliated by the officers, you miss your family, you are alone in a tower standing guard in the middle of the night and you're thinking about your future, which is unpredictable in Iran these days," he said.
"Then someone comes and abuses you, makes you angry. It can make you explode."
Reza, a 26-year-old software engineer nearing the end of his service, negotiated additional leave by helping senior officers set up their computers, cellphones and the office internet. Such examples of small-time corruption have a prolonged effect on recruits, he said.
"You suddenly open your eyes to how corrupt your country is, and as a young man that discovery brings you despair," Reza said. "You see that things are not efficiently run. You see the hypocrisy and it makes you lose hope for the future. It's very bad for a country that needs people to be patriotic."
In the aftermath of the shootings, Iran's military announced that it would increase psychological screening of draftees.
"Today's youth in our society are facing volatility and variables that have an impact on their minds and hearts," Army Brig. Gen. Kiyoumars Heidari was quoted as saying by the ISCA news agency. "We must talk face-to-face with draftees and listen to them."
Some politicians have called for abolishing the draft, including Mohsen Rezaei, a twice-failed presidential candidate who is now secretary of the Expediency Council, a powerful body that advises Iran's supreme leader.
Heshmatollah Falahatpisheh, a member of the Iranian parliament's national security committee, calls the draft "an obsolete policy."
"The army must be professional. Even the salaried army staff must undergo psychological exams before they join," Falahatpisheh told the Fararu news website.
Others said the draft served the interests of the theocracy, which would be less able to control a professional army. During the Iran-Iraq war in the 1980s, waves of lightly trained and often unarmed Iranian conscripts were sent to their deaths in infantry attacks that were repulsed by the better armed Iraqis.
"They need cannon fodder and a source of free labor," Agarahimi said. "And military service is a shock absorber for social troubles. For two years you are preoccupied, not thinking about jobs or other demands."
On Fridays, draftees in their uniforms are often seen lounging on park benches in Tehran during their weekly day off from training. Morteza, a 27-year-old wearing a camouflage cap and munching on a pear, said that since the shootings, physical training at his base has become less severe and psychologists have begun regular screenings of conscripts.
"Before this, our mental health wasn't examined," Morteza said. "I sympathize with the guys who carried out those shootings. There is a lot of simmering frustration. The army doesn't want to see those incidents repeated."
Mostaghim is a special correspondent.
Follow @SBengali on Twitter