Updated

Kenneth Bae knew he was in trouble when he opened his briefcase for a North Korean customs official and saw a computer hard drive he meant to leave behind in China.

He had no idea how much trouble: He would go on to spend the next two years in detention, including in a labor camp where he was ordered to plant soybeans in sweltering heat and dig sewage lines in frozen ground.

As difficult as that time was, he says, it also gave him a greater understanding of the isolated nation.

"Even though I was in and out of North Korea 17 times prior to that, I only stayed a short period," he said in an interview ahead of the Tuesday release of his memoir. "By staying as a prisoner for two years, I learned their culture, their way of thinking, how the ordinary people live in their day-to-day lives."

"Not Forgotten: The True Story of My Imprisonment in North Korea" is appearing as North Korea holds two other Americans in custody. One, Kim Dong Chul, was sentenced last Friday to 10 years of hard labor on charges of espionage and subversion.

North Korea regularly accuses Washington and Seoul of sending spies to overthrow its government. Outsiders say North Korea seeks to use its U.S. detainees to wring concessions from Washington.

Bae, 47, of Dallas, was born in Seoul and came to the United States with his family in 1985. After attending the University of Oregon and a seminary in St. Louis, he moved to China in 2006, where he began missionary work. In 2010, he began leading small tour groups into North Korea.

The hard drive that landed him in custody contained files about his missionary work as well as a documentary video showing emaciated North Korean children scrounging in the dirt for something to eat — materials the North Korean officials considered subversive.

Agents brought him to a hotel in northeastern North Korea. There, he writes, he was held in seclusion for the next month as officials grilled him about his family, about who had sent him to the country, who had given him the files and why he was in North Korea.

He was given little to eat — generally a few bites of rice and some wilted vegetables, he says — and was forced to watch government propaganda every evening, but was not beaten, he says.

He eventually confessed one of the documents was a plan for what he described as "Operation Jericho," an effort to bring tourists into North Korea to pray and spread the love of God. They would not have openly evangelized, but he had hoped that the "walls" isolating North Koreans from the rest of the world would come crumbling down, as the walls of Jericho fell in the Bible story.

North Korean officials did not understand the plan's metaphorical nature, and he struggled to explain that he wasn't trying to actually overthrow the government, he writes. The government sentenced him to 15 years in prison, but his weak health — including a bad back, diabetes and gallstones — made it difficult for him to perform hard labor. He spent some of his time resting in a hospital room.

Bae said the worst parts of his detention were knowing his family was worrying constantly about him and not knowing what the White House might be doing to try to free him. In 2014, following negotiations handled with the help of the Swedish embassy in Pyongyang, U.S. Director of National Intelligence James Klapper traveled to retrieve him, along with another detained American, Matthew Miller.

He relied heavily on his faith, reading Bible verses and praying until he came to realize that he could serve as a missionary even while in custody, he writes. He came to know several of his captors and sought openings where he could talk to them about their lives, the U.S. and Christianity.

They were astonished to hear of how common it is for Westerners to own cars or their own homes, he writes, and he was amazed at aspects of North Korean life — such as when his captors drove him across the country to Pyongyang in a snowstorm. Over a stretch of nearly 200 miles, thousands of people lined the gravel road that passed for a highway — all of them shoveling to keep the road clear.

Bae says he still loves the North Korean people and hopes that someday he'll return "not as a threat, but as a blessing." In the meantime, he hopes to open an organization that will work with North Korean refugees in South Korea, helping them adjust to life outside.

His book's title, he says, came not only from the fact he wasn't forgotten while he was in custody, but also "because they should not be a forgotten people anymore."